Lines Matching refs:ldo
43 int ldo = rdev_get_id(rdev); in max8998_get_enable_register() local
45 switch (ldo) { in max8998_get_enable_register()
48 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
52 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
56 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
60 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
64 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
68 *shift = 7 - (ldo - MAX8998_ESAFEOUT1); in max8998_get_enable_register()
133 int ldo = rdev_get_id(rdev); in max8998_get_voltage_register() local
137 switch (ldo) { in max8998_get_voltage_register()
141 if (ldo == MAX8998_LDO2) in max8998_get_voltage_register()
147 reg = MAX8998_REG_LDO4 + (ldo - MAX8998_LDO4); in max8998_get_voltage_register()
152 if (ldo == MAX8998_LDO8) in max8998_get_voltage_register()
159 if (ldo == MAX8998_LDO10) { in max8998_get_voltage_register()
168 reg = MAX8998_REG_LDO12 + (ldo - MAX8998_LDO12); in max8998_get_voltage_register()