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()
514 static int _mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in _mlx5_vdpa_create_mr() argument
522 if (iotlb) in _mlx5_vdpa_create_mr()
523 err = create_user_mr(mvdev, iotlb); in _mlx5_vdpa_create_mr()
530 err = dup_iotlb(mvdev, iotlb); in _mlx5_vdpa_create_mr()
538 if (iotlb) in _mlx5_vdpa_create_mr()
546 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_create_mr() argument
551 err = _mlx5_vdpa_create_mr(mvdev, iotlb); in mlx5_vdpa_create_mr()
556 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map() argument
569 err = _mlx5_vdpa_create_mr(mvdev, iotlb); in mlx5_vdpa_handle_set_map()