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.
69 /** enum backlight_scale - the type of scale used for brightness values
71 * The type of scale used for brightness values.
75 * @BACKLIGHT_SCALE_UNKNOWN: The scale is unknown.
80 * @BACKLIGHT_SCALE_LINEAR: The scale is linear.
82 * The linear scale will increase brightness the same for each step.
87 * @BACKLIGHT_SCALE_NON_LINEAR: The scale is not linear.
90 * the relative perception of the eye demanding a non-linear scale.
98 * struct backlight_ops - backlight operations
160 * struct backlight_properties - backlight properties
194 * The possible values are: (0: full on, 4: full off), see
237 * @scale: The type of the brightness scale.
239 enum backlight_scale scale; member
243 * struct backlight_device - backlight device data
311 * backlight_update_status - force an update of the backlight device status
316 int ret = -ENOENT; in backlight_update_status()
318 mutex_lock(&bd->update_lock); in backlight_update_status()
319 if (bd->ops && bd->ops->update_status) in backlight_update_status()
320 ret = bd->ops->update_status(bd); in backlight_update_status()
321 mutex_unlock(&bd->update_lock); in backlight_update_status()
327 * backlight_enable - Enable backlight
335 bd->props.power = BACKLIGHT_POWER_ON; in backlight_enable()
336 bd->props.state &= ~BL_CORE_FBBLANK; in backlight_enable()
342 * backlight_disable - Disable backlight
350 bd->props.power = BACKLIGHT_POWER_OFF; in backlight_disable()
351 bd->props.state |= BL_CORE_FBBLANK; in backlight_disable()
357 * backlight_is_blank - Return true if display is expected to be blank
369 return bd->props.power != BACKLIGHT_POWER_ON || in backlight_is_blank()
370 bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK); in backlight_is_blank()
374 * backlight_get_brightness - Returns the current brightness value
389 return bd->props.brightness; in backlight_get_brightness()
414 * bl_get_data - access devdata
427 return dev_get_drvdata(&bl_dev->dev); in bl_get_data()