aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/amso1100/c2.c2
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c4
-rw-r--r--drivers/infiniband/hw/mthca/mthca_main.c4
-rw-r--r--drivers/infiniband/hw/nes/nes.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/amso1100/c2.c b/drivers/infiniband/hw/amso1100/c2.c
index 7d79aa361e26..54d2e0760abf 100644
--- a/drivers/infiniband/hw/amso1100/c2.c
+++ b/drivers/infiniband/hw/amso1100/c2.c
@@ -989,7 +989,7 @@ static int __devinit c2_probe(struct pci_dev *pcidev,
989 } 989 }
990 990
991 if ((sizeof(dma_addr_t) > 4)) { 991 if ((sizeof(dma_addr_t) > 4)) {
992 ret = pci_set_dma_mask(pcidev, DMA_64BIT_MASK); 992 ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(64));
993 if (ret < 0) { 993 if (ret < 0) {
994 printk(KERN_ERR PFX "64b DMA configuration failed\n"); 994 printk(KERN_ERR PFX "64b DMA configuration failed\n");
995 goto bail2; 995 goto bail2;
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index cb9daa6ac029..77b2fb5b7c35 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -470,7 +470,7 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
470 goto bail_disable; 470 goto bail_disable;
471 } 471 }
472 472
473 ret = pci_set_dma_mask(pdev, DMA_64BIT_MASK); 473 ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
474 if (ret) { 474 if (ret) {
475 /* 475 /*
476 * if the 64 bit setup fails, try 32 bit. Some systems 476 * if the 64 bit setup fails, try 32 bit. Some systems
@@ -496,7 +496,7 @@ static int __devinit ipath_init_one(struct pci_dev *pdev,
496 } 496 }
497 } 497 }
498 else { 498 else {
499 ret = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); 499 ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
500 if (ret) 500 if (ret)
501 dev_info(&pdev->dev, 501 dev_info(&pdev->dev,
502 "Unable to set DMA consistent mask " 502 "Unable to set DMA consistent mask "
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c
index 52f60f4eea00..5d234204f7b7 100644
--- a/drivers/infiniband/hw/mthca/mthca_main.c
+++ b/drivers/infiniband/hw/mthca/mthca_main.c
@@ -1016,7 +1016,7 @@ static int __mthca_init_one(struct pci_dev *pdev, int hca_type)
1016 1016
1017 pci_set_master(pdev); 1017 pci_set_master(pdev);
1018 1018
1019 err = pci_set_dma_mask(pdev, DMA_64BIT_MASK); 1019 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
1020 if (err) { 1020 if (err) {
1021 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); 1021 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n");
1022 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1022 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
@@ -1025,7 +1025,7 @@ static int __mthca_init_one(struct pci_dev *pdev, int hca_type)
1025 goto err_free_res; 1025 goto err_free_res;
1026 } 1026 }
1027 } 1027 }
1028 err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); 1028 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
1029 if (err) { 1029 if (err) {
1030 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " 1030 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit "
1031 "consistent PCI DMA mask.\n"); 1031 "consistent PCI DMA mask.\n");
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index ca599767ffbd..7446810446e1 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -478,12 +478,12 @@ static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_i
478 } 478 }
479 479
480 if ((sizeof(dma_addr_t) > 4)) { 480 if ((sizeof(dma_addr_t) > 4)) {
481 ret = pci_set_dma_mask(pcidev, DMA_64BIT_MASK); 481 ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(64));
482 if (ret < 0) { 482 if (ret < 0) {
483 printk(KERN_ERR PFX "64b DMA mask configuration failed\n"); 483 printk(KERN_ERR PFX "64b DMA mask configuration failed\n");
484 goto bail2; 484 goto bail2;
485 } 485 }
486 ret = pci_set_consistent_dma_mask(pcidev, DMA_64BIT_MASK); 486 ret = pci_set_consistent_dma_mask(pcidev, DMA_BIT_MASK(64));
487 if (ret) { 487 if (ret) {
488 printk(KERN_ERR PFX "64b DMA consistent mask configuration failed\n"); 488 printk(KERN_ERR PFX "64b DMA consistent mask configuration failed\n");
489 goto bail2; 489 goto bail2;