Home
last modified time | relevance | path

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

12345678910>>...50

/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/video/backlight/
H A 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 …]
H A 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 …]
H A 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 …]
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.c40 int brightness);
42 int brightness);
94 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness) in compute_duty_cycle() argument
103 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
105 duty_cycle = brightness; in compute_duty_cycle()
116 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
120 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
122 if (brightness > 0) { in pwm_backlight_update_status()
124 state.duty_cycle = compute_duty_cycle(pb, brightness); in pwm_backlight_update_status()
132 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status()
[all …]
H A Das3711_bl.c29 int brightness; member
52 unsigned int brightness) in as3711_set_brightness_auto_i() argument
62 brightness); in as3711_set_brightness_auto_i()
65 brightness); in as3711_set_brightness_auto_i()
68 brightness); in as3711_set_brightness_auto_i()
74 unsigned int brightness, in as3711_set_brightness_v() argument
77 if (brightness > 31) in as3711_set_brightness_v()
81 brightness << 4); in as3711_set_brightness_v()
100 * the brightness adjustment procedure.
107 int brightness; in as3711_bl_update_status() local
[all …]
H A Dlm3630a_bl.c103 /* set brightness A and B */ in lm3630a_chip_init()
182 /* update and get brightness */
191 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
201 /* minimum brightness is 0x04 */ in lm3630a_bank_a_update_status()
202 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
203 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
219 int brightness, rval; in lm3630a_bank_a_get_brightness() local
227 brightness = (rval & 0x01) << 8; in lm3630a_bank_a_get_brightness()
231 brightness |= rval; in lm3630a_bank_a_get_brightness()
243 brightness = rval; in lm3630a_bank_a_get_brightness()
[all …]
H A Dda9052_bl.c40 uint brightness; member
72 if (wleds->brightness) { in da9052_adjust_wled_brightness()
74 wleds->brightness); in da9052_adjust_wled_brightness()
84 int brightness = bl->props.brightness; in da9052_backlight_update_status() local
87 wleds->brightness = brightness; in da9052_backlight_update_status()
97 return wleds->brightness; in da9052_backlight_get_brightness()
116 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 Dpandora_bl.c42 int brightness = bl->props.brightness; in pandora_backlight_update_status() local
47 brightness = 0; in pandora_backlight_update_status()
49 brightness = 0; in pandora_backlight_update_status()
51 brightness = 0; in pandora_backlight_update_status()
53 if ((unsigned int)brightness > MAX_USER_VALUE) in pandora_backlight_update_status()
54 brightness = MAX_USER_VALUE; in pandora_backlight_update_status()
56 if (brightness == 0) { in pandora_backlight_update_status()
93 twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF); in pandora_backlight_update_status()
96 if (brightness != 0) in pandora_backlight_update_status()
138 bl->props.brightness = MAX_USER_VALUE; in pandora_backlight_probe()
H A Dled_bl.c57 int brightness = backlight_get_brightness(bl); in led_bl_update_status() local
59 if (brightness > 0) in led_bl_update_status()
60 led_bl_set_brightness(priv, brightness); in led_bl_update_status()
103 /* check that the LEDs all have the same brightness range */ in led_bl_get_leds()
112 /* get the default brightness from the first LED from the list */ in led_bl_get_leds()
113 default_brightness = leds[0]->brightness; in led_bl_get_leds()
134 num_levels = of_property_count_u32_elems(node, "brightness-levels"); in led_bl_parse_levels()
145 ret = of_property_read_u32_array(node, "brightness-levels", in led_bl_parse_levels()
152 * Try to map actual LED brightness to backlight brightness in led_bl_parse_levels()
166 ret = of_property_read_u32(node, "default-brightness-level", &value); in led_bl_parse_levels()
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/backlight/
H A 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 …]
H A 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>;
/OK3568_Linux_fs/kernel/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.
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 …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
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 …]
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 …]
/OK3568_Linux_fs/kernel/drivers/leds/
H A Dled-core.c65 unsigned long brightness; in led_timer_function() local
80 brightness = led_get_brightness(led_cdev); in led_timer_function()
81 if (!brightness) { in led_timer_function()
85 brightness = led_cdev->new_blink_brightness; in led_timer_function()
87 brightness = led_cdev->blink_brightness; in led_timer_function()
90 /* Store the current brightness value to be able in led_timer_function()
93 led_cdev->blink_brightness = brightness; in led_timer_function()
94 brightness = LED_OFF; in led_timer_function()
98 led_set_brightness_nosleep(led_cdev, brightness); in led_timer_function()
106 if (brightness) in led_timer_function()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dbacklight.h86 /** enum backlight_scale - the type of scale used for brightness values
88 * The type of scale used for brightness values.
99 * The linear scale will increase brightness the same for each step.
106 * This is often used when the brightness values tries to adjust to
139 * to check if the display is blanked and set brightness accordingly.
149 * @get_brightness: Return the current backlight brightness.
153 * brightness property value is used.
157 * A brightness value which is 0 or a positive number.
184 * @brightness: The current brightness requested by the user.
187 * 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);
72 /* flash brightness value in microamperes along with its constraints */
73 struct led_flash_setting brightness; member
168 * led_set_flash_brightness - set flash LED brightness
170 * @brightness: the brightness to set it to
172 * Set a flash LED's brightness.
177 u32 brightness);
[all …]
H A Dleds.h28 /* This is obsolete/useless. We now support variable maximum brightness. */
66 enum led_brightness brightness; member
93 /* Set LED brightness level
95 * that can sleep while setting brightness.
98 enum led_brightness brightness);
100 * Set LED brightness level immediately - it can block the caller for
104 enum led_brightness brightness);
105 /* Get LED brightness level */
113 * Deactivate blinking again when the brightness is set to LED_OFF
248 * led_set_brightness - set LED brightness
[all …]
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dacpi_video.c61 "0: none, 1: output changes, 2: brightness changes, 3: all");
66 "Set this to 1 on buggy hw which changes the brightness itself when "
67 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness");
193 u8 _BCL:1; /* Query list of brightness control levels supported */
194 u8 _BCM:1; /* Set the brightness level */
195 u8 _BQC:1; /* Get current brightness level */
209 struct acpi_video_device_brightness *brightness; member
237 for (i = ACPI_VIDEO_FIRST_LEVEL; i < vd->brightness->count; i++) { in acpi_video_get_brightness()
238 if (vd->brightness->levels[i] == cur_level) in acpi_video_get_brightness()
246 int request_level = bd->props.brightness + ACPI_VIDEO_FIRST_LEVEL; in acpi_video_set_brightness()
[all …]

12345678910>>...50