Lines Matching refs:iotlb

224 			 struct vhost_iotlb *iotlb)  in map_direct_mr()  argument
240 for (map = vhost_iotlb_itree_first(iotlb, mr->start, mr->end - 1); in map_direct_mr()
256 for (map = vhost_iotlb_itree_first(iotlb, mr->start, mr->end - 1); in map_direct_mr()
305 struct vhost_iotlb *iotlb) in add_direct_chain() argument
328 err = map_direct_mr(mvdev, dmr, iotlb); in add_direct_chain()
359 static int create_user_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in create_user_mr() argument
374 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in create_user_mr()
389 err = add_direct_chain(mvdev, ps, pe - ps, pperm, iotlb); in create_user_mr()
398 err = add_direct_chain(mvdev, ps, pe - ps, pperm, iotlb); in create_user_mr()
462 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, start, last, start, VHOST_ACCESS_RW); in dup_iotlb()
468 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, map->start, map->last, in dup_iotlb()
478 vhost_iotlb_del_range(mvdev->cvq.iotlb, 0, ULLONG_MAX); in prune_iotlb()
515 struct vhost_iotlb *iotlb, unsigned int asid) in _mlx5_vdpa_create_mr() argument
524 if (iotlb) in _mlx5_vdpa_create_mr()
525 err = create_user_mr(mvdev, iotlb); in _mlx5_vdpa_create_mr()
534 err = dup_iotlb(mvdev, iotlb); in _mlx5_vdpa_create_mr()
544 if (iotlb) in _mlx5_vdpa_create_mr()
553 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_create_mr() argument
559 err = _mlx5_vdpa_create_mr(mvdev, iotlb, asid); in mlx5_vdpa_create_mr()
564 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map() argument
577 err = _mlx5_vdpa_create_mr(mvdev, iotlb, asid); in mlx5_vdpa_handle_set_map()