Home
last modified time | relevance | path

Searched refs:pt_id (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/tools/testing/selftests/iommu/
Diommufd_utils.h77 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/
Diommufd.c139 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()
Ddevice_cdev.c163 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/
Dvfio.h108 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)
Diommufd.h25 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/
Ddevice.c498 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()
Dselftest.c409 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()
Diommufd_test.h60 __u32 pt_id; member
Dhw_pagetable.c151 ioas = iommufd_get_ioas(ucmd->ictx, cmd->pt_id); in iommufd_hwpt_alloc()
/linux-6.6.21/include/uapi/linux/
Diommufd.h369 __u32 pt_id; member
Dvfio.h954 __u32 pt_id; member
/linux-6.6.21/Documentation/driver-api/
Dvfio.rst359 attach_data.pt_id = alloc_data.out_ioas_id;
412 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);