Home
last modified time | relevance | path

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

12345678910>>...25

/linux/arch/powerpc/platforms/powermac/
H A Dbacklight.c75 int brightness; in pmac_backlight_key_worker() local
79 brightness = props->brightness + in pmac_backlight_key_worker()
83 if (brightness < 0) in pmac_backlight_key_worker()
84 brightness = 0; in pmac_backlight_key_worker()
85 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
86 brightness = props->max_brightness; in pmac_backlight_key_worker()
88 props->brightness = brightness; in pmac_backlight_key_worker()
107 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument
116 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
120 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
[all …]
/linux/drivers/platform/x86/
H A Dsilicom-platform.c201 enum led_brightness brightness = LED_OFF; in silicom_mec_led_mc_brightness_get() local
205 mc_cdev->subled_info[i].brightness = in silicom_mec_led_mc_brightness_get()
208 if (mc_cdev->subled_info[i].brightness != LED_OFF) in silicom_mec_led_mc_brightness_get()
209 brightness = LED_ON; in silicom_mec_led_mc_brightness_get()
212 return brightness; in silicom_mec_led_mc_brightness_get()
216 enum led_brightness brightness) in silicom_mec_led_mc_brightness_set() argument
221 led_mc_calc_color_components(mc_cdev, brightness); in silicom_mec_led_mc_brightness_set()
224 mc_cdev->subled_info[i].brightness); in silicom_mec_led_mc_brightness_set()
284 .brightness = 1,
290 .brightness = 1,
[all …]
/linux/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()
65 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status()
70 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
73 (u8)aat2870_brightness(aat2870_bl, 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()
[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()
82 brightness_val[0] = (brightness - 1) & priv->dim2_mask; in mt6370_bl_update_status()
83 brightness_val[1] = (brightness - 1) >> priv->dim2_shift; 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
117 brightness = brightness_val[1] << priv->dim2_shift; in mt6370_bl_get_brightness()
118 brightness += brightness_val[0] & priv->dim2_mask; in mt6370_bl_get_brightness()
120 return brightness + 1; in mt6370_bl_get_brightness()
[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 Dlm3639_bl.c111 pdata->pwm_set_intensity(bl->props.brightness, in lm3639_bled_update_status()
116 return bl->props.brightness; in lm3639_bled_update_status()
120 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, bl->props.brightness); in lm3639_bled_update_status()
123 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, 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()
149 bl->props.brightness = pdata->pwm_get_intensity(); in lm3639_bled_get_brightness()
153 return bl->props.brightness; in lm3639_bled_get_brightness()
165 bl->props.brightness = reg_val; in lm3639_bled_get_brightness()
[all …]
H A Dams369fg06.c227 static int ams369fg06_gamma_ctl(struct ams369fg06 *lcd, int brightness) in ams369fg06_gamma_ctl() argument
232 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()
[all …]
H A Dlm3630a_bl.c192 int brightness = backlight_get_brightness(bl); in lm3630a_bank_a_update_status() local
196 return lm3630a_pwm_ctrl(pchip, brightness, in lm3630a_bank_a_update_status()
205 ret = lm3630a_write(pchip, REG_BRT_A, brightness); in lm3630a_bank_a_update_status()
207 if (brightness < 0x4) in lm3630a_bank_a_update_status()
224 int brightness, rval; in lm3630a_bank_a_get_brightness() local
232 brightness = (rval & 0x01) << 8; in lm3630a_bank_a_get_brightness()
236 brightness |= rval; in lm3630a_bank_a_get_brightness()
237 return brightness; in lm3630a_bank_a_get_brightness()
267 int brightness = backlight_get_brightness(bl); in lm3630a_bank_b_update_status() local
271 return lm3630a_pwm_ctrl(pchip, brightness, in lm3630a_bank_b_update_status()
[all …]
/linux/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/Documentation/leds/
H A 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 …]
H A Dleds-class-multicolor.rst12 via brightness file.
37 -rw-r--r-- 1 root root 4096 Oct 19 16:16 brightness
46 The brightness level for each LED is calculated based on the color LED
48 the requested brightness.
50 ``led_brightness = brightness * multi_intensity/max_brightness``
53 A user first writes the multi_intensity file with the brightness levels
76 The user can control the brightness of that multicolor LED group by writing the
77 global 'brightness' control. Assuming a max_brightness of 255 the user
79 128 to the global brightness file then the values written to each LED will be
86 # echo 128 > /sys/class/leds/multicolor:status/brightness
[all …]
/linux/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
H A Dleds-netxbig.txt19 - max-brightness: Maximum brightness value.
43 max-brightness = <7>;
52 max-brightness = <7>;
62 max-brightness = <7>;
71 max-brightness = <7>;
81 max-brightness = <7>;
90 max-brightness = <7>;
/linux/drivers/leds/
H A Dled-core.c69 unsigned long brightness; in led_timer_function() local
84 brightness = led_get_brightness(led_cdev); in led_timer_function()
85 if (!brightness) { in led_timer_function()
89 brightness = led_cdev->new_blink_brightness; in led_timer_function()
91 brightness = led_cdev->blink_brightness; in led_timer_function()
97 led_cdev->blink_brightness = brightness; in led_timer_function()
98 brightness = LED_OFF; in led_timer_function()
102 led_set_brightness_nosleep(led_cdev, brightness); in led_timer_function()
110 if (brightness) in led_timer_function()
114 if (!brightness) in led_timer_function()
[all …]
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()
H A Dleds-turris-omnia.c70 ret = omnia_cmd_set_color(client, led->reg, led->subled_info[0].brightness, in omnia_led_send_color_cmd()
71 led->subled_info[1].brightness, led->subled_info[2].brightness); in omnia_led_send_color_cmd()
77 led->cached_channels[i] = led->subled_info[i].brightness; in omnia_led_send_color_cmd()
86 if (led->subled_info[i].brightness != led->cached_channels[i]) in omnia_led_channels_changed()
93 enum led_brightness brightness) in omnia_led_brightness_set_blocking() argument
109 if (brightness || led->hwtrig) { in omnia_led_brightness_set_blocking()
110 led_mc_calc_color_components(mc_cdev, brightness ?: in omnia_led_brightness_set_blocking()
125 if (!err && !led->hwtrig && !brightness != !led->on) { in omnia_led_brightness_set_blocking()
128 if (brightness) in omnia_led_brightness_set_blocking()
133 led->on = !!brightness; in omnia_led_brightness_set_blocking()
[all …]
H A Dleds-ti-lmu-common.c20 int brightness) in ti_lmu_common_update_brightness() argument
37 brightness); in ti_lmu_common_update_brightness()
41 val = brightness >> LMU_11BIT_MSB_SHIFT; in ti_lmu_common_update_brightness()
43 val = brightness; in ti_lmu_common_update_brightness()
51 int ti_lmu_common_set_brightness(struct ti_lmu_bank *lmu_bank, int brightness) in ti_lmu_common_set_brightness() argument
53 return ti_lmu_common_update_brightness(lmu_bank, brightness); in ti_lmu_common_set_brightness()
/linux/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.
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 …]
H A 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 …]
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Doverlay.c46 struct drm_property *brightness; member
53 int brightness; member
220 u32 luma = (plane->brightness - 512) << 16 | plane->contrast; in nv10_set_params()
255 else if (property == nv_plane->props.brightness) in nv_set_property()
256 nv_plane->brightness = value; in nv_set_property()
311 plane->props.brightness = drm_property_create_range( in nv10_overlay_init()
319 !plane->props.brightness || in nv10_overlay_init()
332 plane->brightness = 512; in nv10_overlay_init()
334 plane->props.brightness, plane->brightness); in nv10_overlay_init()
377 int brightness = (nv_plane->brightness - 512) * 62 / 512; in nv04_update_plane() local
[all …]
/linux/drivers/leds/trigger/
H A Dledtrig-backlight.c21 int brightness; member
39 n->brightness = led->brightness; in ledtrig_backlight_notify_blank()
42 led_set_brightness_nosleep(led, n->brightness); in ledtrig_backlight_notify_blank()
89 led_set_brightness_nosleep(led, n->brightness); in bl_trig_invert_store()
111 n->brightness = led->brightness; in bl_trig_activate()
/linux/drivers/platform/chrome/
H A Dcros_kbd_led_backlight.c45 enum led_brightness brightness);
47 enum led_brightness brightness);
62 enum led_brightness brightness) in keyboard_led_set_brightness_acpi() argument
69 param.integer.value = brightness; in keyboard_led_set_brightness_acpi()
83 unsigned long long brightness; in keyboard_led_get_brightness_acpi() local
87 NULL, &brightness); in keyboard_led_get_brightness_acpi()
94 return brightness; in keyboard_led_get_brightness_acpi()
138 enum led_brightness brightness) in keyboard_led_set_brightness_ec_pwm() argument
149 params->percent = brightness; in keyboard_led_set_brightness_ec_pwm()
/linux/drivers/usb/misc/
H A Dappledisplay.c138 pdata->msgdata[1] = bd->props.brightness; in appledisplay_bl_update_status()
160 int retval, brightness; in appledisplay_bl_get_brightness() local
176 brightness = pdata->msgdata[1]; in appledisplay_bl_get_brightness()
183 return brightness; in appledisplay_bl_get_brightness()
199 pdata->bd->props.brightness = retval; in appledisplay_work()
215 int retval, brightness; in appledisplay_probe() local
291 brightness = appledisplay_bl_get_brightness(pdata->bd); in appledisplay_probe()
293 if (brightness < 0) { in appledisplay_probe()
294 retval = brightness; in appledisplay_probe()
301 pdata->bd->props.brightness = brightness; in appledisplay_probe()
/linux/drivers/media/radio/
H A Dradio-shark.c70 atomic_t brightness[NO_LEDS]; member
159 int i, res, brightness, actual_len; in shark_led_work() local
165 brightness = atomic_read(&shark->brightness[i]); in shark_led_work()
169 shark->transfer_buffer[1] = brightness; in shark_led_work()
171 shark->transfer_buffer[0] = brightness ? 0xA9 : 0xA8; in shark_led_work()
188 atomic_set(&shark->brightness[BLUE_LED], value); in shark_led_set_blue()
200 atomic_set(&shark->brightness[BLUE_PULSE_LED], 256 - value); in shark_led_set_blue_pulse()
212 atomic_set(&shark->brightness[RED_LED], value); in shark_led_set_red()
220 .brightness = LED_OFF,
226 .brightness = LED_OFF,
[all …]

12345678910>>...25