Lines Matching refs:cfg

33 	u8 cfg = axp818_mvolt_to_cfg(mvolt, 1600, 3400, 100);  in axp_set_dcdc1()  local
39 ret = pmic_bus_write(AXP818_DCDC1_CTRL, cfg); in axp_set_dcdc1()
50 u8 cfg; in axp_set_dcdc2() local
53 cfg = 70 + axp818_mvolt_to_cfg(mvolt, 1220, 1300, 20); in axp_set_dcdc2()
55 cfg = axp818_mvolt_to_cfg(mvolt, 500, 1200, 10); in axp_set_dcdc2()
61 ret = pmic_bus_write(AXP818_DCDC2_CTRL, cfg); in axp_set_dcdc2()
72 u8 cfg; in axp_set_dcdc3() local
75 cfg = 70 + axp818_mvolt_to_cfg(mvolt, 1220, 1300, 20); in axp_set_dcdc3()
77 cfg = axp818_mvolt_to_cfg(mvolt, 500, 1200, 10); in axp_set_dcdc3()
83 ret = pmic_bus_write(AXP818_DCDC3_CTRL, cfg); in axp_set_dcdc3()
94 u8 cfg; in axp_set_dcdc5() local
97 cfg = 32 + axp818_mvolt_to_cfg(mvolt, 1140, 1840, 20); in axp_set_dcdc5()
99 cfg = axp818_mvolt_to_cfg(mvolt, 800, 1120, 10); in axp_set_dcdc5()
105 ret = pmic_bus_write(AXP818_DCDC5_CTRL, cfg); in axp_set_dcdc5()
116 u8 cfg; in axp_set_aldo() local
125 cfg = axp818_mvolt_to_cfg(mvolt, 700, 3300, 100); in axp_set_aldo()
126 ret = pmic_bus_write(AXP818_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()
153 u8 cfg; in axp_set_dldo() local
162 cfg = axp818_mvolt_to_cfg(mvolt, 700, 3300, 100); in axp_set_dldo()
164 cfg += 1 + axp818_mvolt_to_cfg(mvolt, 3400, 4200, 200); in axp_set_dldo()
165 ret = pmic_bus_write(AXP818_DLDO1_CTRL + (dldo_num - 1), cfg); in axp_set_dldo()
176 u8 cfg; in axp_set_eldo() local
185 cfg = axp818_mvolt_to_cfg(mvolt, 700, 1900, 50); in axp_set_eldo()
186 ret = pmic_bus_write(AXP818_ELDO1_CTRL + (eldo_num - 1), cfg); in axp_set_eldo()
197 u8 cfg; in axp_set_fldo() local
207 cfg = axp818_mvolt_to_cfg(mvolt, 700, 1450, 50); in axp_set_fldo()
208 ret = pmic_bus_write(AXP818_FLDO1_CTRL + (fldo_num - 1), cfg); in axp_set_fldo()