Lines Matching refs:sreg
121 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_mode() local
124 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_mode()
127 if (reg_val & sreg->eco_mode_mask) in hi6421_spmi_regulator_get_mode()
136 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_set_mode() local
139 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_set_mode()
145 if (!sreg->eco_mode_mask) in hi6421_spmi_regulator_set_mode()
148 val = sreg->eco_mode_mask; in hi6421_spmi_regulator_set_mode()
155 sreg->eco_mode_mask, val); in hi6421_spmi_regulator_set_mode()
163 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_optimum_mode() local
165 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_optimum_mode()
167 if (!sreg->eco_uA || ((unsigned int)load_uA > sreg->eco_uA)) in hi6421_spmi_regulator_get_optimum_mode()