Lines Matching full:brightness
40 int brightness);
42 int brightness);
94 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness) in compute_duty_cycle() argument
103 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
105 duty_cycle = brightness; in compute_duty_cycle()
116 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
120 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
122 if (brightness > 0) { in pwm_backlight_update_status()
124 state.duty_cycle = compute_duty_cycle(pb, brightness); in pwm_backlight_update_status()
132 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status()
194 * Create a default correction table for PWM values to create linear brightness
261 * Determine the number of brightness levels, if this property is not in pwm_backlight_parse_dt()
262 * set a default table of brightness levels will be used. in pwm_backlight_parse_dt()
264 prop = of_find_property(node, "brightness-levels", &length); in pwm_backlight_parse_dt()
270 /* read brightness levels from DT property */ in pwm_backlight_parse_dt()
279 ret = of_property_read_u32_array(node, "brightness-levels", in pwm_backlight_parse_dt()
285 ret = of_property_read_u32(node, "default-brightness-level", in pwm_backlight_parse_dt()
294 * interpolation between each of the values of brightness levels in pwm_backlight_parse_dt()
302 * brightness-levels table, otherwise we can't interpolate in pwm_backlight_parse_dt()
312 * Recalculate the number of brightness levels, now in pwm_backlight_parse_dt()
324 dev_dbg(dev, "new number of brightness levels: %d\n", in pwm_backlight_parse_dt()
328 * Create a new table of brightness levels with all the in pwm_backlight_parse_dt()
356 * brightness levels table and replace for the in pwm_backlight_parse_dt()
364 * of brightness levels. in pwm_backlight_parse_dt()
563 * For the DT case, only when brightness levels is defined in pwm_backlight_probe()
577 * If no brightness levels are provided and max_brightness is in pwm_backlight_probe()
578 * not set, use the default brightness table. For the DT case, in pwm_backlight_probe()
579 * max_brightness is set to 0 when brightness levels is not in pwm_backlight_probe()
591 "failed to setup default brightness table\n"); in pwm_backlight_probe()
630 "invalid default brightness level: %u, using %u\n", in pwm_backlight_probe()
635 /* set brightness 0, when boot quiescent */ in pwm_backlight_probe()
637 bl->props.brightness = 0; in pwm_backlight_probe()
639 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()