diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bnx2.c | 2 | ||||
-rw-r--r-- | drivers/net/enic/enic_main.c | 4 | ||||
-rw-r--r-- | drivers/net/ipg.c | 2 | ||||
-rw-r--r-- | drivers/net/tg3.c | 6 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.h | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index aa75a4b96909..5fd57703c65a 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -7525,7 +7525,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev) | |||
7525 | 7525 | ||
7526 | /* 5708 cannot support DMA addresses > 40-bit. */ | 7526 | /* 5708 cannot support DMA addresses > 40-bit. */ |
7527 | if (CHIP_NUM(bp) == CHIP_NUM_5708) | 7527 | if (CHIP_NUM(bp) == CHIP_NUM_5708) |
7528 | persist_dma_mask = dma_mask = DMA_40BIT_MASK; | 7528 | persist_dma_mask = dma_mask = DMA_BIT_MASK(40); |
7529 | else | 7529 | else |
7530 | persist_dma_mask = dma_mask = DMA_BIT_MASK(64); | 7530 | persist_dma_mask = dma_mask = DMA_BIT_MASK(64); |
7531 | 7531 | ||
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 03403a51f7ea..5b87105ac9e0 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -1685,7 +1685,7 @@ static int __devinit enic_probe(struct pci_dev *pdev, | |||
1685 | * fail to 32-bit. | 1685 | * fail to 32-bit. |
1686 | */ | 1686 | */ |
1687 | 1687 | ||
1688 | err = pci_set_dma_mask(pdev, DMA_40BIT_MASK); | 1688 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); |
1689 | if (err) { | 1689 | if (err) { |
1690 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 1690 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
1691 | if (err) { | 1691 | if (err) { |
@@ -1701,7 +1701,7 @@ static int __devinit enic_probe(struct pci_dev *pdev, | |||
1701 | goto err_out_release_regions; | 1701 | goto err_out_release_regions; |
1702 | } | 1702 | } |
1703 | } else { | 1703 | } else { |
1704 | err = pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK); | 1704 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(40)); |
1705 | if (err) { | 1705 | if (err) { |
1706 | printk(KERN_ERR PFX | 1706 | printk(KERN_ERR PFX |
1707 | "Unable to obtain 40-bit DMA " | 1707 | "Unable to obtain 40-bit DMA " |
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index 360aa5e35fda..ed9ded939d96 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -2240,7 +2240,7 @@ static int __devinit ipg_probe(struct pci_dev *pdev, | |||
2240 | 2240 | ||
2241 | pci_set_master(pdev); | 2241 | pci_set_master(pdev); |
2242 | 2242 | ||
2243 | rc = pci_set_dma_mask(pdev, DMA_40BIT_MASK); | 2243 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); |
2244 | if (rc < 0) { | 2244 | if (rc < 0) { |
2245 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 2245 | rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
2246 | if (rc < 0) { | 2246 | if (rc < 0) { |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index ec32e5f23548..5ba91d7f7587 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -4975,7 +4975,7 @@ static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping, | |||
4975 | { | 4975 | { |
4976 | #if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64) | 4976 | #if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64) |
4977 | if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) | 4977 | if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) |
4978 | return (((u64) mapping + len) > DMA_40BIT_MASK); | 4978 | return (((u64) mapping + len) > DMA_BIT_MASK(40)); |
4979 | return 0; | 4979 | return 0; |
4980 | #else | 4980 | #else |
4981 | return 0; | 4981 | return 0; |
@@ -13230,7 +13230,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13230 | if (tp->tg3_flags2 & TG3_FLG2_IS_5788) | 13230 | if (tp->tg3_flags2 & TG3_FLG2_IS_5788) |
13231 | persist_dma_mask = dma_mask = DMA_32BIT_MASK; | 13231 | persist_dma_mask = dma_mask = DMA_32BIT_MASK; |
13232 | else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) { | 13232 | else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) { |
13233 | persist_dma_mask = dma_mask = DMA_40BIT_MASK; | 13233 | persist_dma_mask = dma_mask = DMA_BIT_MASK(40); |
13234 | #ifdef CONFIG_HIGHMEM | 13234 | #ifdef CONFIG_HIGHMEM |
13235 | dma_mask = DMA_BIT_MASK(64); | 13235 | dma_mask = DMA_BIT_MASK(64); |
13236 | #endif | 13236 | #endif |
@@ -13394,7 +13394,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13394 | printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n", | 13394 | printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n", |
13395 | dev->name, tp->dma_rwctrl, | 13395 | dev->name, tp->dma_rwctrl, |
13396 | (pdev->dma_mask == DMA_32BIT_MASK) ? 32 : | 13396 | (pdev->dma_mask == DMA_32BIT_MASK) ? 32 : |
13397 | (((u64) pdev->dma_mask == DMA_40BIT_MASK) ? 40 : 64)); | 13397 | (((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64)); |
13398 | 13398 | ||
13399 | return 0; | 13399 | return 0; |
13400 | 13400 | ||
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.h b/drivers/scsi/sym53c8xx_2/sym_hipd.h index 76f6295ee881..b707abe90821 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.h +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.h | |||
@@ -1087,7 +1087,7 @@ do { \ | |||
1087 | (data)->size = cpu_to_scr(len); \ | 1087 | (data)->size = cpu_to_scr(len); \ |
1088 | } while (0) | 1088 | } while (0) |
1089 | #elif SYM_CONF_DMA_ADDRESSING_MODE == 1 | 1089 | #elif SYM_CONF_DMA_ADDRESSING_MODE == 1 |
1090 | #define DMA_DAC_MASK DMA_40BIT_MASK | 1090 | #define DMA_DAC_MASK DMA_BIT_MASK(40) |
1091 | #define sym_build_sge(np, data, badd, len) \ | 1091 | #define sym_build_sge(np, data, badd, len) \ |
1092 | do { \ | 1092 | do { \ |
1093 | (data)->addr = cpu_to_scr(badd); \ | 1093 | (data)->addr = cpu_to_scr(badd); \ |