Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 25 of 883) sorted by relevance

12345678910>>...36

/linux-6.15/arch/powerpc/platforms/powermac/
H A Dbacklight.c74 int brightness; in pmac_backlight_key_worker() local
78 brightness = props->brightness + in pmac_backlight_key_worker()
82 if (brightness < 0) in pmac_backlight_key_worker()
83 brightness = 0; in pmac_backlight_key_worker()
85 brightness = props->max_brightness; in pmac_backlight_key_worker()
87 props->brightness = brightness; in pmac_backlight_key_worker()
115 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
120 props->brightness = props->max_brightness; in __pmac_backlight_set_legacy_brightness()
121 else if (props->brightness < 0) in __pmac_backlight_set_legacy_brightness()
122 props->brightness = 0; in __pmac_backlight_set_legacy_brightness()
[all …]
/linux-6.15/drivers/platform/x86/
H A Dsilicom-platform.c287 .brightness = 1,
293 .brightness = 1,
299 .brightness = 1,
308 .brightness = 1,
314 .brightness = 1,
320 .brightness = 1,
329 .brightness = 1,
335 .brightness = 1,
341 .brightness = 1,
347 .brightness = 1,
[all …]
/linux-6.15/drivers/video/backlight/
H A Daat2870_bl.c24 int brightness; /* current brightness */ member
28 int brightness) in aat2870_brightness() argument
33 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness()
61 int brightness = backlight_get_brightness(bd); in aat2870_bl_update_status() local
64 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
77 if (brightness == 0) { in aat2870_bl_update_status()
81 } else if (aat2870_bl->brightness == 0) { in aat2870_bl_update_status()
87 aat2870_bl->brightness = brightness; in aat2870_bl_update_status()
158 aat2870_bl->brightness = 0; in aat2870_bl_probe()
160 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe()
[all …]
H A Das3711_bl.c28 int brightness; member
61 brightness); in as3711_set_brightness_auto_i()
64 brightness); in as3711_set_brightness_auto_i()
67 brightness); in as3711_set_brightness_auto_i()
76 if (brightness > 31) in as3711_set_brightness_v()
106 int brightness; in as3711_bl_update_status() local
126 if (brightness) { in as3711_bl_update_status()
140 brightness); in as3711_bl_update_status()
144 brightness); in as3711_bl_update_status()
148 brightness); in as3711_bl_update_status()
[all …]
H A Dmt6370-backlight.c76 int brightness = backlight_get_brightness(bl_dev); in mt6370_bl_update_status() local
81 if (brightness) { in mt6370_bl_update_status()
91 gpiod_set_value(priv->enable_gpio, !!brightness); in mt6370_bl_update_status()
93 enable_val = brightness ? MT6370_BL_EN_MASK : 0; in mt6370_bl_update_status()
103 int brightness, ret; in mt6370_bl_get_brightness() local
120 return brightness + 1; in mt6370_bl_get_brightness()
134 u32 brightness, ovp_uV, ocp_uA; in mt6370_init_backlight_properties() local
199 brightness = priv->def_max_brightness; in mt6370_init_backlight_properties()
205 brightness = props->max_brightness; in mt6370_init_backlight_properties()
207 props->brightness = min_t(u32, brightness, props->max_brightness); in mt6370_init_backlight_properties()
[all …]
H A Dpandora_bl.c41 int brightness = bl->props.brightness; in pandora_backlight_update_status() local
46 brightness = 0; in pandora_backlight_update_status()
48 brightness = 0; in pandora_backlight_update_status()
50 brightness = 0; in pandora_backlight_update_status()
52 if ((unsigned int)brightness > MAX_USER_VALUE) in pandora_backlight_update_status()
53 brightness = MAX_USER_VALUE; in pandora_backlight_update_status()
55 if (brightness == 0) { in pandora_backlight_update_status()
92 twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF); in pandora_backlight_update_status()
95 if (brightness != 0) in pandora_backlight_update_status()
135 bl->props.brightness = MAX_USER_VALUE; in pandora_backlight_probe()
H A Dktd253-backlight.c77 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local
82 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
84 target_ratio = brightness; in ktd253_backlight_update_status()
148 u32 brightness; in ktd253_backlight_probe() local
165 ret = device_property_read_u32(dev, "default-brightness", &brightness); in ktd253_backlight_probe()
167 brightness = KTD253_DEFAULT_RATIO; in ktd253_backlight_probe()
168 if (brightness > max_brightness) { in ktd253_backlight_probe()
171 brightness = max_brightness; in ktd253_backlight_probe()
190 if (brightness) { in ktd253_backlight_probe()
191 bl->props.brightness = brightness; in ktd253_backlight_probe()
[all …]
H A Dda9052_bl.c39 uint brightness; member
71 if (wleds->brightness) { in da9052_adjust_wled_brightness()
73 wleds->brightness); in da9052_adjust_wled_brightness()
83 int brightness = bl->props.brightness; in da9052_backlight_update_status() local
86 wleds->brightness = brightness; in da9052_backlight_update_status()
96 return wleds->brightness; in da9052_backlight_get_brightness()
115 wleds->brightness = 0; in da9052_backlight_probe()
132 bl->props.brightness = 0; in da9052_backlight_probe()
143 wleds->brightness = 0; in da9052_backlight_remove()
H A Drt4831-backlight.c42 int brightness = backlight_get_brightness(bl_dev); in rt4831_bl_update_status() local
43 unsigned int enable = brightness ? RT4831_BLEN_MASK : 0; in rt4831_bl_update_status()
47 if (brightness) { in rt4831_bl_update_status()
48 v[0] = (brightness - 1) & RT4831_BLDIML_MASK; in rt4831_bl_update_status()
49 v[1] = ((brightness - 1) & RT4831_BLDIMH_MASK) >> RT4831_BLDIMH_SHIFT; in rt4831_bl_update_status()
94 u32 brightness, ocp_uA; in rt4831_parse_backlight_properties() local
99 ret = device_property_read_u32(dev, "max-brightness", &brightness); in rt4831_parse_backlight_properties()
101 brightness = RT4831_BLMAX_BRIGHTNESS; in rt4831_parse_backlight_properties()
107 brightness = bl_props->max_brightness; in rt4831_parse_backlight_properties()
109 bl_props->brightness = min_t(u32, brightness, bl_props->max_brightness); in rt4831_parse_backlight_properties()
[all …]
H A Dlm3639_bl.c116 return bl->props.brightness; in lm3639_bled_update_status()
127 if (!bl->props.brightness) in lm3639_bled_update_status()
134 return bl->props.brightness; in lm3639_bled_update_status()
137 return bl->props.brightness; in lm3639_bled_update_status()
153 return bl->props.brightness; in lm3639_bled_get_brightness()
165 bl->props.brightness = reg_val; in lm3639_bled_get_brightness()
167 return bl->props.brightness; in lm3639_bled_get_brightness()
170 return bl->props.brightness; in lm3639_bled_get_brightness()
220 enum led_brightness brightness) in lm3639_torch_brightness_set() argument
235 if (!brightness) { in lm3639_torch_brightness_set()
[all …]
H A Dktd2801-backlight.c36 u8 brightness = (u8) backlight_get_brightness(bd); in ktd2801_update_status() local
49 expresswire_write_u8(&ktd2801->props, brightness); in ktd2801_update_status()
63 u32 brightness, max_brightness; in ktd2801_backlight_probe() local
80 ret = device_property_read_u32(dev, "default-brightness", &brightness); in ktd2801_backlight_probe()
82 brightness = KTD2801_DEFAULT_BRIGHTNESS; in ktd2801_backlight_probe()
83 if (brightness > max_brightness) { in ktd2801_backlight_probe()
85 brightness = max_brightness; in ktd2801_backlight_probe()
101 bd->props.brightness = brightness; in ktd2801_backlight_probe()
H A Dams369fg06.c232 if ((brightness >= 0) && (brightness <= 50)) in ams369fg06_gamma_ctl()
234 else if ((brightness > 50) && (brightness <= 100)) in ams369fg06_gamma_ctl()
236 else if ((brightness > 100) && (brightness <= 150)) in ams369fg06_gamma_ctl()
238 else if ((brightness > 150) && (brightness <= 200)) in ams369fg06_gamma_ctl()
240 else if ((brightness > 200) && (brightness <= 255)) in ams369fg06_gamma_ctl()
340 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_power_on()
410 int brightness = bd->props.brightness; in ams369fg06_set_brightness() local
413 if (brightness < MIN_BRIGHTNESS || in ams369fg06_set_brightness()
414 brightness > bd->props.max_brightness) { in ams369fg06_set_brightness()
420 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_set_brightness()
[all …]
H A Dda903x_bl.c39 static int da903x_backlight_set(struct backlight_device *bl, int brightness) in da903x_backlight_set() argument
49 brightness, 0x7f); in da903x_backlight_set()
53 if (data->current_brightness && brightness == 0) in da903x_backlight_set()
58 if (data->current_brightness == 0 && brightness) in da903x_backlight_set()
64 val = DA9030_WLED_TRIM(brightness); in da903x_backlight_set()
65 val |= brightness ? DA9030_WLED_CP_EN : 0; in da903x_backlight_set()
73 data->current_brightness = brightness; in da903x_backlight_set()
140 bl->props.brightness = max_brightness; in da903x_backlight_probe()
H A Dep93xx_bl.c22 int brightness; member
25 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument
29 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set()
31 ep93xxbl->brightness = brightness; in ep93xxbl_set()
45 return ep93xxbl->brightness; in ep93xxbl_get_brightness()
90 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
/linux-6.15/Documentation/devicetree/bindings/leds/backlight/
H A Dcommon.yaml20 default-brightness:
23 system on start-up. The brightness should not exceed the brightness the
27 max-brightness:
29 Normally the maximum brightness is determined by the hardware and this
31 on the brightness apart from what the driver says, as it could happen
36 brightness-levels:
38 Array of distinct brightness levels. The levels must be in the range
43 in the array represents a full 100% brightness (brightest).
47 default-brightness-level:
49 The default brightness level (index into the array defined by the
[all …]
H A Dpwm-backlight.yaml47 Number of interpolated steps between each value of brightness-levels
49 having to list out every possible value in the brightness-level array.
53 default-brightness-level: [brightness-levels]
54 num-interpolated-steps: [brightness-levels]
68 brightness-levels = <0 4 8 16 32 64 128 255>;
69 default-brightness-level = <6>;
83 brightness-levels = <0 2048 4096 8192 16384 65535>;
85 default-brightness-level = <4096>;
/linux-6.15/drivers/hid/
H A Dhid-lg-g15.c110 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
113 return brightness; in lg_g15_led_get()
140 val = brightness; in lg_g15_led_set()
157 g15_led->brightness = brightness; in lg_g15_led_set()
183 brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
194 brightness[i]); in lg_g15_leds_changed_work()
254 g15_led->brightness = brightness; in lg_g510_kbd_led_write()
336 brightness = g15->leds[g15_led->led].brightness; in lg_g510_mkey_led_get()
339 return brightness; in lg_g510_mkey_led_get()
359 val = brightness; in lg_g510_mkey_led_set()
[all …]
/linux-6.15/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00leds.c22 unsigned int brightness; in rt2x00leds_led_quality() local
55 brightness = ((LED_FULL / 6) * rssi) + 1; in rt2x00leds_led_quality()
56 if (brightness != led->led_dev.brightness) { in rt2x00leds_led_quality()
57 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00leds_led_quality()
58 led->led_dev.brightness = brightness; in rt2x00leds_led_quality()
64 unsigned int brightness = enabled ? LED_FULL : LED_OFF; in rt2x00led_led_simple() local
69 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00led_led_simple()
70 led->led_dev.brightness = brightness; in rt2x00led_led_simple()
99 led->led_dev.brightness = LED_OFF; in rt2x00leds_register_led()
203 led->led_dev.brightness = LED_OFF; in rt2x00leds_suspend_led()
[all …]
/linux-6.15/Documentation/leds/
H A Dleds-lm3556.rst35 #echo 0 > /sys/class/leds/flash/brightness
39 #echo 1 > /sys/class/leds/flash/brightness
45 #echo 16 > /sys/class/leds/flash/brightness
62 #echo 0 > /sys/class/leds/torch/brightness
66 #echo 1 > /sys/class/leds/torch/brightness
72 #echo 8 > /sys/class/leds/torch/brightness
98 Indicator brightness can be controlled through
99 sys/class/leds/indicator/brightness file.
105 #echo 0 > /sys/class/leds/indicator/brightness
109 #echo 1 > /sys/class/leds/indicator/brightness
[all …]
H A Dleds-class-multicolor.rst12 via brightness file.
35 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
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
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
76 echo 128 > /sys/class/leds/multicolor:status/brightness
82 Reading the global brightness file will return the current brightness value of
[all …]
/linux-6.15/Documentation/devicetree/bindings/leds/
H A 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
/linux-6.15/Documentation/ABI/testing/
H A 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.
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.
57 Reading this file will return the last brightness level set
[all …]
/linux-6.15/drivers/leds/
H A Dled-core.c68 unsigned long brightness; in led_timer_function() local
83 brightness = led_get_brightness(led_cdev); in led_timer_function()
84 if (!brightness) { in led_timer_function()
90 brightness = led_cdev->blink_brightness; in led_timer_function()
96 led_cdev->blink_brightness = brightness; in led_timer_function()
97 brightness = LED_OFF; in led_timer_function()
109 if (brightness) in led_timer_function()
113 if (!brightness) in led_timer_function()
316 if (!brightness) { in led_set_brightness()
392 unsigned int brightness) in led_mc_set_brightness() argument
[all …]
H A Dleds-pwm.c41 enum led_brightness brightness) in led_pwm_set() argument
48 duty *= brightness; in led_pwm_set()
89 led_data->cdev.brightness = LED_OFF; in led_pwm_add()
120 led_data->cdev.brightness = in led_pwm_add()
125 uint64_t brightness; in led_pwm_add() local
127 brightness = led->max_brightness; in led_pwm_add()
128 brightness *= led_data->pwmstate.duty_cycle; in led_pwm_add()
129 do_div(brightness, led_data->pwmstate.period); in led_pwm_add()
130 led_data->cdev.brightness = brightness; in led_pwm_add()
143 ret = led_pwm_set(&led_data->cdev, led_data->cdev.brightness); in led_pwm_add()
H A Duleds.c33 int brightness; member
40 enum led_brightness brightness) in uleds_brightness_set() argument
45 if (udev->brightness != brightness) { in uleds_brightness_set()
46 udev->brightness = brightness; in uleds_brightness_set()
137 if (count < sizeof(udev->brightness)) in uleds_read()
150 retval = copy_to_user(buffer, &udev->brightness, in uleds_read()
151 sizeof(udev->brightness)); in uleds_read()
153 retval = sizeof(udev->brightness); in uleds_read()

12345678910>>...36