Searched refs:iommufd_access (Results 1 - 8 of 8) sorted by relevance

/linux-master/include/linux/
H A Diommufd.h17 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 *acces
[all...]
H A Dvfio.h23 struct iommufd_access;
65 struct iommufd_access *iommufd_access; member in struct:vfio_device
/linux-master/drivers/vfio/
H A Diommufd.c195 struct iommufd_access *user;
202 vdev->iommufd_access = user;
211 if (vdev->iommufd_access) {
212 iommufd_access_destroy(vdev->iommufd_access);
214 vdev->iommufd_access = NULL;
226 rc = iommufd_access_replace(vdev->iommufd_access, *pt_id);
228 rc = iommufd_access_attach(vdev->iommufd_access, *pt_id);
240 if (WARN_ON(!vdev->iommufd_access) ||
244 iommufd_access_detach(vdev->iommufd_access);
H A Dvfio_main.c1556 if (device->iommufd_access) {
1568 device->iommufd_access, ALIGN_DOWN(iova, PAGE_SIZE),
1597 if (device->iommufd_access) {
1600 iommufd_access_unpin_pages(device->iommufd_access,
1635 if (device->iommufd_access) {
1646 return iommufd_access_rw(device->iommufd_access, iova, data,
/linux-master/drivers/iommu/iommufd/
H A Ddevice.c740 static int iommufd_access_change_ioas(struct iommufd_access *access,
787 static int iommufd_access_change_ioas_id(struct iommufd_access *access, u32 id)
801 struct iommufd_access *access =
802 container_of(obj, struct iommufd_access, obj);
812 * iommufd_access_create - Create an iommufd_access
818 * An iommufd_access allows a driver to read/write to the IOAS without using
824 struct iommufd_access *
828 struct iommufd_access *access;
858 * iommufd_access_destroy - Destroy an iommufd_access
863 void iommufd_access_destroy(struct iommufd_access *acces
[all...]
H A Diommufd_private.h411 struct iommufd_access { struct
423 int iopt_add_access(struct io_pagetable *iopt, struct iommufd_access *access);
425 struct iommufd_access *access,
H A Dio_pagetable.c1001 struct iommufd_access *access;
1093 struct iommufd_access *access;
1331 int iopt_add_access(struct io_pagetable *iopt, struct iommufd_access *access)
1358 struct iommufd_access *access,
H A Dselftest.c91 static unsigned long iommufd_test_syz_conv_iova(struct iommufd_access *access,
935 struct iommufd_access *access;
1070 struct iommufd_access *access;

Completed in 271 milliseconds