Home
last modified time | relevance | path

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

12345678910>>...29

/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dcommon.yaml20 default-brightness:
22 The default brightness that should be applied to the LED by the operating
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
42 The 0 value means a 0% of brightness (darkest/off), while the last value
43 in the array represents a full 100% brightness (brightest).
[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/drivers/video/backlight/
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
156 ret = device_property_read_u32(dev, "max-brightness", &max_brightness); in ktd253_backlight_probe()
160 /* Clamp brightness to hardware max */ in ktd253_backlight_probe()
161 dev_err(dev, "illegal max brightness specified\n"); in ktd253_backlight_probe()
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()
[all …]
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()
69 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", 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()
[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 Dlm3639_bl.c65 /* init brightness */ in lm3639_chip_init()
93 /* update and get brightness */
111 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()
[all …]
H A Dpwm_bl.c33 int brightness);
35 int brightness);
75 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness, struct pwm_state *state) in compute_duty_cycle() argument
81 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
83 duty_cycle = brightness; in compute_duty_cycle()
94 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
98 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
100 if (brightness > 0) { in pwm_backlight_update_status()
102 state.duty_cycle = compute_duty_cycle(pb, brightness, &state); in pwm_backlight_update_status()
125 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status()
[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 Dlm3630a_bl.c104 /* set brightness A and B */ in lm3630a_chip_init()
186 /* update and get brightness */
192 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()
204 /* minimum brightness is 0x04 */ 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()
[all …]
/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 …]
/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()
207 /* Mark the overall brightness as LED_ON if any of the subleds are on */ 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,
[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
44 Multicolor Class Brightness Control
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
[all …]
/linux/drivers/leds/
H A Dleds-turris-omnia.c25 * @cached_channels: cached values of per-channel brightness that was sent to the MCU
45 * @brightness_knode: kernel node of the "brightness" device sysfs attribute (this is the
46 * driver specific global brightness, not the LED classdev brightness)
70 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
103 * Only recalculate RGB brightnesses from intensities if brightness is in omnia_led_brightness_set_blocking()
105 * max_brightness as brightness). Otherwise we won't be using them and in omnia_led_brightness_set_blocking()
[all …]
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()
94 /* Store the current brightness value to be able 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()
[all …]
H A Dleds-pwm.c41 enum led_brightness brightness) in led_pwm_set() argument
48 duty *= brightness; in led_pwm_set()
71 ret = fwnode_property_read_u32(fwnode, "default-brightness", in led_pwm_default_brightness_get()
89 led_data->cdev.brightness = LED_OFF; in led_pwm_add()
117 /* set brightness */ 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()
[all …]
/linux/include/linux/
H A Dleds.h32 /* This is obsolete/useless. We now support variable maximum brightness. */
93 unsigned int brightness; member
122 /* Brightness off also disables hw-blinking so it is a separate action */
127 /* Set LED brightness level
129 * that can sleep while setting brightness.
132 enum led_brightness brightness);
134 * Set LED brightness level immediately - it can block the caller for
138 enum led_brightness brightness);
139 /* Get LED brightness level */
147 * Deactivate blinking again when the brightness is set to LED_OFF
[all …]
H A Dbacklight.h68 /** enum backlight_scale - the type of scale used for brightness values
70 * The type of scale used for brightness values.
81 * The linear scale will increase brightness the same for each step.
88 * This is often used when the brightness values tries to adjust to
120 * to check if the display is blanked and set brightness accordingly.
130 * @get_brightness: Return the current backlight brightness.
134 * brightness property value is used.
138 * A brightness value which is 0 or a positive number.
165 * @brightness: The current brightness requested by the user.
168 * when the brightness is set via the sysfs attribute:
[all …]
H A Dled-class-flash.h34 /* set flash brightness */
36 u32 brightness);
37 /* get flash brightness */
39 u32 *brightness);
74 /* flash brightness value in microamperes along with its constraints */
75 struct led_flash_setting brightness; member
173 * led_set_flash_brightness - set flash LED brightness
175 * @brightness: the brightness to set it to
177 * Set a flash LED's brightness.
182 u32 brightness);
[all …]
/linux/include/linux/platform_data/x86/
H A Dnvidia-wmi-ec-backlight.h13 * @WMI_BRIGHTNESS_METHOD_LEVEL: Get/Set EC brightness level status
14 * @WMI_BRIGHTNESS_METHOD_SOURCE: Get/Set EC Brightness Source
24 * @WMI_BRIGHTNESS_MODE_GET: Get the current brightness level/source.
25 * @WMI_BRIGHTNESS_MODE_SET: Set the brightness level.
26 * @WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL: Get the maximum brightness level. This
38 * enum wmi_brightness_source - Backlight brightness control source selection
39 * @WMI_BRIGHTNESS_SOURCE_GPU: Backlight brightness is controlled by the GPU.
40 * @WMI_BRIGHTNESS_SOURCE_EC: Backlight brightness is controlled by the
42 * @WMI_BRIGHTNESS_SOURCE_AUX: Backlight brightness is controlled over the
66 * brightness value when the WMI method ID is %WMI_BRIGHTNESS_METHOD_LEVEL, or
/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-pwm.yaml32 max-brightness:
34 Maximum brightness possible for the LED
37 default-brightness:
39 Brightness to be set if LED's default state is on. Used only during
40 initialization. If the option is not set then max brightness is used.
45 - max-brightness
60 max-brightness = <127>;
67 max-brightness = <255>;
H A Dleds-netxbig.txt18 - bright-addr: Brightness register address on gpio-ext bus.
19 - 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/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/drivers/platform/chrome/
H A Dcros_kbd_led_backlight.c30 * @brightness_get: Get LED brightness level.
31 * @brightness_set: Set LED brightness level. Must not sleep.
32 * @brightness_set_blocking: Set LED brightness level. It can block the
35 * @max_brightness: Maximum brightness.
45 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()
[all …]

12345678910>>...29