Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
Dlm3630a_bl.c184 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
186 return bl->props.brightness; in lm3630a_bank_a_update_status()
195 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
196 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
203 return bl->props.brightness; in lm3630a_bank_a_update_status()
207 return bl->props.brightness; in lm3630a_bank_a_update_status()
212 int brightness, rval; in lm3630a_bank_a_get_brightness() local
220 brightness = (rval & 0x01) << 8; in lm3630a_bank_a_get_brightness()
224 brightness |= rval; in lm3630a_bank_a_get_brightness()
236 brightness = rval; in lm3630a_bank_a_get_brightness()
[all …]
Das3711_bl.c34 int brightness; member
57 unsigned int brightness) in as3711_set_brightness_auto_i() argument
67 brightness); in as3711_set_brightness_auto_i()
70 brightness); in as3711_set_brightness_auto_i()
73 brightness); in as3711_set_brightness_auto_i()
79 unsigned int brightness, in as3711_set_brightness_v() argument
82 if (brightness > 31) in as3711_set_brightness_v()
86 brightness << 4); in as3711_set_brightness_v()
112 int brightness = bl->props.brightness; in as3711_bl_update_status() local
116 __func__, bl->props.brightness, bl->props.power, in as3711_bl_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()
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()
Dpandora_bl.c42 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()
130 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()
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 …]
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 …]
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 …]
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 …]
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 …]
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()
Dpwm_bl.c39 int brightness);
41 int brightness);
46 static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness) in pwm_backlight_power_on() argument
79 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness) in compute_duty_cycle() argument
85 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
87 duty_cycle = brightness; in compute_duty_cycle()
98 int brightness = bl->props.brightness; in pwm_backlight_update_status() local
104 brightness = 0; in pwm_backlight_update_status()
107 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
109 if (brightness > 0) { in pwm_backlight_update_status()
[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()
Dadp5520_bl.c27 static int adp5520_bl_set(struct backlight_device *bl, int brightness) in adp5520_bl_set() argument
34 if ((brightness > 0) && (brightness < ADP5020_MAX_BRIGHTNESS)) { in adp5520_bl_set()
39 brightness); in adp5520_bl_set()
51 ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, brightness); in adp5520_bl_set()
54 if (data->current_brightness && brightness == 0) in adp5520_bl_set()
57 else if (data->current_brightness == 0 && brightness) in adp5520_bl_set()
62 data->current_brightness = brightness; in adp5520_bl_set()
69 int brightness = bl->props.brightness; in adp5520_bl_update_status() local
72 brightness = 0; in adp5520_bl_update_status()
75 brightness = 0; in adp5520_bl_update_status()
[all …]
Dlv5207lp.c52 int brightness = backlight->props.brightness; in lv5207lp_backlight_update_status() local
57 brightness = 0; in lv5207lp_backlight_update_status()
59 if (brightness) { in lv5207lp_backlight_update_status()
64 (brightness - 1)); in lv5207lp_backlight_update_status()
118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in lv5207lp_probe()
139 backlight->props.brightness = 0; in lv5207lp_remove()
/drivers/leds/
Dled-core.c51 unsigned long brightness; in led_timer_function() local
65 brightness = led_get_brightness(led_cdev); in led_timer_function()
66 if (!brightness) { in led_timer_function()
68 brightness = led_cdev->blink_brightness; in led_timer_function()
77 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()
95 if (!brightness) in led_timer_function()
230 enum led_brightness brightness) in led_set_brightness() argument
[all …]
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()
/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 …]
/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c46 struct drm_property *brightness; member
54 int brightness; member
202 u32 luma = (plane->brightness - 512) << 16 | plane->contrast; in nv10_set_params()
237 else if (property == nv_plane->props.brightness) in nv_set_property()
238 nv_plane->brightness = value; in nv_set_property()
292 plane->props.brightness = drm_property_create_range( in nv10_overlay_init()
302 !plane->props.brightness || in nv10_overlay_init()
316 plane->brightness = 512; in nv10_overlay_init()
318 plane->props.brightness, plane->brightness); in nv10_overlay_init()
356 int brightness = (nv_plane->brightness - 512) * 62 / 512; in nv04_update_plane() local
[all …]
/drivers/platform/x86/
Dfujitsu-laptop.c181 enum led_brightness brightness);
191 enum led_brightness brightness);
201 enum led_brightness brightness);
211 enum led_brightness brightness);
271 enum led_brightness brightness) in logolamp_set() argument
273 if (brightness >= LED_FULL) { in logolamp_set()
276 } else if (brightness >= LED_HALF) { in logolamp_set()
285 enum led_brightness brightness) in kblamps_set() argument
287 if (brightness >= LED_FULL) in kblamps_set()
294 enum led_brightness brightness) in radio_led_set() argument
[all …]
/drivers/usb/misc/
Dappledisplay.c149 pdata->msgdata[1] = bd->props.brightness; in appledisplay_bl_update_status()
168 int retval, brightness; in appledisplay_bl_get_brightness() local
180 brightness = pdata->msgdata[1]; in appledisplay_bl_get_brightness()
186 return brightness; in appledisplay_bl_get_brightness()
202 pdata->bd->props.brightness = retval; in appledisplay_work()
218 int i, retval = -ENOMEM, brightness; in appledisplay_probe() local
299 brightness = appledisplay_bl_get_brightness(pdata->bd); in appledisplay_probe()
301 if (brightness < 0) { in appledisplay_probe()
302 retval = brightness; in appledisplay_probe()
309 pdata->bd->props.brightness = brightness; in appledisplay_probe()
/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()
94 led_set_brightness_nosleep(led, n->brightness); in bl_trig_invert_store()
118 n->brightness = led->brightness; in bl_trig_activate()

12345678910>>...12