Home
last modified time | relevance | path

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

/openbmc/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;
294 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb,
H A Dvdpa.h392 struct vhost_iotlb *iotlb);
/openbmc/linux/drivers/vhost/
H A 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()
H A Dvhost.h131 struct vhost_iotlb *umem;
132 struct vhost_iotlb *iotlb;
166 struct vhost_iotlb *umem;
167 struct vhost_iotlb *iotlb;
190 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void);
191 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb);
246 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
H A DMakefile18 obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o
19 vhost_iotlb-y := iotlb.o
H A 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()
847 struct vhost_iotlb *iotlb, u64 start, in vhost_vdpa_iotlb_unmap()
880 static int vhost_vdpa_map(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_map()
915 struct vhost_iotlb *iotlb, in vhost_vdpa_unmap()
932 struct vhost_iotlb *iotlb, in vhost_vdpa_va_map()
983 struct vhost_iotlb *iotlb, in vhost_vdpa_pa_map()
1108 struct vhost_iotlb *iotlb, in vhost_vdpa_process_iotlb_update()
[all …]
H A Dvhost.c910 static struct vhost_iotlb *iotlb_alloc(void) in iotlb_alloc()
916 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare()
923 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *umem) in vhost_dev_reset_owner()
1026 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok()
1065 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok()
1622 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1716 struct vhost_iotlb *newumem, *oldumem; in vhost_set_memory()
2017 struct vhost_iotlb *niotlb, *oiotlb; in vhost_init_device_iotlb()
2165 struct vhost_iotlb *umem = vq->umem; in log_write_hva()
2337 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
H A Dtest.c221 struct vhost_iotlb *umem; in vhost_test_reset_owner()
H A Dvringh.c1120 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate()
1451 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb, in vringh_set_iotlb()
H A Dnet.c1607 struct vhost_iotlb *umem; in vhost_net_reset_owner()
/openbmc/linux/drivers/vdpa/vdpa_user/
H A Diova_domain.h34 struct vhost_iotlb *iotlb;
42 struct vhost_iotlb *iotlb);
45 struct vhost_iotlb *iotlb);
H A Diova_domain.c60 struct vhost_iotlb *iotlb) in vduse_domain_set_map()
90 struct vhost_iotlb *iotlb) in vduse_domain_clear_map()
H A Dvduse_dev.c747 struct vhost_iotlb *iotlb) in vduse_vdpa_set_map()
/openbmc/linux/drivers/vdpa/mlx5/core/
H A Dmlx5_vdpa.h53 struct vhost_iotlb *iotlb;
117 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb,
119 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb,
H A Dmr.c224 struct vhost_iotlb *iotlb) in map_direct_mr()
305 struct vhost_iotlb *iotlb) in add_direct_chain()
357 static int create_user_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in create_user_mr()
453 static int dup_iotlb(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *src) in dup_iotlb()
537 struct vhost_iotlb *iotlb, in _mlx5_vdpa_create_cvq_mr()
547 struct vhost_iotlb *iotlb, in _mlx5_vdpa_create_dvq_mr()
573 struct vhost_iotlb *iotlb, unsigned int asid) in _mlx5_vdpa_create_mr()
593 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_create_mr()
604 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map()
/openbmc/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.h68 struct vhost_iotlb *iommu;
H A Dvdpa_sim.c584 struct vhost_iotlb *iommu; in vdpasim_set_group_asid()
608 struct vhost_iotlb *iotlb) in vdpasim_set_map()
612 struct vhost_iotlb *iommu; in vdpasim_set_map()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c2681 struct vhost_iotlb *iotlb, unsigned int asid) in mlx5_vdpa_change_map()
2929 static int set_map_data(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in set_map_data()
2948 struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map()
/openbmc/linux/
H A DMAINTAINERS22887 F: include/linux/vhost_iotlb.h