Lines Matching +full:full +full:- +full:scale
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2003,2004 Hewlett-Packard Company
18 * enum backlight_update_reason - what method was used to update backlight
25 * @BACKLIGHT_UPDATE_HOTKEY: The backlight was updated using a hot-key.
36 * enum backlight_type - the type of backlight control
51 * The backlight is controlled using a platform-specific interface.
69 * enum backlight_notification - the type of notification
86 /** enum backlight_scale - the type of scale used for brightness values
88 * The type of scale used for brightness values.
92 * @BACKLIGHT_SCALE_UNKNOWN: The scale is unknown.
97 * @BACKLIGHT_SCALE_LINEAR: The scale is linear.
99 * The linear scale will increase brightness the same for each step.
104 * @BACKLIGHT_SCALE_NON_LINEAR: The scale is not linear.
107 * 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, 1 to 3: power saving
213 * modes; 4: full off), see FB_BLANK_XXX.
270 * @scale: The type of the brightness scale.
272 enum backlight_scale scale; member
276 * struct backlight_device - backlight device data
344 * backlight_update_status - force an update of the backlight device status
349 int ret = -ENOENT; in backlight_update_status()
351 mutex_lock(&bd->update_lock); in backlight_update_status()
352 if (bd->ops && bd->ops->update_status) in backlight_update_status()
353 ret = bd->ops->update_status(bd); in backlight_update_status()
354 mutex_unlock(&bd->update_lock); in backlight_update_status()
360 * backlight_enable - Enable backlight
368 bd->props.power = FB_BLANK_UNBLANK; in backlight_enable()
369 bd->props.fb_blank = FB_BLANK_UNBLANK; in backlight_enable()
370 bd->props.state &= ~BL_CORE_FBBLANK; in backlight_enable()
376 * backlight_disable - Disable backlight
384 bd->props.power = FB_BLANK_POWERDOWN; in backlight_disable()
385 bd->props.fb_blank = FB_BLANK_POWERDOWN; in backlight_disable()
386 bd->props.state |= BL_CORE_FBBLANK; in backlight_disable()
392 * backlight_is_blank - Return true if display is expected to be blank
405 return bd->props.power != FB_BLANK_UNBLANK || in backlight_is_blank()
406 bd->props.fb_blank != FB_BLANK_UNBLANK || in backlight_is_blank()
407 bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK); in backlight_is_blank()
411 * backlight_get_brightness - Returns the current brightness value
426 return bd->props.brightness; in backlight_get_brightness()
453 * bl_get_data - access devdata
466 return dev_get_drvdata(&bl_dev->dev); in bl_get_data()