Lines Matching refs:ioas
16 mutex_lock(&hwpt->ioas->mutex);
18 mutex_unlock(&hwpt->ioas->mutex);
20 iopt_table_remove_domain(&hwpt->ioas->iopt, hwpt->domain);
26 refcount_dec(&hwpt->ioas->obj.users);
34 /* The ioas->mutex must be held until finalize is called. */
35 lockdep_assert_held(&hwpt->ioas->mutex);
39 iopt_table_remove_domain(&hwpt->ioas->iopt, hwpt->domain);
61 * @ioas: IOAS to associate the domain with
66 * will be linked to the given ioas and upon return the underlying iommu_domain
69 * The caller must hold the ioas->mutex until after
74 iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas,
80 lockdep_assert_held(&ioas->mutex);
88 refcount_inc(&ioas->obj.users);
89 hwpt->ioas = ioas;
122 rc = iopt_table_add_domain(&hwpt->ioas->iopt, hwpt->domain);
125 list_add_tail(&hwpt->hwpt_item, &hwpt->ioas->hwpt_list);
141 struct iommufd_ioas *ioas;
151 ioas = iommufd_get_ioas(ucmd->ictx, cmd->pt_id);
152 if (IS_ERR(ioas)) {
153 rc = PTR_ERR(ioas);
157 mutex_lock(&ioas->mutex);
158 hwpt = iommufd_hw_pagetable_alloc(ucmd->ictx, ioas, idev, false);
174 mutex_unlock(&ioas->mutex);
175 iommufd_put_object(&ioas->obj);