Lines Matching full:brightness

33 					  int brightness);
35 int brightness);
75 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness, struct pwm_state *state) in compute_duty_cycle() argument
81 duty_cycle = pb->levels[brightness]; in compute_duty_cycle()
83 duty_cycle = brightness; in compute_duty_cycle()
94 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status() local
98 brightness = pb->notify(pb->dev, brightness); in pwm_backlight_update_status()
100 if (brightness > 0) { in pwm_backlight_update_status()
102 state.duty_cycle = compute_duty_cycle(pb, brightness, &state); in pwm_backlight_update_status()
125 pb->notify_after(pb->dev, brightness); in pwm_backlight_update_status()
178 * Create a default correction table for PWM values to create linear brightness
244 * Determine the number of brightness levels, if this property is not in pwm_backlight_parse_dt()
245 * set a default table of brightness levels will be used. in pwm_backlight_parse_dt()
247 prop = of_find_property(node, "brightness-levels", &length); in pwm_backlight_parse_dt()
253 /* read brightness levels from DT property */ in pwm_backlight_parse_dt()
260 ret = of_property_read_u32_array(node, "brightness-levels", in pwm_backlight_parse_dt()
266 ret = of_property_read_u32(node, "default-brightness-level", in pwm_backlight_parse_dt()
275 * interpolation between each of the values of brightness levels in pwm_backlight_parse_dt()
283 * brightness-levels table, otherwise we can't interpolate in pwm_backlight_parse_dt()
299 * Recalculate the number of brightness levels, now in pwm_backlight_parse_dt()
304 dev_dbg(dev, "new number of brightness levels: %d\n", in pwm_backlight_parse_dt()
308 * Create a new table of brightness levels with all the in pwm_backlight_parse_dt()
337 * brightness levels table and replace for the in pwm_backlight_parse_dt()
534 * For the DT case, only when brightness levels is defined in pwm_backlight_probe()
548 * If no brightness levels are provided and max_brightness is in pwm_backlight_probe()
549 * not set, use the default brightness table. For the DT case, in pwm_backlight_probe()
550 * max_brightness is set to 0 when brightness levels is not in pwm_backlight_probe()
562 "failed to setup default brightness table\n"); in pwm_backlight_probe()
597 "invalid default brightness level: %u, using %u\n", in pwm_backlight_probe()
602 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()