Lines Matching refs:leases

92 		return idr_find(&master->leases, id) != NULL;  in _drm_lease_held_master()
207 static struct drm_master *drm_lease_create(struct drm_master *lessor, struct idr *leases) in drm_lease_create() argument
226 idr_for_each_entry(leases, entry, object) { in drm_lease_create()
251 lessee->leases = *leases; in drm_lease_create()
314 idr_for_each_entry(&master->leases, entry, object) in _drm_lease_revoke()
315 idr_remove(&master->leases, object); in _drm_lease_revoke()
377 struct idr *leases, in fill_object_idr() argument
431 ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL); in fill_object_idr()
440 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1,… in fill_object_idr()
447 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, G… in fill_object_idr()
479 struct idr leases; in drm_mode_create_lease_ioctl() local
508 idr_init(&leases); in drm_mode_create_lease_ioctl()
514 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
519 ret = fill_object_idr(dev, lessor_priv, &leases, in drm_mode_create_lease_ioctl()
524 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
532 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
539 lessee = drm_lease_create(lessor, &leases); in drm_mode_create_lease_ioctl()
543 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
611 if (!idr_is_empty(&lessee->leases)) { in drm_mode_list_lessees_ioctl()
663 object_idr = &lessee->leases; in drm_mode_get_lease_ioctl()