Lines Matching refs:objects
211 * drm_lease_create - create a new drm_master with leased objects (idr_mutex not held)
212 * @lessor: lease holder (or owner) of objects
213 * @leases: objects to lease to the new drm_master
216 * make sure all of the desired objects can be leased, atomically
326 * _drm_lease_revoke - revoke access to all leased objects (idr_mutex held)
368 * drm_lease_revoke - revoke access to all leased objects (idr_mutex not held)
380 struct drm_mode_object **objects,
392 if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) {
395 if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1)
399 if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1)
416 struct drm_mode_object **objects;
421 objects = kcalloc(object_count, sizeof(struct drm_mode_object *),
423 if (!objects)
426 /* step one - get references to all the mode objects
429 objects[o] = drm_mode_object_find(dev, lessor_priv,
432 if (!objects[o]) {
437 if (!drm_mode_object_lease_required(objects[o]->type)) {
444 ret = validate_lease(dev, object_count, objects, universal_planes);
453 struct drm_mode_object *obj = objects[o];
454 u32 object_id = objects[o]->id;
460 * objects, but we don't need to point at the object's
495 if (objects[o])
496 drm_mode_object_put(objects[o]);
498 kfree(objects);
509 * created containing the objects specified in the ioctl structure.
532 /* need some objects */
534 DRM_DEBUG_LEASE("no objects in lease\n");
688 * drm_mode_get_lease_ioctl - list leased objects
693 * Return the list of leased objects for the specified lessee
722 /* owner can use all objects */
739 DRM_DEBUG("lease holds %d objects\n", count);
755 * This removes all of the objects from the lease without