Home
last modified time | relevance | path

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

/linux-6.15/drivers/hv/
H A Dmshv_root_main.c216 *(u64 *)input_pg = partition->pt_id; in mshv_ioctl_passthru_hvcall()
409 input->partition_id = vp->vp_partition->pt_id; in mshv_vp_dispatch()
655 vp->vp_partition->pt_id, in mshv_vp_ioctl_get_set_state_pfn()
660 vp->vp_partition->pt_id, in mshv_vp_ioctl_get_set_state_pfn()
763 vp->vp_partition->pt_id, in mshv_vp_ioctl_get_set_state()
1799 hv_call_finalize_partition(partition->pt_id); in destroy_partition()
1828 hv_call_delete_partition(partition->pt_id); in destroy_partition()
1850 if (p->pt_id == partition_id) in mshv_partition_find()
1883 partition->pt_id); in add_partition()
1957 &partition->pt_id); in mshv_ioctl_create_partition()
[all …]
H A Dmshv_eventfd.c93 hv_call_clear_virtual_interrupt(partition->pt_id); in mshv_irqfd_resampler_ack()
214 hv_call_assert_virtual_interrupt(irqfd->irqfd_partn->pt_id, in mshv_assert_irq_slow()
727 ret = mshv_register_doorbell(pt->pt_id, ioeventfd_mmio_write, in mshv_assign_ioeventfd()
779 ioeventfd_release(p, pt->pt_id); in mshv_deassign_ioeventfd()
829 ioeventfd_release(p, pt->pt_id); in mshv_eventfd_release()
H A Dmshv_root.h61 dev_##level(__pt->pt_module_dev, vp_fmt(fmt), __pt->pt_id, \
98 u64 pt_id; member
137 dev_##level(__pt->pt_module_dev, pt_fmt(fmt), __pt->pt_id, \
H A Dhv_common.c306 u64 status, pt_id; in hv_get_partition_id() local
311 pt_id = output->partition_id; in hv_get_partition_id()
315 hv_current_partition_id = pt_id; in hv_get_partition_id()
H A Dmshv_synic.c272 if (idx == 0 || partition->pt_id != partition_id) { in handle_pair_message()
/linux-6.15/drivers/vfio/
H A Diommufd.c147 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_physical_attach_ioas() argument
158 IOMMU_NO_PASID, pt_id); in vfio_iommufd_physical_attach_ioas()
161 IOMMU_NO_PASID, pt_id); in vfio_iommufd_physical_attach_ioas()
182 u32 pasid, u32 *pt_id) in vfio_iommufd_physical_pasid_attach_ioas() argument
193 pasid, pt_id); in vfio_iommufd_physical_pasid_attach_ioas()
199 rc = iommufd_device_attach(vdev->iommufd_device, pasid, pt_id); in vfio_iommufd_physical_pasid_attach_ioas()
271 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_emulated_attach_ioas() argument
278 rc = iommufd_access_replace(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas()
280 rc = iommufd_access_attach(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas()
H A Ddevice_cdev.c170 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt()
200 &attach.pt_id); in vfio_df_ioctl_attach_pt()
202 ret = device->ops->attach_ioas(device, &attach.pt_id); in vfio_df_ioctl_attach_pt()
206 if (copy_to_user(&arg->pt_id, &attach.pt_id, sizeof(attach.pt_id))) { in vfio_df_ioctl_attach_pt()
/linux-6.15/tools/testing/selftests/iommu/
H A Diommufd_utils.h161 .pt_id = pt_id, in _test_cmd_mock_domain_replace()
170 *hwpt_id = cmd.mock_domain_replace.pt_id; in _test_cmd_mock_domain_replace()
179 pt_id, NULL))
189 .pt_id = pt_id, in _test_cmd_hwpt_alloc()
211 self->fd, device_id, pt_id, 0, flags, \
221 _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, 0, flags, \
232 _test_cmd_hwpt_alloc(self->fd, device_id, pt_id, fault_id, \
1069 __u32 pt_id) in _test_cmd_pasid_attach() argument
1077 .pt_id = pt_id, in _test_cmd_pasid_attach()
1095 __u32 pt_id) in _test_cmd_pasid_replace() argument
[all …]
/linux-6.15/include/linux/
H A Dvfio.h119 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);
122 u32 *pt_id);
146 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
149 u32 pasid, u32 *pt_id);
155 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
176 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
180 ((int (*)(struct vfio_device *vdev, u32 pasid, u32 *pt_id)) NULL)
189 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
H A Diommufd.h59 u32 *pt_id);
61 u32 *pt_id);
/linux-6.15/drivers/iommu/iommufd/
H A Diommufd_test.h96 __u32 pt_id; member
162 __u32 pt_id; member
167 __u32 pt_id; member
H A Ddevice.c813 struct iommufd_ioas *ioas, u32 *pt_id, in iommufd_device_auto_get_domain() argument
854 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
876 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
891 u32 *pt_id, attach_fn do_attach) in iommufd_device_change_pt() argument
896 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt()
916 pt_id, do_attach); in iommufd_device_change_pt()
952 u32 *pt_id) in iommufd_device_attach() argument
956 rc = iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_attach()
988 u32 *pt_id) in iommufd_device_replace() argument
990 return iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_replace()
H A Dselftest.c974 u32 pt_id = cmd->id; in iommufd_test_mock_domain() local
1003 rc = iommufd_device_attach(idev, IOMMU_NO_PASID, &pt_id); in iommufd_test_mock_domain()
1008 cmd->mock_domain.out_hwpt_id = pt_id; in iommufd_test_mock_domain()
1052 unsigned int device_id, u32 pt_id, in iommufd_test_mock_domain_replace() argument
1062 rc = iommufd_device_replace(sobj->idev.idev, IOMMU_NO_PASID, &pt_id); in iommufd_test_mock_domain_replace()
1066 cmd->mock_domain_replace.pt_id = pt_id; in iommufd_test_mock_domain_replace()
1792 &cmd->pasid_attach.pt_id); in iommufd_test_pasid_attach()
1817 &cmd->pasid_attach.pt_id); in iommufd_test_pasid_replace()
1869 ucmd, cmd->id, cmd->mock_domain_replace.pt_id, cmd); in iommufd_test()
H A Dhw_pagetable.c360 pt_obj = iommufd_get_object(ucmd->ictx, cmd->pt_id, IOMMUFD_OBJ_ANY); in iommufd_hwpt_alloc()
/linux-6.15/include/uapi/linux/
H A Diommufd.h509 __u32 pt_id; member
H A Dvfio.h961 __u32 pt_id; member
/linux-6.15/Documentation/userspace-api/
H A Diommufd.rst211 uAPI, provided an ioas_id via @pt_id to associate the new HWPT_PAGING to
219 nesting parent HWPT_PAGING via @pt_id to associate the new HWPT_NESTED object
234 of the object passed in via the @pt_id field of struct iommufd_hwpt_alloc.
/linux-6.15/Documentation/driver-api/
H A Dvfio.rst359 attach_data.pt_id = alloc_data.out_ioas_id;
412 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);