Searched refs:hwpt (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/iommu/iommufd/ |
| H A D | device.c | 22 struct iommufd_hw_pagetable *hwpt; member 449 static int iommufd_hwpt_pasid_compat(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_pasid_compat() argument 460 if (!hwpt->pasid_compat && in iommufd_hwpt_pasid_compat() 467 if (!hwpt->pasid_compat) in iommufd_hwpt_pasid_compat() 471 if (attach && attach->hwpt && !attach->hwpt->pasid_compat) in iommufd_hwpt_pasid_compat() 478 static bool iommufd_hwpt_compatible_device(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_compatible_device() argument 483 if (!hwpt->fault || !dev_is_pci(idev->dev)) in iommufd_hwpt_compatible_device() 497 static int iommufd_hwpt_attach_device(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_attach_device() argument 504 if (!iommufd_hwpt_compatible_device(hwpt, idev)) in iommufd_hwpt_attach_device() 507 rc = iommufd_hwpt_pasid_compat(hwpt, idev, pasid); in iommufd_hwpt_attach_device() [all …]
|
| H A D | selftest.c | 972 struct iommufd_hw_pagetable *hwpt; in get_md_pagetable() local 974 hwpt = __get_md_pagetable(ucmd, mockpt_id, IOMMUFD_OBJ_HWPT_PAGING); in get_md_pagetable() 975 if (IS_ERR(hwpt)) in get_md_pagetable() 976 return hwpt; in get_md_pagetable() 977 if (hwpt->domain->type != IOMMU_DOMAIN_UNMANAGED || in get_md_pagetable() 978 hwpt->domain->owner != &mock_ops) { in get_md_pagetable() 979 iommufd_put_object(ucmd->ictx, &hwpt->obj); in get_md_pagetable() 982 *mock = to_mock_domain(hwpt->domain); in get_md_pagetable() 983 return hwpt; in get_md_pagetable() 990 struct iommufd_hw_pagetable *hwpt; in get_md_pagetable_nested() local [all …]
|
| H A D | viommu.c | 13 refcount_dec(&viommu->hwpt->common.obj.users); in iommufd_viommu_destroy() 81 viommu->hwpt = hwpt_paging; in iommufd_viommu_alloc_ioctl() 82 refcount_inc(&viommu->hwpt->common.obj.users); in iommufd_viommu_alloc_ioctl() 325 rc = iommufd_access_attach_internal(access, viommu->hwpt->ioas); in iommufd_hw_queue_alloc_phys()
|
| H A D | eventq.c | 19 void iommufd_auto_response_faults(struct iommufd_hw_pagetable *hwpt, in iommufd_auto_response_faults() argument 22 struct iommufd_fault *fault = hwpt->fault; in iommufd_auto_response_faults() 457 struct iommufd_hw_pagetable *hwpt; in iommufd_fault_iopf_handler() local 460 hwpt = group->attach_handle->domain->iommufd_hwpt; in iommufd_fault_iopf_handler() 461 fault = hwpt->fault; in iommufd_fault_iopf_handler()
|
| H A D | main.c | 420 struct iommu_hwpt_alloc hwpt; member
|