Lines Matching refs:leases
76 return idr_find(&master->leases, id) != NULL; in _drm_lease_held_master()
204 static struct drm_master *drm_lease_create(struct drm_master *lessor, struct idr *leases) in drm_lease_create() argument
223 idr_for_each_entry(leases, entry, object) { in drm_lease_create()
250 lessee->leases = *leases; in drm_lease_create()
326 idr_for_each_entry(&master->leases, entry, object) in _drm_lease_revoke()
327 idr_remove(&master->leases, object); in _drm_lease_revoke()
393 struct idr *leases, in fill_object_idr() argument
446 ret = idr_alloc(leases, &drm_lease_idr_object , object_id, object_id + 1, GFP_KERNEL); in fill_object_idr()
454 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->primary->base.id, crtc->primary->base.id + 1,… in fill_object_idr()
461 …ret = idr_alloc(leases, &drm_lease_idr_object, crtc->cursor->base.id, crtc->cursor->base.id + 1, G… in fill_object_idr()
498 struct idr leases; in drm_mode_create_lease_ioctl() local
528 idr_init(&leases); in drm_mode_create_lease_ioctl()
531 ret = fill_object_idr(dev, lessor_priv, &leases, in drm_mode_create_lease_ioctl()
535 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
542 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
547 lessee = drm_lease_create(lessor, &leases); in drm_mode_create_lease_ioctl()
585 idr_destroy(&leases); in drm_mode_create_lease_ioctl()
627 if (!idr_is_empty(&lessee->leases)) { in drm_mode_list_lessees_ioctl()
685 object_idr = &lessee->leases; in drm_mode_get_lease_ioctl()