Searched refs:ioas (Results 1 – 7 of 7) sorted by relevance
22 ioas = ictx->vfio_ioas; in get_compat_ioas()25 return ioas; in get_compat_ioas()41 if (IS_ERR(ioas)) in iommufd_vfio_compat_ioas_get_id()86 if (IS_ERR(ioas)) in iommufd_vfio_compat_ioas_create()133 if (IS_ERR(ioas)) in iommufd_vfio_ioas()141 if (IS_ERR(ioas)) in iommufd_vfio_ioas()182 if (IS_ERR(ioas)) in iommufd_vfio_map_dma()220 if (IS_ERR(ioas)) in iommufd_vfio_unmap_dma()263 if (IS_ERR(ioas)) in iommufd_vfio_cc_iommu()334 if (IS_ERR(ioas)) in iommufd_vfio_set_iommu()[all …]
28 ioas = iommufd_object_alloc(ictx, ioas, IOMMUFD_OBJ_IOAS); in iommufd_ioas_alloc()29 if (IS_ERR(ioas)) in iommufd_ioas_alloc()30 return ioas; in iommufd_ioas_alloc()35 return ioas; in iommufd_ioas_alloc()48 if (IS_ERR(ioas)) in iommufd_ioas_alloc_ioctl()79 if (IS_ERR(ioas)) in iommufd_ioas_iova_ranges()159 if (IS_ERR(ioas)) in iommufd_ioas_allow_iovas()161 iopt = &ioas->iopt; in iommufd_ioas_allow_iovas()226 if (IS_ERR(ioas)) in iommufd_ioas_map_file()271 if (IS_ERR(ioas)) in iommufd_ioas_map()[all …]
26 mutex_lock(&hwpt_paging->ioas->mutex); in iommufd_hwpt_paging_destroy()122 lockdep_assert_held(&ioas->mutex); in iommufd_hwpt_paging_alloc()144 refcount_inc(&ioas->obj.users); in iommufd_hwpt_paging_alloc()145 hwpt_paging->ioas = ioas; in iommufd_hwpt_paging_alloc()370 mutex_lock(&ioas->mutex); in iommufd_hwpt_alloc()437 if (ioas) in iommufd_hwpt_alloc()438 mutex_unlock(&ioas->mutex); in iommufd_hwpt_alloc()450 struct iommufd_ioas *ioas; in iommufd_hwpt_set_dirty_tracking() local461 ioas = hwpt_paging->ioas; in iommufd_hwpt_set_dirty_tracking()475 struct iommufd_ioas *ioas; in iommufd_hwpt_get_dirty_bitmap() local[all …]
710 if (!old_hwpt_paging || hwpt_paging->ioas != old_hwpt_paging->ioas) { in iommufd_group_do_replace_reserved_iova()776 (!hwpt_paging || hwpt_paging->ioas != old_hwpt_paging->ioas)) in iommufd_device_do_replace()833 mutex_lock(&ioas->mutex); in iommufd_device_auto_get_domain()1041 access->ioas = NULL; in iommufd_access_change_ioas()1062 access->ioas = new_ioas; in iommufd_access_change_ioas()1073 if (IS_ERR(ioas)) in iommufd_access_change_ioas_id()1074 return PTR_ERR(ioas); in iommufd_access_change_ioas_id()1086 if (access->ioas) in iommufd_access_destroy_object()1183 if (!access->ioas) { in iommufd_access_replace()1335 if (!access->ioas) { in iommufd_access_pin_pages()[all …]
98 if (!access->ioas) { in iommufd_test_syz_conv_iova()110 struct iommufd_ioas *ioas; in iommufd_test_syz_conv_iova_id() local116 ioas = iommufd_get_ioas(ucmd->ictx, ioas_id); in iommufd_test_syz_conv_iova_id()117 if (IS_ERR(ioas)) in iommufd_test_syz_conv_iova_id()120 iommufd_put_object(ucmd->ictx, &ioas->obj); in iommufd_test_syz_conv_iova_id()1079 struct iommufd_ioas *ioas; in iommufd_test_add_reserved() local1083 if (IS_ERR(ioas)) in iommufd_test_add_reserved()1084 return PTR_ERR(ioas); in iommufd_test_add_reserved()1085 down_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()1087 up_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()[all …]
7 ioas.o \
307 struct iommufd_ioas *ioas; member372 iommufd_hwpt_paging_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas,393 lockdep_assert_not_held(&hwpt_paging->ioas->mutex); in iommufd_hw_pagetable_put()447 struct iommufd_ioas *ioas; member