Home
last modified time | relevance | path

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

/linux/drivers/hv/
H A Dmshv_root_main.c152 static bool mshv_passthru_hvcall_allowed(u16 code, u64 pt_id) in mshv_passthru_hvcall_allowed() argument
158 if (pt_id == HV_PARTITION_ID_SELF) { in mshv_passthru_hvcall_allowed()
183 u64 pt_id = partition ? partition->pt_id : HV_PARTITION_ID_SELF; in mshv_ioctl_passthru_hvcall() local
195 if (!mshv_passthru_hvcall_allowed(args.code, pt_id)) in mshv_ioctl_passthru_hvcall()
229 *(u64 *)input_pg = pt_id; in mshv_ioctl_passthru_hvcall()
257 ret = hv_deposit_memory(pt_id, status); in mshv_ioctl_passthru_hvcall()
330 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
337 ret = mshv_get_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
370 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_run_vp_with_hyp_scheduler()
422 input->partition_id = vp->vp_partition->pt_id; in mshv_vp_dispatch()
[all …]
H A Dmshv_eventfd.c94 hv_call_clear_virtual_interrupt(partition->pt_id); in mshv_irqfd_resampler_ack()
226 hv_call_assert_virtual_interrupt(irqfd->irqfd_partn->pt_id, in mshv_assert_irq_slow()
744 ret = mshv_register_doorbell(pt->pt_id, ioeventfd_mmio_write, in mshv_assign_ioeventfd()
748 trace_mshv_assign_ioeventfd(pt->pt_id, p->iovntfd_addr, in mshv_assign_ioeventfd()
802 trace_mshv_deassign_ioeventfd(pt->pt_id, p->iovntfd_addr, in mshv_deassign_ioeventfd()
810 ioeventfd_release(p, pt->pt_id); in mshv_deassign_ioeventfd()
860 ioeventfd_release(p, pt->pt_id); in mshv_eventfd_release()
H A Dmshv_root.h66 dev_##level(__pt->pt_module_dev, vp_fmt(fmt), __pt->pt_id, \
108 u64 pt_id; member
153 dev_##level(__pt->pt_module_dev, pt_fmt(fmt), __pt->pt_id, \
H A Dmshv_irq.c75 trace_mshv_update_routing_table(partition->pt_id, in mshv_update_routing_table()
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h162 static int _test_cmd_mock_domain_replace(int fd, __u32 stdev_id, __u32 pt_id, in _test_cmd_mock_domain_replace() argument
170 .pt_id = pt_id, in _test_cmd_mock_domain_replace()
179 *hwpt_id = cmd.mock_domain_replace.pt_id; in _test_cmd_mock_domain_replace()
183 #define test_cmd_mock_domain_replace(stdev_id, pt_id) \ argument
184 ASSERT_EQ(0, _test_cmd_mock_domain_replace(self->fd, stdev_id, pt_id, \
186 #define test_err_mock_domain_replace(_errno, stdev_id, pt_id) \ argument
188 pt_id, NULL))
190 static int _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, __u32 ft_id, in _test_cmd_hwpt_alloc() argument
198 .pt_id in _test_cmd_hwpt_alloc()
214 test_cmd_hwpt_alloc(device_id,pt_id,flags,hwpt_id) global() argument
218 test_cmd_hwpt_alloc_iommupt(device_id,pt_id,flags,iommupt_type,hwpt_id) global() argument
230 test_err_hwpt_alloc(_errno,device_id,pt_id,flags,hwpt_id) global() argument
235 test_cmd_hwpt_alloc_nested(device_id,pt_id,flags,hwpt_id,data_type,data,data_len) global() argument
239 test_err_hwpt_alloc_nested(_errno,device_id,pt_id,flags,hwpt_id,data_type,data,data_len) global() argument
245 test_cmd_hwpt_alloc_iopf(device_id,pt_id,fault_id,flags,hwpt_id,data_type,data,data_len) global() argument
250 test_err_hwpt_alloc_iopf(_errno,device_id,pt_id,fault_id,flags,hwpt_id,data_type,data,data_len) global() argument
1175 _test_cmd_pasid_attach(int fd,__u32 stdev_id,__u32 pasid,__u32 pt_id) _test_cmd_pasid_attach() argument
1201 _test_cmd_pasid_replace(int fd,__u32 stdev_id,__u32 pasid,__u32 pt_id) _test_cmd_pasid_replace() argument
[all...]
/linux/tools/testing/selftests/vfio/
H A Dvfio_iommufd_setup_test.c44 static int vfio_device_attach_iommufd_pt_ioctl(int cdev_fd, u32 pt_id) in vfio_device_attach_iommufd_pt_ioctl() argument
48 .pt_id = pt_id, in vfio_device_attach_iommufd_pt_ioctl()
/linux/drivers/iommu/iommufd/
H A Ddevice.c941 struct iommufd_ioas *ioas, u32 *pt_id, in iommufd_device_auto_get_domain() argument
982 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
1004 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
1019 u32 *pt_id, attach_fn do_attach) in iommufd_device_change_pt() argument
1024 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt()
1044 pt_id, do_attach); in iommufd_device_change_pt()
1080 u32 *pt_id) in iommufd_device_attach() argument
1084 rc = iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_attach()
1116 u32 *pt_id) in iommufd_device_replace() argument
1118 return iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_replace()
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c440 static void vfio_device_attach_iommufd_pt(int device_fd, u32 pt_id) in vfio_device_attach_iommufd_pt() argument
444 .pt_id = pt_id, in vfio_device_attach_iommufd_pt()
/linux/Documentation/userspace-api/
H A Diommufd.rst222 uAPI, provided an ioas_id via @pt_id to associate the new HWPT_PAGING to
230 nesting parent HWPT_PAGING via @pt_id to associate the new HWPT_NESTED object
245 of the object passed in via the @pt_id field of struct iommufd_hwpt_alloc.
/linux/include/uapi/linux/
H A Dvfio.h976 __u32 pt_id; member