Lines Matching refs:rinfo

90 	struct max77620_regulator_info *rinfo[MAX77620_NUM_REGS];  member
105 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_fps_src() local
109 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_get_fps_src()
112 rinfo->fps_addr, ret); in max77620_regulator_get_fps_src()
122 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_src() local
126 if (!rinfo) in max77620_regulator_set_fps_src()
137 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_set_fps_src()
140 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src()
153 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_src()
158 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src()
170 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_slots() local
177 if (!rinfo) in max77620_regulator_set_fps_slots()
198 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_slots()
202 rinfo->fps_addr, ret); in max77620_regulator_set_fps_slots()
213 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_power_mode() local
214 u8 mask = rinfo->power_mode_mask; in max77620_regulator_set_power_mode()
215 u8 shift = rinfo->power_mode_shift; in max77620_regulator_set_power_mode()
219 switch (rinfo->type) { in max77620_regulator_set_power_mode()
221 addr = rinfo->cfg_addr; in max77620_regulator_set_power_mode()
224 addr = rinfo->volt_addr; in max77620_regulator_set_power_mode()
242 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_power_mode() local
244 u8 mask = rinfo->power_mode_mask; in max77620_regulator_get_power_mode()
245 u8 shift = rinfo->power_mode_shift; in max77620_regulator_get_power_mode()
248 switch (rinfo->type) { in max77620_regulator_get_power_mode()
250 addr = rinfo->cfg_addr; in max77620_regulator_get_power_mode()
253 addr = rinfo->volt_addr; in max77620_regulator_get_power_mode()
269 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_read_slew_rate() local
274 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &rval); in max77620_read_slew_rate()
277 rinfo->cfg_addr, ret); in max77620_read_slew_rate()
281 switch (rinfo->type) { in max77620_read_slew_rate()
298 rinfo->desc.ramp_delay = slew_rate; in max77620_read_slew_rate()
310 rinfo->desc.ramp_delay = slew_rate; in max77620_read_slew_rate()
320 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_set_slew_rate() local
325 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { in max77620_set_slew_rate()
344 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, mask, val); in max77620_set_slew_rate()
357 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_config_power_ok() local
365 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) in max77620_config_power_ok()
372 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_config_power_ok()
376 rinfo->cfg_addr, ret); in max77620_config_power_ok()
493 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_mode() local
520 if (rinfo->type != MAX77620_REGULATOR_TYPE_SD) in max77620_regulator_set_mode()
524 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_regulator_set_mode()
528 rinfo->cfg_addr, ret); in max77620_regulator_set_mode()
547 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_mode() local
559 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { in max77620_regulator_get_mode()
560 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &val); in max77620_regulator_get_mode()
563 rinfo->cfg_addr, ret); in max77620_regulator_get_mode()
765 struct max77620_regulator_info *rinfo; in max77620_regulator_probe() local
784 rinfo = max77620_regs_info; in max77620_regulator_probe()
787 rinfo = max20024_regs_info; in max77620_regulator_probe()
803 rdesc = &rinfo[id].desc; in max77620_regulator_probe()
804 pmic->rinfo[id] = &max77620_regs_info[id]; in max77620_regulator_probe()