diff options
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mr.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mr.c b/drivers/net/ethernet/mellanox/mlx4/mr.c index 7094a9c70fd5..8dbdf1d29357 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mr.c +++ b/drivers/net/ethernet/mellanox/mlx4/mr.c | |||
@@ -708,13 +708,13 @@ static int mlx4_write_mtt_chunk(struct mlx4_dev *dev, struct mlx4_mtt *mtt, | |||
708 | if (!mtts) | 708 | if (!mtts) |
709 | return -ENOMEM; | 709 | return -ENOMEM; |
710 | 710 | ||
711 | dma_sync_single_for_cpu(&dev->pdev->dev, dma_handle, | 711 | dma_sync_single_for_cpu(&dev->persist->pdev->dev, dma_handle, |
712 | npages * sizeof (u64), DMA_TO_DEVICE); | 712 | npages * sizeof (u64), DMA_TO_DEVICE); |
713 | 713 | ||
714 | for (i = 0; i < npages; ++i) | 714 | for (i = 0; i < npages; ++i) |
715 | mtts[i] = cpu_to_be64(page_list[i] | MLX4_MTT_FLAG_PRESENT); | 715 | mtts[i] = cpu_to_be64(page_list[i] | MLX4_MTT_FLAG_PRESENT); |
716 | 716 | ||
717 | dma_sync_single_for_device(&dev->pdev->dev, dma_handle, | 717 | dma_sync_single_for_device(&dev->persist->pdev->dev, dma_handle, |
718 | npages * sizeof (u64), DMA_TO_DEVICE); | 718 | npages * sizeof (u64), DMA_TO_DEVICE); |
719 | 719 | ||
720 | return 0; | 720 | return 0; |
@@ -1020,13 +1020,13 @@ int mlx4_map_phys_fmr(struct mlx4_dev *dev, struct mlx4_fmr *fmr, u64 *page_list | |||
1020 | /* Make sure MPT status is visible before writing MTT entries */ | 1020 | /* Make sure MPT status is visible before writing MTT entries */ |
1021 | wmb(); | 1021 | wmb(); |
1022 | 1022 | ||
1023 | dma_sync_single_for_cpu(&dev->pdev->dev, fmr->dma_handle, | 1023 | dma_sync_single_for_cpu(&dev->persist->pdev->dev, fmr->dma_handle, |
1024 | npages * sizeof(u64), DMA_TO_DEVICE); | 1024 | npages * sizeof(u64), DMA_TO_DEVICE); |
1025 | 1025 | ||
1026 | for (i = 0; i < npages; ++i) | 1026 | for (i = 0; i < npages; ++i) |
1027 | fmr->mtts[i] = cpu_to_be64(page_list[i] | MLX4_MTT_FLAG_PRESENT); | 1027 | fmr->mtts[i] = cpu_to_be64(page_list[i] | MLX4_MTT_FLAG_PRESENT); |
1028 | 1028 | ||
1029 | dma_sync_single_for_device(&dev->pdev->dev, fmr->dma_handle, | 1029 | dma_sync_single_for_device(&dev->persist->pdev->dev, fmr->dma_handle, |
1030 | npages * sizeof(u64), DMA_TO_DEVICE); | 1030 | npages * sizeof(u64), DMA_TO_DEVICE); |
1031 | 1031 | ||
1032 | fmr->mpt->key = cpu_to_be32(key); | 1032 | fmr->mpt->key = cpu_to_be32(key); |