Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dvhost_iotlb.h24 struct vhost_iotlb { struct
32 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last, argument
34 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last);
36 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags);
37 void vhost_iotlb_free(struct vhost_iotlb *iotlb);
38 void vhost_iotlb_reset(struct vhost_iotlb *iotlb);
41 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last);
45 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
Dvringh.h47 struct vhost_iotlb *iotlb;
261 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb);
Dvdpa.h236 int (*set_map)(struct vdpa_device *vdev, struct vhost_iotlb *iotlb);
/Linux-v5.10/drivers/vhost/
Diotlb.c28 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb, in vhost_iotlb_map_free()
49 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range()
91 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_del_range()
108 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags) in vhost_iotlb_alloc()
110 struct vhost_iotlb *iotlb = kzalloc(sizeof(*iotlb), GFP_KERNEL); in vhost_iotlb_alloc()
129 void vhost_iotlb_reset(struct vhost_iotlb *iotlb) in vhost_iotlb_reset()
139 void vhost_iotlb_free(struct vhost_iotlb *iotlb) in vhost_iotlb_free()
155 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_itree_first()
Dvhost.h117 struct vhost_iotlb *umem;
118 struct vhost_iotlb *iotlb;
154 struct vhost_iotlb *umem;
155 struct vhost_iotlb *iotlb;
178 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void);
179 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb);
228 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
DMakefile18 obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o
19 vhost_iotlb-y := iotlb.o
Dvhost.c631 static struct vhost_iotlb *iotlb_alloc(void) in iotlb_alloc()
637 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void) in vhost_dev_reset_owner_prepare()
644 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *umem) in vhost_dev_reset_owner()
745 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok()
784 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok()
1323 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1417 struct vhost_iotlb *newumem, *oldumem; in vhost_set_memory()
1716 struct vhost_iotlb *niotlb, *oiotlb; in vhost_init_device_iotlb()
1864 struct vhost_iotlb *umem = vq->umem; in log_write_hva()
2036 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
Dtest.c228 struct vhost_iotlb *umem; in vhost_test_reset_owner()
Dvdpa.c507 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_iotlb_unmap()
610 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_process_iotlb_update()
Dvringh.c1072 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate()
1265 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb) in vringh_set_iotlb()
Dnet.c1593 struct vhost_iotlb *umem; in vhost_net_reset_owner()
/Linux-v5.10/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h74 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb,
76 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb);
Dmr.c227 struct vhost_iotlb *iotlb) in map_direct_mr()
306 struct vhost_iotlb *iotlb) in add_direct_chain()
360 static int _mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in _mlx5_vdpa_create_mr()
426 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_create_mr()
459 static bool map_empty(struct vhost_iotlb *iotlb) in map_empty()
464 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map()
/Linux-v5.10/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c78 struct vhost_iotlb *iommu;
260 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_map_page()
285 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_unmap_page()
298 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_alloc_coherent()
328 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_free_coherent()
603 struct vhost_iotlb *iotlb) in vdpasim_set_map()
/Linux-v5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1646 static int mlx5_vdpa_change_map(struct mlx5_vdpa_net *ndev, struct vhost_iotlb *iotlb) in mlx5_vdpa_change_map()
1802 static int mlx5_vdpa_set_map(struct vdpa_device *vdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map()
/Linux-v5.10/
DMAINTAINERS18636 F: include/linux/vhost_iotlb.h