Home
last modified time | relevance | path

Searched full:backlight (Results 1 – 25 of 1512) sorted by relevance

12345678910>>...61

/kernel/linux/linux-4.19/drivers/video/backlight/
DKconfig2 # Backlight & LCD drivers configuration
6 bool "Backlight & LCD device support"
9 backlight and the LCD panel on some platforms, for example on PDAs.
23 (contrast and applying power to the LCD (not to the backlight!)).
163 # Backlight
166 tristate "Lowlevel Backlight controls"
170 backlight. This includes support for brightness and power.
178 bool "Atmel LCDC Contrast-as-Backlight control"
181 This provides a backlight control internal to the Atmel LCDC
183 so it controls the backlight brightness, select this option to
[all …]
Dlv5207lp.c13 #include <linux/backlight.h>
40 struct backlight_device *backlight; member
49 static int lv5207lp_backlight_update_status(struct backlight_device *backlight) in lv5207lp_backlight_update_status() argument
51 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_update_status()
52 int brightness = backlight->props.brightness; in lv5207lp_backlight_update_status()
54 if (backlight->props.power != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status()
55 backlight->props.fb_blank != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status()
56 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in lv5207lp_backlight_update_status()
73 static int lv5207lp_backlight_check_fb(struct backlight_device *backlight, in lv5207lp_backlight_check_fb() argument
76 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_check_fb()
[all …]
Dbacklight.c2 * Backlight Lowlevel Control Abstraction
13 #include <linux/backlight.h>
21 #include <asm/backlight.h>
38 * and if it is and necessary, we're switching backlight power as well ...
300 * backlight_force_update - tell the backlight subsystem that hardware state
302 * @bd: the backlight device to update
304 * Updates the internal state of the backlight in response to a hardware event,
326 * @ops: the backlight operations structure.
328 * Creates and registers new backlight device. Returns either an
358 WARN(1, "%s: invalid backlight type", name); in backlight_device_register()
[all …]
Dbd6107.c13 #include <linux/backlight.h>
75 struct backlight_device *backlight; member
84 static int bd6107_backlight_update_status(struct backlight_device *backlight) in bd6107_backlight_update_status() argument
86 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status()
87 int brightness = backlight->props.brightness; in bd6107_backlight_update_status()
89 if (backlight->props.power != FB_BLANK_UNBLANK || in bd6107_backlight_update_status()
90 backlight->props.fb_blank != FB_BLANK_UNBLANK || in bd6107_backlight_update_status()
91 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in bd6107_backlight_update_status()
108 static int bd6107_backlight_check_fb(struct backlight_device *backlight, in bd6107_backlight_check_fb() argument
111 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb()
[all …]
/kernel/linux/linux-5.10/drivers/video/backlight/
DKconfig3 # Backlight & LCD drivers configuration
6 menu "Backlight & LCD device support"
17 (contrast and applying power to the LCD (not to the backlight!)).
141 # Backlight
144 tristate "Lowlevel Backlight controls"
147 backlight. This includes support for brightness and power.
155 bool "Atmel LCDC Contrast-as-Backlight control"
158 This provides a backlight control internal to the Atmel LCDC
160 so it controls the backlight brightness, select this option to
161 export this as a PWM-based backlight control.
[all …]
Dbacklight.c3 * Backlight Lowlevel Control Abstraction
14 #include <linux/backlight.h>
22 #include <asm/backlight.h>
28 * The backlight core supports implementing backlight drivers.
30 * A backlight driver registers a driver using
31 * devm_backlight_device_register(). The properties of the backlight
34 * the update_status() operation is called. The backlight driver shall
35 * implement this operation and use it to adjust backlight.
37 * Several sysfs attributes are provided by the backlight core::
43 * See Documentation/ABI/stable/sysfs-class-backlight for the full list.
[all …]
Dlv5207lp.c10 #include <linux/backlight.h>
37 struct backlight_device *backlight; member
46 static int lv5207lp_backlight_update_status(struct backlight_device *backlight) in lv5207lp_backlight_update_status() argument
48 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_update_status()
49 int brightness = backlight_get_brightness(backlight); in lv5207lp_backlight_update_status()
65 static int lv5207lp_backlight_check_fb(struct backlight_device *backlight, in lv5207lp_backlight_check_fb() argument
68 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_check_fb()
83 struct backlight_device *backlight; in lv5207lp_probe() local
113 backlight = devm_backlight_device_register(&client->dev, in lv5207lp_probe()
116 if (IS_ERR(backlight)) { in lv5207lp_probe()
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-backlight-driver-adp88701 What: /sys/class/backlight/<backlight>/<ambient light zone>_max
2 What: /sys/class/backlight/<backlight>/l1_daylight_max
3 What: /sys/class/backlight/<backlight>/l2_bright_max
4 What: /sys/class/backlight/<backlight>/l3_office_max
5 What: /sys/class/backlight/<backlight>/l4_indoor_max
6 What: /sys/class/backlight/<backlight>/l5_dark_max
12 on this <backlight>. Values are between 0 and 127. This file
16 What: /sys/class/backlight/<backlight>/<ambient light zone>_dim
17 What: /sys/class/backlight/<backlight>/l2_bright_dim
18 What: /sys/class/backlight/<backlight>/l3_office_dim
[all …]
Dsysfs-class-backlight-adp88601 sysfs interface for analog devices adp8860 backlight driver
4 The backlight brightness control operates at three different levels for the
9 What: /sys/class/backlight/<backlight>/ambient_light_level
19 What: /sys/class/backlight/<backlight>/ambient_light_zone
24 (RW) Read or write the specific level at which the backlight
30 What: /sys/class/backlight/<backlight>/l1_daylight_max
31 What: /sys/class/backlight/<backlight>/l2_office_max
32 What: /sys/class/backlight/<backlight>/l3_dark_max
37 (RW) Maximum current setting for the backlight when brightness
44 What: /sys/class/backlight/<backlight>/l1_daylight_dim
[all …]
Dsysfs-class-backlight-adp55201 sysfs interface for analog devices adp5520(01) backlight driver
4 The backlight brightness control operates at three different levels for the
8 What: /sys/class/backlight/<backlight>/daylight_max
9 What: /sys/class/backlight/<backlight>/office_max
10 What: /sys/class/backlight/<backlight>/dark_max
15 (RW) Maximum current setting for the backlight when brightness
21 What: /sys/class/backlight/<backlight>/daylight_dim
22 What: /sys/class/backlight/<backlight>/office_dim
23 What: /sys/class/backlight/<backlight>/dark_dim
28 (RW) Dim current setting for the backlight when brightness is at
Dsysfs-class-backlight-driver-lm35331 What: /sys/class/backlight/<backlight>/als_channel
9 0 - out_current0 (backlight 0)
10 1 - out_current1 (backlight 1)
12 What: /sys/class/backlight/<backlight>/als_en
19 What: /sys/class/backlight/<backlight>/id
24 Get the id of this backlight (0, 1).
26 What: /sys/class/backlight/<backlight>/linear
36 What: /sys/class/backlight/<backlight>/pwm
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-backlight-driver-adp88701 See also /sys/class/backlight/<backlight>/ambient_light_level and
2 /sys/class/backlight/<backlight>/ambient_light_zone.
4 What: /sys/class/backlight/<backlight>/<ambient light zone>_max
5 What: /sys/class/backlight/<backlight>/l1_daylight_max
6 What: /sys/class/backlight/<backlight>/l2_bright_max
7 What: /sys/class/backlight/<backlight>/l3_office_max
8 What: /sys/class/backlight/<backlight>/l4_indoor_max
9 What: /sys/class/backlight/<backlight>/l5_dark_max
15 on this <backlight>. Values are between 0 and 127. This file
19 What: /sys/class/backlight/<backlight>/<ambient light zone>_dim
[all …]
Dsysfs-class-backlight-adp88601 sysfs interface for analog devices adp8860 backlight driver
4 The backlight brightness control operates at three different levels for the
9 See also /sys/class/backlight/<backlight>/ambient_light_level and
10 /sys/class/backlight/<backlight>/ambient_light_zone.
13 What: /sys/class/backlight/<backlight>/l1_daylight_max
14 What: /sys/class/backlight/<backlight>/l2_office_max
15 What: /sys/class/backlight/<backlight>/l3_dark_max
20 (RW) Maximum current setting for the backlight when brightness
27 What: /sys/class/backlight/<backlight>/l1_daylight_dim
28 What: /sys/class/backlight/<backlight>/l2_office_dim
[all …]
Dsysfs-class-backlight-adp55201 sysfs interface for analog devices adp5520(01) backlight driver
4 The backlight brightness control operates at three different levels for the
8 What: /sys/class/backlight/<backlight>/daylight_max
9 What: /sys/class/backlight/<backlight>/office_max
10 What: /sys/class/backlight/<backlight>/dark_max
15 (RW) Maximum current setting for the backlight when brightness
21 What: /sys/class/backlight/<backlight>/daylight_dim
22 What: /sys/class/backlight/<backlight>/office_dim
23 What: /sys/class/backlight/<backlight>/dark_dim
28 (RW) Dim current setting for the backlight when brightness is at
Dsysfs-class-backlight-driver-lm35331 What: /sys/class/backlight/<backlight>/als_channel
10 0 out_current0 (backlight 0)
11 1 out_current1 (backlight 1)
14 What: /sys/class/backlight/<backlight>/als_en
21 What: /sys/class/backlight/<backlight>/id
26 Get the id of this backlight (0, 1).
28 What: /sys/class/backlight/<backlight>/linear
40 What: /sys/class/backlight/<backlight>/pwm
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Dintel_panel.c417 panel->backlight.min, panel->backlight.max); in scale_user_to_hw()
428 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw()
429 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw()
440 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user()
450 WARN_ON(panel->backlight.max == 0); in intel_panel_compute_brightness()
457 return panel->backlight.max - val + panel->backlight.min; in intel_panel_compute_brightness()
487 if (panel->backlight.combination_mode) { in i9xx_get_backlight()
518 return I915_READ(BXT_BLC_PWM_DUTY(panel->backlight.controller)); in bxt_get_backlight()
526 duty_ns = pwm_get_duty_cycle(panel->backlight.pwm); in pwm_get_backlight()
556 WARN_ON(panel->backlight.max == 0); in i9xx_set_backlight()
[all …]
Dintel_dp_aux_backlight.c31 /* Early return when display use other mechanism to enable backlight. */ in set_aux_backlight_enable()
48 DRM_DEBUG_KMS("Failed to %s aux backlight\n", in set_aux_backlight_enable()
54 * Read the current backlight value from DPCD register(s) based
77 * Sends the current backlight level over the aux channel, checking if its using
96 DRM_DEBUG_KMS("Failed to write aux backlight level\n"); in intel_dp_aux_set_backlight()
120 freq = dev_priv->vbt.backlight.pwm_freq_hz; in intel_dp_aux_set_pwm_freq()
121 DRM_DEBUG_KMS("VBT defined backlight frequency %u Hz\n", freq); in intel_dp_aux_set_pwm_freq()
123 DRM_DEBUG_KMS("Use panel default backlight frequency\n"); in intel_dp_aux_set_pwm_freq()
152 DRM_DEBUG_KMS("VBT defined backlight frequency out of range\n"); in intel_dp_aux_set_pwm_freq()
170 DRM_DEBUG_KMS("Failed to write aux backlight freq\n"); in intel_dp_aux_set_pwm_freq()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_panel.c498 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw()
499 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw()
510 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user()
520 drm_WARN_ON(&dev_priv->drm, panel->backlight.max == 0); in intel_panel_compute_brightness()
527 return panel->backlight.max - val + panel->backlight.min; in intel_panel_compute_brightness()
557 if (panel->backlight.combination_mode) { in i9xx_get_backlight()
589 BXT_BLC_PWM_DUTY(panel->backlight.controller)); in bxt_get_backlight()
597 pwm_get_state(panel->backlight.pwm, &state); in pwm_get_backlight()
627 drm_WARN_ON(&dev_priv->drm, panel->backlight.max == 0); in i9xx_set_backlight()
629 if (panel->backlight.combination_mode) { in i9xx_set_backlight()
[all …]
Dintel_dp_aux_backlight.c33 /* Early return when display use other mechanism to enable backlight. */ in set_aux_backlight_enable()
50 drm_dbg_kms(&i915->drm, "Failed to %s aux backlight\n", in set_aux_backlight_enable()
75 * Read the current backlight value from DPCD register(s) based
90 return connector->panel.backlight.max; in intel_dp_aux_get_backlight()
106 * Sends the current backlight level over the aux channel, checking if its using
127 "Failed to write aux backlight level\n"); in intel_dp_aux_set_backlight()
144 const u8 pn = connector->panel.backlight.pwmgen_bit_count; in intel_dp_aux_set_pwm_freq()
147 freq = dev_priv->vbt.backlight.pwm_freq_hz; in intel_dp_aux_set_pwm_freq()
150 "Use panel default backlight frequency\n"); in intel_dp_aux_set_pwm_freq()
170 "Failed to write aux backlight freq\n"); in intel_dp_aux_set_pwm_freq()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbacklight.h3 * Backlight Lowlevel Control Abstraction
18 * enum backlight_update_reason - what method was used to update backlight
20 * A driver indicates the method (reason) used for updating the backlight
25 * @BACKLIGHT_UPDATE_HOTKEY: The backlight was updated using a hot-key.
30 * @BACKLIGHT_UPDATE_SYSFS: The backlight was updated using sysfs.
36 * enum backlight_type - the type of backlight control
38 * The type of interface used to control the backlight.
44 * The backlight is controlled using hardware registers.
51 * The backlight is controlled using a platform-specific interface.
58 * The backlight is controlled using a standard firmware interface.
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/shmobile/
Dshmob_drm_backlight.c3 * shmob_drm_backlight.c -- SH Mobile DRM Backlight
10 #include <linux/backlight.h>
20 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update()
34 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness()
47 if (scon->backlight == NULL) in shmob_drm_backlight_dpms()
50 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
52 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms()
58 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init()
61 struct backlight_device *backlight; in shmob_drm_backlight_init() local
66 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/shmobile/
Dshmob_drm_backlight.c2 * shmob_drm_backlight.c -- SH Mobile DRM Backlight
14 #include <linux/backlight.h>
24 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update()
38 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness()
51 if (scon->backlight == NULL) in shmob_drm_backlight_dpms()
54 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
56 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms()
62 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init()
65 struct backlight_device *backlight; in shmob_drm_backlight_init() local
70 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/stable/
Dsysfs-class-backlight1 What: /sys/class/backlight/<backlight>/bl_power
6 Control BACKLIGHT power, values are FB_BLANK_* from fb.h
11 What: /sys/class/backlight/<backlight>/brightness
16 Control the brightness for this <backlight>. Values
22 What: /sys/class/backlight/<backlight>/actual_brightness
30 What: /sys/class/backlight/<backlight>/max_brightness
35 Maximum brightness for <backlight>.
38 What: /sys/class/backlight/<backlight>/type
43 The type of interface controlled by <backlight>.
48 In the general case, when multiple backlight
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/stable/
Dsysfs-class-backlight1 What: /sys/class/backlight/<backlight>/bl_power
6 Control BACKLIGHT power, values are FB_BLANK_* from fb.h
12 What: /sys/class/backlight/<backlight>/brightness
17 Control the brightness for this <backlight>. Values
23 What: /sys/class/backlight/<backlight>/actual_brightness
31 What: /sys/class/backlight/<backlight>/max_brightness
36 Maximum brightness for <backlight>.
39 What: /sys/class/backlight/<backlight>/type
44 The type of interface controlled by <backlight>.
49 In the general case, when multiple backlight
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/mfd/
Dti-lmu.txt7 LM3532 Backlight
8 LM3631 Backlight and regulator
9 LM3632 Backlight and regulator
10 LM3633 Backlight, LED and fault monitor
11 LM3695 Backlight
12 LM3697 Backlight and fault monitor
33 - backlight: All LMU devices have backlight child nodes.
46 [1] ../leds/backlight/ti-lmu-backlight.txt
56 backlight {
57 compatible = "ti,lm3532-backlight";
[all …]

12345678910>>...61