Home
last modified time | relevance | path

Searched refs:ioas (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/iommu/iommufd/
H A Dvfio_compat.c22 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()
339 if (IS_ERR(ioas)) in iommufd_vfio_set_iommu()
[all …]
H A Dioas.c27 ioas = iommufd_object_alloc(ictx, ioas, IOMMUFD_OBJ_IOAS); in iommufd_ioas_alloc()
28 if (IS_ERR(ioas)) in iommufd_ioas_alloc()
29 return ioas; in iommufd_ioas_alloc()
34 return ioas; in iommufd_ioas_alloc()
47 if (IS_ERR(ioas)) in iommufd_ioas_alloc_ioctl()
75 if (IS_ERR(ioas)) in iommufd_ioas_iova_ranges()
155 if (IS_ERR(ioas)) in iommufd_ioas_allow_iovas()
157 iopt = &ioas->iopt; in iommufd_ioas_allow_iovas()
221 if (IS_ERR(ioas)) in iommufd_ioas_map()
304 if (IS_ERR(ioas)) in iommufd_ioas_unmap()
[all …]
H A Dhw_pagetable.c16 mutex_lock(&hwpt->ioas->mutex); in iommufd_hw_pagetable_destroy()
18 mutex_unlock(&hwpt->ioas->mutex); in iommufd_hw_pagetable_destroy()
26 refcount_dec(&hwpt->ioas->obj.users); in iommufd_hw_pagetable_destroy()
88 refcount_inc(&ioas->obj.users); in iommufd_hw_pagetable_alloc()
89 hwpt->ioas = ioas; in iommufd_hw_pagetable_alloc()
141 struct iommufd_ioas *ioas; in iommufd_hwpt_alloc() local
152 if (IS_ERR(ioas)) { in iommufd_hwpt_alloc()
153 rc = PTR_ERR(ioas); in iommufd_hwpt_alloc()
157 mutex_lock(&ioas->mutex); in iommufd_hwpt_alloc()
174 mutex_unlock(&ioas->mutex); in iommufd_hwpt_alloc()
[all …]
H A Ddevice.c443 if (hwpt->ioas != old_hwpt->ioas) { in iommufd_device_do_replace()
460 if (hwpt->ioas != old_hwpt->ioas) { in iommufd_device_do_replace()
517 mutex_lock(&ioas->mutex);
710 access->ioas = NULL; in iommufd_access_change_ioas()
731 access->ioas = new_ioas; in iommufd_access_change_ioas()
742 if (IS_ERR(ioas)) in iommufd_access_change_ioas_id()
743 return PTR_ERR(ioas); in iommufd_access_change_ioas_id()
755 if (access->ioas) in iommufd_access_destroy_object()
852 if (!access->ioas) { in iommufd_access_replace()
1004 if (!access->ioas) { in iommufd_access_pin_pages()
[all …]
H A Dselftest.c78 if (!access->ioas) { in iommufd_test_syz_conv_iova()
90 struct iommufd_ioas *ioas; in iommufd_test_syz_conv_iova_id() local
96 ioas = iommufd_get_ioas(ucmd->ictx, ioas_id); in iommufd_test_syz_conv_iova_id()
97 if (IS_ERR(ioas)) in iommufd_test_syz_conv_iova_id()
100 iommufd_put_object(&ioas->obj); in iommufd_test_syz_conv_iova_id()
515 struct iommufd_ioas *ioas; in iommufd_test_add_reserved() local
519 if (IS_ERR(ioas)) in iommufd_test_add_reserved()
520 return PTR_ERR(ioas); in iommufd_test_add_reserved()
521 down_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()
523 up_write(&ioas->iopt.iova_rwsem); in iommufd_test_add_reserved()
[all …]
H A Diommufd_private.h234 struct iommufd_ioas *ioas; member
244 iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas,
258 lockdep_assert_not_held(&hwpt->ioas->mutex); in iommufd_hw_pagetable_put()
304 struct iommufd_ioas *ioas; member
H A DMakefile6 ioas.o \
/openbmc/qemu/backends/
H A Dtrace-events13 …_map_dma(int iommufd, uint32_t ioas, uint64_t iova, uint64_t size, void *vaddr, bool readonly, int…
14 …non_exist(int iommufd, uint32_t ioas, uint64_t iova, uint64_t size, int ret) " Unmap nonexistent m…
15 …mufd_backend_unmap_dma(int iommufd, uint32_t ioas, uint64_t iova, uint64_t size, int ret) " iommuf…
16 iommufd_backend_alloc_ioas(int iommufd, uint32_t ioas) " iommufd=%d ioas=%d"