aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-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
9 files changed, 18 insertions, 18 deletions
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;