Lines Matching full:ldo
109 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_is_enabled() local
110 u16 mask = 1 << (1 + ldo); in lp3971_ldo_is_enabled()
120 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_enable() local
121 u16 mask = 1 << (1 + ldo); in lp3971_ldo_enable()
129 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_disable() local
130 u16 mask = 1 << (1 + ldo); in lp3971_ldo_disable()
138 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_get_voltage_sel() local
141 reg = lp3971_reg_read(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo)); in lp3971_ldo_get_voltage_sel()
142 val = (reg >> LDO_VOL_CONTR_SHIFT(ldo)) & LDO_VOL_CONTR_MASK; in lp3971_ldo_get_voltage_sel()
151 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_set_voltage_sel() local
153 return lp3971_set_bits(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo), in lp3971_ldo_set_voltage_sel()
154 LDO_VOL_CONTR_MASK << LDO_VOL_CONTR_SHIFT(ldo), in lp3971_ldo_set_voltage_sel()
155 selector << LDO_VOL_CONTR_SHIFT(ldo)); in lp3971_ldo_set_voltage_sel()