Searched refs:iommufd_access (Results 1 – 8 of 8) sorted by relevance
/linux/include/linux/ |
H A D | iommufd.h | 16 struct iommufd_access; 47 struct iommufd_access * 50 void iommufd_access_destroy(struct iommufd_access *access); 51 int iommufd_access_attach(struct iommufd_access *access, u32 ioas_id); 52 int iommufd_access_replace(struct iommufd_access *access, u32 ioas_id); 53 void iommufd_access_detach(struct iommufd_access *access); 63 int iommufd_access_pin_pages(struct iommufd_access *access, unsigned long iova, 66 void iommufd_access_unpin_pages(struct iommufd_access *access, 68 int iommufd_access_rw(struct iommufd_access *access, unsigned long iova, 83 static inline int iommufd_access_pin_pages(struct iommufd_access *access, in iommufd_access_pin_pages() [all …]
|
H A D | vfio.h | 23 struct iommufd_access; 65 struct iommufd_access *iommufd_access; member
|
/linux/drivers/vfio/ |
H A D | iommufd.c | 195 struct iommufd_access *user; in vfio_iommufd_emulated_bind() 202 vdev->iommufd_access = user; in vfio_iommufd_emulated_bind() 211 if (vdev->iommufd_access) { in vfio_iommufd_emulated_unbind() 212 iommufd_access_destroy(vdev->iommufd_access); in vfio_iommufd_emulated_unbind() 214 vdev->iommufd_access = NULL; in vfio_iommufd_emulated_unbind() 226 rc = iommufd_access_replace(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas() 228 rc = iommufd_access_attach(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas() 240 if (WARN_ON(!vdev->iommufd_access) || in vfio_iommufd_emulated_detach_ioas() 244 iommufd_access_detach(vdev->iommufd_access); in vfio_iommufd_emulated_detach_ioas()
|
/linux/drivers/iommu/iommufd/ |
H A D | device.c | 741 static int iommufd_access_change_ioas(struct iommufd_access *access, in iommufd_access_change_ioas() 788 static int iommufd_access_change_ioas_id(struct iommufd_access *access, u32 id) in iommufd_access_change_ioas_id() 802 struct iommufd_access *access = in iommufd_access_destroy_object() 803 container_of(obj, struct iommufd_access, obj); in iommufd_access_destroy_object() 825 struct iommufd_access * 829 struct iommufd_access *access; in iommufd_access_create() 864 void iommufd_access_destroy(struct iommufd_access *access) in iommufd_access_destroy() 870 void iommufd_access_detach(struct iommufd_access *access) in iommufd_access_detach() 882 int iommufd_access_attach(struct iommufd_access *access, u32 ioas_id) in iommufd_access_attach() 898 int iommufd_access_replace(struct iommufd_access *access, u32 ioas_id) in iommufd_access_replace() [all …]
|
H A D | iommufd_private.h | 437 struct iommufd_access { struct 449 int iopt_add_access(struct io_pagetable *iopt, struct iommufd_access *access); argument 451 struct iommufd_access *access,
|
H A D | io_pagetable.c | 1009 struct iommufd_access *access; in iopt_check_iova_alignment() 1101 struct iommufd_access *access; in iopt_calculate_iova_alignment() 1339 int iopt_add_access(struct io_pagetable *iopt, struct iommufd_access *access) in iopt_add_access() 1366 struct iommufd_access *access, in iopt_remove_access()
|
H A D | selftest.c | 92 static unsigned long iommufd_test_syz_conv_iova(struct iommufd_access *access, in iommufd_test_syz_conv_iova() 965 struct iommufd_access *access; 1100 struct iommufd_access *access; in iommufd_test_create_access()
|
/linux/Documentation/userspace-api/ |
H A D | iommufd.rst | 138 iommufd_access object that is similar to the domain binding a physical device 155 xarray if they have been pinned through an iommufd_access.
|