Lines Matching defs:obj
134 void iommufd_device_destroy(struct iommufd_object *obj)
137 container_of(obj, struct iommufd_device, obj);
215 refcount_inc(&idev->obj.users);
225 iommufd_object_finalize(ictx, &idev->obj);
226 *id = idev->obj.id;
248 struct iommufd_object *obj;
255 xa_for_each(&ictx->objects, index, obj) {
256 if (obj->type == IOMMUFD_OBJ_DEVICE &&
257 container_of(obj, struct iommufd_device, obj)
279 iommufd_object_destroy_user(idev->ictx, &idev->obj);
291 return idev->obj.id;
369 refcount_inc(&hwpt->obj.users);
472 refcount_add(num_devices, &hwpt->obj.users);
475 &old_hwpt->obj.users));
522 if (!iommufd_lock_obj(&hwpt->obj))
526 iommufd_put_object(&hwpt->obj);
537 *pt_id = hwpt->obj.id;
538 iommufd_put_object(&hwpt->obj);
558 *pt_id = hwpt->obj.id;
560 iommufd_object_finalize(idev->ictx, &hwpt->obj);
565 iommufd_object_abort_and_destroy(idev->ictx, &hwpt->obj);
584 container_of(pt_obj, struct iommufd_hw_pagetable, obj);
593 container_of(pt_obj, struct iommufd_ioas, obj);
641 refcount_inc(&idev->obj.users);
681 refcount_dec(&idev->obj.users);
718 refcount_inc(&new_ioas->obj.users);
728 refcount_dec(&cur_ioas->obj.users);
745 iommufd_put_object(&ioas->obj);
749 void iommufd_access_destroy_object(struct iommufd_object *obj)
752 container_of(obj, struct iommufd_access, obj);
797 refcount_inc(&access->obj.users);
800 iommufd_object_finalize(ictx, &access->obj);
801 *id = access->obj.id;
815 iommufd_object_destroy_user(access->ictx, &access->obj);
888 if (!iommufd_lock_obj(&access->obj))
894 iommufd_put_object(&access->obj);
1192 iommufd_put_object(&idev->obj);