Lines Matching refs:lmu_bank
19 static int ti_lmu_common_update_brightness(struct ti_lmu_bank *lmu_bank, in ti_lmu_common_update_brightness() argument
22 struct regmap *regmap = lmu_bank->regmap; in ti_lmu_common_update_brightness()
33 if (lmu_bank->max_brightness == MAX_BRIGHTNESS_11BIT) { in ti_lmu_common_update_brightness()
34 reg = lmu_bank->lsb_brightness_reg; in ti_lmu_common_update_brightness()
46 reg = lmu_bank->msb_brightness_reg; in ti_lmu_common_update_brightness()
51 int ti_lmu_common_set_brightness(struct ti_lmu_bank *lmu_bank, int brightness) in ti_lmu_common_set_brightness() argument
53 return ti_lmu_common_update_brightness(lmu_bank, brightness); in ti_lmu_common_set_brightness()
84 int ti_lmu_common_set_ramp(struct ti_lmu_bank *lmu_bank) in ti_lmu_common_set_ramp() argument
86 struct regmap *regmap = lmu_bank->regmap; in ti_lmu_common_set_ramp()
89 if (lmu_bank->ramp_up_usec == 0 && lmu_bank->ramp_down_usec == 0) { in ti_lmu_common_set_ramp()
93 ramp_up = ti_lmu_common_convert_ramp_to_index(lmu_bank->ramp_up_usec); in ti_lmu_common_set_ramp()
94 ramp_down = ti_lmu_common_convert_ramp_to_index(lmu_bank->ramp_down_usec); in ti_lmu_common_set_ramp()
99 return regmap_write(regmap, lmu_bank->runtime_ramp_reg, ramp); in ti_lmu_common_set_ramp()