Home
last modified time | relevance | path

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

/linux/drivers/iommu/iommufd/
H A Ddevice.c945 struct iommufd_object *pt_obj; in iommufd_device_change_pt() local
947 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt()
948 if (IS_ERR(pt_obj)) in iommufd_device_change_pt()
949 return PTR_ERR(pt_obj); in iommufd_device_change_pt()
951 switch (pt_obj->type) { in iommufd_device_change_pt()
955 container_of(pt_obj, struct iommufd_hw_pagetable, obj); in iommufd_device_change_pt()
964 container_of(pt_obj, struct iommufd_ioas, obj); in iommufd_device_change_pt()
976 iommufd_put_object(idev->ictx, pt_obj); in iommufd_device_change_pt()
984 iommufd_put_object(idev->ictx, pt_obj); in iommufd_device_change_pt()
H A Dselftest.c1824 struct iommufd_object *pt_obj; in iommufd_get_hwpt() local
1826 pt_obj = iommufd_get_object(ucmd->ictx, id, IOMMUFD_OBJ_ANY); in iommufd_get_hwpt()
1827 if (IS_ERR(pt_obj)) in iommufd_get_hwpt()
1828 return ERR_CAST(pt_obj); in iommufd_get_hwpt()
1830 if (pt_obj->type != IOMMUFD_OBJ_HWPT_NESTED && in iommufd_get_hwpt()
1831 pt_obj->type != IOMMUFD_OBJ_HWPT_PAGING) { in iommufd_get_hwpt()
1832 iommufd_put_object(ucmd->ictx, pt_obj); in iommufd_get_hwpt()
1836 return container_of(pt_obj, struct iommufd_hw_pagetable, obj); in iommufd_get_hwpt()