aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYang Hongyang <yanghy@cn.fujitsu.com>2009-04-06 22:01:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 11:31:11 -0400
commit284901a90a9e0b812ca3f5f852cbbfb60d10249d (patch)
tree06c1b5a0f83c90cfb662f756e7781977ce739ce8 /drivers/net
parent6afd142fd0dfba497246d0fab236c20a7b4bf778 (diff)
dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/8139cp.c6
-rw-r--r--drivers/net/acenic.c2
-rw-r--r--drivers/net/amd8111e.c2
-rw-r--r--drivers/net/atl1e/atl1e_main.c4
-rw-r--r--drivers/net/atlx/atl1.c2
-rw-r--r--drivers/net/atlx/atl2.c4
-rw-r--r--drivers/net/bnx2.c2
-rw-r--r--drivers/net/bnx2x_main.c2
-rw-r--r--drivers/net/cassini.c2
-rw-r--r--drivers/net/chelsio/cxgb2.c2
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c2
-rw-r--r--drivers/net/e100.c2
-rw-r--r--drivers/net/e1000/e1000_main.c4
-rw-r--r--drivers/net/e1000e/netdev.c8
-rw-r--r--drivers/net/enic/enic_main.c4
-rw-r--r--drivers/net/hp100.c2
-rw-r--r--drivers/net/igb/igb_main.c4
-rw-r--r--drivers/net/ioc3-eth.c2
-rw-r--r--drivers/net/ipg.c2
-rw-r--r--drivers/net/ixgb/ixgb_main.c4
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c8
-rw-r--r--drivers/net/jme.c4
-rw-r--r--drivers/net/mlx4/main.c4
-rw-r--r--drivers/net/myri10ge/myri10ge.c4
-rw-r--r--drivers/net/niu.c4
-rw-r--r--drivers/net/ns83820.c2
-rw-r--r--drivers/net/qla3xxx.c4
-rw-r--r--drivers/net/qlge/qlge_main.c4
-rw-r--r--drivers/net/r6040.c4
-rw-r--r--drivers/net/r8169.c8
-rw-r--r--drivers/net/s2io.c2
-rw-r--r--drivers/net/sc92031.c4
-rw-r--r--drivers/net/sis190.c2
-rw-r--r--drivers/net/sis900.c2
-rw-r--r--drivers/net/skge.c4
-rw-r--r--drivers/net/sky2.c2
-rw-r--r--drivers/net/smsc9420.c2
-rw-r--r--drivers/net/sungem.c2
-rw-r--r--drivers/net/tehuti.c4
-rw-r--r--drivers/net/tehuti.h4
-rw-r--r--drivers/net/tg3.c10
-rw-r--r--drivers/net/tlan.c2
-rw-r--r--drivers/net/tokenring/lanstreamer.c2
-rw-r--r--drivers/net/tulip/dmfe.c2
-rw-r--r--drivers/net/tulip/uli526x.c2
-rw-r--r--drivers/net/tulip/winbond-840.c2
-rw-r--r--drivers/net/typhoon.c2
-rw-r--r--drivers/net/via-rhine.c2
-rw-r--r--drivers/net/wan/wanxl.c4
-rw-r--r--drivers/net/wireless/adm8211.c4
-rw-r--r--drivers/net/wireless/ath5k/base.c2
-rw-r--r--drivers/net/wireless/b43/dma.c8
-rw-r--r--drivers/net/wireless/b43legacy/dma.c8
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2100.c2
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
-rw-r--r--drivers/net/wireless/prism54/islpci_hotplug.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00pci.c2
58 files changed, 98 insertions, 102 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c
index d08475a7f676..02330f3d5a55 100644
--- a/drivers/net/8139cp.c
+++ b/drivers/net/8139cp.c
@@ -1530,7 +1530,7 @@ static void cp_get_ethtool_stats (struct net_device *dev,
1530 1530
1531 /* begin NIC statistics dump */ 1531 /* begin NIC statistics dump */
1532 cpw32(StatsAddr + 4, (u64)dma >> 32); 1532 cpw32(StatsAddr + 4, (u64)dma >> 32);
1533 cpw32(StatsAddr, ((u64)dma & DMA_32BIT_MASK) | DumpStats); 1533 cpw32(StatsAddr, ((u64)dma & DMA_BIT_MASK(32)) | DumpStats);
1534 cpr32(StatsAddr); 1534 cpr32(StatsAddr);
1535 1535
1536 for (i = 0; i < 1000; i++) { 1536 for (i = 0; i < 1000; i++) {
@@ -1935,13 +1935,13 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1935 } else { 1935 } else {
1936 pci_using_dac = 0; 1936 pci_using_dac = 0;
1937 1937
1938 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1938 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1939 if (rc) { 1939 if (rc) {
1940 dev_err(&pdev->dev, 1940 dev_err(&pdev->dev,
1941 "No usable DMA configuration, aborting.\n"); 1941 "No usable DMA configuration, aborting.\n");
1942 goto err_out_res; 1942 goto err_out_res;
1943 } 1943 }
1944 rc = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1944 rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1945 if (rc) { 1945 if (rc) {
1946 dev_err(&pdev->dev, 1946 dev_err(&pdev->dev,
1947 "No usable consistent DMA configuration, " 1947 "No usable consistent DMA configuration, "
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c
index 9509c17b3667..57bc71527850 100644
--- a/drivers/net/acenic.c
+++ b/drivers/net/acenic.c
@@ -1163,7 +1163,7 @@ static int __devinit ace_init(struct net_device *dev)
1163 */ 1163 */
1164 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 1164 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
1165 ap->pci_using_dac = 1; 1165 ap->pci_using_dac = 1;
1166 } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1166 } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
1167 ap->pci_using_dac = 0; 1167 ap->pci_using_dac = 0;
1168 } else { 1168 } else {
1169 ecode = -ENODEV; 1169 ecode = -ENODEV;
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c
index cb9c95d3ed0a..19831bd64016 100644
--- a/drivers/net/amd8111e.c
+++ b/drivers/net/amd8111e.c
@@ -1871,7 +1871,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
1871 } 1871 }
1872 1872
1873 /* Initialize DMA */ 1873 /* Initialize DMA */
1874 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) < 0) { 1874 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) < 0) {
1875 printk(KERN_ERR "amd8111e: DMA not supported," 1875 printk(KERN_ERR "amd8111e: DMA not supported,"
1876 "exiting.\n"); 1876 "exiting.\n");
1877 goto err_free_reg; 1877 goto err_free_reg;
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c
index c758884728a5..fb57b750866b 100644
--- a/drivers/net/atl1e/atl1e_main.c
+++ b/drivers/net/atl1e/atl1e_main.c
@@ -2326,8 +2326,8 @@ static int __devinit atl1e_probe(struct pci_dev *pdev,
2326 * various kernel subsystems to support the mechanics required by a 2326 * various kernel subsystems to support the mechanics required by a
2327 * fixed-high-32-bit system. 2327 * fixed-high-32-bit system.
2328 */ 2328 */
2329 if ((pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) || 2329 if ((pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) ||
2330 (pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK) != 0)) { 2330 (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)) != 0)) {
2331 dev_err(&pdev->dev, "No usable DMA configuration,aborting\n"); 2331 dev_err(&pdev->dev, "No usable DMA configuration,aborting\n");
2332 goto err_dma; 2332 goto err_dma;
2333 } 2333 }
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 43fc1b2ca3cd..0ab22540bf59 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -2929,7 +2929,7 @@ static int __devinit atl1_probe(struct pci_dev *pdev,
2929 * various kernel subsystems to support the mechanics required by a 2929 * various kernel subsystems to support the mechanics required by a
2930 * fixed-high-32-bit system. 2930 * fixed-high-32-bit system.
2931 */ 2931 */
2932 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2932 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
2933 if (err) { 2933 if (err) {
2934 dev_err(&pdev->dev, "no usable DMA configuration\n"); 2934 dev_err(&pdev->dev, "no usable DMA configuration\n");
2935 goto err_dma; 2935 goto err_dma;
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c
index 9fe06c3f4097..c734b1983ec1 100644
--- a/drivers/net/atlx/atl2.c
+++ b/drivers/net/atlx/atl2.c
@@ -1358,8 +1358,8 @@ static int __devinit atl2_probe(struct pci_dev *pdev,
1358 * until the kernel has the proper infrastructure to support 64-bit DMA 1358 * until the kernel has the proper infrastructure to support 64-bit DMA
1359 * on these devices. 1359 * on these devices.
1360 */ 1360 */
1361 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) && 1361 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) &&
1362 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 1362 pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
1363 printk(KERN_ERR "atl2: No usable DMA configuration, aborting\n"); 1363 printk(KERN_ERR "atl2: No usable DMA configuration, aborting\n");
1364 goto err_dma; 1364 goto err_dma;
1365 } 1365 }
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 5fd57703c65a..9d268be0b670 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -7538,7 +7538,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
7538 "pci_set_consistent_dma_mask failed, aborting.\n"); 7538 "pci_set_consistent_dma_mask failed, aborting.\n");
7539 goto err_out_unmap; 7539 goto err_out_unmap;
7540 } 7540 }
7541 } else if ((rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 7541 } else if ((rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
7542 dev_err(&pdev->dev, "System does not support DMA, aborting.\n"); 7542 dev_err(&pdev->dev, "System does not support DMA, aborting.\n");
7543 goto err_out_unmap; 7543 goto err_out_unmap;
7544 } 7544 }
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 03e01243b45e..ad5ef25add3e 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -10988,7 +10988,7 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
10988 goto err_out_release; 10988 goto err_out_release;
10989 } 10989 }
10990 10990
10991 } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) { 10991 } else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) {
10992 printk(KERN_ERR PFX "System does not support DMA," 10992 printk(KERN_ERR PFX "System does not support DMA,"
10993 " aborting\n"); 10993 " aborting\n");
10994 rc = -EIO; 10994 rc = -EIO;
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index c2895240e467..f5222764061c 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -5085,7 +5085,7 @@ static int __devinit cas_init_one(struct pci_dev *pdev,
5085 } 5085 }
5086 5086
5087 } else { 5087 } else {
5088 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 5088 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
5089 if (err) { 5089 if (err) {
5090 dev_err(&pdev->dev, "No usable DMA configuration, " 5090 dev_err(&pdev->dev, "No usable DMA configuration, "
5091 "aborting.\n"); 5091 "aborting.\n");
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c
index 57cfbc369f51..fa06994f9737 100644
--- a/drivers/net/chelsio/cxgb2.c
+++ b/drivers/net/chelsio/cxgb2.c
@@ -1066,7 +1066,7 @@ static int __devinit init_one(struct pci_dev *pdev,
1066 goto out_disable_pdev; 1066 goto out_disable_pdev;
1067 } 1067 }
1068 1068
1069 } else if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 1069 } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
1070 CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev)); 1070 CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev));
1071 goto out_disable_pdev; 1071 goto out_disable_pdev;
1072 } 1072 }
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index ec35d3b82409..ab0e5febef83 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -3046,7 +3046,7 @@ static int __devinit init_one(struct pci_dev *pdev,
3046 "coherent allocations\n"); 3046 "coherent allocations\n");
3047 goto out_disable_device; 3047 goto out_disable_device;
3048 } 3048 }
3049 } else if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { 3049 } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) {
3050 dev_err(&pdev->dev, "no usable DMA configuration\n"); 3050 dev_err(&pdev->dev, "no usable DMA configuration\n");
3051 goto out_disable_device; 3051 goto out_disable_device;
3052 } 3052 }
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index 0504db9ad643..5c0b457c7868 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -2604,7 +2604,7 @@ static int __devinit e100_probe(struct pci_dev *pdev,
2604 goto err_out_disable_pdev; 2604 goto err_out_disable_pdev;
2605 } 2605 }
2606 2606
2607 if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 2607 if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) {
2608 DPRINTK(PROBE, ERR, "No usable DMA configuration, aborting.\n"); 2608 DPRINTK(PROBE, ERR, "No usable DMA configuration, aborting.\n");
2609 goto err_out_free_res; 2609 goto err_out_free_res;
2610 } 2610 }
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index caa71dffb3d0..ddc5c533e89c 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -966,9 +966,9 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
966 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { 966 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
967 pci_using_dac = 1; 967 pci_using_dac = 1;
968 } else { 968 } else {
969 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 969 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
970 if (err) { 970 if (err) {
971 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 971 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
972 if (err) { 972 if (err) {
973 E1000_ERR("No usable DMA configuration, " 973 E1000_ERR("No usable DMA configuration, "
974 "aborting\n"); 974 "aborting\n");
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 4a61160052a3..409b58cad0e5 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -2203,7 +2203,7 @@ static void e1000_configure_tx(struct e1000_adapter *adapter)
2203 /* Setup the HW Tx Head and Tail descriptor pointers */ 2203 /* Setup the HW Tx Head and Tail descriptor pointers */
2204 tdba = tx_ring->dma; 2204 tdba = tx_ring->dma;
2205 tdlen = tx_ring->count * sizeof(struct e1000_tx_desc); 2205 tdlen = tx_ring->count * sizeof(struct e1000_tx_desc);
2206 ew32(TDBAL, (tdba & DMA_32BIT_MASK)); 2206 ew32(TDBAL, (tdba & DMA_BIT_MASK(32)));
2207 ew32(TDBAH, (tdba >> 32)); 2207 ew32(TDBAH, (tdba >> 32));
2208 ew32(TDLEN, tdlen); 2208 ew32(TDLEN, tdlen);
2209 ew32(TDH, 0); 2209 ew32(TDH, 0);
@@ -2459,7 +2459,7 @@ static void e1000_configure_rx(struct e1000_adapter *adapter)
2459 * the Base and Length of the Rx Descriptor Ring 2459 * the Base and Length of the Rx Descriptor Ring
2460 */ 2460 */
2461 rdba = rx_ring->dma; 2461 rdba = rx_ring->dma;
2462 ew32(RDBAL, (rdba & DMA_32BIT_MASK)); 2462 ew32(RDBAL, (rdba & DMA_BIT_MASK(32)));
2463 ew32(RDBAH, (rdba >> 32)); 2463 ew32(RDBAH, (rdba >> 32));
2464 ew32(RDLEN, rdlen); 2464 ew32(RDLEN, rdlen);
2465 ew32(RDH, 0); 2465 ew32(RDH, 0);
@@ -4769,10 +4769,10 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
4769 if (!err) 4769 if (!err)
4770 pci_using_dac = 1; 4770 pci_using_dac = 1;
4771 } else { 4771 } else {
4772 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4772 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
4773 if (err) { 4773 if (err) {
4774 err = pci_set_consistent_dma_mask(pdev, 4774 err = pci_set_consistent_dma_mask(pdev,
4775 DMA_32BIT_MASK); 4775 DMA_BIT_MASK(32));
4776 if (err) { 4776 if (err) {
4777 dev_err(&pdev->dev, "No usable DMA " 4777 dev_err(&pdev->dev, "No usable DMA "
4778 "configuration, aborting\n"); 4778 "configuration, aborting\n");
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 5b87105ac9e0..9080f07da8fe 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -1687,13 +1687,13 @@ static int __devinit enic_probe(struct pci_dev *pdev,
1687 1687
1688 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); 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_BIT_MASK(32));
1691 if (err) { 1691 if (err) {
1692 printk(KERN_ERR PFX 1692 printk(KERN_ERR PFX
1693 "No usable DMA configuration, aborting.\n"); 1693 "No usable DMA configuration, aborting.\n");
1694 goto err_out_release_regions; 1694 goto err_out_release_regions;
1695 } 1695 }
1696 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1696 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1697 if (err) { 1697 if (err) {
1698 printk(KERN_ERR PFX 1698 printk(KERN_ERR PFX
1699 "Unable to obtain 32-bit DMA " 1699 "Unable to obtain 32-bit DMA "
diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c
index ad8be7e78290..de3f49f991a3 100644
--- a/drivers/net/hp100.c
+++ b/drivers/net/hp100.c
@@ -580,7 +580,7 @@ static int __devinit hp100_probe1(struct net_device *dev, int ioaddr,
580 * Also, we can have EISA Busmaster cards (not tested), 580 * Also, we can have EISA Busmaster cards (not tested),
581 * so beware !!! - Jean II */ 581 * so beware !!! - Jean II */
582 if((bus == HP100_BUS_PCI) && 582 if((bus == HP100_BUS_PCI) &&
583 (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK))) { 583 (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)))) {
584 /* Gracefully fallback to shared memory */ 584 /* Gracefully fallback to shared memory */
585 goto busmasterfail; 585 goto busmasterfail;
586 } 586 }
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 82278beaac83..6b0697c565b9 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1160,9 +1160,9 @@ static int __devinit igb_probe(struct pci_dev *pdev,
1160 if (!err) 1160 if (!err)
1161 pci_using_dac = 1; 1161 pci_using_dac = 1;
1162 } else { 1162 } else {
1163 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1163 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1164 if (err) { 1164 if (err) {
1165 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1165 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1166 if (err) { 1166 if (err) {
1167 dev_err(&pdev->dev, "No usable DMA " 1167 dev_err(&pdev->dev, "No usable DMA "
1168 "configuration, aborting\n"); 1168 "configuration, aborting\n");
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c
index 43be0b01f12c..cbc63ff13add 100644
--- a/drivers/net/ioc3-eth.c
+++ b/drivers/net/ioc3-eth.c
@@ -1236,7 +1236,7 @@ static int __devinit ioc3_probe(struct pci_dev *pdev,
1236 goto out; 1236 goto out;
1237 } 1237 }
1238 } else { 1238 } else {
1239 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1239 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1240 if (err) { 1240 if (err) {
1241 printk(KERN_ERR "%s: No usable DMA configuration, " 1241 printk(KERN_ERR "%s: No usable DMA configuration, "
1242 "aborting.\n", pci_name(pdev)); 1242 "aborting.\n", pci_name(pdev));
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index ed9ded939d96..43019461b776 100644
--- a/drivers/net/ipg.c
+++ b/drivers/net/ipg.c
@@ -2242,7 +2242,7 @@ static int __devinit ipg_probe(struct pci_dev *pdev,
2242 2242
2243 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); 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_BIT_MASK(32));
2246 if (rc < 0) { 2246 if (rc < 0) {
2247 printk(KERN_ERR "%s: DMA config failed.\n", 2247 printk(KERN_ERR "%s: DMA config failed.\n",
2248 pci_name(pdev)); 2248 pci_name(pdev));
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c
index 0ac51758bc6c..4a0826b8f6f2 100644
--- a/drivers/net/ixgb/ixgb_main.c
+++ b/drivers/net/ixgb/ixgb_main.c
@@ -369,8 +369,8 @@ ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
369 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) { 369 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) {
370 pci_using_dac = 1; 370 pci_using_dac = 1;
371 } else { 371 } else {
372 if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) || 372 if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) ||
373 (err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))) { 373 (err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))) {
374 printk(KERN_ERR 374 printk(KERN_ERR
375 "ixgb: No usable DMA configuration, aborting\n"); 375 "ixgb: No usable DMA configuration, aborting\n");
376 goto err_dma_mask; 376 goto err_dma_mask;
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 126735ca6d7f..9ef128ae6458 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1643,7 +1643,7 @@ static void ixgbe_configure_tx(struct ixgbe_adapter *adapter)
1643 tdba = ring->dma; 1643 tdba = ring->dma;
1644 tdlen = ring->count * sizeof(union ixgbe_adv_tx_desc); 1644 tdlen = ring->count * sizeof(union ixgbe_adv_tx_desc);
1645 IXGBE_WRITE_REG(hw, IXGBE_TDBAL(j), 1645 IXGBE_WRITE_REG(hw, IXGBE_TDBAL(j),
1646 (tdba & DMA_32BIT_MASK)); 1646 (tdba & DMA_BIT_MASK(32)));
1647 IXGBE_WRITE_REG(hw, IXGBE_TDBAH(j), (tdba >> 32)); 1647 IXGBE_WRITE_REG(hw, IXGBE_TDBAH(j), (tdba >> 32));
1648 IXGBE_WRITE_REG(hw, IXGBE_TDLEN(j), tdlen); 1648 IXGBE_WRITE_REG(hw, IXGBE_TDLEN(j), tdlen);
1649 IXGBE_WRITE_REG(hw, IXGBE_TDH(j), 0); 1649 IXGBE_WRITE_REG(hw, IXGBE_TDH(j), 0);
@@ -1782,7 +1782,7 @@ static void ixgbe_configure_rx(struct ixgbe_adapter *adapter)
1782 for (i = 0; i < adapter->num_rx_queues; i++) { 1782 for (i = 0; i < adapter->num_rx_queues; i++) {
1783 rdba = adapter->rx_ring[i].dma; 1783 rdba = adapter->rx_ring[i].dma;
1784 j = adapter->rx_ring[i].reg_idx; 1784 j = adapter->rx_ring[i].reg_idx;
1785 IXGBE_WRITE_REG(hw, IXGBE_RDBAL(j), (rdba & DMA_32BIT_MASK)); 1785 IXGBE_WRITE_REG(hw, IXGBE_RDBAL(j), (rdba & DMA_BIT_MASK(32)));
1786 IXGBE_WRITE_REG(hw, IXGBE_RDBAH(j), (rdba >> 32)); 1786 IXGBE_WRITE_REG(hw, IXGBE_RDBAH(j), (rdba >> 32));
1787 IXGBE_WRITE_REG(hw, IXGBE_RDLEN(j), rdlen); 1787 IXGBE_WRITE_REG(hw, IXGBE_RDLEN(j), rdlen);
1788 IXGBE_WRITE_REG(hw, IXGBE_RDH(j), 0); 1788 IXGBE_WRITE_REG(hw, IXGBE_RDH(j), 0);
@@ -4513,9 +4513,9 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
4513 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { 4513 !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) {
4514 pci_using_dac = 1; 4514 pci_using_dac = 1;
4515 } else { 4515 } else {
4516 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4516 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
4517 if (err) { 4517 if (err) {
4518 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 4518 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
4519 if (err) { 4519 if (err) {
4520 dev_err(&pdev->dev, "No usable DMA " 4520 dev_err(&pdev->dev, "No usable DMA "
4521 "configuration, aborting\n"); 4521 "configuration, aborting\n");
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index 860dcd98a07c..ece35040288c 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -2600,8 +2600,8 @@ jme_pci_dma64(struct pci_dev *pdev)
2600 if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK)) 2600 if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK))
2601 return 1; 2601 return 1;
2602 2602
2603 if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) 2603 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))
2604 if (!pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) 2604 if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))
2605 return 0; 2605 return 0;
2606 2606
2607 return -1; 2607 return -1;
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index fed53fbaf545..102bac90a302 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -1079,7 +1079,7 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
1079 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); 1079 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
1080 if (err) { 1080 if (err) {
1081 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); 1081 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n");
1082 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1082 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1083 if (err) { 1083 if (err) {
1084 dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n"); 1084 dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n");
1085 goto err_release_bar2; 1085 goto err_release_bar2;
@@ -1089,7 +1089,7 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
1089 if (err) { 1089 if (err) {
1090 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " 1090 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit "
1091 "consistent PCI DMA mask.\n"); 1091 "consistent PCI DMA mask.\n");
1092 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1092 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1093 if (err) { 1093 if (err) {
1094 dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, " 1094 dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, "
1095 "aborting.\n"); 1095 "aborting.\n");
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 27655466dbeb..9eed126a82f0 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -1130,7 +1130,7 @@ myri10ge_submit_8rx(struct mcp_kreq_ether_recv __iomem * dst,
1130 __be32 low; 1130 __be32 low;
1131 1131
1132 low = src->addr_low; 1132 low = src->addr_low;
1133 src->addr_low = htonl(DMA_32BIT_MASK); 1133 src->addr_low = htonl(DMA_BIT_MASK(32));
1134 myri10ge_pio_copy(dst, src, 4 * sizeof(*src)); 1134 myri10ge_pio_copy(dst, src, 4 * sizeof(*src));
1135 mb(); 1135 mb();
1136 myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src)); 1136 myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src));
@@ -3798,7 +3798,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3798 dev_err(&pdev->dev, 3798 dev_err(&pdev->dev,
3799 "64-bit pci address mask was refused, " 3799 "64-bit pci address mask was refused, "
3800 "trying 32-bit\n"); 3800 "trying 32-bit\n");
3801 status = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3801 status = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
3802 } 3802 }
3803 if (status != 0) { 3803 if (status != 0) {
3804 dev_err(&pdev->dev, "Error %d setting DMA mask\n", status); 3804 dev_err(&pdev->dev, "Error %d setting DMA mask\n", status);
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 02c37e2f08a9..73cac6c78cb6 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -9889,8 +9889,8 @@ static int __devinit niu_pci_init_one(struct pci_dev *pdev,
9889 goto err_out_release_parent; 9889 goto err_out_release_parent;
9890 } 9890 }
9891 } 9891 }
9892 if (err || dma_mask == DMA_32BIT_MASK) { 9892 if (err || dma_mask == DMA_BIT_MASK(32)) {
9893 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 9893 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
9894 if (err) { 9894 if (err) {
9895 dev_err(&pdev->dev, PFX "No usable DMA configuration, " 9895 dev_err(&pdev->dev, PFX "No usable DMA configuration, "
9896 "aborting.\n"); 9896 "aborting.\n");
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c
index e30ab06e7103..d531614a90b5 100644
--- a/drivers/net/ns83820.c
+++ b/drivers/net/ns83820.c
@@ -1975,7 +1975,7 @@ static int __devinit ns83820_init_one(struct pci_dev *pci_dev,
1975 if (sizeof(dma_addr_t) == 8 && 1975 if (sizeof(dma_addr_t) == 8 &&
1976 !pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) { 1976 !pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) {
1977 using_dac = 1; 1977 using_dac = 1;
1978 } else if (!pci_set_dma_mask(pci_dev, DMA_32BIT_MASK)) { 1978 } else if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) {
1979 using_dac = 0; 1979 using_dac = 0;
1980 } else { 1980 } else {
1981 dev_warn(&pci_dev->dev, "pci_set_dma_mask failed!\n"); 1981 dev_warn(&pci_dev->dev, "pci_set_dma_mask failed!\n");
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index aef047e4515a..cadc32c94c1e 100644
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -3937,9 +3937,9 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,
3937 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3937 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
3938 pci_using_dac = 1; 3938 pci_using_dac = 1;
3939 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3939 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
3940 } else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 3940 } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) {
3941 pci_using_dac = 0; 3941 pci_using_dac = 0;
3942 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3942 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
3943 } 3943 }
3944 3944
3945 if (err) { 3945 if (err) {
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 0add30d38d62..c92ced247947 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3730,9 +3730,9 @@ static int __devinit ql_init_device(struct pci_dev *pdev,
3730 set_bit(QL_DMA64, &qdev->flags); 3730 set_bit(QL_DMA64, &qdev->flags);
3731 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3731 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
3732 } else { 3732 } else {
3733 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3733 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
3734 if (!err) 3734 if (!err)
3735 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3735 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
3736 } 3736 }
3737 3737
3738 if (err) { 3738 if (err) {
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 0a37f9902a07..5e8540b6ffa1 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -1085,13 +1085,13 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
1085 goto err_out; 1085 goto err_out;
1086 1086
1087 /* this should always be supported */ 1087 /* this should always be supported */
1088 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1088 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1089 if (err) { 1089 if (err) {
1090 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses" 1090 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses"
1091 "not supported by the card\n"); 1091 "not supported by the card\n");
1092 goto err_out; 1092 goto err_out;
1093 } 1093 }
1094 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1094 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1095 if (err) { 1095 if (err) {
1096 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses" 1096 printk(KERN_ERR DRV_NAME ": 32-bit PCI DMA addresses"
1097 "not supported by the card\n"); 1097 "not supported by the card\n");
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index fe676d38d342..0b6e8c896835 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1148,7 +1148,7 @@ static void rtl8169_update_counters(struct net_device *dev)
1148 return; 1148 return;
1149 1149
1150 RTL_W32(CounterAddrHigh, (u64)paddr >> 32); 1150 RTL_W32(CounterAddrHigh, (u64)paddr >> 32);
1151 cmd = (u64)paddr & DMA_32BIT_MASK; 1151 cmd = (u64)paddr & DMA_BIT_MASK(32);
1152 RTL_W32(CounterAddrLow, cmd); 1152 RTL_W32(CounterAddrLow, cmd);
1153 RTL_W32(CounterAddrLow, cmd | CounterDump); 1153 RTL_W32(CounterAddrLow, cmd | CounterDump);
1154 1154
@@ -2050,7 +2050,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2050 tp->cp_cmd |= PCIDAC; 2050 tp->cp_cmd |= PCIDAC;
2051 dev->features |= NETIF_F_HIGHDMA; 2051 dev->features |= NETIF_F_HIGHDMA;
2052 } else { 2052 } else {
2053 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2053 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
2054 if (rc < 0) { 2054 if (rc < 0) {
2055 if (netif_msg_probe(tp)) { 2055 if (netif_msg_probe(tp)) {
2056 dev_err(&pdev->dev, 2056 dev_err(&pdev->dev,
@@ -2343,9 +2343,9 @@ static void rtl_set_rx_tx_desc_registers(struct rtl8169_private *tp,
2343 * Switching from MMIO to I/O access fixes the issue as well. 2343 * Switching from MMIO to I/O access fixes the issue as well.
2344 */ 2344 */
2345 RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr) >> 32); 2345 RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr) >> 32);
2346 RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr) & DMA_32BIT_MASK); 2346 RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr) & DMA_BIT_MASK(32));
2347 RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr) >> 32); 2347 RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr) >> 32);
2348 RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr) & DMA_32BIT_MASK); 2348 RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr) & DMA_BIT_MASK(32));
2349} 2349}
2350 2350
2351static u16 rtl_rw_cpluscmd(void __iomem *ioaddr) 2351static u16 rtl_rw_cpluscmd(void __iomem *ioaddr)
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index 7c8d5613a1da..1a4979f27fb5 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -7786,7 +7786,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
7786 pci_disable_device(pdev); 7786 pci_disable_device(pdev);
7787 return -ENOMEM; 7787 return -ENOMEM;
7788 } 7788 }
7789 } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 7789 } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
7790 DBG_PRINT(INIT_DBG, "s2io_init_nic: Using 32bit DMA\n"); 7790 DBG_PRINT(INIT_DBG, "s2io_init_nic: Using 32bit DMA\n");
7791 } else { 7791 } else {
7792 pci_disable_device(pdev); 7792 pci_disable_device(pdev);
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c
index c13cbf099b88..18821f217e19 100644
--- a/drivers/net/sc92031.c
+++ b/drivers/net/sc92031.c
@@ -1427,11 +1427,11 @@ static int __devinit sc92031_probe(struct pci_dev *pdev,
1427 1427
1428 pci_set_master(pdev); 1428 pci_set_master(pdev);
1429 1429
1430 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1430 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1431 if (unlikely(err < 0)) 1431 if (unlikely(err < 0))
1432 goto out_set_dma_mask; 1432 goto out_set_dma_mask;
1433 1433
1434 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 1434 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
1435 if (unlikely(err < 0)) 1435 if (unlikely(err < 0))
1436 goto out_set_dma_mask; 1436 goto out_set_dma_mask;
1437 1437
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index a9732686134b..55ccd51d247e 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -1467,7 +1467,7 @@ static struct net_device * __devinit sis190_init_board(struct pci_dev *pdev)
1467 goto err_pci_disable_2; 1467 goto err_pci_disable_2;
1468 } 1468 }
1469 1469
1470 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 1470 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
1471 if (rc < 0) { 1471 if (rc < 0) {
1472 net_probe(tp, KERN_ERR "%s: DMA configuration failed.\n", 1472 net_probe(tp, KERN_ERR "%s: DMA configuration failed.\n",
1473 pci_name(pdev)); 1473 pci_name(pdev));
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c
index 8a70de72ea2c..2d4617b3e208 100644
--- a/drivers/net/sis900.c
+++ b/drivers/net/sis900.c
@@ -432,7 +432,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev,
432 ret = pci_enable_device(pci_dev); 432 ret = pci_enable_device(pci_dev);
433 if(ret) return ret; 433 if(ret) return ret;
434 434
435 i = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); 435 i = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32));
436 if(i){ 436 if(i){
437 printk(KERN_ERR "sis900.c: architecture does not support " 437 printk(KERN_ERR "sis900.c: architecture does not support "
438 "32bit PCI busmaster DMA\n"); 438 "32bit PCI busmaster DMA\n");
diff --git a/drivers/net/skge.c b/drivers/net/skge.c
index 18a7b662aff1..b8978d4af1b7 100644
--- a/drivers/net/skge.c
+++ b/drivers/net/skge.c
@@ -3915,9 +3915,9 @@ static int __devinit skge_probe(struct pci_dev *pdev,
3915 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3915 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
3916 using_dac = 1; 3916 using_dac = 1;
3917 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); 3917 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
3918 } else if (!(err = pci_set_dma_mask(pdev, DMA_32BIT_MASK))) { 3918 } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) {
3919 using_dac = 0; 3919 using_dac = 0;
3920 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 3920 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
3921 } 3921 }
3922 3922
3923 if (err) { 3923 if (err) {
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index da570f44b12b..a2ff9cb1e7ac 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -4383,7 +4383,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
4383 goto err_out_free_regions; 4383 goto err_out_free_regions;
4384 } 4384 }
4385 } else { 4385 } else {
4386 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 4386 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
4387 if (err) { 4387 if (err) {
4388 dev_err(&pdev->dev, "no usable DMA configuration\n"); 4388 dev_err(&pdev->dev, "no usable DMA configuration\n");
4389 goto err_out_free_regions; 4389 goto err_out_free_regions;
diff --git a/drivers/net/smsc9420.c b/drivers/net/smsc9420.c
index 5959ae86e57d..60abdb1081ad 100644
--- a/drivers/net/smsc9420.c
+++ b/drivers/net/smsc9420.c
@@ -1598,7 +1598,7 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1598 goto out_free_netdev_2; 1598 goto out_free_netdev_2;
1599 } 1599 }
1600 1600
1601 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 1601 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
1602 printk(KERN_ERR "No usable DMA configuration, aborting.\n"); 1602 printk(KERN_ERR "No usable DMA configuration, aborting.\n");
1603 goto out_free_regions_3; 1603 goto out_free_regions_3;
1604 } 1604 }
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index 2312d10f3b54..d2dfe0ab5106 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -3045,7 +3045,7 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
3045 !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { 3045 !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
3046 pci_using_dac = 1; 3046 pci_using_dac = 1;
3047 } else { 3047 } else {
3048 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 3048 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
3049 if (err) { 3049 if (err) {
3050 printk(KERN_ERR PFX "No usable DMA configuration, " 3050 printk(KERN_ERR PFX "No usable DMA configuration, "
3051 "aborting.\n"); 3051 "aborting.\n");
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c
index d77a0918a325..7f4a9683ba1e 100644
--- a/drivers/net/tehuti.c
+++ b/drivers/net/tehuti.c
@@ -1945,8 +1945,8 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1945 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) { 1945 !(err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))) {
1946 pci_using_dac = 1; 1946 pci_using_dac = 1;
1947 } else { 1947 } else {
1948 if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) || 1948 if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) ||
1949 (err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))) { 1949 (err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))) {
1950 printk(KERN_ERR "tehuti: No usable DMA configuration" 1950 printk(KERN_ERR "tehuti: No usable DMA configuration"
1951 ", aborting\n"); 1951 ", aborting\n");
1952 goto err_dma; 1952 goto err_dma;
diff --git a/drivers/net/tehuti.h b/drivers/net/tehuti.h
index 121dda917fdc..4fc875e5dcdd 100644
--- a/drivers/net/tehuti.h
+++ b/drivers/net/tehuti.h
@@ -99,10 +99,6 @@
99#define READ_REG(pp, reg) readl(pp->pBdxRegs + reg) 99#define READ_REG(pp, reg) readl(pp->pBdxRegs + reg)
100#define WRITE_REG(pp, reg, val) writel(val, pp->pBdxRegs + reg) 100#define WRITE_REG(pp, reg, val) writel(val, pp->pBdxRegs + reg)
101 101
102#ifndef DMA_32BIT_MASK
103# define DMA_32BIT_MASK 0x00000000ffffffffULL
104#endif
105
106#ifndef NET_IP_ALIGN 102#ifndef NET_IP_ALIGN
107# define NET_IP_ALIGN 2 103# define NET_IP_ALIGN 2
108#endif 104#endif
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 5ba91d7f7587..6a736dda3ee2 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -13228,7 +13228,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
13228 * do DMA address check in tg3_start_xmit(). 13228 * do DMA address check in tg3_start_xmit().
13229 */ 13229 */
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_BIT_MASK(32);
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_BIT_MASK(40); 13233 persist_dma_mask = dma_mask = DMA_BIT_MASK(40);
13234#ifdef CONFIG_HIGHMEM 13234#ifdef CONFIG_HIGHMEM
@@ -13238,7 +13238,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
13238 persist_dma_mask = dma_mask = DMA_BIT_MASK(64); 13238 persist_dma_mask = dma_mask = DMA_BIT_MASK(64);
13239 13239
13240 /* Configure DMA attributes. */ 13240 /* Configure DMA attributes. */
13241 if (dma_mask > DMA_32BIT_MASK) { 13241 if (dma_mask > DMA_BIT_MASK(32)) {
13242 err = pci_set_dma_mask(pdev, dma_mask); 13242 err = pci_set_dma_mask(pdev, dma_mask);
13243 if (!err) { 13243 if (!err) {
13244 dev->features |= NETIF_F_HIGHDMA; 13244 dev->features |= NETIF_F_HIGHDMA;
@@ -13251,8 +13251,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
13251 } 13251 }
13252 } 13252 }
13253 } 13253 }
13254 if (err || dma_mask == DMA_32BIT_MASK) { 13254 if (err || dma_mask == DMA_BIT_MASK(32)) {
13255 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 13255 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
13256 if (err) { 13256 if (err) {
13257 printk(KERN_ERR PFX "No usable DMA configuration, " 13257 printk(KERN_ERR PFX "No usable DMA configuration, "
13258 "aborting.\n"); 13258 "aborting.\n");
@@ -13393,7 +13393,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
13393 (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0); 13393 (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0);
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_BIT_MASK(32)) ? 32 :
13397 (((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64)); 13397 (((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64));
13398 13398
13399 return 0; 13399 return 0;
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c
index 68b967b585aa..aa6964922d5e 100644
--- a/drivers/net/tlan.c
+++ b/drivers/net/tlan.c
@@ -570,7 +570,7 @@ static int __devinit TLan_probe1(struct pci_dev *pdev,
570 570
571 priv->adapter = &board_info[ent->driver_data]; 571 priv->adapter = &board_info[ent->driver_data];
572 572
573 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 573 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
574 if (rc) { 574 if (rc) {
575 printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n"); 575 printk(KERN_ERR "TLAN: No suitable PCI mapping available.\n");
576 goto err_out_free_dev; 576 goto err_out_free_dev;
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c
index f309b8f703bd..2e70ee8f1459 100644
--- a/drivers/net/tokenring/lanstreamer.c
+++ b/drivers/net/tokenring/lanstreamer.c
@@ -267,7 +267,7 @@ static int __devinit streamer_init_one(struct pci_dev *pdev,
267#endif 267#endif
268#endif 268#endif
269 269
270 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 270 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
271 if (rc) { 271 if (rc) {
272 printk(KERN_ERR "%s: No suitable PCI mapping available.\n", 272 printk(KERN_ERR "%s: No suitable PCI mapping available.\n",
273 dev->name); 273 dev->name);
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c
index e2c9d0f5a755..f2e669974c78 100644
--- a/drivers/net/tulip/dmfe.c
+++ b/drivers/net/tulip/dmfe.c
@@ -383,7 +383,7 @@ static int __devinit dmfe_init_one (struct pci_dev *pdev,
383 return -ENOMEM; 383 return -ENOMEM;
384 SET_NETDEV_DEV(dev, &pdev->dev); 384 SET_NETDEV_DEV(dev, &pdev->dev);
385 385
386 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 386 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
387 printk(KERN_WARNING DRV_NAME 387 printk(KERN_WARNING DRV_NAME
388 ": 32-bit PCI DMA not available.\n"); 388 ": 32-bit PCI DMA not available.\n");
389 err = -ENODEV; 389 err = -ENODEV;
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c
index c227db079621..8761a5a5bd79 100644
--- a/drivers/net/tulip/uli526x.c
+++ b/drivers/net/tulip/uli526x.c
@@ -282,7 +282,7 @@ static int __devinit uli526x_init_one (struct pci_dev *pdev,
282 return -ENOMEM; 282 return -ENOMEM;
283 SET_NETDEV_DEV(dev, &pdev->dev); 283 SET_NETDEV_DEV(dev, &pdev->dev);
284 284
285 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 285 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
286 printk(KERN_WARNING DRV_NAME ": 32-bit PCI DMA not available.\n"); 286 printk(KERN_WARNING DRV_NAME ": 32-bit PCI DMA not available.\n");
287 err = -ENODEV; 287 err = -ENODEV;
288 goto err_out_free; 288 goto err_out_free;
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c
index c61a01b029af..264e61404f34 100644
--- a/drivers/net/tulip/winbond-840.c
+++ b/drivers/net/tulip/winbond-840.c
@@ -375,7 +375,7 @@ static int __devinit w840_probe1 (struct pci_dev *pdev,
375 375
376 irq = pdev->irq; 376 irq = pdev->irq;
377 377
378 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 378 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
379 printk(KERN_WARNING "Winbond-840: Device %s disabled due to DMA limitations.\n", 379 printk(KERN_WARNING "Winbond-840: Device %s disabled due to DMA limitations.\n",
380 pci_name(pdev)); 380 pci_name(pdev));
381 return -EIO; 381 return -EIO;
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c
index 9dd4f76a2ff5..cf25eb41b1ce 100644
--- a/drivers/net/typhoon.c
+++ b/drivers/net/typhoon.c
@@ -2406,7 +2406,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2406 goto error_out_disable; 2406 goto error_out_disable;
2407 } 2407 }
2408 2408
2409 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2409 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
2410 if(err < 0) { 2410 if(err < 0) {
2411 printk(ERR_PFX "%s: No usable DMA configuration\n", 2411 printk(ERR_PFX "%s: No usable DMA configuration\n",
2412 pci_name(pdev)); 2412 pci_name(pdev));
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
index 880eaf07413b..45daba726b66 100644
--- a/drivers/net/via-rhine.c
+++ b/drivers/net/via-rhine.c
@@ -686,7 +686,7 @@ static int __devinit rhine_init_one(struct pci_dev *pdev,
686 goto err_out; 686 goto err_out;
687 687
688 /* this should always be supported */ 688 /* this should always be supported */
689 rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 689 rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
690 if (rc) { 690 if (rc) {
691 printk(KERN_ERR "32-bit PCI DMA addresses not supported by " 691 printk(KERN_ERR "32-bit PCI DMA addresses not supported by "
692 "the card!?\n"); 692 "the card!?\n");
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c
index 887acb0dc807..850d70d7b05d 100644
--- a/drivers/net/wan/wanxl.c
+++ b/drivers/net/wan/wanxl.c
@@ -633,8 +633,8 @@ static int __devinit wanxl_pci_init_one(struct pci_dev *pdev,
633 /* FIXME when PCI/DMA subsystems are fixed. 633 /* FIXME when PCI/DMA subsystems are fixed.
634 We set both dma_mask and consistent_dma_mask back to 32 bits 634 We set both dma_mask and consistent_dma_mask back to 32 bits
635 to indicate the card can do 32-bit DMA addressing */ 635 to indicate the card can do 32-bit DMA addressing */
636 if (pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK) || 636 if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)) ||
637 pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 637 pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
638 printk(KERN_ERR "wanXL: No usable DMA configuration\n"); 638 printk(KERN_ERR "wanXL: No usable DMA configuration\n");
639 wanxl_pci_remove_one(pdev); 639 wanxl_pci_remove_one(pdev);
640 return -EIO; 640 return -EIO;
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c
index fc0897fb2239..f71821795018 100644
--- a/drivers/net/wireless/adm8211.c
+++ b/drivers/net/wireless/adm8211.c
@@ -1804,8 +1804,8 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
1804 return err; /* someone else grabbed it? don't disable it */ 1804 return err; /* someone else grabbed it? don't disable it */
1805 } 1805 }
1806 1806
1807 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 1807 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) ||
1808 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { 1808 pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) {
1809 printk(KERN_ERR "%s (adm8211): No suitable DMA available\n", 1809 printk(KERN_ERR "%s (adm8211): No suitable DMA available\n",
1810 pci_name(pdev)); 1810 pci_name(pdev));
1811 goto err_free_reg; 1811 goto err_free_reg;
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 5d57d774e466..a08bc8a4fb69 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -445,7 +445,7 @@ ath5k_pci_probe(struct pci_dev *pdev,
445 } 445 }
446 446
447 /* XXX 32-bit addressing only */ 447 /* XXX 32-bit addressing only */
448 ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 448 ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
449 if (ret) { 449 if (ret) {
450 dev_err(&pdev->dev, "32-bit DMA not available\n"); 450 dev_err(&pdev->dev, "32-bit DMA not available\n");
451 goto err_dis; 451 goto err_dis;
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c
index 461d680d2cec..de1964f7d9e0 100644
--- a/drivers/net/wireless/b43/dma.c
+++ b/drivers/net/wireless/b43/dma.c
@@ -777,7 +777,7 @@ static u64 supported_dma_mask(struct b43_wldev *dev)
777 b43_write32(dev, mmio_base + B43_DMA32_TXCTL, B43_DMA32_TXADDREXT_MASK); 777 b43_write32(dev, mmio_base + B43_DMA32_TXCTL, B43_DMA32_TXADDREXT_MASK);
778 tmp = b43_read32(dev, mmio_base + B43_DMA32_TXCTL); 778 tmp = b43_read32(dev, mmio_base + B43_DMA32_TXCTL);
779 if (tmp & B43_DMA32_TXADDREXT_MASK) 779 if (tmp & B43_DMA32_TXADDREXT_MASK)
780 return DMA_32BIT_MASK; 780 return DMA_BIT_MASK(32);
781 781
782 return DMA_30BIT_MASK; 782 return DMA_30BIT_MASK;
783} 783}
@@ -786,7 +786,7 @@ static enum b43_dmatype dma_mask_to_engine_type(u64 dmamask)
786{ 786{
787 if (dmamask == DMA_30BIT_MASK) 787 if (dmamask == DMA_30BIT_MASK)
788 return B43_DMA_30BIT; 788 return B43_DMA_30BIT;
789 if (dmamask == DMA_32BIT_MASK) 789 if (dmamask == DMA_BIT_MASK(32))
790 return B43_DMA_32BIT; 790 return B43_DMA_32BIT;
791 if (dmamask == DMA_BIT_MASK(64)) 791 if (dmamask == DMA_BIT_MASK(64))
792 return B43_DMA_64BIT; 792 return B43_DMA_64BIT;
@@ -1000,11 +1000,11 @@ static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask)
1000 if (!err) 1000 if (!err)
1001 break; 1001 break;
1002 if (mask == DMA_BIT_MASK(64)) { 1002 if (mask == DMA_BIT_MASK(64)) {
1003 mask = DMA_32BIT_MASK; 1003 mask = DMA_BIT_MASK(32);
1004 fallback = 1; 1004 fallback = 1;
1005 continue; 1005 continue;
1006 } 1006 }
1007 if (mask == DMA_32BIT_MASK) { 1007 if (mask == DMA_BIT_MASK(32)) {
1008 mask = DMA_30BIT_MASK; 1008 mask = DMA_30BIT_MASK;
1009 fallback = 1; 1009 fallback = 1;
1010 continue; 1010 continue;
diff --git a/drivers/net/wireless/b43legacy/dma.c b/drivers/net/wireless/b43legacy/dma.c
index 61bb91266aa8..1d3e0d239314 100644
--- a/drivers/net/wireless/b43legacy/dma.c
+++ b/drivers/net/wireless/b43legacy/dma.c
@@ -854,7 +854,7 @@ static u64 supported_dma_mask(struct b43legacy_wldev *dev)
854 tmp = b43legacy_read32(dev, mmio_base + 854 tmp = b43legacy_read32(dev, mmio_base +
855 B43legacy_DMA32_TXCTL); 855 B43legacy_DMA32_TXCTL);
856 if (tmp & B43legacy_DMA32_TXADDREXT_MASK) 856 if (tmp & B43legacy_DMA32_TXADDREXT_MASK)
857 return DMA_32BIT_MASK; 857 return DMA_BIT_MASK(32);
858 858
859 return DMA_30BIT_MASK; 859 return DMA_30BIT_MASK;
860} 860}
@@ -863,7 +863,7 @@ static enum b43legacy_dmatype dma_mask_to_engine_type(u64 dmamask)
863{ 863{
864 if (dmamask == DMA_30BIT_MASK) 864 if (dmamask == DMA_30BIT_MASK)
865 return B43legacy_DMA_30BIT; 865 return B43legacy_DMA_30BIT;
866 if (dmamask == DMA_32BIT_MASK) 866 if (dmamask == DMA_BIT_MASK(32))
867 return B43legacy_DMA_32BIT; 867 return B43legacy_DMA_32BIT;
868 if (dmamask == DMA_BIT_MASK(64)) 868 if (dmamask == DMA_BIT_MASK(64))
869 return B43legacy_DMA_64BIT; 869 return B43legacy_DMA_64BIT;
@@ -1043,11 +1043,11 @@ static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask)
1043 if (!err) 1043 if (!err)
1044 break; 1044 break;
1045 if (mask == DMA_BIT_MASK(64)) { 1045 if (mask == DMA_BIT_MASK(64)) {
1046 mask = DMA_32BIT_MASK; 1046 mask = DMA_BIT_MASK(32);
1047 fallback = 1; 1047 fallback = 1;
1048 continue; 1048 continue;
1049 } 1049 }
1050 if (mask == DMA_32BIT_MASK) { 1050 if (mask == DMA_BIT_MASK(32)) {
1051 mask = DMA_30BIT_MASK; 1051 mask = DMA_30BIT_MASK;
1052 fallback = 1; 1052 fallback = 1;
1053 continue; 1053 continue;
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c
index f4e963ba768b..97e5647ff050 100644
--- a/drivers/net/wireless/ipw2x00/ipw2100.c
+++ b/drivers/net/wireless/ipw2x00/ipw2100.c
@@ -6207,7 +6207,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev,
6207 pci_set_master(pci_dev); 6207 pci_set_master(pci_dev);
6208 pci_set_drvdata(pci_dev, priv); 6208 pci_set_drvdata(pci_dev, priv);
6209 6209
6210 err = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); 6210 err = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32));
6211 if (err) { 6211 if (err) {
6212 printk(KERN_WARNING DRV_NAME 6212 printk(KERN_WARNING DRV_NAME
6213 "Error calling pci_set_dma_mask.\n"); 6213 "Error calling pci_set_dma_mask.\n");
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index e17a4593e1f5..bd4dbcfe1bbe 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -11631,9 +11631,9 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev,
11631 11631
11632 pci_set_master(pdev); 11632 pci_set_master(pdev);
11633 11633
11634 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 11634 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
11635 if (!err) 11635 if (!err)
11636 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 11636 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
11637 if (err) { 11637 if (err) {
11638 printk(KERN_WARNING DRV_NAME ": No suitable DMA available.\n"); 11638 printk(KERN_WARNING DRV_NAME ": No suitable DMA available.\n");
11639 goto out_pci_disable_device; 11639 goto out_pci_disable_device;
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 9d5f97dd7c73..ce729281ff62 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -4998,9 +4998,9 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
4998 4998
4999 pci_set_master(pdev); 4999 pci_set_master(pdev);
5000 5000
5001 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 5001 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
5002 if (!err) 5002 if (!err)
5003 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 5003 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
5004 if (err) { 5004 if (err) {
5005 IWL_WARN(priv, "No suitable DMA available.\n"); 5005 IWL_WARN(priv, "No suitable DMA available.\n");
5006 goto out_pci_disable_device; 5006 goto out_pci_disable_device;
diff --git a/drivers/net/wireless/prism54/islpci_hotplug.c b/drivers/net/wireless/prism54/islpci_hotplug.c
index 9a72b1e3e163..30876728d7e6 100644
--- a/drivers/net/wireless/prism54/islpci_hotplug.c
+++ b/drivers/net/wireless/prism54/islpci_hotplug.c
@@ -120,7 +120,7 @@ prism54_probe(struct pci_dev *pdev, const struct pci_device_id *id)
120 } 120 }
121 121
122 /* enable PCI DMA */ 122 /* enable PCI DMA */
123 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { 123 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
124 printk(KERN_ERR "%s: 32-bit PCI DMA not supported", DRV_NAME); 124 printk(KERN_ERR "%s: 32-bit PCI DMA not supported", DRV_NAME);
125 goto do_pci_disable_device; 125 goto do_pci_disable_device;
126 } 126 }
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
index e616c20d4a78..43fa0f849003 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
@@ -288,7 +288,7 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
288 if (pci_set_mwi(pci_dev)) 288 if (pci_set_mwi(pci_dev))
289 ERROR_PROBE("MWI not available.\n"); 289 ERROR_PROBE("MWI not available.\n");
290 290
291 if (dma_set_mask(&pci_dev->dev, DMA_32BIT_MASK)) { 291 if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) {
292 ERROR_PROBE("PCI DMA not supported.\n"); 292 ERROR_PROBE("PCI DMA not supported.\n");
293 retval = -EIO; 293 retval = -EIO;
294 goto exit_disable_device; 294 goto exit_disable_device;