Home
last modified time | relevance | path

Searched refs:hwpt_paging (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iommu/iommufd/
H A Ddevice.c437 struct iommufd_hwpt_paging *hwpt_paging) in iommufd_group_setup_msi() argument
456 rc = iommufd_sw_msi_install(ictx, hwpt_paging, cur); in iommufd_group_setup_msi()
465 struct iommufd_hwpt_paging *hwpt_paging) in iommufd_group_setup_msi() argument
480 struct iommufd_hwpt_paging *hwpt_paging) in iommufd_device_attach_reserved_iova() argument
487 rc = iopt_table_enforce_dev_resv_regions(&hwpt_paging->ioas->iopt, in iommufd_device_attach_reserved_iova()
494 rc = iommufd_group_setup_msi(igroup, hwpt_paging); in iommufd_device_attach_reserved_iova()
496 iopt_remove_reserved_iova(&hwpt_paging->ioas->iopt, in iommufd_device_attach_reserved_iova()
680 struct iommufd_hwpt_paging *hwpt_paging = find_hwpt_paging(hwpt); in iommufd_hw_pagetable_attach() local
681 bool attach_resv = hwpt_paging && pasid == IOMMU_NO_PASID && in iommufd_hw_pagetable_attach()
721 rc = iommufd_device_attach_reserved_iova(idev, hwpt_paging); in iommufd_hw_pagetable_attach()
[all …]
H A Dviommu.c25 struct iommufd_hwpt_paging *hwpt_paging; in iommufd_viommu_alloc_ioctl() local
66 hwpt_paging = iommufd_get_hwpt_paging(ucmd, cmd->hwpt_id); in iommufd_viommu_alloc_ioctl()
67 if (IS_ERR(hwpt_paging)) { in iommufd_viommu_alloc_ioctl()
68 rc = PTR_ERR(hwpt_paging); in iommufd_viommu_alloc_ioctl()
72 if (!hwpt_paging->nest_parent) { in iommufd_viommu_alloc_ioctl()
87 viommu->hwpt = hwpt_paging; in iommufd_viommu_alloc_ioctl()
98 rc = ops->viommu_init(viommu, hwpt_paging->common.domain, in iommufd_viommu_alloc_ioctl()
113 iommufd_put_object(ucmd->ictx, &hwpt_paging->common.obj); in iommufd_viommu_alloc_ioctl()