Lines Matching refs:max_brightness
205 data->max_brightness = in pwm_backlight_brightness_default()
208 data->levels = devm_kcalloc(dev, data->max_brightness, in pwm_backlight_brightness_default()
214 for (i = 0; i < data->max_brightness; i++) { in pwm_backlight_brightness_default()
216 data->max_brightness) * period; in pwm_backlight_brightness_default()
223 data->dft_brightness = data->max_brightness / 2; in pwm_backlight_brightness_default()
224 data->max_brightness--; in pwm_backlight_brightness_default()
356 data->max_brightness = num_levels - 1; in pwm_backlight_parse_dt()
386 unsigned int nlevels = data->max_brightness + 1; in pwm_backlight_is_linear()
554 for (i = 0; i <= data->max_brightness; i++) in pwm_backlight_probe()
562 } else if (!data->max_brightness) { in pwm_backlight_probe()
582 for (i = 0; i <= data->max_brightness; i++) { in pwm_backlight_probe()
595 pb->scale = data->max_brightness; in pwm_backlight_probe()
602 props.max_brightness = data->max_brightness; in pwm_backlight_probe()
613 if (data->dft_brightness > data->max_brightness) { in pwm_backlight_probe()
616 data->dft_brightness, data->max_brightness); in pwm_backlight_probe()
617 data->dft_brightness = data->max_brightness; in pwm_backlight_probe()