Home
last modified time | relevance | path

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

12345678910>>...70

/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-6.6/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/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-6.6/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.yaml29 brightness-levels:
31 Array of distinct brightness levels. The levels must be in the range
33 backlight brightness level into a LED brightness level. If it is not
37 default-brightness-level:
39 The default brightness level (index into the array defined by the
40 "brightness-levels" property).
55 brightness-levels = <0 4 8 16 32 64 128 255>;
56 default-brightness-level = <6>;
/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-6.6/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 = backlight_get_brightness(bd); 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()
74 (u8)aat2870_brightness(aat2870_bl, brightness)); in aat2870_bl_update_status()
78 if (brightness == 0) { 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 …]
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 …]
/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-5.10/Documentation/ABI/testing/
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 …]
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 …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
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-6.6/drivers/hid/
Dhid-lg-g15.c48 enum led_brightness brightness; member
56 /* Protects the transfer_buf and led brightness */
76 hid_err(g15->hdev, "Error getting LED brightness: %d\n", ret); in lg_g15_update_led_brightness()
80 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
81 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
83 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
85 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
87 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
89 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
100 enum led_brightness brightness; in lg_g15_led_get() local
[all …]
/kernel/linux/linux-6.6/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-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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-6.6/include/linux/platform_data/x86/
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

12345678910>>...70