Lines Matching refs:reg_id
163 static int s5m8767_get_register(struct s5m8767_info *s5m8767, int reg_id,
169 switch (reg_id) {
171 *reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1);
174 *reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3);
180 *reg = S5M8767_REG_BUCK2CTRL + (reg_id - S5M8767_BUCK2) * 9;
186 *reg = S5M8767_REG_BUCK6CTRL1 + (reg_id - S5M8767_BUCK6) * 2;
193 if (s5m8767->opmode[i].id == reg_id) {
202 *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT;
207 static int s5m8767_get_vsel_reg(int reg_id, struct s5m8767_info *s5m8767)
211 switch (reg_id) {
213 reg = S5M8767_REG_LDO1CTRL + (reg_id - S5M8767_LDO1);
216 reg = S5M8767_REG_LDO3CTRL + (reg_id - S5M8767_LDO3);
240 reg = S5M8767_REG_BUCK6CTRL2 + (reg_id - S5M8767_BUCK6) * 2;
297 int reg_id = rdev_get_id(rdev);
301 switch (reg_id) {
305 if (reg_id == S5M8767_BUCK2 && s5m8767->buck2_gpiodvs)
307 else if (reg_id == S5M8767_BUCK3 && s5m8767->buck3_gpiodvs)
309 else if (reg_id == S5M8767_BUCK4 && s5m8767->buck4_gpiodvs)