Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h152 static int _test_cmd_mock_domain_replace(int fd, __u32 stdev_id, __u32 pt_id,
160 .pt_id = pt_id, in _test_cmd_hwpt_alloc()
169 *hwpt_id = cmd.mock_domain_replace.pt_id; in _test_cmd_hwpt_alloc()
173 #define test_cmd_mock_domain_replace(stdev_id, pt_id) \ in _test_cmd_hwpt_alloc()
174 ASSERT_EQ(0, _test_cmd_mock_domain_replace(self->fd, stdev_id, pt_id, \ in _test_cmd_hwpt_alloc()
176 #define test_err_mock_domain_replace(_errno, stdev_id, pt_id) \ in _test_cmd_hwpt_alloc()
178 pt_id, NULL)) in _test_cmd_hwpt_alloc()
180 static int _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, __u32 ft_id, in _test_cmd_hwpt_alloc()
188 .pt_id
130 _test_cmd_mock_domain_replace(int fd,__u32 stdev_id,__u32 pt_id,__u32 * hwpt_id) _test_cmd_mock_domain_replace() argument
151 test_cmd_mock_domain_replace(stdev_id,pt_id) global() argument
154 test_err_mock_domain_replace(_errno,stdev_id,pt_id) global() argument
158 _test_cmd_hwpt_alloc(int fd,__u32 device_id,__u32 pt_id,__u32 ft_id,__u32 flags,__u32 * hwpt_id,__u32 data_type,void * data,size_t data_len) _test_cmd_hwpt_alloc() argument
182 test_cmd_hwpt_alloc(device_id,pt_id,flags,hwpt_id) global() argument
186 test_err_hwpt_alloc(_errno,device_id,pt_id,flags,hwpt_id) global() argument
191 test_cmd_hwpt_alloc_nested(device_id,pt_id,flags,hwpt_id,data_type,data,data_len) global() argument
195 test_err_hwpt_alloc_nested(_errno,device_id,pt_id,flags,hwpt_id,data_type,data,data_len) global() argument
201 test_cmd_hwpt_alloc_iopf(device_id,pt_id,fault_id,flags,hwpt_id,data_type,data,data_len) global() argument
206 test_err_hwpt_alloc_iopf(_errno,device_id,pt_id,fault_id,flags,hwpt_id,data_type,data,data_len) global() argument
[all...]
/linux/drivers/vfio/
H A 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()
/linux/include/linux/
H A Dvfio.h116 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);
140 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
145 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
166 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
175 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
H A Diommufd.h55 int iommufd_device_attach(struct iommufd_device *idev, u32 *pt_id);
56 int iommufd_device_replace(struct iommufd_device *idev, u32 *pt_id);
/linux/drivers/iommu/iommufd/
H A Ddevice.c545 struct iommufd_ioas *ioas, u32 *pt_id, in iommufd_device_auto_get_domain() argument
586 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
608 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
621 static int iommufd_device_change_pt(struct iommufd_device *idev, u32 *pt_id, in iommufd_device_change_pt() argument
627 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt()
646 destroy_hwpt = iommufd_device_auto_get_domain(idev, ioas, pt_id, in iommufd_device_change_pt()
680 int iommufd_device_attach(struct iommufd_device *idev, u32 *pt_id) in iommufd_device_attach() argument
684 rc = iommufd_device_change_pt(idev, pt_id, &iommufd_device_do_attach); in iommufd_device_attach()
712 int iommufd_device_replace(struct iommufd_device *idev, u32 *pt_id) in iommufd_device_replace() argument
714 return iommufd_device_change_pt(idev, pt_id, in iommufd_device_replace()
H A Diommufd_test.h87 __u32 pt_id; member
/linux/include/uapi/linux/
H A Diommufd.h505 __u32 pt_id; member