Lines Matching +full:full +full:- +full:scale
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2003,2004 Hewlett-Packard Company
19 * enum backlight_update_reason - what method was used to update backlight
26 * @BACKLIGHT_UPDATE_HOTKEY: The backlight was updated using a hot-key.
37 * enum backlight_type - the type of backlight control
52 * The backlight is controlled using a platform-specific interface.
70 * enum backlight_notification - the type of notification
87 /** enum backlight_scale - the type of scale used for brightness values
89 * The type of scale used for brightness values.
93 * @BACKLIGHT_SCALE_UNKNOWN: The scale is unknown.
98 * @BACKLIGHT_SCALE_LINEAR: The scale is linear.
100 * The linear scale will increase brightness the same for each step.
105 * @BACKLIGHT_SCALE_NON_LINEAR: The scale is not linear.
108 * the relative perception of the eye demanding a non-linear scale.
116 * struct backlight_ops - backlight operations
178 * struct backlight_properties - backlight properties
212 * The possible values are: (0: full on, 4: full off), see
255 * @scale: The type of the brightness scale.
257 enum backlight_scale scale; member
261 * struct backlight_device - backlight device data
329 * backlight_update_status - force an update of the backlight device status
334 int ret = -ENOENT; in backlight_update_status()
336 mutex_lock(&bd->update_lock); in backlight_update_status()
337 if (bd->ops && bd->ops->update_status) in backlight_update_status()
338 ret = bd->ops->update_status(bd); in backlight_update_status()
339 mutex_unlock(&bd->update_lock); in backlight_update_status()
345 * backlight_enable - Enable backlight
353 bd->props.power = BACKLIGHT_POWER_ON; in backlight_enable()
354 bd->props.state &= ~BL_CORE_FBBLANK; in backlight_enable()
360 * backlight_disable - Disable backlight
368 bd->props.power = BACKLIGHT_POWER_OFF; in backlight_disable()
369 bd->props.state |= BL_CORE_FBBLANK; in backlight_disable()
375 * backlight_is_blank - Return true if display is expected to be blank
387 return bd->props.power != BACKLIGHT_POWER_ON || in backlight_is_blank()
388 bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK); in backlight_is_blank()
392 * backlight_get_brightness - Returns the current brightness value
407 return bd->props.brightness; in backlight_get_brightness()
434 * bl_get_data - access devdata
447 return dev_get_drvdata(&bl_dev->dev); in bl_get_data()