Lines Matching refs:reg_id
169 static int s5m8767_get_register(struct s5m8767_info *s5m8767, int reg_id, in s5m8767_get_register() argument
175 switch (reg_id) { in s5m8767_get_register()
177 *reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1); in s5m8767_get_register()
180 *reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3); in s5m8767_get_register()
186 *reg = S5M8767_REG_BUCK2CTRL + (reg_id - S5M8767_BUCK2) * 9; in s5m8767_get_register()
192 *reg = S5M8767_REG_BUCK6CTRL1 + (reg_id - S5M8767_BUCK6) * 2; in s5m8767_get_register()
199 if (s5m8767->opmode[i].id == reg_id) { in s5m8767_get_register()
208 *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT; in s5m8767_get_register()
213 static int s5m8767_get_vsel_reg(int reg_id, struct s5m8767_info *s5m8767) in s5m8767_get_vsel_reg() argument
217 switch (reg_id) { in s5m8767_get_vsel_reg()
219 reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1); in s5m8767_get_vsel_reg()
222 reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3); in s5m8767_get_vsel_reg()
246 reg = S5M8767_REG_BUCK6CTRL2 + (reg_id - S5M8767_BUCK6) * 2; in s5m8767_get_vsel_reg()
303 int reg_id = rdev_get_id(rdev); in s5m8767_set_voltage_sel() local
307 switch (reg_id) { in s5m8767_set_voltage_sel()
311 if (reg_id == S5M8767_BUCK2 && s5m8767->buck2_gpiodvs) in s5m8767_set_voltage_sel()
313 else if (reg_id == S5M8767_BUCK3 && s5m8767->buck3_gpiodvs) in s5m8767_set_voltage_sel()
315 else if (reg_id == S5M8767_BUCK4 && s5m8767->buck4_gpiodvs) in s5m8767_set_voltage_sel()
350 int reg_id = rdev_get_id(rdev); in s5m8767_set_voltage_time_sel() local
352 desc = reg_voltage_map[reg_id]; in s5m8767_set_voltage_time_sel()