Home
last modified time | relevance | path

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

/drivers/vhost/
A Diotlb.c34 iotlb->nmaps--; in vhost_iotlb_map_free()
75 if (iotlb->limit && in vhost_iotlb_add_range_ctx()
76 iotlb->nmaps == iotlb->limit && in vhost_iotlb_add_range_ctx()
93 iotlb->nmaps++; in vhost_iotlb_add_range_ctx()
138 iotlb->limit = limit; in vhost_iotlb_init()
139 iotlb->nmaps = 0; in vhost_iotlb_init()
154 struct vhost_iotlb *iotlb = kzalloc(sizeof(*iotlb), GFP_KERNEL); in vhost_iotlb_alloc() local
156 if (!iotlb) in vhost_iotlb_alloc()
161 return iotlb; in vhost_iotlb_alloc()
181 if (iotlb) { in vhost_iotlb_free()
[all …]
A Dvdpa.c41 struct vhost_iotlb iotlb; member
76 vhost_vdpa_as, iotlb); in iotlb_to_asid()
99 return &as->iotlb; in asid_to_iotlb()
117 vhost_iotlb_init(&as->iotlb, 0, 0); in vhost_vdpa_alloc_as()
996 u32 asid = iotlb_to_asid(iotlb); in vhost_vdpa_map()
1026 struct vhost_iotlb *iotlb, in vhost_vdpa_unmap() argument
1031 u32 asid = iotlb_to_asid(iotlb); in vhost_vdpa_unmap()
1043 struct vhost_iotlb *iotlb, in vhost_vdpa_va_map() argument
1266 iotlb = &as->iotlb; in vhost_vdpa_process_iotlb_msg()
1268 iotlb = asid_to_iotlb(v, asid); in vhost_vdpa_process_iotlb_msg()
[all …]
A Dvhost.c394 vq->iotlb = NULL; in vhost_vq_reset()
599 dev->iotlb = NULL; in vhost_dev_init()
1328 if (!vq->iotlb) in vhost_copy_to_user()
1363 if (!vq->iotlb) in vhost_copy_from_user()
1856 if (vq->iotlb) in vq_access_ok()
1913 if (!vq->iotlb) in vq_meta_prefetch()
1941 if (vq->iotlb) in vq_log_used_access_ok()
2504 if (!vq->iotlb) in log_used()
2543 if (vq->iotlb) { in vhost_log_write()
2621 if (!vq->iotlb && in vhost_vq_init_access()
[all …]
A Dvhost.h149 struct vhost_iotlb *iotlb; member
184 struct vhost_iotlb *iotlb; member
218 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb);
273 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
A DMakefile19 vhost_iotlb-y := iotlb.o
A Dvringh.c1044 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate() local
1060 map = vhost_iotlb_itree_first(iotlb, addr, last); in iotlb_translate()
1373 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb, in vringh_set_iotlb() argument
1376 vrh->iotlb = iotlb; in vringh_set_iotlb()
A Dscsi.c411 WARN_ON_ONCE(unlikely(vq->iotlb)); in vhost_scsi_log_write()
/drivers/vdpa/mlx5/core/
A Dmr.c368 struct vhost_iotlb *iotlb) in map_direct_mr() argument
500 struct vhost_iotlb *iotlb) in create_user_mr() argument
652 vhost_iotlb_free(mr->iotlb); in _mlx5_vdpa_destroy_mr()
776 struct vhost_iotlb *iotlb) in _mlx5_vdpa_create_mr() argument
780 if (iotlb) in _mlx5_vdpa_create_mr()
789 if (!mr->iotlb) { in _mlx5_vdpa_create_mr()
794 err = dup_iotlb(mr->iotlb, iotlb); in _mlx5_vdpa_create_mr()
803 vhost_iotlb_free(mr->iotlb); in _mlx5_vdpa_create_mr()
806 if (iotlb) in _mlx5_vdpa_create_mr()
841 struct vhost_iotlb *iotlb, in mlx5_vdpa_update_cvq_iotlb() argument
[all …]
A Dmlx5_vdpa.h35 struct vhost_iotlb *iotlb; member
54 struct vhost_iotlb *iotlb; member
150 struct vhost_iotlb *iotlb);
162 struct vhost_iotlb *iotlb,
A Dresources.c232 mvdev->cvq.iotlb = vhost_iotlb_alloc(0, 0); in init_ctrl_vq()
233 if (!mvdev->cvq.iotlb) in init_ctrl_vq()
237 vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock); in init_ctrl_vq()
244 vhost_iotlb_free(mvdev->cvq.iotlb); in cleanup_ctrl_vq()
/drivers/vdpa/vdpa_user/
A Diova_domain.c35 ret = vhost_iotlb_add_range_ctx(domain->iotlb, start, last, in vduse_iotlb_add_range()
55 vhost_iotlb_map_free(domain->iotlb, map); in vduse_iotlb_del_range()
60 struct vhost_iotlb *iotlb) in vduse_domain_set_map() argument
70 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in vduse_domain_set_map()
90 struct vhost_iotlb *iotlb) in vduse_domain_clear_map() argument
202 map = vhost_iotlb_itree_first(domain->iotlb, start, last); in vduse_domain_get_coherent_page()
502 vhost_iotlb_map_free(domain->iotlb, map); in vduse_domain_free_coherent()
557 vhost_iotlb_free(domain->iotlb); in vduse_domain_release()
592 domain->iotlb = vhost_iotlb_alloc(0, 0); in vduse_domain_create()
593 if (!domain->iotlb) in vduse_domain_create()
[all …]
A Diova_domain.h35 struct vhost_iotlb *iotlb; member
43 struct vhost_iotlb *iotlb);
46 struct vhost_iotlb *iotlb);
A Dvduse_dev.c761 struct vhost_iotlb *iotlb) in vduse_vdpa_set_map() argument
766 ret = vduse_domain_set_map(dev->domain, iotlb); in vduse_vdpa_set_map()
772 vduse_domain_clear_map(dev->domain, iotlb); in vduse_vdpa_set_map()
1177 map = vhost_iotlb_itree_first(dev->domain->iotlb, in vduse_dev_ioctl()
1386 map = vhost_iotlb_itree_first(dev->domain->iotlb, in vduse_dev_ioctl()
/drivers/iommu/iommufd/
A Diommufd_test.h144 __u32 iotlb; member
207 __u32 iotlb; member
A Dselftest.c141 u32 iotlb[MOCK_NESTED_DOMAIN_IOTLB_NUM]; member
426 IOMMU_HWPT_DATA_SELFTEST, iotlb); in __mock_domain_alloc_nested()
436 mock_nested->iotlb[i] = user_cfg.iotlb; in __mock_domain_alloc_nested()
1009 mock_nested->iotlb[j] = 0; in mock_domain_cache_invalidate_user()
1011 mock_nested->iotlb[inv.iotlb_id] = 0; in mock_domain_cache_invalidate_user()
1364 unsigned int iotlb_id, u32 iotlb) in iommufd_test_md_check_iotlb() argument
1377 mock_nested->iotlb[iotlb_id] != iotlb) in iommufd_test_md_check_iotlb()
2061 cmd->check_iotlb.iotlb); in iommufd_test()
/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c630 struct vhost_iotlb *iotlb) in vdpasim_set_map() argument
647 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in vdpasim_set_map()
/drivers/vdpa/mlx5/net/
A Dmlx5_vnet.c3335 static int set_map_data(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, in set_map_data() argument
3344 if (vhost_iotlb_itree_first(iotlb, 0, U64_MAX)) { in set_map_data()
3345 new_mr = mlx5_vdpa_create_mr(mvdev, iotlb); in set_map_data()
3366 return mlx5_vdpa_update_cvq_iotlb(mvdev, iotlb, asid); in set_map_data()
3374 struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map() argument
3381 err = set_map_data(mvdev, iotlb, asid); in mlx5_vdpa_set_map()
3649 err = mlx5_vdpa_update_cvq_iotlb(mvdev, mvdev->mres.mr[asid]->iotlb, asid); in mlx5_set_group_asid()

Completed in 63 milliseconds