Searched refs:ioas (Results 1 – 8 of 8) 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()368 mutex_lock(&ioas->mutex); in iommufd_hwpt_alloc()435 if (ioas) in iommufd_hwpt_alloc()436 mutex_unlock(&ioas->mutex); in iommufd_hwpt_alloc()448 struct iommufd_ioas *ioas; in iommufd_hwpt_set_dirty_tracking() local459 ioas = hwpt_paging->ioas; in iommufd_hwpt_set_dirty_tracking()473 struct iommufd_ioas *ioas; in iommufd_hwpt_get_dirty_bitmap() local[all …]
759 if (!old_hwpt_paging || hwpt_paging->ioas != old_hwpt_paging->ioas) { in iommufd_group_do_replace_reserved_iova()825 (!hwpt_paging || hwpt_paging->ioas != old_hwpt_paging->ioas)) in iommufd_device_do_replace()882 mutex_lock(&ioas->mutex);1090 access->ioas = NULL; in iommufd_access_change_ioas()1111 access->ioas = new_ioas; in iommufd_access_change_ioas()1122 if (IS_ERR(ioas)) in iommufd_access_change_ioas_id()1123 return PTR_ERR(ioas); in iommufd_access_change_ioas_id()1135 if (access->ioas) in iommufd_access_destroy_object()1273 if (!access->ioas) { in iommufd_access_replace()1430 if (!access->ioas) { in iommufd_access_pin_pages()[all …]
371 struct iommufd_ioas *ioas; member436 iommufd_hwpt_paging_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas,457 lockdep_assert_not_held(&hwpt_paging->ioas->mutex); in iommufd_hw_pagetable_put()511 struct iommufd_ioas *ioas; member541 struct iommufd_ioas *ioas);
101 if (!access->ioas) { in iommufd_test_syz_conv_iova()113 struct iommufd_ioas *ioas; in iommufd_test_syz_conv_iova_id() local119 ioas = iommufd_get_ioas(ucmd->ictx, ioas_id); in iommufd_test_syz_conv_iova_id()120 if (IS_ERR(ioas)) in iommufd_test_syz_conv_iova_id()123 iommufd_put_object(ucmd->ictx, &ioas->obj); in iommufd_test_syz_conv_iova_id()1260 struct iommufd_ioas *ioas; in iommufd_test_add_reserved() local1264 if (IS_ERR(ioas)) in iommufd_test_add_reserved()1265 return PTR_ERR(ioas); in iommufd_test_add_reserved()1266 down_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()1268 up_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()[all …]
7 ioas.o \
325 rc = iommufd_access_attach_internal(access, viommu->hwpt->ioas); in iommufd_hw_queue_alloc_phys()
Completed in 29 milliseconds