aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2010-02-04 13:57:42 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-19 16:19:51 -0500
commite4fc85600b1b4b8114354846ab9594ad354882d0 (patch)
tree8b0e5e0f95e876c64afbfc78c2bebceec440be74 /drivers
parent6e03718c852a7b2ce756e37ae340f4ebfec2f6f3 (diff)
mlx4: replace the dma_sync_single_range_for_cpu/device API
There are only two users of the dma_sync_single_range_for_cpu/device API in mainline (mlx4 and ssb). The dma_sync_single_range_for_cpu/device API has never been documented and the dma_sync_single_for_cpu/device API also support a partial sync. This converts mlx4 to use the dma_sync_single_for_cpu/device API (preparations for the removal of the dma_sync_single_range_for_cpu/device API). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/mlx4/en_rx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c
index 829b9ec9ff67..64394647dddc 100644
--- a/drivers/net/mlx4/en_rx.c
+++ b/drivers/net/mlx4/en_rx.c
@@ -508,11 +508,11 @@ static struct sk_buff *mlx4_en_rx_skb(struct mlx4_en_priv *priv,
508 /* We are copying all relevant data to the skb - temporarily 508 /* We are copying all relevant data to the skb - temporarily
509 * synch buffers for the copy */ 509 * synch buffers for the copy */
510 dma = be64_to_cpu(rx_desc->data[0].addr); 510 dma = be64_to_cpu(rx_desc->data[0].addr);
511 dma_sync_single_range_for_cpu(&mdev->pdev->dev, dma, 0, 511 dma_sync_single_for_cpu(&mdev->pdev->dev, dma, length,
512 length, DMA_FROM_DEVICE); 512 DMA_FROM_DEVICE);
513 skb_copy_to_linear_data(skb, va, length); 513 skb_copy_to_linear_data(skb, va, length);
514 dma_sync_single_range_for_device(&mdev->pdev->dev, dma, 0, 514 dma_sync_single_for_device(&mdev->pdev->dev, dma, length,
515 length, DMA_FROM_DEVICE); 515 DMA_FROM_DEVICE);
516 skb->tail += length; 516 skb->tail += length;
517 } else { 517 } else {
518 518