aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/message/fusion/mptbase.c8
-rw-r--r--drivers/net/igbvf/netdev.c13
-rw-r--r--drivers/net/ixgbe/ixgbe_fcoe.c2
-rw-r--r--sound/pci/lx6464es/lx6464es.c2
4 files changed, 13 insertions, 12 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 0df065275cd3..5d0ba4f5924c 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -4414,11 +4414,11 @@ PrimeIocFifos(MPT_ADAPTER *ioc)
4414 * 1078 errata workaround for the 36GB limitation 4414 * 1078 errata workaround for the 36GB limitation
4415 */ 4415 */
4416 if (ioc->pcidev->device == MPI_MANUFACTPAGE_DEVID_SAS1078 && 4416 if (ioc->pcidev->device == MPI_MANUFACTPAGE_DEVID_SAS1078 &&
4417 ioc->dma_mask > DMA_35BIT_MASK) { 4417 ioc->dma_mask > DMA_BIT_MASK(35)) {
4418 if (!pci_set_dma_mask(ioc->pcidev, DMA_BIT_MASK(32)) 4418 if (!pci_set_dma_mask(ioc->pcidev, DMA_BIT_MASK(32))
4419 && !pci_set_consistent_dma_mask(ioc->pcidev, 4419 && !pci_set_consistent_dma_mask(ioc->pcidev,
4420 DMA_BIT_MASK(32))) { 4420 DMA_BIT_MASK(32))) {
4421 dma_mask = DMA_35BIT_MASK; 4421 dma_mask = DMA_BIT_MASK(35);
4422 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT 4422 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT
4423 "setting 35 bit addressing for " 4423 "setting 35 bit addressing for "
4424 "Request/Reply/Chain and Sense Buffers\n", 4424 "Request/Reply/Chain and Sense Buffers\n",
@@ -4575,7 +4575,7 @@ PrimeIocFifos(MPT_ADAPTER *ioc)
4575 alloc_dma += ioc->reply_sz; 4575 alloc_dma += ioc->reply_sz;
4576 } 4576 }
4577 4577
4578 if (dma_mask == DMA_35BIT_MASK && !pci_set_dma_mask(ioc->pcidev, 4578 if (dma_mask == DMA_BIT_MASK(35) && !pci_set_dma_mask(ioc->pcidev,
4579 ioc->dma_mask) && !pci_set_consistent_dma_mask(ioc->pcidev, 4579 ioc->dma_mask) && !pci_set_consistent_dma_mask(ioc->pcidev,
4580 ioc->dma_mask)) 4580 ioc->dma_mask))
4581 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT 4581 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT
@@ -4602,7 +4602,7 @@ out_fail:
4602 ioc->sense_buf_pool = NULL; 4602 ioc->sense_buf_pool = NULL;
4603 } 4603 }
4604 4604
4605 if (dma_mask == DMA_35BIT_MASK && !pci_set_dma_mask(ioc->pcidev, 4605 if (dma_mask == DMA_BIT_MASK(35) && !pci_set_dma_mask(ioc->pcidev,
4606 DMA_BIT_MASK(64)) && !pci_set_consistent_dma_mask(ioc->pcidev, 4606 DMA_BIT_MASK(64)) && !pci_set_consistent_dma_mask(ioc->pcidev,
4607 DMA_BIT_MASK(64))) 4607 DMA_BIT_MASK(64)))
4608 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT 4608 d36memprintk(ioc, printk(MYIOC_s_DEBUG_FMT
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c
index 22aadb7884fa..2bc9d63027db 100644
--- a/drivers/net/igbvf/netdev.c
+++ b/drivers/net/igbvf/netdev.c
@@ -1281,7 +1281,7 @@ static void igbvf_configure_tx(struct igbvf_adapter *adapter)
1281 /* Setup the HW Tx Head and Tail descriptor pointers */ 1281 /* Setup the HW Tx Head and Tail descriptor pointers */
1282 ew32(TDLEN(0), tx_ring->count * sizeof(union e1000_adv_tx_desc)); 1282 ew32(TDLEN(0), tx_ring->count * sizeof(union e1000_adv_tx_desc));
1283 tdba = tx_ring->dma; 1283 tdba = tx_ring->dma;
1284 ew32(TDBAL(0), (tdba & DMA_32BIT_MASK)); 1284 ew32(TDBAL(0), (tdba & DMA_BIT_MASK(32)));
1285 ew32(TDBAH(0), (tdba >> 32)); 1285 ew32(TDBAH(0), (tdba >> 32));
1286 ew32(TDH(0), 0); 1286 ew32(TDH(0), 0);
1287 ew32(TDT(0), 0); 1287 ew32(TDT(0), 0);
@@ -1367,7 +1367,7 @@ static void igbvf_configure_rx(struct igbvf_adapter *adapter)
1367 * the Base and Length of the Rx Descriptor Ring 1367 * the Base and Length of the Rx Descriptor Ring
1368 */ 1368 */
1369 rdba = rx_ring->dma; 1369 rdba = rx_ring->dma;
1370 ew32(RDBAL(0), (rdba & DMA_32BIT_MASK)); 1370 ew32(RDBAL(0), (rdba & DMA_BIT_MASK(32)));
1371 ew32(RDBAH(0), (rdba >> 32)); 1371 ew32(RDBAH(0), (rdba >> 32));
1372 ew32(RDLEN(0), rx_ring->count * sizeof(union e1000_adv_rx_desc)); 1372 ew32(RDLEN(0), rx_ring->count * sizeof(union e1000_adv_rx_desc));
1373 rx_ring->head = E1000_RDH(0); 1373 rx_ring->head = E1000_RDH(0);
@@ -2628,15 +2628,16 @@ static int __devinit igbvf_probe(struct pci_dev *pdev,
2628 return err; 2628 return err;
2629 2629
2630 pci_using_dac = 0; 2630 pci_using_dac = 0;
2631 err = pci_set_dma_mask(pdev, DMA_64BIT_MASK); 2631 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
2632 if (!err) { 2632 if (!err) {
2633 err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); 2633 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
2634 if (!err) 2634 if (!err)
2635 pci_using_dac = 1; 2635 pci_using_dac = 1;
2636 } else { 2636 } else {
2637 err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); 2637 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
2638 if (err) { 2638 if (err) {
2639 err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); 2639 err = pci_set_consistent_dma_mask(pdev,
2640 DMA_BIT_MASK(32));
2640 if (err) { 2641 if (err) {
2641 dev_err(&pdev->dev, "No usable DMA " 2642 dev_err(&pdev->dev, "No usable DMA "
2642 "configuration, aborting\n"); 2643 "configuration, aborting\n");
diff --git a/drivers/net/ixgbe/ixgbe_fcoe.c b/drivers/net/ixgbe/ixgbe_fcoe.c
index 3c3bf1f07b81..fa9f24e23683 100644
--- a/drivers/net/ixgbe/ixgbe_fcoe.c
+++ b/drivers/net/ixgbe/ixgbe_fcoe.c
@@ -251,7 +251,7 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
251 /* program DMA context */ 251 /* program DMA context */
252 hw = &adapter->hw; 252 hw = &adapter->hw;
253 spin_lock_bh(&fcoe->lock); 253 spin_lock_bh(&fcoe->lock);
254 IXGBE_WRITE_REG(hw, IXGBE_FCPTRL, ddp->udp & DMA_32BIT_MASK); 254 IXGBE_WRITE_REG(hw, IXGBE_FCPTRL, ddp->udp & DMA_BIT_MASK(32));
255 IXGBE_WRITE_REG(hw, IXGBE_FCPTRH, (u64)ddp->udp >> 32); 255 IXGBE_WRITE_REG(hw, IXGBE_FCPTRH, (u64)ddp->udp >> 32);
256 IXGBE_WRITE_REG(hw, IXGBE_FCBUFF, fcbuff); 256 IXGBE_WRITE_REG(hw, IXGBE_FCBUFF, fcbuff);
257 IXGBE_WRITE_REG(hw, IXGBE_FCDMARW, fcdmarw); 257 IXGBE_WRITE_REG(hw, IXGBE_FCDMARW, fcdmarw);
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c
index ccf1b38c88ea..18da2ef04d09 100644
--- a/sound/pci/lx6464es/lx6464es.c
+++ b/sound/pci/lx6464es/lx6464es.c
@@ -988,7 +988,7 @@ static int __devinit snd_lx6464es_create(struct snd_card *card,
988 pci_set_master(pci); 988 pci_set_master(pci);
989 989
990 /* check if we can restrict PCI DMA transfers to 32 bits */ 990 /* check if we can restrict PCI DMA transfers to 32 bits */
991 err = pci_set_dma_mask(pci, DMA_32BIT_MASK); 991 err = pci_set_dma_mask(pci, DMA_BIT_MASK(32));
992 if (err < 0) { 992 if (err < 0) {
993 snd_printk(KERN_ERR "architecture does not support " 993 snd_printk(KERN_ERR "architecture does not support "
994 "32bit PCI busmaster DMA\n"); 994 "32bit PCI busmaster DMA\n");