dma-mapping: replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64)
Replace all DMA_64BIT_MASK macro with DMA_BIT_MASK(64) 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>
This commit is contained in:
committed by
Linus Torvalds
parent
8a59f5d252
commit
6a35528a83
@@ -846,7 +846,7 @@ static u64 supported_dma_mask(struct b43legacy_wldev *dev)
|
||||
|
||||
tmp = b43legacy_read32(dev, SSB_TMSHIGH);
|
||||
if (tmp & SSB_TMSHIGH_DMA64)
|
||||
return DMA_64BIT_MASK;
|
||||
return DMA_BIT_MASK(64);
|
||||
mmio_base = b43legacy_dmacontroller_base(0, 0);
|
||||
b43legacy_write32(dev,
|
||||
mmio_base + B43legacy_DMA32_TXCTL,
|
||||
@@ -865,7 +865,7 @@ static enum b43legacy_dmatype dma_mask_to_engine_type(u64 dmamask)
|
||||
return B43legacy_DMA_30BIT;
|
||||
if (dmamask == DMA_32BIT_MASK)
|
||||
return B43legacy_DMA_32BIT;
|
||||
if (dmamask == DMA_64BIT_MASK)
|
||||
if (dmamask == DMA_BIT_MASK(64))
|
||||
return B43legacy_DMA_64BIT;
|
||||
B43legacy_WARN_ON(1);
|
||||
return B43legacy_DMA_30BIT;
|
||||
@@ -1042,7 +1042,7 @@ static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask)
|
||||
err = ssb_dma_set_mask(dev->dev, mask);
|
||||
if (!err)
|
||||
break;
|
||||
if (mask == DMA_64BIT_MASK) {
|
||||
if (mask == DMA_BIT_MASK(64)) {
|
||||
mask = DMA_32BIT_MASK;
|
||||
fallback = 1;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user