diff options
-rw-r--r-- | drivers/net/b44.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/b43/dma.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/b43legacy/dma.c | 6 | ||||
-rw-r--r-- | sound/pci/sis7019.c | 2 | ||||
-rw-r--r-- | sound/pci/trident/trident_main.c | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 17b2750d21de..b70b81ec34c3 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -660,7 +660,7 @@ static int b44_alloc_rx_skb(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) | |||
660 | /* Hardware bug work-around, the chip is unable to do PCI DMA | 660 | /* Hardware bug work-around, the chip is unable to do PCI DMA |
661 | to/from anything above 1GB :-( */ | 661 | to/from anything above 1GB :-( */ |
662 | if (ssb_dma_mapping_error(bp->sdev, mapping) || | 662 | if (ssb_dma_mapping_error(bp->sdev, mapping) || |
663 | mapping + RX_PKT_BUF_SZ > DMA_30BIT_MASK) { | 663 | mapping + RX_PKT_BUF_SZ > DMA_BIT_MASK(30)) { |
664 | /* Sigh... */ | 664 | /* Sigh... */ |
665 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) | 665 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) |
666 | ssb_dma_unmap_single(bp->sdev, mapping, | 666 | ssb_dma_unmap_single(bp->sdev, mapping, |
@@ -673,7 +673,7 @@ static int b44_alloc_rx_skb(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) | |||
673 | RX_PKT_BUF_SZ, | 673 | RX_PKT_BUF_SZ, |
674 | DMA_FROM_DEVICE); | 674 | DMA_FROM_DEVICE); |
675 | if (ssb_dma_mapping_error(bp->sdev, mapping) || | 675 | if (ssb_dma_mapping_error(bp->sdev, mapping) || |
676 | mapping + RX_PKT_BUF_SZ > DMA_30BIT_MASK) { | 676 | mapping + RX_PKT_BUF_SZ > DMA_BIT_MASK(30)) { |
677 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) | 677 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) |
678 | ssb_dma_unmap_single(bp->sdev, mapping, RX_PKT_BUF_SZ,DMA_FROM_DEVICE); | 678 | ssb_dma_unmap_single(bp->sdev, mapping, RX_PKT_BUF_SZ,DMA_FROM_DEVICE); |
679 | dev_kfree_skb_any(skb); | 679 | dev_kfree_skb_any(skb); |
@@ -965,7 +965,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
965 | } | 965 | } |
966 | 966 | ||
967 | mapping = ssb_dma_map_single(bp->sdev, skb->data, len, DMA_TO_DEVICE); | 967 | mapping = ssb_dma_map_single(bp->sdev, skb->data, len, DMA_TO_DEVICE); |
968 | if (ssb_dma_mapping_error(bp->sdev, mapping) || mapping + len > DMA_30BIT_MASK) { | 968 | if (ssb_dma_mapping_error(bp->sdev, mapping) || mapping + len > DMA_BIT_MASK(30)) { |
969 | struct sk_buff *bounce_skb; | 969 | struct sk_buff *bounce_skb; |
970 | 970 | ||
971 | /* Chip can't handle DMA to/from >1GB, use bounce buffer */ | 971 | /* Chip can't handle DMA to/from >1GB, use bounce buffer */ |
@@ -979,7 +979,7 @@ static int b44_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
979 | 979 | ||
980 | mapping = ssb_dma_map_single(bp->sdev, bounce_skb->data, | 980 | mapping = ssb_dma_map_single(bp->sdev, bounce_skb->data, |
981 | len, DMA_TO_DEVICE); | 981 | len, DMA_TO_DEVICE); |
982 | if (ssb_dma_mapping_error(bp->sdev, mapping) || mapping + len > DMA_30BIT_MASK) { | 982 | if (ssb_dma_mapping_error(bp->sdev, mapping) || mapping + len > DMA_BIT_MASK(30)) { |
983 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) | 983 | if (!ssb_dma_mapping_error(bp->sdev, mapping)) |
984 | ssb_dma_unmap_single(bp->sdev, mapping, | 984 | ssb_dma_unmap_single(bp->sdev, mapping, |
985 | len, DMA_TO_DEVICE); | 985 | len, DMA_TO_DEVICE); |
@@ -1204,7 +1204,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp) | |||
1204 | DMA_BIDIRECTIONAL); | 1204 | DMA_BIDIRECTIONAL); |
1205 | 1205 | ||
1206 | if (ssb_dma_mapping_error(bp->sdev, rx_ring_dma) || | 1206 | if (ssb_dma_mapping_error(bp->sdev, rx_ring_dma) || |
1207 | rx_ring_dma + size > DMA_30BIT_MASK) { | 1207 | rx_ring_dma + size > DMA_BIT_MASK(30)) { |
1208 | kfree(rx_ring); | 1208 | kfree(rx_ring); |
1209 | goto out_err; | 1209 | goto out_err; |
1210 | } | 1210 | } |
@@ -1231,7 +1231,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp) | |||
1231 | DMA_TO_DEVICE); | 1231 | DMA_TO_DEVICE); |
1232 | 1232 | ||
1233 | if (ssb_dma_mapping_error(bp->sdev, tx_ring_dma) || | 1233 | if (ssb_dma_mapping_error(bp->sdev, tx_ring_dma) || |
1234 | tx_ring_dma + size > DMA_30BIT_MASK) { | 1234 | tx_ring_dma + size > DMA_BIT_MASK(30)) { |
1235 | kfree(tx_ring); | 1235 | kfree(tx_ring); |
1236 | goto out_err; | 1236 | goto out_err; |
1237 | } | 1237 | } |
@@ -2180,7 +2180,7 @@ static int __devinit b44_init_one(struct ssb_device *sdev, | |||
2180 | "Failed to powerup the bus\n"); | 2180 | "Failed to powerup the bus\n"); |
2181 | goto err_out_free_dev; | 2181 | goto err_out_free_dev; |
2182 | } | 2182 | } |
2183 | err = ssb_dma_set_mask(sdev, DMA_30BIT_MASK); | 2183 | err = ssb_dma_set_mask(sdev, DMA_BIT_MASK(30)); |
2184 | if (err) { | 2184 | if (err) { |
2185 | dev_err(sdev->dev, | 2185 | dev_err(sdev->dev, |
2186 | "Required 30BIT DMA mask unsupported by the system.\n"); | 2186 | "Required 30BIT DMA mask unsupported by the system.\n"); |
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index de1964f7d9e0..e228c1de6e11 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c | |||
@@ -779,12 +779,12 @@ static u64 supported_dma_mask(struct b43_wldev *dev) | |||
779 | if (tmp & B43_DMA32_TXADDREXT_MASK) | 779 | if (tmp & B43_DMA32_TXADDREXT_MASK) |
780 | return DMA_BIT_MASK(32); | 780 | return DMA_BIT_MASK(32); |
781 | 781 | ||
782 | return DMA_30BIT_MASK; | 782 | return DMA_BIT_MASK(30); |
783 | } | 783 | } |
784 | 784 | ||
785 | static enum b43_dmatype dma_mask_to_engine_type(u64 dmamask) | 785 | static enum b43_dmatype dma_mask_to_engine_type(u64 dmamask) |
786 | { | 786 | { |
787 | if (dmamask == DMA_30BIT_MASK) | 787 | if (dmamask == DMA_BIT_MASK(30)) |
788 | return B43_DMA_30BIT; | 788 | return B43_DMA_30BIT; |
789 | if (dmamask == DMA_BIT_MASK(32)) | 789 | if (dmamask == DMA_BIT_MASK(32)) |
790 | return B43_DMA_32BIT; | 790 | return B43_DMA_32BIT; |
@@ -1005,7 +1005,7 @@ static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask) | |||
1005 | continue; | 1005 | continue; |
1006 | } | 1006 | } |
1007 | if (mask == DMA_BIT_MASK(32)) { | 1007 | if (mask == DMA_BIT_MASK(32)) { |
1008 | mask = DMA_30BIT_MASK; | 1008 | mask = DMA_BIT_MASK(30); |
1009 | fallback = 1; | 1009 | fallback = 1; |
1010 | continue; | 1010 | continue; |
1011 | } | 1011 | } |
diff --git a/drivers/net/wireless/b43legacy/dma.c b/drivers/net/wireless/b43legacy/dma.c index 1d3e0d239314..2f90fb9f5367 100644 --- a/drivers/net/wireless/b43legacy/dma.c +++ b/drivers/net/wireless/b43legacy/dma.c | |||
@@ -856,12 +856,12 @@ static u64 supported_dma_mask(struct b43legacy_wldev *dev) | |||
856 | if (tmp & B43legacy_DMA32_TXADDREXT_MASK) | 856 | if (tmp & B43legacy_DMA32_TXADDREXT_MASK) |
857 | return DMA_BIT_MASK(32); | 857 | return DMA_BIT_MASK(32); |
858 | 858 | ||
859 | return DMA_30BIT_MASK; | 859 | return DMA_BIT_MASK(30); |
860 | } | 860 | } |
861 | 861 | ||
862 | static enum b43legacy_dmatype dma_mask_to_engine_type(u64 dmamask) | 862 | static enum b43legacy_dmatype dma_mask_to_engine_type(u64 dmamask) |
863 | { | 863 | { |
864 | if (dmamask == DMA_30BIT_MASK) | 864 | if (dmamask == DMA_BIT_MASK(30)) |
865 | return B43legacy_DMA_30BIT; | 865 | return B43legacy_DMA_30BIT; |
866 | if (dmamask == DMA_BIT_MASK(32)) | 866 | if (dmamask == DMA_BIT_MASK(32)) |
867 | return B43legacy_DMA_32BIT; | 867 | return B43legacy_DMA_32BIT; |
@@ -1048,7 +1048,7 @@ static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask) | |||
1048 | continue; | 1048 | continue; |
1049 | } | 1049 | } |
1050 | if (mask == DMA_BIT_MASK(32)) { | 1050 | if (mask == DMA_BIT_MASK(32)) { |
1051 | mask = DMA_30BIT_MASK; | 1051 | mask = DMA_BIT_MASK(30); |
1052 | fallback = 1; | 1052 | fallback = 1; |
1053 | continue; | 1053 | continue; |
1054 | } | 1054 | } |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index baf6d8e3dabc..1a5ff0611072 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -1300,7 +1300,7 @@ static int __devinit sis_chip_create(struct snd_card *card, | |||
1300 | if (rc) | 1300 | if (rc) |
1301 | goto error_out; | 1301 | goto error_out; |
1302 | 1302 | ||
1303 | if (pci_set_dma_mask(pci, DMA_30BIT_MASK) < 0) { | 1303 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { |
1304 | printk(KERN_ERR "sis7019: architecture does not support " | 1304 | printk(KERN_ERR "sis7019: architecture does not support " |
1305 | "30-bit PCI busmaster DMA"); | 1305 | "30-bit PCI busmaster DMA"); |
1306 | goto error_out_enabled; | 1306 | goto error_out_enabled; |
diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c index a9da9c184660..6d943f6f6b70 100644 --- a/sound/pci/trident/trident_main.c +++ b/sound/pci/trident/trident_main.c | |||
@@ -3559,8 +3559,8 @@ int __devinit snd_trident_create(struct snd_card *card, | |||
3559 | if ((err = pci_enable_device(pci)) < 0) | 3559 | if ((err = pci_enable_device(pci)) < 0) |
3560 | return err; | 3560 | return err; |
3561 | /* check, if we can restrict PCI DMA transfers to 30 bits */ | 3561 | /* check, if we can restrict PCI DMA transfers to 30 bits */ |
3562 | if (pci_set_dma_mask(pci, DMA_30BIT_MASK) < 0 || | 3562 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0 || |
3563 | pci_set_consistent_dma_mask(pci, DMA_30BIT_MASK) < 0) { | 3563 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { |
3564 | snd_printk(KERN_ERR "architecture does not support 30bit PCI busmaster DMA\n"); | 3564 | snd_printk(KERN_ERR "architecture does not support 30bit PCI busmaster DMA\n"); |
3565 | pci_disable_device(pci); | 3565 | pci_disable_device(pci); |
3566 | return -ENXIO; | 3566 | return -ENXIO; |