Home | History | Annotate | Download | only in drm

Lines Matching defs:property

226  * drm_object_attach_property - attach a property to a modeset object
228 * @property: property to attach
229 * @init_val: initial value of the property
231 * This attaches the given property to the modeset object with the given initial
239 struct drm_property *property,
243 struct drm_device *dev = property->dev;
256 WARN(1, "Failed to attach object property (type: 0x%x). Please "
263 obj->properties->properties[count] = property;
270 * drm_object_property_set_value - set the value of a property
271 * @obj: drm mode object to set property value for
272 * @property: property to set
273 * @val: value the property should be set to
275 * This function sets a given property on a given object. This function only
276 * changes the software state of the property, it does not call into the
289 struct drm_property *property, uint64_t val)
293 WARN_ON(drm_drv_uses_atomic_modeset(property->dev) &&
294 !(property->flags & DRM_MODE_PROP_IMMUTABLE));
297 if (obj->properties->properties[i] == property) {
308 struct drm_property *property,
317 if (drm_drv_uses_atomic_modeset(property->dev) &&
318 !(property->flags & DRM_MODE_PROP_IMMUTABLE))
319 return drm_atomic_get_property(obj, property, val);
322 if (obj->properties->properties[i] == property) {
333 * drm_object_property_get_value - retrieve the value of a property
334 * @obj: drm mode object to get property value from
335 * @property: property to retrieve
336 * @val: storage for the property value
338 * This function retrieves the softare state of the given property for the given
339 * property. Since there is no driver callback to retrieve the current property
341 * and property.
344 * out property values through the various ->atomic_get_property callbacks.
350 struct drm_property *property, uint64_t *val)
352 WARN_ON(drm_drv_uses_atomic_modeset(property->dev));
354 return __drm_object_property_get_value(obj, property, val);
393 * drm_mode_obj_get_properties_ioctl - get the current value of a object's property
398 * This function retrieves the current value for an object's property. Compared
536 struct drm_property *property;
549 property = drm_mode_obj_find_prop_id(arg_obj, arg->prop_id);
550 if (!property)
553 if (drm_drv_uses_atomic_modeset(property->dev))
554 ret = set_property_atomic(arg_obj, file_priv, property, arg->value);
556 ret = set_property_legacy(arg_obj, property, arg->value);