Lines Matching full:brightness
35 int brightness);
37 int brightness);
89 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness) in compute_duty_cycle() argument
98 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
100 duty_cycle = brightness; in compute_duty_cycle()
111 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
115 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
117 if (brightness > 0) { in pwm_backlight_update_status()
119 state.duty_cycle = compute_duty_cycle(pb, brightness); in pwm_backlight_update_status()
127 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status()
189 * Create a default correction table for PWM values to create linear brightness
256 * Determine the number of brightness levels, if this property is not in pwm_backlight_parse_dt()
257 * set a default table of brightness levels will be used. in pwm_backlight_parse_dt()
259 prop = of_find_property(node, "brightness-levels", &length); in pwm_backlight_parse_dt()
265 /* read brightness levels from DT property */ in pwm_backlight_parse_dt()
274 ret = of_property_read_u32_array(node, "brightness-levels", in pwm_backlight_parse_dt()
280 ret = of_property_read_u32(node, "default-brightness-level", in pwm_backlight_parse_dt()
289 * interpolation between each of the values of brightness levels in pwm_backlight_parse_dt()
297 * brightness-levels table, otherwise we can't interpolate in pwm_backlight_parse_dt()
307 * Recalculate the number of brightness levels, now in pwm_backlight_parse_dt()
319 dev_dbg(dev, "new number of brightness levels: %d\n", in pwm_backlight_parse_dt()
323 * Create a new table of brightness levels with all the in pwm_backlight_parse_dt()
351 * brightness levels table and replace for the in pwm_backlight_parse_dt()
359 * of brightness levels. in pwm_backlight_parse_dt()
556 * For the DT case, only when brightness levels is defined in pwm_backlight_probe()
570 * If no brightness levels are provided and max_brightness is in pwm_backlight_probe()
571 * not set, use the default brightness table. For the DT case, in pwm_backlight_probe()
572 * max_brightness is set to 0 when brightness levels is not in pwm_backlight_probe()
584 "failed to setup default brightness table\n"); in pwm_backlight_probe()
621 "invalid default brightness level: %u, using %u\n", in pwm_backlight_probe()
626 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()