Home
last modified time | relevance | path

Searched refs:vhost_iotlb (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/include/linux/
Dvhost_iotlb.h25 struct vhost_iotlb { struct
33 int vhost_iotlb_add_range_ctx(struct vhost_iotlb *iotlb, u64 start, u64 last, argument
35 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last,
37 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last);
39 void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit,
41 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags);
42 void vhost_iotlb_free(struct vhost_iotlb *iotlb);
43 void vhost_iotlb_reset(struct vhost_iotlb *iotlb);
46 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last);
50 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
Dvringh.h48 struct vhost_iotlb *iotlb;
278 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb,
Dvdpa.h337 struct vhost_iotlb *iotlb);
/linux-6.1.9/drivers/vhost/
Diotlb.c28 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb, in vhost_iotlb_map_free()
50 int vhost_iotlb_add_range_ctx(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range_ctx()
103 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range()
118 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_del_range()
134 void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit, in vhost_iotlb_init()
152 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags) in vhost_iotlb_alloc()
154 struct vhost_iotlb *iotlb = kzalloc(sizeof(*iotlb), GFP_KERNEL); in vhost_iotlb_alloc()
169 void vhost_iotlb_reset(struct vhost_iotlb *iotlb) in vhost_iotlb_reset()
179 void vhost_iotlb_free(struct vhost_iotlb *iotlb) in vhost_iotlb_free()
195 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_itree_first()
Dvhost.h115 struct vhost_iotlb *umem;
116 struct vhost_iotlb *iotlb;
152 struct vhost_iotlb *umem;
153 struct vhost_iotlb *iotlb;
176 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void);
177 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb);
226 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
DMakefile18 obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o
19 vhost_iotlb-y := iotlb.o
Dvdpa.c41 struct vhost_iotlb iotlb;
69 struct vhost_iotlb *iotlb, u64 start,
72 static inline u32 iotlb_to_asid(struct vhost_iotlb *iotlb) in iotlb_to_asid()
91 static struct vhost_iotlb *asid_to_iotlb(struct vhost_vdpa *v, u32 asid) in asid_to_iotlb()
702 static void vhost_vdpa_pa_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_pa_unmap()
725 static void vhost_vdpa_va_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_va_unmap()
741 struct vhost_iotlb *iotlb, u64 start, in vhost_vdpa_iotlb_unmap()
774 static int vhost_vdpa_map(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_map()
809 struct vhost_iotlb *iotlb, in vhost_vdpa_unmap()
830 struct vhost_iotlb *iotlb, in vhost_vdpa_va_map()
[all …]
Dvhost.c623 static struct vhost_iotlb *iotlb_alloc(void) in iotlb_alloc()
629 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare()
636 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *umem) in vhost_dev_reset_owner()
743 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok()
782 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok()
1341 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1435 struct vhost_iotlb *newumem, *oldumem; in vhost_set_memory()
1734 struct vhost_iotlb *niotlb, *oiotlb; in vhost_init_device_iotlb()
1882 struct vhost_iotlb *umem = vq->umem; in log_write_hva()
2054 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
Dtest.c221 struct vhost_iotlb *umem; in vhost_test_reset_owner()
Dvringh.c1103 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate()
1333 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb, in vringh_set_iotlb()
Dnet.c1596 struct vhost_iotlb *umem; in vhost_net_reset_owner()
/linux-6.1.9/drivers/vdpa/vdpa_user/
Diova_domain.h35 struct vhost_iotlb *iotlb;
43 struct vhost_iotlb *iotlb);
46 struct vhost_iotlb *iotlb);
Diova_domain.c60 struct vhost_iotlb *iotlb) in vduse_domain_set_map()
90 struct vhost_iotlb *iotlb) in vduse_domain_clear_map()
Dvduse_dev.c713 struct vhost_iotlb *iotlb) in vduse_vdpa_set_map()
/linux-6.1.9/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h52 struct vhost_iotlb *iotlb;
118 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb,
120 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb,
Dmr.c224 struct vhost_iotlb *iotlb) in map_direct_mr()
305 struct vhost_iotlb *iotlb) in add_direct_chain()
359 static int create_user_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in create_user_mr()
455 static int dup_iotlb(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *src) in dup_iotlb()
515 struct vhost_iotlb *iotlb, unsigned int asid) 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()
564 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map()
/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim.h62 struct vhost_iotlb *iommu;
Dvdpa_sim.c585 struct vhost_iotlb *iommu; in vdpasim_set_group_asid()
609 struct vhost_iotlb *iotlb) in vdpasim_set_map()
613 struct vhost_iotlb *iommu; in vdpasim_set_map()
/linux-6.1.9/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c2398 struct vhost_iotlb *iotlb, unsigned int asid) in mlx5_vdpa_change_map()
2627 static int set_map_data(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in set_map_data()
2646 struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map()
/linux-6.1.9/
DMAINTAINERS21832 F: include/linux/vhost_iotlb.h