Home
last modified time | relevance | path

Searched refs:hwpt (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/iommu/iommufd/
H A Ddevice.c22 struct iommufd_hw_pagetable *hwpt; member
515 static int iommufd_hwpt_pasid_compat(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_pasid_compat() argument
526 if (!hwpt->pasid_compat && in iommufd_hwpt_pasid_compat()
533 if (!hwpt->pasid_compat) in iommufd_hwpt_pasid_compat()
537 if (attach && attach->hwpt && !attach->hwpt->pasid_compat) in iommufd_hwpt_pasid_compat()
544 static bool iommufd_hwpt_compatible_device(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_compatible_device() argument
549 if (!hwpt->fault || !dev_is_pci(idev->dev)) in iommufd_hwpt_compatible_device()
563 static int iommufd_hwpt_attach_device(struct iommufd_hw_pagetable *hwpt, in iommufd_hwpt_attach_device() argument
570 if (!iommufd_hwpt_compatible_device(hwpt, idev)) in iommufd_hwpt_attach_device()
573 rc = iommufd_hwpt_pasid_compat(hwpt, idev, pasid); in iommufd_hwpt_attach_device()
[all …]
H A Dviommu.c13 refcount_dec(&viommu->hwpt->common.obj.users); in iommufd_viommu_destroy()
87 viommu->hwpt = hwpt_paging; in iommufd_viommu_alloc_ioctl()
88 refcount_inc(&viommu->hwpt->common.obj.users); in iommufd_viommu_alloc_ioctl()
343 rc = iommufd_access_attach_internal(access, viommu->hwpt->ioas); in iommufd_hw_queue_alloc_phys()
H A Deventq.c19 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()
481 struct iommufd_hw_pagetable *hwpt; in iommufd_fault_iopf_handler() local
484 hwpt = group->attach_handle->domain->iommufd_hwpt; in iommufd_fault_iopf_handler()
485 fault = hwpt->fault; in iommufd_fault_iopf_handler()