Lines Matching refs:objects
348 struct drm_mode_object **objects, in validate_lease() argument
360 if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) { in validate_lease()
363 if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1) in validate_lease()
367 if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1) in validate_lease()
384 struct drm_mode_object **objects; in fill_object_idr() local
389 objects = kcalloc(object_count, sizeof(struct drm_mode_object *), in fill_object_idr()
391 if (!objects) in fill_object_idr()
397 objects[o] = drm_mode_object_find(dev, lessor_priv, in fill_object_idr()
400 if (!objects[o]) { in fill_object_idr()
405 if (!drm_mode_object_lease_required(objects[o]->type)) { in fill_object_idr()
412 ret = validate_lease(dev, object_count, objects, universal_planes); in fill_object_idr()
421 struct drm_mode_object *obj = objects[o]; in fill_object_idr()
422 u32 object_id = objects[o]->id; in fill_object_idr()
463 if (objects[o]) in fill_object_idr()
464 drm_mode_object_put(objects[o]); in fill_object_idr()
466 kfree(objects); in fill_object_idr()