Home
last modified time | relevance | path

Searched refs:current_brightness (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/video/backlight/
Dda903x_bl.c37 int current_brightness; member
54 if (data->current_brightness && brightness == 0) in da903x_backlight_set()
59 if (data->current_brightness == 0 && brightness) in da903x_backlight_set()
74 data->current_brightness = brightness; in da903x_backlight_set()
98 return data->current_brightness; in da903x_backlight_get_brightness()
134 data->current_brightness = 0; in da903x_backlight_probe()
Dot200_bl.c31 int current_brightness; member
52 else if (data->current_brightness == 0) { in ot200_backlight_update_status()
61 data->current_brightness = brightness; in ot200_backlight_update_status()
69 return data->current_brightness; in ot200_backlight_get_brightness()
113 data->current_brightness = 100; in ot200_backlight_probe()
Dwm831x_bl.c23 int current_brightness; member
30 int power_up = !data->current_brightness && brightness; in wm831x_backlight_set()
31 int power_down = data->current_brightness && !brightness; in wm831x_backlight_set()
76 data->current_brightness = brightness; in wm831x_backlight_set()
112 return data->current_brightness; in wm831x_backlight_get_brightness()
190 data->current_brightness = 0; in wm831x_backlight_probe()
Dmax8925_bl.c27 int current_brightness; member
48 if (!data->current_brightness && brightness) in max8925_backlight_set()
57 data->current_brightness = value; in max8925_backlight_set()
90 data->current_brightness = ret; in max8925_backlight_get_brightness()
91 dev_dbg(chip->dev, "get brightness %d\n", data->current_brightness); in max8925_backlight_get_brightness()
160 data->current_brightness = 0; in max8925_backlight_probe()
D88pm860x_bl.c28 int current_brightness; member
78 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
114 data->current_brightness = value; in pm860x_backlight_set()
147 data->current_brightness = ret; in pm860x_backlight_get_brightness()
148 dev_dbg(chip->dev, "get brightness %d\n", data->current_brightness); in pm860x_backlight_get_brightness()
149 return data->current_brightness; in pm860x_backlight_get_brightness()
230 data->current_brightness = MAX_BRIGHTNESS; in pm860x_backlight_probe()
Dadp5520_bl.c23 int current_brightness; member
53 if (data->current_brightness && brightness == 0) in adp5520_bl_set()
56 else if (data->current_brightness == 0 && brightness) in adp5520_bl_set()
61 data->current_brightness = brightness; in adp5520_bl_set()
87 return error ? data->current_brightness : reg_val; in adp5520_bl_get_brightness()
308 data->current_brightness = 0; in adp5520_bl_probe()
Dadp8860_bl.c114 int current_brightness; member
349 if (data->current_brightness && brightness == 0) in adp8860_bl_set()
352 else if (data->current_brightness == 0 && brightness) in adp8860_bl_set()
357 data->current_brightness = brightness; in adp8860_bl_set()
379 return data->current_brightness; in adp8860_bl_get_brightness()
710 data->current_brightness = 0; in adp8860_probe()
Dadp8870_bl.c116 int current_brightness; member
387 if (data->current_brightness && brightness == 0) in adp8870_bl_set()
390 else if (data->current_brightness == 0 && brightness) in adp8870_bl_set()
395 data->current_brightness = brightness; in adp8870_bl_set()
417 return data->current_brightness; in adp8870_bl_get_brightness()
886 data->current_brightness = 0; in adp8870_probe()
/Linux-v5.4/drivers/leds/
Dleds-88pm860x.c38 unsigned char current_brightness; member
78 if ((led->current_brightness == 0) && led->brightness) { in pm860x_led_set()
106 led->current_brightness = led->brightness; in pm860x_led_set()
201 data->current_brightness = 0; in pm860x_led_probe()
Dleds-mt6323.c86 enum led_brightness current_brightness; member
286 if (!led->current_brightness) { in mt6323_led_set_blink()
290 led->current_brightness = cdev->max_brightness; in mt6323_led_set_blink()
317 if (!led->current_brightness && brightness) { in mt6323_led_set_brightness()
331 led->current_brightness = brightness; in mt6323_led_set_brightness()
356 led->current_brightness = ret; in mt6323_led_set_dt_default()
Dled-core.c144 int current_brightness; in led_set_software_blink() local
146 current_brightness = led_get_brightness(led_cdev); in led_set_software_blink()
147 if (current_brightness) in led_set_software_blink()
148 led_cdev->blink_brightness = current_brightness; in led_set_software_blink()
/Linux-v5.4/drivers/leds/trigger/
Dledtrig-netdev.c67 int current_brightness; in set_baseline_state() local
70 current_brightness = led_cdev->brightness; in set_baseline_state()
71 if (current_brightness) in set_baseline_state()
72 led_cdev->blink_brightness = current_brightness; in set_baseline_state()