Lines Matching refs:rc

166 	int rc;
188 rc = -EPERM;
199 rc = iommu_device_claim_dma_owner(dev, ictx);
200 if (rc)
205 rc = PTR_ERR(idev);
233 return ERR_PTR(rc);
299 int rc;
315 rc = iommu_get_msi_cookie(hwpt_paging->common.domain,
317 if (rc)
318 return rc;
332 int rc;
336 rc = iopt_table_enforce_dev_resv_regions(&hwpt_paging->ioas->iopt,
339 if (rc)
340 return rc;
343 rc = iommufd_group_setup_msi(idev->igroup, hwpt_paging);
344 if (rc) {
347 return rc;
356 int rc;
361 rc = -EINVAL;
366 rc = iommufd_hwpt_paging_attach(to_hwpt_paging(hwpt), idev);
367 if (rc)
379 rc = iommu_attach_group(hwpt->domain, idev->igroup->group);
380 if (rc)
394 return rc;
421 int rc;
423 rc = iommufd_hw_pagetable_attach(hwpt, idev);
424 if (rc)
425 return ERR_PTR(rc);
447 int rc;
454 rc = iopt_table_enforce_dev_resv_regions(
456 if (rc)
461 rc = iommufd_group_setup_msi(igroup, hwpt_paging);
462 if (rc)
468 return rc;
478 int rc;
483 rc = -EINVAL;
494 rc = iommufd_group_do_replace_paging(igroup,
496 if (rc)
500 rc = iommu_group_replace_domain(igroup->group, hwpt->domain);
501 if (rc)
531 return ERR_PTR(rc);
681 int rc;
683 rc = iommufd_device_change_pt(idev, pt_id, &iommufd_device_do_attach);
684 if (rc)
685 return rc;
745 int rc;
763 rc = iopt_add_access(&new_ioas->iopt, access);
764 if (rc) {
766 return rc;
790 int rc;
794 rc = iommufd_access_change_ioas(access, ioas);
796 return rc;
883 int rc;
891 rc = iommufd_access_change_ioas_id(access, ioas_id);
893 return rc;
899 int rc;
906 rc = iommufd_access_change_ioas_id(access, ioas_id);
908 return rc;
1041 int rc;
1069 rc = -EINVAL;
1074 rc = -EPERM;
1078 rc = iopt_area_add_access(area, index, last_index, out_pages,
1080 if (rc)
1085 rc = -ENOENT;
1106 return rc;
1129 int rc;
1149 rc = -EINVAL;
1154 rc = -EPERM;
1158 rc = iopt_pages_rw_access(
1161 if (rc)
1166 rc = -ENOENT;
1170 return rc;
1183 int rc;
1196 rc = PTR_ERR(data);
1206 rc = -ENODEV;
1217 rc = -EFAULT;
1227 rc = -EFAULT;
1242 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd));
1247 return rc;