Lines Matching refs:vq_mr
138 struct mlx5_vdpa_mr *vq_mr; member
885 struct mlx5_vdpa_mr *vq_mr; in create_virtqueue() local
944 vq_mr = mvdev->mres.mr[mvdev->mres.group2asid[MLX5_VDPA_DATAVQ_GROUP]]; in create_virtqueue()
945 if (vq_mr) in create_virtqueue()
946 MLX5_SET(virtio_q, vq_ctx, virtio_q_mkey, vq_mr->mkey); in create_virtqueue()
956 vq_mr = mvdev->mres.mr[mvdev->mres.group2asid[MLX5_VDPA_DATAVQ_GROUP]]; in create_virtqueue()
957 if (vq_mr) in create_virtqueue()
984 mlx5_vdpa_get_mr(mvdev, vq_mr); in create_virtqueue()
985 mvq->vq_mr = vq_mr; in create_virtqueue()
1021 mlx5_vdpa_put_mr(&ndev->mvdev, mvq->vq_mr); in destroy_virtqueue()
1022 mvq->vq_mr = NULL; in destroy_virtqueue()
1313 struct mlx5_vdpa_mr *vq_mr = NULL; in fill_modify_virtqueue_cmd() local
1357 vq_mr = mvdev->mres.mr[mvdev->mres.group2asid[MLX5_VDPA_DATAVQ_GROUP]]; in fill_modify_virtqueue_cmd()
1359 if (vq_mr) in fill_modify_virtqueue_cmd()
1360 MLX5_SET(virtio_q, vq_ctx, virtio_q_mkey, vq_mr->mkey); in fill_modify_virtqueue_cmd()
1385 struct mlx5_vdpa_mr *vq_mr = mvdev->mres.mr[asid]; in modify_virtqueue_end() local
1387 mlx5_vdpa_put_mr(mvdev, mvq->vq_mr); in modify_virtqueue_end()
1388 mlx5_vdpa_get_mr(mvdev, vq_mr); in modify_virtqueue_end()
1389 mvq->vq_mr = vq_mr; in modify_virtqueue_end()