Lines Matching full:property

219  * drm_object_attach_property - attach a property to a modeset object
221 * @property: property to attach
222 * @init_val: initial value of the property
224 * This attaches the given property to the modeset object with the given initial
232 struct drm_property *property, in drm_object_attach_property() argument
236 struct drm_device *dev = property->dev; in drm_object_attach_property()
249 WARN(1, "Failed to attach object property (type: 0x%x). Please " in drm_object_attach_property()
256 obj->properties->properties[count] = property; in drm_object_attach_property()
263 * drm_object_property_set_value - set the value of a property
264 * @obj: drm mode object to set property value for
265 * @property: property to set
266 * @val: value the property should be set to
268 * This function sets a given property on a given object. This function only
269 * changes the software state of the property, it does not call into the
282 struct drm_property *property, uint64_t val) in drm_object_property_set_value() argument
286 WARN_ON(drm_drv_uses_atomic_modeset(property->dev) && in drm_object_property_set_value()
287 !(property->flags & DRM_MODE_PROP_IMMUTABLE)); in drm_object_property_set_value()
290 if (obj->properties->properties[i] == property) { in drm_object_property_set_value()
301 struct drm_property *property, in __drm_object_property_get_value() argument
310 if (drm_drv_uses_atomic_modeset(property->dev) && in __drm_object_property_get_value()
311 !(property->flags & DRM_MODE_PROP_IMMUTABLE)) in __drm_object_property_get_value()
312 return drm_atomic_get_property(obj, property, val); in __drm_object_property_get_value()
315 if (obj->properties->properties[i] == property) { in __drm_object_property_get_value()
326 * drm_object_property_get_value - retrieve the value of a property
327 * @obj: drm mode object to get property value from
328 * @property: property to retrieve
329 * @val: storage for the property value
331 * This function retrieves the softare state of the given property for the given
332 * property. Since there is no driver callback to retrieve the current property
334 * and property.
337 * out property values through the various ->atomic_get_property callbacks.
343 struct drm_property *property, uint64_t *val) in drm_object_property_get_value() argument
345 WARN_ON(drm_drv_uses_atomic_modeset(property->dev)); in drm_object_property_get_value()
347 return __drm_object_property_get_value(obj, property, val); in drm_object_property_get_value()
386 * drm_mode_obj_get_properties_ioctl - get the current value of a object's property
391 * This function retrieves the current value for an object's property. Compared
531 struct drm_property *property; in drm_mode_obj_set_property_ioctl() local
544 property = drm_mode_obj_find_prop_id(arg_obj, arg->prop_id); in drm_mode_obj_set_property_ioctl()
545 if (!property) in drm_mode_obj_set_property_ioctl()
548 if (drm_drv_uses_atomic_modeset(property->dev)) in drm_mode_obj_set_property_ioctl()
549 ret = set_property_atomic(arg_obj, file_priv, property, arg->value); in drm_mode_obj_set_property_ioctl()
551 ret = set_property_legacy(arg_obj, property, arg->value); in drm_mode_obj_set_property_ioctl()