Lines Matching full:property

221  * drm_object_attach_property - attach a property to a modeset object
223 * @property: property to attach
224 * @init_val: initial value of the property
226 * This attaches the given property to the modeset object with the given initial
234 struct drm_property *property, in drm_object_attach_property() argument
238 struct drm_device *dev = property->dev; in drm_object_attach_property()
251 WARN(1, "Failed to attach object property (type: 0x%x). Please " in drm_object_attach_property()
258 obj->properties->properties[count] = property; in drm_object_attach_property()
265 * drm_object_property_set_value - set the value of a property
266 * @obj: drm mode object to set property value for
267 * @property: property to set
268 * @val: value the property should be set to
270 * This function sets a given property on a given object. This function only
271 * changes the software state of the property, it does not call into the
284 struct drm_property *property, uint64_t val) in drm_object_property_set_value() argument
288 WARN_ON(drm_drv_uses_atomic_modeset(property->dev) && in drm_object_property_set_value()
289 !(property->flags & DRM_MODE_PROP_IMMUTABLE)); in drm_object_property_set_value()
292 if (obj->properties->properties[i] == property) { in drm_object_property_set_value()
303 struct drm_property *property, in __drm_object_property_get_prop_value() argument
309 if (obj->properties->properties[i] == property) { in __drm_object_property_get_prop_value()
319 struct drm_property *property, in __drm_object_property_get_value() argument
327 if (drm_drv_uses_atomic_modeset(property->dev) && in __drm_object_property_get_value()
328 !(property->flags & DRM_MODE_PROP_IMMUTABLE)) in __drm_object_property_get_value()
329 return drm_atomic_get_property(obj, property, val); in __drm_object_property_get_value()
331 return __drm_object_property_get_prop_value(obj, property, val); in __drm_object_property_get_value()
335 * drm_object_property_get_value - retrieve the value of a property
336 * @obj: drm mode object to get property value from
337 * @property: property to retrieve
338 * @val: storage for the property value
340 * This function retrieves the softare state of the given property for the given
341 * property. Since there is no driver callback to retrieve the current property
343 * and property.
346 * out property values through the various ->atomic_get_property callbacks.
352 struct drm_property *property, uint64_t *val) in drm_object_property_get_value() argument
354 WARN_ON(drm_drv_uses_atomic_modeset(property->dev)); in drm_object_property_get_value()
356 return __drm_object_property_get_value(obj, property, val); in drm_object_property_get_value()
362 * property when in atomic mode.
363 * @obj: drm mode object to get property value from
364 * @property: property to retrieve
365 * @val: storage for the property value
367 * This function retrieves the default state of the given property as passed in
377 struct drm_property *property, in drm_object_property_get_default_value() argument
380 WARN_ON(!drm_drv_uses_atomic_modeset(property->dev)); in drm_object_property_get_default_value()
382 return __drm_object_property_get_prop_value(obj, property, val); in drm_object_property_get_default_value()
421 * drm_mode_obj_get_properties_ioctl - get the current value of a object's property
426 * This function retrieves the current value for an object's property. Compared
567 struct drm_property *property; in drm_mode_obj_set_property_ioctl() local
580 property = drm_mode_obj_find_prop_id(arg_obj, arg->prop_id); in drm_mode_obj_set_property_ioctl()
581 if (!property) in drm_mode_obj_set_property_ioctl()
584 if (drm_drv_uses_atomic_modeset(property->dev)) in drm_mode_obj_set_property_ioctl()
585 ret = set_property_atomic(arg_obj, file_priv, property, arg->value); in drm_mode_obj_set_property_ioctl()
587 ret = set_property_legacy(arg_obj, property, arg->value); in drm_mode_obj_set_property_ioctl()