Home
last modified time | relevance | path

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

/linux/include/linux/
H A 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,
H A Dvringh.h51 struct vhost_iotlb *iotlb;
287 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb,
/linux/drivers/vhost/
H A Diotlb.c23 static void vhost_iotlb_map_unlink(struct vhost_iotlb *iotlb, in vhost_iotlb_map_unlink()
36 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb, in vhost_iotlb_map_free()
56 int vhost_iotlb_add_range_ctx(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range_ctx()
122 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range()
137 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_del_range()
153 void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit, in vhost_iotlb_init()
171 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags) in vhost_iotlb_alloc()
173 struct vhost_iotlb *iotlb = kzalloc_obj(*iotlb); in vhost_iotlb_alloc()
188 void vhost_iotlb_reset(struct vhost_iotlb *iotlb) in vhost_iotlb_reset()
198 void vhost_iotlb_free(struct vhost_iotlb *iotlb) in vhost_iotlb_free()
[all …]
H A DMakefile18 obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o
19 vhost_iotlb-y := iotlb.o
H A Dvdpa.c46 struct vhost_iotlb iotlb;
75 struct vhost_iotlb *iotlb, u64 start,
78 static inline u32 iotlb_to_asid(struct vhost_iotlb *iotlb) in iotlb_to_asid()
97 static struct vhost_iotlb *asid_to_iotlb(struct vhost_vdpa *v, u32 asid) in asid_to_iotlb()
927 static void vhost_vdpa_pa_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_pa_unmap()
950 static void vhost_vdpa_va_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_va_unmap()
966 struct vhost_iotlb *iotlb, u64 start, in vhost_vdpa_iotlb_unmap()
999 static int vhost_vdpa_map(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_map()
1035 struct vhost_iotlb *iotlb, in vhost_vdpa_unmap()
1052 struct vhost_iotlb *iotlb, in vhost_vdpa_va_map()
[all …]
H A Dvhost.c1138 static struct vhost_iotlb *iotlb_alloc(void) in iotlb_alloc()
1147 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare()
1154 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *umem) in vhost_dev_reset_owner()
1258 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok()
1297 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok()
1887 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1981 struct vhost_iotlb *newumem, *oldumem; in vhost_set_memory()
2292 struct vhost_iotlb *niotlb, *oiotlb; in vhost_init_device_iotlb()
2482 struct vhost_iotlb *umem = vq->umem; in log_write_hva()
2666 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
H A Dtest.c227 struct vhost_iotlb *umem; in vhost_test_reset_owner()
H A Dvringh.c1044 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate()
1375 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb, in vringh_set_iotlb()
H A Dnet.c1650 struct vhost_iotlb *umem; in vhost_net_reset_owner()
/linux/drivers/vdpa/mlx5/core/
H A Dmlx5_vdpa.h37 struct vhost_iotlb *iotlb;
56 struct vhost_iotlb *iotlb;
152 struct vhost_iotlb *iotlb);
164 struct vhost_iotlb *iotlb,
H A Dmr.c368 struct vhost_iotlb *iotlb) in map_direct_mr()
447 struct vhost_iotlb *iotlb) in add_direct_chain()
500 struct vhost_iotlb *iotlb) in create_user_mr()
599 static int dup_iotlb(struct vhost_iotlb *dst, struct vhost_iotlb *src) in dup_iotlb()
623 static void prune_iotlb(struct vhost_iotlb *iotlb) in prune_iotlb()
776 struct vhost_iotlb *iotlb) in _mlx5_vdpa_create_mr()
818 struct vhost_iotlb *iotlb) in mlx5_vdpa_create_mr()
844 struct vhost_iotlb *iotlb, in mlx5_vdpa_update_cvq_iotlb()
/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.h68 struct vhost_iotlb *iommu;
H A Dvdpa_sim.c612 struct vhost_iotlb *iommu; in vdpasim_set_group_asid()
630 struct vhost_iotlb *iotlb) in vdpasim_set_map()
634 struct vhost_iotlb *iommu; in vdpasim_set_map()
/linux/drivers/vdpa/vdpa_user/
H A Diova_domain.c66 struct vhost_iotlb *iotlb) in vduse_domain_set_map()
96 struct vhost_iotlb *iotlb) in vduse_domain_clear_map()
H A Dvduse_dev.c920 struct vhost_iotlb *iotlb) in vduse_vdpa_set_map()
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c3355 static int set_map_data(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in set_map_data()
3390 struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map()
/linux/
H A DMAINTAINERS28957 F: include/linux/vhost_iotlb.h