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>
This commit is contained in:
committed by
Linus Torvalds
parent
6afd142fd0
commit
284901a90a
@ -13228,7 +13228,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
|
||||
* do DMA address check in tg3_start_xmit().
|
||||
*/
|
||||
if (tp->tg3_flags2 & TG3_FLG2_IS_5788)
|
||||
persist_dma_mask = dma_mask = DMA_32BIT_MASK;
|
||||
persist_dma_mask = dma_mask = DMA_BIT_MASK(32);
|
||||
else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) {
|
||||
persist_dma_mask = dma_mask = DMA_BIT_MASK(40);
|
||||
#ifdef CONFIG_HIGHMEM
|
||||
@ -13238,7 +13238,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
|
||||
persist_dma_mask = dma_mask = DMA_BIT_MASK(64);
|
||||
|
||||
/* Configure DMA attributes. */
|
||||
if (dma_mask > DMA_32BIT_MASK) {
|
||||
if (dma_mask > DMA_BIT_MASK(32)) {
|
||||
err = pci_set_dma_mask(pdev, dma_mask);
|
||||
if (!err) {
|
||||
dev->features |= NETIF_F_HIGHDMA;
|
||||
@ -13251,8 +13251,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (err || dma_mask == DMA_32BIT_MASK) {
|
||||
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
||||
if (err || dma_mask == DMA_BIT_MASK(32)) {
|
||||
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
|
||||
if (err) {
|
||||
printk(KERN_ERR PFX "No usable DMA configuration, "
|
||||
"aborting.\n");
|
||||
@ -13393,7 +13393,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
|
||||
(tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0);
|
||||
printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n",
|
||||
dev->name, tp->dma_rwctrl,
|
||||
(pdev->dma_mask == DMA_32BIT_MASK) ? 32 :
|
||||
(pdev->dma_mask == DMA_BIT_MASK(32)) ? 32 :
|
||||
(((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64));
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user