/drivers/video/backlight/ |
D | pwm_bl.c | 155 data->max_brightness = length / sizeof(u32); in pwm_backlight_parse_dt() 158 if (data->max_brightness > 0) { in pwm_backlight_parse_dt() 159 size_t size = sizeof(*data->levels) * data->max_brightness; in pwm_backlight_parse_dt() 167 data->max_brightness); in pwm_backlight_parse_dt() 177 data->max_brightness--; in pwm_backlight_parse_dt() 235 for (i = 0; i <= data->max_brightness; i++) in pwm_backlight_probe() 241 pb->scale = data->max_brightness; in pwm_backlight_probe() 334 props.max_brightness = data->max_brightness; in pwm_backlight_probe() 345 if (data->dft_brightness > data->max_brightness) { in pwm_backlight_probe() 348 data->dft_brightness, data->max_brightness); in pwm_backlight_probe() [all …]
|
D | da903x_bl.c | 116 int max_brightness; in da903x_backlight_probe() local 124 max_brightness = DA9030_MAX_BRIGHTNESS; in da903x_backlight_probe() 127 max_brightness = DA9034_MAX_BRIGHTNESS; in da903x_backlight_probe() 146 props.max_brightness = max_brightness; in da903x_backlight_probe() 155 bl->props.brightness = max_brightness; in da903x_backlight_probe()
|
D | aat2870_bl.c | 48 val /= bd->props.max_brightness; in aat2870_brightness() 78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status() 178 if (pdata->max_brightness > 0) in aat2870_bl_probe() 179 bd->props.max_brightness = pdata->max_brightness; in aat2870_bl_probe() 181 bd->props.max_brightness = 255; in aat2870_bl_probe() 185 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe()
|
D | as3711_bl.c | 235 unsigned int max_brightness, struct as3711_bl_data *su) in as3711_bl_register() argument 241 props.max_brightness = max_brightness; in as3711_bl_register() 253 bl->props.brightness = props.max_brightness; in as3711_bl_register() 371 unsigned int max_brightness; in as3711_backlight_probe() local 418 max_brightness = min(pdata->su1_max_uA, 31); in as3711_backlight_probe() 419 ret = as3711_bl_register(pdev, max_brightness, su); in as3711_backlight_probe() 441 max_brightness = min(pdata->su2_max_uA, 31); in as3711_backlight_probe() 447 max_brightness = min(pdata->su2_max_uA / 150, 255); in as3711_backlight_probe() 457 ret = as3711_bl_register(pdev, max_brightness, su); in as3711_backlight_probe()
|
D | lp8788_bl.c | 173 int max = bl_dev->props.max_brightness; in lp8788_bl_update_status() 199 props.max_brightness = MAX_BRIGHTNESS; in lp8788_backlight_register() 204 props.max_brightness); in lp8788_backlight_register()
|
D | lv5207lp.c | 116 props.max_brightness = min_t(unsigned int, pdata->max_value, in lv5207lp_probe() 119 props.max_brightness); in lv5207lp_probe()
|
D | da9052_bl.c | 126 props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe() 136 bl->props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe()
|
D | lp855x_bl.c | 275 lp855x_pwm_ctrl(lp, brightness, bl->props.max_brightness); in lp855x_bl_update_status() 296 props.max_brightness = MAX_BRIGHTNESS; in lp855x_backlight_register() 298 if (pdata->initial_brightness > props.max_brightness) in lp855x_backlight_register() 299 pdata->initial_brightness = props.max_brightness; in lp855x_backlight_register()
|
D | lm3630a_bl.c | 185 bl->props.max_brightness); in lm3630a_bank_a_update_status() 262 bl->props.max_brightness); in lm3630a_bank_b_update_status() 337 props.max_brightness = pdata->leda_max_brt; in lm3630a_backlight_register() 349 props.max_brightness = pdata->ledb_max_brt; in lm3630a_backlight_register()
|
D | bd6107.c | 159 props.max_brightness = 128; in bd6107_probe() 161 props.max_brightness); in bd6107_probe()
|
/drivers/leds/ |
D | leds-lm3530.c | 264 if (brightness > drvdata->led_dev.max_brightness) in lm3530_init_registers() 265 brightness = drvdata->led_dev.max_brightness; in lm3530_init_registers() 292 drvdata->led_dev.max_brightness); in lm3530_init_registers() 313 u8 max_brightness = led_cdev->max_brightness; in lm3530_brightness_set() local 343 pwm->pwm_set_intensity(brt_val, max_brightness); in lm3530_brightness_set() 375 u8 max_brightness; in lm3530_mode_set() local 380 max_brightness = led_cdev->max_brightness; in lm3530_mode_set() 391 pwm->pwm_set_intensity(0, max_brightness); in lm3530_mode_set() 444 drvdata->led_dev.max_brightness = MAX_BRIGHTNESS; in lm3530_probe()
|
D | leds-max8997.c | 63 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode() 69 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode() 76 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode() 83 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode() 86 led->cdev.max_brightness = MAX8997_LED_NONE_MAX_BRIGHTNESS; in max8997_led_set_mode() 273 if (brightness > led->cdev.max_brightness) in max8997_led_probe() 274 brightness = led->cdev.max_brightness; in max8997_led_probe()
|
D | leds-pwm.c | 57 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set() 101 led_data->cdev.max_brightness = led->max_brightness; in led_pwm_add() 161 &led.max_brightness); in led_pwm_create_of()
|
D | led-class.c | 72 return sprintf(buf, "%u\n", led_cdev->max_brightness); in max_brightness_show() 74 static DEVICE_ATTR_RO(max_brightness); 215 if (!led_cdev->max_brightness) in led_classdev_register() 216 led_cdev->max_brightness = LED_FULL; in led_classdev_register()
|
D | leds-regulator.c | 108 if (led->cdev.max_brightness > 1) { in regulator_led_brightness_set() 149 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe() 150 if (pdata->brightness > led->cdev.max_brightness) { in regulator_led_probe()
|
D | leds-ktd2692.c | 74 enum led_brightness max_brightness; member 234 cfg->max_brightness = offset; in ktd2692_init_movie_current_max() 360 led_cdev->max_brightness = led_cfg.max_brightness; in ktd2692_probe()
|
D | led-core.c | 137 led_cdev->blink_brightness = led_cdev->max_brightness; in led_set_software_blink() 272 led_cdev->brightness = min(value, led_cdev->max_brightness); in led_set_brightness_nosleep() 287 led_cdev->brightness = min(value, led_cdev->max_brightness); in led_set_brightness_sync()
|
D | leds-aat1290.c | 59 enum led_brightness max_brightness; member 311 cfg->max_brightness = b + 1; in aat1290_led_validate_mm_current() 493 led_cdev->max_brightness = led_cfg.max_brightness; in aat1290_led_probe()
|
D | leds-lm355x.c | 456 chip->cdev_flash.max_brightness = 16; in lm355x_probe() 465 chip->cdev_torch.max_brightness = 8; in lm355x_probe() 475 chip->cdev_indicator.max_brightness = 4; in lm355x_probe() 477 chip->cdev_indicator.max_brightness = 8; in lm355x_probe()
|
/drivers/gpu/drm/shmobile/ |
D | shmob_drm_backlight.c | 67 if (!bdata->max_brightness) in shmob_drm_backlight_init() 78 backlight->props.max_brightness = bdata->max_brightness; in shmob_drm_backlight_init() 79 backlight->props.brightness = bdata->max_brightness; in shmob_drm_backlight_init()
|
/drivers/hid/ |
D | hid-led.c | 77 enum led_brightness max_brightness; member 259 .max_brightness = 255, 362 .max_brightness = 1, 372 .max_brightness = 31, 383 .max_brightness = 255, 394 .max_brightness = 100, 405 .max_brightness = 255, 425 led->cdev.max_brightness = config->max_brightness; in hidled_init_led()
|
/drivers/leds/trigger/ |
D | ledtrig-heartbeat.c | 61 brightness = led_cdev->max_brightness; in led_heartbeat_function() 67 brightness = led_cdev->max_brightness; in led_heartbeat_function() 73 brightness = led_cdev->max_brightness; in led_heartbeat_function() 80 brightness = led_cdev->max_brightness; in led_heartbeat_function()
|
/drivers/platform/x86/ |
D | fujitsu-laptop.c | 148 unsigned int max_brightness; member 370 if (level < 0 || level >= fujitsu->max_brightness) in set_lcd_level() 395 if (level < 0 || level >= fujitsu->max_brightness) in set_lcd_level_alt() 445 fujitsu->max_brightness = state; in get_max_brightness() 447 return fujitsu->max_brightness; in get_max_brightness() 536 || (level < 0 || level >= fujitsu->max_brightness)) in store_lcd_level() 596 static DEVICE_ATTR(max_brightness, 0444, show_max_brightness, ignore_store); 755 fujitsu->max_brightness = FUJITSU_LCD_N_LEVELS; in acpi_fujitsu_add() 1178 int ret, result, max_brightness; in fujitsu_init() local 1223 max_brightness = fujitsu->max_brightness; in fujitsu_init() [all …]
|
/drivers/macintosh/ |
D | via-pmu-backlight.c | 161 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init() 171 level = bd->props.max_brightness; in pmu_backlight_init() 181 bd->props.max_brightness / 15); in pmu_backlight_init()
|
/drivers/video/fbdev/nvidia/ |
D | nv_backlight.c | 109 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in nvidia_bl_init() 123 bd->props.brightness = bd->props.max_brightness; in nvidia_bl_init()
|