Lines Matching full:ldo

64 /* LDO output enable mask */
146 /* LDO voltage control registers shift:
224 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_is_enabled() local
225 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_is_enabled()
228 val = lp3972_reg_read(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo)); in lp3972_ldo_is_enabled()
235 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_enable() local
236 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_enable()
238 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_enable()
245 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_disable() local
246 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_disable()
248 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_disable()
255 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_get_voltage_sel() local
256 u16 mask = LP3972_LDO_VOL_MASK(ldo); in lp3972_ldo_get_voltage_sel()
259 reg = lp3972_reg_read(lp3972, LP3972_LDO_VOL_CONTR_REG(ldo)); in lp3972_ldo_get_voltage_sel()
260 val = (reg >> LP3972_LDO_VOL_CONTR_SHIFT(ldo)) & mask; in lp3972_ldo_get_voltage_sel()
269 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_set_voltage_sel() local
272 shift = LP3972_LDO_VOL_CONTR_SHIFT(ldo); in lp3972_ldo_set_voltage_sel()
273 ret = lp3972_set_bits(lp3972, LP3972_LDO_VOL_CONTR_REG(ldo), in lp3972_ldo_set_voltage_sel()
274 LP3972_LDO_VOL_MASK(ldo) << shift, selector << shift); in lp3972_ldo_set_voltage_sel()
286 switch (ldo) { in lp3972_ldo_set_voltage_sel()
289 shift = LP3972_LDO_VOL_CHANGE_SHIFT(ldo); in lp3972_ldo_set_voltage_sel()