Lines Matching refs:as3711
37 struct as3711 *as3711; member
55 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i() local
61 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE, in as3711_set_brightness_auto_i()
64 ret = regmap_write(as3711->regmap, AS3711_CURR2_VALUE, in as3711_set_brightness_auto_i()
67 ret = regmap_write(as3711->regmap, AS3711_CURR3_VALUE, in as3711_set_brightness_auto_i()
73 static int as3711_set_brightness_v(struct as3711 *as3711, in as3711_set_brightness_v() argument
80 return regmap_update_bits(as3711->regmap, reg, 0xf0, in as3711_set_brightness_v()
86 struct as3711 *as3711 = supply->as3711; in as3711_bl_su2_reset() local
87 int ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_5, in as3711_bl_su2_reset()
90 ret = regmap_update_bits(as3711->regmap, in as3711_bl_su2_reset()
93 ret = regmap_update_bits(as3711->regmap, in as3711_bl_su2_reset()
106 struct as3711 *as3711 = supply->as3711; in as3711_bl_update_status() local
120 ret = as3711_set_brightness_v(as3711, brightness, in as3711_bl_update_status()
127 ret = as3711_set_brightness_v(as3711, brightness, in as3711_bl_update_status()
141 ret = regmap_update_bits(as3711->regmap, in as3711_bl_update_status()
147 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE, in as3711_bl_update_status()
151 ret = regmap_write(as3711->regmap, AS3711_CURR2_VALUE, in as3711_bl_update_status()
155 ret = regmap_write(as3711->regmap, AS3711_CURR3_VALUE, in as3711_bl_update_status()
182 struct as3711 *as3711 = supply->as3711; in as3711_bl_init_su2() local
187 dev_dbg(as3711->dev, "%s(): use %u\n", __func__, pdata->su2_feedback); in as3711_bl_init_su2()
190 ret = regmap_write(as3711->regmap, AS3711_STEPUP_CONTROL_2, 0); in as3711_bl_init_su2()
196 ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_4, 3, 0); in as3711_bl_init_su2()
200 ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_4, 3, 1); in as3711_bl_init_su2()
204 ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_4, 3, 2); in as3711_bl_init_su2()
208 ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_4, 3, 3); in as3711_bl_init_su2()
224 ret = regmap_write(as3711->regmap, AS3711_CURR_CONTROL, ctl); in as3711_bl_init_su2()
380 struct as3711 *as3711 = dev_get_drvdata(pdev->dev.parent); in as3711_backlight_probe() local
422 supply->as3711 = as3711; in as3711_backlight_probe()