mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
convert some DMA_nnBIT_MASK() callers
We're about to make DMA_nnBIT_MASK() emit `deprecated' warnings. Convert the remaining stragglers which are visible to the x86_64 build. Cc: FUJITA Tomonori <[email protected]> Cc: James Bottomley <[email protected]> Cc: Eric Moore <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Alexander Duyck <[email protected]> Cc: Yi Zou <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a90b037583
commit
8e20ce94ce
4 changed files with 13 additions and 12 deletions
|
|
@ -1281,7 +1281,7 @@ static void igbvf_configure_tx(struct igbvf_adapter *adapter)
|
|||
/* Setup the HW Tx Head and Tail descriptor pointers */
|
||||
ew32(TDLEN(0), tx_ring->count * sizeof(union e1000_adv_tx_desc));
|
||||
tdba = tx_ring->dma;
|
||||
ew32(TDBAL(0), (tdba & DMA_32BIT_MASK));
|
||||
ew32(TDBAL(0), (tdba & DMA_BIT_MASK(32)));
|
||||
ew32(TDBAH(0), (tdba >> 32));
|
||||
ew32(TDH(0), 0);
|
||||
ew32(TDT(0), 0);
|
||||
|
|
@ -1367,7 +1367,7 @@ static void igbvf_configure_rx(struct igbvf_adapter *adapter)
|
|||
* the Base and Length of the Rx Descriptor Ring
|
||||
*/
|
||||
rdba = rx_ring->dma;
|
||||
ew32(RDBAL(0), (rdba & DMA_32BIT_MASK));
|
||||
ew32(RDBAL(0), (rdba & DMA_BIT_MASK(32)));
|
||||
ew32(RDBAH(0), (rdba >> 32));
|
||||
ew32(RDLEN(0), rx_ring->count * sizeof(union e1000_adv_rx_desc));
|
||||
rx_ring->head = E1000_RDH(0);
|
||||
|
|
@ -2628,15 +2628,16 @@ static int __devinit igbvf_probe(struct pci_dev *pdev,
|
|||
return err;
|
||||
|
||||
pci_using_dac = 0;
|
||||
err = pci_set_dma_mask(pdev, DMA_64BIT_MASK);
|
||||
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
|
||||
if (!err) {
|
||||
err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
|
||||
err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
|
||||
if (!err)
|
||||
pci_using_dac = 1;
|
||||
} else {
|
||||
err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
||||
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
|
||||
if (err) {
|
||||
err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
|
||||
err = pci_set_consistent_dma_mask(pdev,
|
||||
DMA_BIT_MASK(32));
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "No usable DMA "
|
||||
"configuration, aborting\n");
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
|
|||
/* program DMA context */
|
||||
hw = &adapter->hw;
|
||||
spin_lock_bh(&fcoe->lock);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCPTRL, ddp->udp & DMA_32BIT_MASK);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCPTRL, ddp->udp & DMA_BIT_MASK(32));
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCPTRH, (u64)ddp->udp >> 32);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCBUFF, fcbuff);
|
||||
IXGBE_WRITE_REG(hw, IXGBE_FCDMARW, fcdmarw);
|
||||
|
|
|
|||
Loading…
Reference in a new issue