Home
last modified time | relevance | path

Searched full:brightness (Results 1 – 25 of 1477) sorted by relevance

12345678910>>...60

/kernel/linux/linux-4.19/arch/powerpc/platforms/powermac/
Dbacklight.c36 * in-kernel control of the brightness needs to be disabled. This should
108 int brightness; in pmac_backlight_key_worker() local
112 brightness = props->brightness + in pmac_backlight_key_worker()
116 if (brightness < 0) in pmac_backlight_key_worker()
117 brightness = 0; in pmac_backlight_key_worker()
118 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
119 brightness = props->max_brightness; in pmac_backlight_key_worker()
121 props->brightness = brightness; in pmac_backlight_key_worker()
140 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument
149 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/
Dbacklight.c37 * in-kernel control of the brightness needs to be disabled. This should
109 int brightness; in pmac_backlight_key_worker() local
113 brightness = props->brightness + in pmac_backlight_key_worker()
117 if (brightness < 0) in pmac_backlight_key_worker()
118 brightness = 0; in pmac_backlight_key_worker()
119 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
120 brightness = props->max_brightness; in pmac_backlight_key_worker()
122 props->brightness = brightness; in pmac_backlight_key_worker()
141 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument
150 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
[all …]
/kernel/linux/linux-5.10/drivers/video/backlight/
Dktd253-backlight.c78 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local
83 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
85 target_ratio = brightness; in ktd253_backlight_update_status()
149 u32 brightness; in ktd253_backlight_probe() local
157 ret = device_property_read_u32(dev, "max-brightness", &max_brightness); in ktd253_backlight_probe()
161 /* Clamp brightness to hardware max */ in ktd253_backlight_probe()
162 dev_err(dev, "illegal max brightness specified\n"); in ktd253_backlight_probe()
166 ret = device_property_read_u32(dev, "default-brightness", &brightness); in ktd253_backlight_probe()
168 brightness = KTD253_DEFAULT_RATIO; in ktd253_backlight_probe()
169 if (brightness > max_brightness) { in ktd253_backlight_probe()
[all …]
Daat2870_bl.c25 int brightness; /* current brightness */ member
29 int brightness) in aat2870_brightness() argument
34 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness()
62 int brightness = bd->props.brightness; in aat2870_bl_update_status() local
65 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
66 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status()
70 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status()
71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
76 brightness = 0; in aat2870_bl_update_status()
79 (u8)aat2870_brightness(aat2870_bl, brightness)); in aat2870_bl_update_status()
[all …]
Dpcf50633-backlight.c22 unsigned int brightness; member
29 * Update the brightness limit for the pc50633 backlight. The actual brightness
34 * @limit: The brightness limit. Valid values are 0-63
58 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
59 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
64 if (pcf_bl->brightness == new_brightness) in pcf50633_bl_update_status()
70 if (!pcf_bl->brightness) in pcf50633_bl_update_status()
76 pcf_bl->brightness = new_brightness; in pcf50633_bl_update_status()
85 return pcf_bl->brightness; in pcf50633_bl_get_brightness()
112 bl_props.brightness = pdata->default_brightness; in pcf50633_bl_probe()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/
Dpwm-backlight.yaml42 brightness-levels:
44 Array of distinct brightness levels. Typically these are in the range
45 from 0 to 255, but any range starting at 0 will do. The actual brightness
51 default-brightness-level:
53 The default brightness level (index into the array defined by the
54 "brightness-levels" property).
59 Number of interpolated steps between each value of brightness-levels
61 having to list out every possible value in the brightness-level array.
65 default-brightness-level: [brightness-levels]
66 num-interpolated-steps: [brightness-levels]
[all …]
Dled-backlight.yaml27 brightness-levels:
29 Array of distinct brightness levels. The levels must be in the range
31 backlight brightness level into a LED brightness level. If it is not
35 default-brightness-level:
37 The default brightness level (index into the array defined by the
38 "brightness-levels" property).
53 brightness-levels = <0 4 8 16 32 64 128 255>;
54 default-brightness-level = <6>;
/kernel/linux/linux-4.19/Documentation/leds/
Dleds-lm3556.txt21 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
22 * if STROBE pin is enabled, below example control brightness only, and
26 OFF : #echo 0 > sys/class/leds/flash/brightness
27 93.75 mA: #echo 1 > sys/class/leds/flash/brightness
29 1500 mA: #echo 16 > sys/class/leds/flash/brightness
35 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
36 * if TORCH pin is enabled, below example control brightness only,
40 OFF : #echo 0 > sys/class/leds/torch/brightness
41 46.88 mA: #echo 1 > sys/class/leds/torch/brightness
43 375 mA : #echo 8 > sys/class/leds/torch/brightness
[all …]
/kernel/linux/linux-4.19/drivers/video/backlight/
Daat2870_bl.c38 int brightness; /* current brightness */ member
42 int brightness) in aat2870_brightness() argument
47 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness()
75 int brightness = bd->props.brightness; in aat2870_bl_update_status() local
78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
79 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status()
83 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status()
84 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
89 brightness = 0; in aat2870_bl_update_status()
92 (u8)aat2870_brightness(aat2870_bl, brightness)); in aat2870_bl_update_status()
[all …]
Dpcf50633-backlight.c31 unsigned int brightness; member
38 * Update the brightness limit for the pc50633 backlight. The actual brightness
43 * @limit: The brightness limit. Valid values are 0-63
67 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
68 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
73 if (pcf_bl->brightness == new_brightness) in pcf50633_bl_update_status()
79 if (!pcf_bl->brightness) in pcf50633_bl_update_status()
85 pcf_bl->brightness = new_brightness; in pcf50633_bl_update_status()
94 return pcf_bl->brightness; in pcf50633_bl_get_brightness()
121 bl_props.brightness = pdata->default_brightness; in pcf50633_bl_probe()
[all …]
Dlm3630a_bl.c97 /* set brightness A and B */ in lm3630a_chip_init()
176 /* update and get brightness */
185 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
187 return bl->props.brightness; in lm3630a_bank_a_update_status()
195 /* minimum brightness is 0x04 */ in lm3630a_bank_a_update_status()
196 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
197 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
208 return bl->props.brightness; in lm3630a_bank_a_update_status()
213 int brightness, rval; in lm3630a_bank_a_get_brightness() local
221 brightness = (rval & 0x01) << 8; in lm3630a_bank_a_get_brightness()
[all …]
Dda903x_bl.c43 static int da903x_backlight_set(struct backlight_device *bl, int brightness) in da903x_backlight_set() argument
53 brightness, 0x7f); in da903x_backlight_set()
57 if (data->current_brightness && brightness == 0) in da903x_backlight_set()
62 if (data->current_brightness == 0 && brightness) in da903x_backlight_set()
68 val = DA9030_WLED_TRIM(brightness); in da903x_backlight_set()
69 val |= brightness ? DA9030_WLED_CP_EN : 0; in da903x_backlight_set()
77 data->current_brightness = brightness; in da903x_backlight_set()
83 int brightness = bl->props.brightness; in da903x_backlight_update_status() local
86 brightness = 0; in da903x_backlight_update_status()
89 brightness = 0; in da903x_backlight_update_status()
[all …]
Dep93xx_bl.c10 * This driver controls the pulse width modulated brightness control output,
26 int brightness; member
29 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument
33 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set()
35 ep93xxbl->brightness = brightness; in ep93xxbl_set()
42 int brightness = bl->props.brightness; in ep93xxbl_update_status() local
46 brightness = 0; in ep93xxbl_update_status()
48 return ep93xxbl_set(bl, brightness); in ep93xxbl_update_status()
55 return ep93xxbl->brightness; in ep93xxbl_get_brightness()
100 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
Das3711_bl.c32 int brightness; member
55 unsigned int brightness) in as3711_set_brightness_auto_i() argument
65 brightness); in as3711_set_brightness_auto_i()
68 brightness); in as3711_set_brightness_auto_i()
71 brightness); in as3711_set_brightness_auto_i()
77 unsigned int brightness, in as3711_set_brightness_v() argument
80 if (brightness > 31) in as3711_set_brightness_v()
84 brightness << 4); in as3711_set_brightness_v()
103 * the brightness adjustment procedure.
110 int brightness = bl->props.brightness; in as3711_bl_update_status() local
[all …]
D88pm860x_bl.c62 static int pm860x_backlight_set(struct backlight_device *bl, int brightness) in pm860x_backlight_set() argument
69 if (brightness > MAX_BRIGHTNESS) in pm860x_backlight_set()
72 value = brightness; in pm860x_backlight_set()
74 if (brightness) in pm860x_backlight_set()
81 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
94 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
100 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
113 if (brightness == 0) in pm860x_backlight_set()
116 dev_dbg(chip->dev, "set brightness %d\n", value); in pm860x_backlight_set()
120 dev_dbg(chip->dev, "set brightness %d failure with return value: %d\n", in pm860x_backlight_set()
[all …]
Dmax8925_bl.c35 static int max8925_backlight_set(struct backlight_device *bl, int brightness) in max8925_backlight_set() argument
42 if (brightness > MAX_BRIGHTNESS) in max8925_backlight_set()
45 value = brightness; in max8925_backlight_set()
51 if (!data->current_brightness && brightness) in max8925_backlight_set()
54 else if (!brightness) in max8925_backlight_set()
59 dev_dbg(chip->dev, "set brightness %d\n", value); in max8925_backlight_set()
63 dev_dbg(chip->dev, "set brightness %d failure with return value:%d\n", in max8925_backlight_set()
70 int brightness = bl->props.brightness; in max8925_backlight_update_status() local
73 brightness = 0; in max8925_backlight_update_status()
76 brightness = 0; in max8925_backlight_update_status()
[all …]
/kernel/linux/linux-5.10/Documentation/leds/
Dleds-lm3556.rst26 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
28 * if STROBE pin is enabled, below example control brightness only, and
35 #echo 0 > sys/class/leds/flash/brightness
39 #echo 1 > sys/class/leds/flash/brightness
45 #echo 16 > sys/class/leds/flash/brightness
54 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
55 * if TORCH pin is enabled, below example control brightness only,
62 #echo 0 > sys/class/leds/torch/brightness
66 #echo 1 > sys/class/leds/torch/brightness
72 #echo 8 > sys/class/leds/torch/brightness
[all …]
Dleds-class-multicolor.rst12 via brightness file.
35 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
40 Multicolor Class Brightness Control
42 The brightness level for each LED is calculated based on the color LED
44 the requested brightness.
46 led_brightness = brightness * multi_intensity/max_brightness
49 A user first writes the multi_intensity file with the brightness levels
68 The user can control the brightness of that multicolor LED group by writing the
69 global 'brightness' control. Assuming a max_brightness of 255 the user
71 128 to the global brightness file then the values written to each LED will be
[all …]
/kernel/linux/linux-4.19/drivers/leds/
Dled-core.c51 unsigned long brightness; in led_timer_function() local
66 brightness = led_get_brightness(led_cdev); in led_timer_function()
67 if (!brightness) { in led_timer_function()
71 brightness = led_cdev->new_blink_brightness; in led_timer_function()
73 brightness = led_cdev->blink_brightness; in led_timer_function()
76 /* Store the current brightness value to be able in led_timer_function()
79 led_cdev->blink_brightness = brightness; in led_timer_function()
80 brightness = LED_OFF; in led_timer_function()
84 led_set_brightness_nosleep(led_cdev, brightness); in led_timer_function()
92 if (brightness) in led_timer_function()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-backlight6 Description of the scale of the brightness curve.
8 The human eye senses brightness approximately logarithmically,
9 hence linear changes in brightness are perceived as being
10 non-linear. To achieve a linear perception of brightness changes
12 backlights with a linear brightness curve.
17 The scale of the brightness curve is unknown.
20 The brightness changes linearly with each step. Brightness
25 The brightness changes non-linearly with each step. Brightness
43 brightness).
56 (RW) Read or write the specific brightness level at which the
[all …]
Dsysfs-class-led1 What: /sys/class/leds/<led>/brightness
6 Set the brightness of the LED.
8 Most LEDs don't have hardware brightness support, so will
9 just be turned on for non-zero brightness settings.
20 led_brightness = brightness * multi_intensity/max_brightness
31 top brightness trigger is going to use.
40 Maximum brightness level for this LED, default is 255 (LED_FULL).
42 If the LED does not support different brightness levels, this
49 Last hardware set brightness level for this LED. Some LEDs
55 the brightness.
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/leds/backlight/
Dpwm-backlight.txt17 - brightness-levels: Array of distinct brightness levels. Typically these
19 0 will do. The actual brightness level (PWM duty cycle)
23 - default-brightness-level: The default brightness level (index into the
24 array defined by the "brightness-levels" property).
26 of brightness-levels table. This way a high
29 brightness-level array.
40 brightness-levels = <0 4 8 16 32 64 128 255>;
41 default-brightness-level = <6>;
55 brightness-levels = <0 2048 4096 8192 16384 65535>;
57 default-brightness-level = <4096>;
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-class-led1 What: /sys/class/leds/<led>/brightness
6 Set the brightness of the LED. Most LEDs don't
7 have hardware brightness support, so will just be turned on for
8 non-zero brightness settings. The value is between 0 and
14 top brightness trigger is going to use.
21 Maximum brightness level for this LED, default is 255 (LED_FULL).
23 If the LED does not support different brightness levels, this
30 Last hardware set brightness level for this LED. Some LEDs
36 the brightness.
38 Reading this file will return the last brightness level set
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-lg-g15.c46 enum led_brightness brightness; member
54 /* Protects the transfer_buf and led brightness */
74 hid_err(g15->hdev, "Error getting LED brightness: %d\n", ret); in lg_g15_update_led_brightness()
78 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
79 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
81 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
83 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
85 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
87 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
98 enum led_brightness brightness; in lg_g15_led_get() local
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-trigger-pattern.txt3 The pattern is given by a series of tuples, of brightness and duration (ms).
4 The LED is expected to traverse the series and each brightness value for the
5 specified duration. Duration of 0 means brightness should immediately change to
10 change of brightness, i.e. the subsequent brightness will be applied without
22 LED brightness
31 2. To make the LED go instantly from one brightness value to another, we should
32 use zero-time lengths (the brightness must be same as the previous tuple's). So
39 It will make the LED stay off for one second, then stay at max brightness for
42 LED brightness

12345678910>>...60