Lines Matching refs: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,
236 struct drm_device *dev = property->dev;
249 WARN(1, "Failed to attach object property (type: 0x%x). Please "
256 obj->properties->properties[count] = 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)
286 WARN_ON(drm_drv_uses_atomic_modeset(property->dev) &&
287 !(property->flags & DRM_MODE_PROP_IMMUTABLE));
290 if (obj->properties->properties[i] == property) {
301 struct drm_property *property,
310 if (drm_drv_uses_atomic_modeset(property->dev) &&
311 !(property->flags & DRM_MODE_PROP_IMMUTABLE))
312 return drm_atomic_get_property(obj, property, val);
315 if (obj->properties->properties[i] == property) {
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)
345 WARN_ON(drm_drv_uses_atomic_modeset(property->dev));
347 return __drm_object_property_get_value(obj, property, val);
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;
544 property = drm_mode_obj_find_prop_id(arg_obj, arg->prop_id);
545 if (!property)
548 if (drm_drv_uses_atomic_modeset(property->dev))
549 ret = set_property_atomic(arg_obj, file_priv, property, arg->value);
551 ret = set_property_legacy(arg_obj, property, arg->value);