/linux-6.6.21/tools/testing/selftests/iommu/ |
D | iommufd_utils.h | 77 static int _test_cmd_mock_domain_replace(int fd, __u32 stdev_id, __u32 pt_id, in _test_cmd_mock_domain_replace() argument 85 .pt_id = pt_id, in _test_cmd_mock_domain_replace() 94 *hwpt_id = cmd.mock_domain_replace.pt_id; in _test_cmd_mock_domain_replace() 98 #define test_cmd_mock_domain_replace(stdev_id, pt_id) \ argument 99 ASSERT_EQ(0, _test_cmd_mock_domain_replace(self->fd, stdev_id, pt_id, \ 101 #define test_err_mock_domain_replace(_errno, stdev_id, pt_id) \ argument 103 pt_id, NULL)) 105 static int _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, in _test_cmd_hwpt_alloc() argument 111 .pt_id = pt_id, in _test_cmd_hwpt_alloc() 123 #define test_cmd_hwpt_alloc(device_id, pt_id, hwpt_id) \ argument [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/include/linux/ |
D | vfio.h | 108 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id); 132 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id); 137 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id); 158 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL) 167 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
|
D | iommufd.h | 25 int iommufd_device_attach(struct iommufd_device *idev, u32 *pt_id); 26 int iommufd_device_replace(struct iommufd_device *idev, u32 *pt_id);
|
/linux-6.6.21/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()
|
/linux-6.6.21/include/uapi/linux/ |
D | iommufd.h | 369 __u32 pt_id; member
|
D | vfio.h | 954 __u32 pt_id; member
|
/linux-6.6.21/Documentation/driver-api/ |
D | vfio.rst | 359 attach_data.pt_id = alloc_data.out_ioas_id; 412 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);
|