Lines Matching refs:rinfo
87 struct max77620_regulator_info *rinfo[MAX77620_NUM_REGS]; member
102 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_fps_src() local
106 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_get_fps_src()
109 rinfo->fps_addr, ret); in max77620_regulator_get_fps_src()
119 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_src() local
123 if (!rinfo) in max77620_regulator_set_fps_src()
134 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_set_fps_src()
137 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src()
150 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_src()
155 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src()
167 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_slots() local
174 if (!rinfo) in max77620_regulator_set_fps_slots()
195 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_slots()
199 rinfo->fps_addr, ret); in max77620_regulator_set_fps_slots()
210 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_power_mode() local
211 u8 mask = rinfo->power_mode_mask; in max77620_regulator_set_power_mode()
212 u8 shift = rinfo->power_mode_shift; in max77620_regulator_set_power_mode()
216 switch (rinfo->type) { in max77620_regulator_set_power_mode()
218 addr = rinfo->cfg_addr; in max77620_regulator_set_power_mode()
221 addr = rinfo->volt_addr; in max77620_regulator_set_power_mode()
239 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_power_mode() local
241 u8 mask = rinfo->power_mode_mask; in max77620_regulator_get_power_mode()
242 u8 shift = rinfo->power_mode_shift; in max77620_regulator_get_power_mode()
245 switch (rinfo->type) { in max77620_regulator_get_power_mode()
247 addr = rinfo->cfg_addr; in max77620_regulator_get_power_mode()
250 addr = rinfo->volt_addr; in max77620_regulator_get_power_mode()
266 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_read_slew_rate() local
271 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &rval); in max77620_read_slew_rate()
274 rinfo->cfg_addr, ret); in max77620_read_slew_rate()
278 switch (rinfo->type) { in max77620_read_slew_rate()
295 rinfo->desc.ramp_delay = slew_rate; in max77620_read_slew_rate()
307 rinfo->desc.ramp_delay = slew_rate; in max77620_read_slew_rate()
317 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_set_slew_rate() local
322 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { in max77620_set_slew_rate()
341 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, mask, val); in max77620_set_slew_rate()
354 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_config_power_ok() local
362 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) in max77620_config_power_ok()
369 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_config_power_ok()
373 rinfo->cfg_addr, ret); in max77620_config_power_ok()
490 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_mode() local
517 if (rinfo->type != MAX77620_REGULATOR_TYPE_SD) in max77620_regulator_set_mode()
521 ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, in max77620_regulator_set_mode()
525 rinfo->cfg_addr, ret); in max77620_regulator_set_mode()
544 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_mode() local
556 if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { in max77620_regulator_get_mode()
557 ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &val); in max77620_regulator_get_mode()
560 rinfo->cfg_addr, ret); in max77620_regulator_get_mode()
782 struct max77620_regulator_info *rinfo; in max77620_regulator_probe() local
801 rinfo = max77620_regs_info; in max77620_regulator_probe()
804 rinfo = max20024_regs_info; in max77620_regulator_probe()
807 rinfo = max77663_regs_info; in max77620_regulator_probe()
832 rdesc = &rinfo[id].desc; in max77620_regulator_probe()
833 pmic->rinfo[id] = &rinfo[id]; in max77620_regulator_probe()