/linux/drivers/video/backlight/ |
H A D | da903x_bl.c | 37 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() 87 return data->current_brightness; in da903x_backlight_get_brightness() 123 data->current_brightness = 0; in da903x_backlight_probe()
|
H A D | wm831x_bl.c | 23 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() 101 return data->current_brightness; in wm831x_backlight_get_brightness() 179 data->current_brightness = 0; in wm831x_backlight_probe()
|
H A D | max8925_bl.c | 27 int current_brightness; member 48 if (!data->current_brightness && brightness) in max8925_backlight_set() 57 data->current_brightness = value; in max8925_backlight_set() 79 data->current_brightness = ret; in max8925_backlight_get_brightness() 80 dev_dbg(chip->dev, "get brightness %d\n", data->current_brightness); in max8925_backlight_get_brightness() 149 data->current_brightness = 0; in max8925_backlight_probe()
|
H A D | 88pm860x_bl.c | 28 int current_brightness; member 78 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set() 114 data->current_brightness = value; in pm860x_backlight_set() 136 data->current_brightness = ret; in pm860x_backlight_get_brightness() 137 dev_dbg(chip->dev, "get brightness %d\n", data->current_brightness); in pm860x_backlight_get_brightness() 138 return data->current_brightness; in pm860x_backlight_get_brightness() 219 data->current_brightness = MAX_BRIGHTNESS; in pm860x_backlight_probe()
|
H A D | adp5520_bl.c | 23 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() 79 return error ? data->current_brightness : reg_val; in adp5520_bl_get_brightness() 300 data->current_brightness = 0; in adp5520_bl_probe()
|
H A D | adp8860_bl.c | 114 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() 371 return data->current_brightness; in adp8860_bl_get_brightness() 702 data->current_brightness = 0; in adp8860_probe()
|
H A D | adp8870_bl.c | 116 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() 409 return data->current_brightness; in adp8870_bl_get_brightness() 878 data->current_brightness = 0; in adp8870_probe()
|
/linux/drivers/leds/ |
H A D | leds-mt6323.c | 79 enum led_brightness current_brightness; member 337 if (!led->current_brightness) { in mt6323_led_set_blink() 341 led->current_brightness = cdev->max_brightness; in mt6323_led_set_blink() 368 if (!led->current_brightness && brightness) { in mt6323_led_set_brightness() 382 led->current_brightness = brightness; in mt6323_led_set_brightness() 470 return status ? led->current_brightness : 0; in mt6323_get_wled_brightness() 483 if (!led->current_brightness) in mt6323_wled_set_brightness() 493 led->current_brightness = brightness; in mt6323_wled_set_brightness() 516 led->current_brightness = ret; in mt6323_led_set_dt_default()
|
H A D | leds-88pm860x.c | 38 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() 200 data->current_brightness = 0; in pm860x_led_probe()
|
H A D | led-core.c | 180 int current_brightness; in led_set_software_blink() local 182 current_brightness = led_get_brightness(led_cdev); in led_set_software_blink() 183 if (current_brightness) in led_set_software_blink() 184 led_cdev->blink_brightness = current_brightness; in led_set_software_blink()
|
/linux/drivers/leds/rgb/ |
H A D | leds-ncp5623.c | 33 int current_brightness; member 73 ncp->current_brightness = brightness; in ncp5623_brightness_set() 99 brightness_diff = pattern[0].brightness - ncp->current_brightness; in ncp5623_pattern_set() 143 ncp->current_brightness = pattern[0].brightness; in ncp5623_pattern_set()
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stream.c | 926 int current_brightness, in dc_stream_calculate_flickerless_refresh_rate() argument 937 int safe_upper_bound = current_brightness + flicker_criteria_millinits; in dc_stream_calculate_flickerless_refresh_rate() 938 int safe_lower_bound = current_brightness - flicker_criteria_millinits; in dc_stream_calculate_flickerless_refresh_rate() 958 …ightness = (stream->lumin_data.luminance_millinits[i + offset] >= (current_brightness + flicker_cr… in dc_stream_calculate_flickerless_refresh_rate() 959 current_brightness + flicker_criteria_millinits : in dc_stream_calculate_flickerless_refresh_rate() 960 current_brightness - flicker_criteria_millinits; in dc_stream_calculate_flickerless_refresh_rate() 1054 …int current_brightness = dc_stream_get_brightness_millinits_from_refresh(stream, starting_refresh_… in dc_stream_calculate_max_flickerless_refresh_rate() local 1057 current_brightness, in dc_stream_calculate_max_flickerless_refresh_rate() 1072 …int current_brightness = dc_stream_get_brightness_millinits_from_refresh(stream, starting_refresh_… in dc_stream_calculate_min_flickerless_refresh_rate() local 1075 current_brightness, in dc_stream_calculate_min_flickerless_refresh_rate()
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-netdev.c | 83 int current_brightness; in set_baseline_state() local 93 current_brightness = led_cdev->brightness; in set_baseline_state() 94 if (current_brightness) in set_baseline_state() 95 led_cdev->blink_brightness = current_brightness; in set_baseline_state()
|
/linux/drivers/platform/x86/ |
H A D | panasonic-laptop.c | 250 int current_brightness; member 755 pcc->current_brightness = val; in current_brightness_store() 786 static DEVICE_ATTR_RW(current_brightness); 984 acpi_pcc_write_sset(pcc, SINF_CUR_BRIGHT, pcc->current_brightness); in acpi_pcc_hotkey_resume() 1075 pcc->current_brightness = pcc->sinf[SINF_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
|