Home
last modified time | relevance | path

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

12345678910>>...23

/Linux-v4.19/arch/powerpc/platforms/powermac/
Dbacklight.c108 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()
153 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
[all …]
/Linux-v4.19/drivers/video/backlight/
Daat2870_bl.c38 int brightness; /* current brightness */ member
42 int brightness) in aat2870_brightness() argument
47 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness()
75 int brightness = bd->props.brightness; in aat2870_bl_update_status() local
78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
79 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status()
84 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
89 brightness = 0; in aat2870_bl_update_status()
92 (u8)aat2870_brightness(aat2870_bl, brightness)); in aat2870_bl_update_status()
96 if (brightness == 0) { in aat2870_bl_update_status()
[all …]
Dda903x_bl.c43 static int da903x_backlight_set(struct backlight_device *bl, int brightness) in da903x_backlight_set() argument
53 brightness, 0x7f); in da903x_backlight_set()
57 if (data->current_brightness && brightness == 0) in da903x_backlight_set()
62 if (data->current_brightness == 0 && brightness) in da903x_backlight_set()
68 val = DA9030_WLED_TRIM(brightness); in da903x_backlight_set()
69 val |= brightness ? DA9030_WLED_CP_EN : 0; in da903x_backlight_set()
77 data->current_brightness = brightness; in da903x_backlight_set()
83 int brightness = bl->props.brightness; in da903x_backlight_update_status() local
86 brightness = 0; in da903x_backlight_update_status()
89 brightness = 0; in da903x_backlight_update_status()
[all …]
Dep93xx_bl.c26 int brightness; member
29 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument
33 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set()
35 ep93xxbl->brightness = brightness; in ep93xxbl_set()
42 int brightness = bl->props.brightness; in ep93xxbl_update_status() local
46 brightness = 0; in ep93xxbl_update_status()
48 return ep93xxbl_set(bl, brightness); in ep93xxbl_update_status()
55 return ep93xxbl->brightness; in ep93xxbl_get_brightness()
100 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
Dlm3630a_bl.c185 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
187 return bl->props.brightness; in lm3630a_bank_a_update_status()
196 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
197 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
204 return bl->props.brightness; in lm3630a_bank_a_update_status()
208 return bl->props.brightness; in lm3630a_bank_a_update_status()
213 int brightness, rval; in lm3630a_bank_a_get_brightness() local
221 brightness = (rval & 0x01) << 8; in lm3630a_bank_a_get_brightness()
225 brightness |= rval; in lm3630a_bank_a_get_brightness()
237 brightness = rval; in lm3630a_bank_a_get_brightness()
[all …]
Dpcf50633-backlight.c31 unsigned int brightness; member
67 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
68 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
73 if (pcf_bl->brightness == new_brightness) in pcf50633_bl_update_status()
79 if (!pcf_bl->brightness) in pcf50633_bl_update_status()
85 pcf_bl->brightness = new_brightness; in pcf50633_bl_update_status()
94 return pcf_bl->brightness; in pcf50633_bl_get_brightness()
121 bl_props.brightness = pdata->default_brightness; in pcf50633_bl_probe()
124 bl_props.brightness = 0x3f; in pcf50633_bl_probe()
145 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1; in pcf50633_bl_probe()
Das3711_bl.c32 int brightness; member
55 unsigned int brightness) in as3711_set_brightness_auto_i() argument
65 brightness); in as3711_set_brightness_auto_i()
68 brightness); in as3711_set_brightness_auto_i()
71 brightness); in as3711_set_brightness_auto_i()
77 unsigned int brightness, in as3711_set_brightness_v() argument
80 if (brightness > 31) in as3711_set_brightness_v()
84 brightness << 4); in as3711_set_brightness_v()
110 int brightness = bl->props.brightness; in as3711_bl_update_status() local
114 __func__, bl->props.brightness, bl->props.power, in as3711_bl_update_status()
[all …]
Dpandora_bl.c45 int brightness = bl->props.brightness; in pandora_backlight_update_status() local
50 brightness = 0; in pandora_backlight_update_status()
52 brightness = 0; in pandora_backlight_update_status()
54 brightness = 0; in pandora_backlight_update_status()
56 if ((unsigned int)brightness > MAX_USER_VALUE) in pandora_backlight_update_status()
57 brightness = MAX_USER_VALUE; in pandora_backlight_update_status()
59 if (brightness == 0) { in pandora_backlight_update_status()
96 twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF); in pandora_backlight_update_status()
99 if (brightness != 0) in pandora_backlight_update_status()
141 bl->props.brightness = MAX_USER_VALUE; in pandora_backlight_probe()
Dda9052_bl.c45 uint brightness; member
77 if (wleds->brightness) { in da9052_adjust_wled_brightness()
79 wleds->brightness); in da9052_adjust_wled_brightness()
89 int brightness = bl->props.brightness; in da9052_backlight_update_status() local
92 wleds->brightness = brightness; in da9052_backlight_update_status()
102 return wleds->brightness; in da9052_backlight_get_brightness()
121 wleds->brightness = 0; in da9052_backlight_probe()
137 bl->props.brightness = 0; in da9052_backlight_probe()
148 wleds->brightness = 0; in da9052_backlight_remove()
Dwm831x_bl.c29 static int wm831x_backlight_set(struct backlight_device *bl, int brightness) in wm831x_backlight_set() argument
33 int power_up = !data->current_brightness && brightness; in wm831x_backlight_set()
34 int power_down = data->current_brightness && !brightness; in wm831x_backlight_set()
67 WM831X_CS1_ISEL_MASK, brightness); in wm831x_backlight_set()
79 data->current_brightness = brightness; in wm831x_backlight_set()
97 int brightness = bl->props.brightness; in wm831x_backlight_update_status() local
100 brightness = 0; in wm831x_backlight_update_status()
103 brightness = 0; in wm831x_backlight_update_status()
106 brightness = 0; in wm831x_backlight_update_status()
108 return wm831x_backlight_set(bl, brightness); in wm831x_backlight_update_status()
[all …]
D88pm860x_bl.c62 static int pm860x_backlight_set(struct backlight_device *bl, int brightness) in pm860x_backlight_set() argument
69 if (brightness > MAX_BRIGHTNESS) in pm860x_backlight_set()
72 value = brightness; in pm860x_backlight_set()
74 if (brightness) in pm860x_backlight_set()
81 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
94 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
100 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
113 if (brightness == 0) in pm860x_backlight_set()
127 int brightness = bl->props.brightness; in pm860x_backlight_update_status() local
130 brightness = 0; in pm860x_backlight_update_status()
[all …]
Dtosa_bl.c39 static void tosa_bl_set_backlight(struct tosa_bl_data *data, int brightness) in tosa_bl_set_backlight() argument
46 i2c_smbus_write_byte_data(data->i2c, DAC_CH2, (u8)(brightness & 0xff)); in tosa_bl_set_backlight()
49 gpio_set_value(TOSA_GPIO_BL_C20MA, brightness & 0x100); in tosa_bl_set_backlight()
51 tosa_bl_enable(spi, brightness); in tosa_bl_set_backlight()
59 int brightness = props->brightness; in tosa_bl_update_status() local
62 brightness = 0; in tosa_bl_update_status()
64 tosa_bl_set_backlight(data, brightness); in tosa_bl_update_status()
73 return props->brightness; in tosa_bl_get_brightness()
116 data->bl->props.brightness = 69; in tosa_bl_probe()
Dlm3639_bl.c115 pdata->pwm_set_intensity(bl->props.brightness, in lm3639_bled_update_status()
120 return bl->props.brightness; in lm3639_bled_update_status()
124 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, bl->props.brightness); in lm3639_bled_update_status()
127 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, bl->props.brightness); in lm3639_bled_update_status()
131 if (!bl->props.brightness) in lm3639_bled_update_status()
138 return bl->props.brightness; in lm3639_bled_update_status()
141 return bl->props.brightness; in lm3639_bled_update_status()
153 bl->props.brightness = pdata->pwm_get_intensity(); in lm3639_bled_get_brightness()
157 return bl->props.brightness; in lm3639_bled_get_brightness()
169 bl->props.brightness = reg_val; in lm3639_bled_get_brightness()
[all …]
Dmax8925_bl.c35 static int max8925_backlight_set(struct backlight_device *bl, int brightness) in max8925_backlight_set() argument
42 if (brightness > MAX_BRIGHTNESS) in max8925_backlight_set()
45 value = brightness; in max8925_backlight_set()
51 if (!data->current_brightness && brightness) in max8925_backlight_set()
54 else if (!brightness) in max8925_backlight_set()
70 int brightness = bl->props.brightness; in max8925_backlight_update_status() local
73 brightness = 0; in max8925_backlight_update_status()
76 brightness = 0; in max8925_backlight_update_status()
79 brightness = 0; in max8925_backlight_update_status()
81 return max8925_backlight_set(bl, brightness); in max8925_backlight_update_status()
[all …]
Dams369fg06.c233 static int ams369fg06_gamma_ctl(struct ams369fg06 *lcd, int brightness) in ams369fg06_gamma_ctl() argument
238 if ((brightness >= 0) && (brightness <= 50)) in ams369fg06_gamma_ctl()
240 else if ((brightness > 50) && (brightness <= 100)) in ams369fg06_gamma_ctl()
242 else if ((brightness > 100) && (brightness <= 150)) in ams369fg06_gamma_ctl()
244 else if ((brightness > 150) && (brightness <= 200)) in ams369fg06_gamma_ctl()
246 else if ((brightness > 200) && (brightness <= 255)) in ams369fg06_gamma_ctl()
346 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_power_on()
416 int brightness = bd->props.brightness; in ams369fg06_set_brightness() local
419 if (brightness < MIN_BRIGHTNESS || in ams369fg06_set_brightness()
420 brightness > bd->props.max_brightness) { in ams369fg06_set_brightness()
[all …]
Dot200_bl.c47 int brightness = bl->props.brightness; in ot200_backlight_update_status() local
50 brightness = 0; in ot200_backlight_update_status()
53 if (brightness == 0) in ot200_backlight_update_status()
63 MAX_COMP2 - dim_table[brightness]); in ot200_backlight_update_status()
64 data->current_brightness = brightness; in ot200_backlight_update_status()
118 props.brightness = 100; in ot200_backlight_probe()
/Linux-v4.19/drivers/leds/
Dled-core.c51 unsigned long brightness; in led_timer_function() local
66 brightness = led_get_brightness(led_cdev); in led_timer_function()
67 if (!brightness) { in led_timer_function()
71 brightness = led_cdev->new_blink_brightness; in led_timer_function()
73 brightness = led_cdev->blink_brightness; in led_timer_function()
79 led_cdev->blink_brightness = brightness; in led_timer_function()
80 brightness = LED_OFF; in led_timer_function()
84 led_set_brightness_nosleep(led_cdev, brightness); in led_timer_function()
92 if (brightness) in led_timer_function()
96 if (!brightness) in led_timer_function()
[all …]
Duleds.c42 int brightness; member
49 enum led_brightness brightness) in uleds_brightness_set() argument
54 if (udev->brightness != brightness) { in uleds_brightness_set()
55 udev->brightness = brightness; in uleds_brightness_set()
146 if (count < sizeof(udev->brightness)) in uleds_read()
159 retval = copy_to_user(buffer, &udev->brightness, in uleds_read()
160 sizeof(udev->brightness)); in uleds_read()
162 retval = sizeof(udev->brightness); in uleds_read()
Dleds-regulator.c53 enum led_brightness brightness) in led_regulator_get_voltage() argument
55 if (brightness == 0) in led_regulator_get_voltage()
58 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage()
150 if (pdata->brightness > led->cdev.max_brightness) { in regulator_led_probe()
152 pdata->brightness); in regulator_led_probe()
174 led->cdev.brightness = pdata->brightness; in regulator_led_probe()
177 regulator_led_brightness_set(&led->cdev, led->cdev.brightness); in regulator_led_probe()
/Linux-v4.19/Documentation/devicetree/bindings/leds/backlight/
Dpwm-backlight.txt17 - brightness-levels: Array of distinct brightness levels. Typically these
19 0 will do. The actual brightness level (PWM duty cycle)
23 - default-brightness-level: The default brightness level (index into the
24 array defined by the "brightness-levels" property).
26 of brightness-levels table. This way a high
29 brightness-level array.
40 brightness-levels = <0 4 8 16 32 64 128 255>;
41 default-brightness-level = <6>;
55 brightness-levels = <0 2048 4096 8192 16384 65535>;
57 default-brightness-level = <4096>;
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c33 unsigned int brightness; in rt2x00leds_led_quality() local
66 brightness = ((LED_FULL / 6) * rssi) + 1; in rt2x00leds_led_quality()
67 if (brightness != led->led_dev.brightness) { in rt2x00leds_led_quality()
68 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00leds_led_quality()
69 led->led_dev.brightness = brightness; in rt2x00leds_led_quality()
75 unsigned int brightness = enabled ? LED_FULL : LED_OFF; in rt2x00led_led_simple() local
80 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00led_led_simple()
81 led->led_dev.brightness = brightness; in rt2x00led_led_simple()
110 led->led_dev.brightness = LED_OFF; in rt2x00leds_register_led()
214 led->led_dev.brightness = LED_OFF; in rt2x00leds_suspend_led()
[all …]
/Linux-v4.19/Documentation/leds/
Dleds-lm3556.txt21 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
22 * if STROBE pin is enabled, below example control brightness only, and
26 OFF : #echo 0 > sys/class/leds/flash/brightness
27 93.75 mA: #echo 1 > sys/class/leds/flash/brightness
29 1500 mA: #echo 16 > sys/class/leds/flash/brightness
35 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
36 * if TORCH pin is enabled, below example control brightness only,
40 OFF : #echo 0 > sys/class/leds/torch/brightness
41 46.88 mA: #echo 1 > sys/class/leds/torch/brightness
43 375 mA : #echo 8 > sys/class/leds/torch/brightness
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-led1 What: /sys/class/leds/<led>/brightness
6 Set the brightness of the LED. Most LEDs don't
7 have hardware brightness support, so will just be turned on for
8 non-zero brightness settings. The value is between 0 and
14 top brightness trigger is going to use.
21 Maximum brightness level for this LED, default is 255 (LED_FULL).
23 If the LED does not support different brightness levels, this
30 Last hardware set brightness level for this LED. Some LEDs
36 the brightness.
38 Reading this file will return the last brightness level set
[all …]
/Linux-v4.19/drivers/leds/trigger/
Dledtrig-backlight.c26 int brightness; member
53 n->brightness = led->brightness; in fb_notifier_callback()
56 led_set_brightness_nosleep(led, n->brightness); in fb_notifier_callback()
93 led_set_brightness_nosleep(led, n->brightness); in bl_trig_invert_store()
117 n->brightness = led->brightness; in bl_trig_activate()
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c46 struct drm_property *brightness; member
53 int brightness; member
219 u32 luma = (plane->brightness - 512) << 16 | plane->contrast; in nv10_set_params()
254 else if (property == nv_plane->props.brightness) in nv_set_property()
255 nv_plane->brightness = value; in nv_set_property()
309 plane->props.brightness = drm_property_create_range( in nv10_overlay_init()
317 !plane->props.brightness || in nv10_overlay_init()
330 plane->brightness = 512; in nv10_overlay_init()
332 plane->props.brightness, plane->brightness); in nv10_overlay_init()
375 int brightness = (nv_plane->brightness - 512) * 62 / 512; in nv04_update_plane() local
[all …]

12345678910>>...23