Searched refs:pt_id (Results 1 – 6 of 6) sorted by relevance
/drivers/vfio/ |
D | iommufd.c | 139 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_physical_attach_ioas() argument 149 rc = iommufd_device_replace(vdev->iommufd_device, pt_id); in vfio_iommufd_physical_attach_ioas() 151 rc = iommufd_device_attach(vdev->iommufd_device, pt_id); in vfio_iommufd_physical_attach_ioas() 219 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_emulated_attach_ioas() argument 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()
|
D | device_cdev.c | 163 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt() 172 ret = device->ops->attach_ioas(device, &attach.pt_id); in vfio_df_ioctl_attach_pt() 176 if (copy_to_user(&arg->pt_id, &attach.pt_id, sizeof(attach.pt_id))) { in vfio_df_ioctl_attach_pt()
|
/drivers/iommu/iommufd/ |
D | device.c | 498 struct iommufd_ioas *ioas, u32 *pt_id, in iommufd_device_auto_get_domain() argument 537 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain() 558 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain() 571 static int iommufd_device_change_pt(struct iommufd_device *idev, u32 *pt_id, in iommufd_device_change_pt() argument 577 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt() 595 destroy_hwpt = iommufd_device_auto_get_domain(idev, ioas, pt_id, in iommufd_device_change_pt() 629 int iommufd_device_attach(struct iommufd_device *idev, u32 *pt_id) in iommufd_device_attach() argument 633 rc = iommufd_device_change_pt(idev, pt_id, &iommufd_device_do_attach); in iommufd_device_attach() 661 int iommufd_device_replace(struct iommufd_device *idev, u32 *pt_id) in iommufd_device_replace() argument 663 return iommufd_device_change_pt(idev, pt_id, in iommufd_device_replace()
|
D | selftest.c | 409 u32 pt_id = cmd->id; in iommufd_test_mock_domain() local 434 rc = iommufd_device_attach(idev, &pt_id); in iommufd_test_mock_domain() 439 cmd->mock_domain.out_hwpt_id = pt_id; in iommufd_test_mock_domain() 461 unsigned int device_id, u32 pt_id, in iommufd_test_mock_domain_replace() argument 483 rc = iommufd_device_replace(sobj->idev.idev, &pt_id); in iommufd_test_mock_domain_replace() 487 cmd->mock_domain_replace.pt_id = pt_id; in iommufd_test_mock_domain_replace() 1006 ucmd, cmd->id, cmd->mock_domain_replace.pt_id, cmd); in iommufd_test()
|
D | iommufd_test.h | 60 __u32 pt_id; member
|
D | hw_pagetable.c | 151 ioas = iommufd_get_ioas(ucmd->ictx, cmd->pt_id); in iommufd_hwpt_alloc()
|