Lines Matching full:brightness

34 					  int brightness);
36 int brightness);
77 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness, struct pwm_state *state) in compute_duty_cycle() argument
83 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
85 duty_cycle = brightness; in compute_duty_cycle()
96 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
100 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
102 if (brightness > 0) { in pwm_backlight_update_status()
104 state.duty_cycle = compute_duty_cycle(pb, brightness, &state); 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
255 * Determine the number of brightness levels, if this property is not in pwm_backlight_parse_dt()
256 * set a default table of brightness levels will be used. in pwm_backlight_parse_dt()
258 prop = of_find_property(node, "brightness-levels", &length); in pwm_backlight_parse_dt()
264 /* read brightness levels from DT property */ in pwm_backlight_parse_dt()
271 ret = of_property_read_u32_array(node, "brightness-levels", in pwm_backlight_parse_dt()
277 ret = of_property_read_u32(node, "default-brightness-level", in pwm_backlight_parse_dt()
286 * interpolation between each of the values of brightness levels in pwm_backlight_parse_dt()
294 * brightness-levels table, otherwise we can't interpolate in pwm_backlight_parse_dt()
310 * Recalculate the number of brightness levels, now in pwm_backlight_parse_dt()
315 dev_dbg(dev, "new number of brightness levels: %d\n", in pwm_backlight_parse_dt()
319 * Create a new table of brightness levels with all the in pwm_backlight_parse_dt()
348 * brightness levels table and replace for the in pwm_backlight_parse_dt()
546 * For the DT case, only when brightness levels is defined in pwm_backlight_probe()
560 * If no brightness levels are provided and max_brightness is in pwm_backlight_probe()
561 * not set, use the default brightness table. For the DT case, in pwm_backlight_probe()
562 * max_brightness is set to 0 when brightness levels is not in pwm_backlight_probe()
574 "failed to setup default brightness table\n"); in pwm_backlight_probe()
609 "invalid default brightness level: %u, using %u\n", in pwm_backlight_probe()
614 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()