Lines Matching refs:objects
362 struct drm_mode_object **objects) in validate_lease() argument
373 if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) { in validate_lease()
376 if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1) in validate_lease()
380 if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1) in validate_lease()
397 struct drm_mode_object **objects; in fill_object_idr() local
400 objects = kcalloc(object_count, sizeof(struct drm_mode_object *), in fill_object_idr()
402 if (!objects) in fill_object_idr()
413 objects[o] = drm_mode_object_find(dev, lessor_priv, in fill_object_idr()
416 if (!objects[o]) { in fill_object_idr()
421 if (!drm_mode_object_lease_required(objects[o]->type)) { in fill_object_idr()
427 ret = validate_lease(dev, lessor_priv, object_count, objects); in fill_object_idr()
434 struct drm_mode_object *obj = objects[o]; in fill_object_idr()
435 u32 object_id = objects[o]->id; in fill_object_idr()
474 if (objects[o]) in fill_object_idr()
475 drm_mode_object_put(objects[o]); in fill_object_idr()
477 kfree(objects); in fill_object_idr()