Lines Matching defs:objects

31  * - An 'owner' is a &struct drm_master that is not leasing objects from
32 * another &struct drm_master, and hence 'owns' the objects. The owner can be
35 * - A 'lessor' is a &struct drm_master which is leasing objects to one or more
39 * - A 'lessee' is a &struct drm_master which is leasing objects from some
41 * lessor recorded in &drm_master.lessor, and holds the set of objects that
49 * The set of objects any &struct drm_master 'controls' is limited to the set
50 * of objects it leases (for lessees) or all objects (for owners).
58 * Since each lessee may lease objects from a single lessor, display resource
65 * objects from the owner can be searched via the owner's
198 * make sure all of the desired objects can be leased, atomically
348 struct drm_mode_object **objects,
360 if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) {
363 if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1)
367 if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1)
384 struct drm_mode_object **objects;
389 objects = kcalloc(object_count, sizeof(struct drm_mode_object *),
391 if (!objects)
394 /* step one - get references to all the mode objects
397 objects[o] = drm_mode_object_find(dev, lessor_priv,
400 if (!objects[o]) {
405 if (!drm_mode_object_lease_required(objects[o]->type)) {
412 ret = validate_lease(dev, object_count, objects, universal_planes);
421 struct drm_mode_object *obj = objects[o];
422 u32 object_id = objects[o]->id;
428 * objects, but we don't need to point at the object's
463 if (objects[o])
464 drm_mode_object_put(objects[o]);
466 kfree(objects);
472 * created containing the objects specified in the ioctl structure.
510 /* Handle leased objects, if any */
636 /* Return the list of leased objects for the specified lessee */
663 /* owner can use all objects */
680 DRM_DEBUG("lease holds %d objects\n", count);
691 * This removes all of the objects from the lease without