/linux/include/linux/ |
A D | vhost_iotlb.h | 25 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 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags); 40 void vhost_iotlb_free(struct vhost_iotlb *iotlb); 41 void vhost_iotlb_reset(struct vhost_iotlb *iotlb); 44 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last); 48 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
|
A D | vringh.h | 48 struct vhost_iotlb *iotlb; 278 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb,
|
A D | vdpa.h | 299 int (*set_map)(struct vdpa_device *vdev, struct vhost_iotlb *iotlb);
|
/linux/drivers/vhost/ |
A D | iotlb.c | 28 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() 88 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range() 103 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_del_range() 120 struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags) in vhost_iotlb_alloc() 122 struct vhost_iotlb *iotlb = kzalloc(sizeof(*iotlb), GFP_KERNEL); in vhost_iotlb_alloc() 141 void vhost_iotlb_reset(struct vhost_iotlb *iotlb) in vhost_iotlb_reset() 151 void vhost_iotlb_free(struct vhost_iotlb *iotlb) in vhost_iotlb_free() 167 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_itree_first()
|
A D | vhost.h | 116 struct vhost_iotlb *umem; 117 struct vhost_iotlb *iotlb; 153 struct vhost_iotlb *umem; 154 struct vhost_iotlb *iotlb; 177 struct vhost_iotlb *vhost_dev_reset_owner_prepare(void); 178 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb); 227 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
|
A D | Makefile | 18 obj-$(CONFIG_VHOST_IOTLB) += vhost_iotlb.o 19 vhost_iotlb-y := iotlb.o
|
A D | vhost.c | 631 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() 751 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok() 790 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok() 1329 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok() 1423 struct vhost_iotlb *newumem, *oldumem; in vhost_set_memory() 1722 struct vhost_iotlb *niotlb, *oiotlb; in vhost_init_device_iotlb() 1870 struct vhost_iotlb *umem = vq->umem; in log_write_hva() 2042 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
|
A D | vdpa.c | 509 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_pa_unmap() 531 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_va_unmap() 814 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_process_iotlb_update()
|
A D | test.c | 228 struct vhost_iotlb *umem; in vhost_test_reset_owner()
|
A D | vringh.c | 1096 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate() 1294 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb, in vringh_set_iotlb()
|
A D | net.c | 1602 struct vhost_iotlb *umem; in vhost_net_reset_owner()
|
/linux/drivers/vdpa/vdpa_user/ |
A D | iova_domain.h | 34 struct vhost_iotlb *iotlb; 40 struct vhost_iotlb *iotlb); 43 struct vhost_iotlb *iotlb);
|
A D | iova_domain.c | 60 struct vhost_iotlb *iotlb) in vduse_domain_set_map() 90 struct vhost_iotlb *iotlb) in vduse_domain_clear_map()
|
A D | vduse_dev.c | 689 struct vhost_iotlb *iotlb) in vduse_vdpa_set_map()
|
/linux/drivers/vdpa/mlx5/core/ |
A D | mlx5_vdpa.h | 52 struct vhost_iotlb *iotlb; 105 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, 107 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb);
|
A D | mr.c | 224 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() 514 static int _mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *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() 556 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in mlx5_vdpa_handle_set_map()
|
/linux/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim.h | 60 struct vhost_iotlb *iommu;
|
A D | vdpa_sim.c | 531 struct vhost_iotlb *iotlb) in vdpasim_set_map()
|
/linux/drivers/vdpa/mlx5/net/ |
A D | mlx5_vnet.c | 2091 static int mlx5_vdpa_change_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_change_map() 2277 static int mlx5_vdpa_set_map(struct vdpa_device *vdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map()
|
/linux/ |
A D | MAINTAINERS | 20215 F: include/linux/vhost_iotlb.h
|