• Home
  • Raw
  • Download

Lines Matching refs:rc

24 	int rc;  in axp_set_dcdc2()  local
31 rc = pmic_bus_setbits(AXP209_OUTPUT_CTRL, AXP209_OUTPUT_CTRL_DCDC2); in axp_set_dcdc2()
32 if (rc) in axp_set_dcdc2()
33 return rc; in axp_set_dcdc2()
38 while ((rc = pmic_bus_read(AXP209_DCDC2_VOLTAGE, &current)) == 0 && in axp_set_dcdc2()
45 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); in axp_set_dcdc2()
46 if (rc) in axp_set_dcdc2()
50 return rc; in axp_set_dcdc2()
56 int rc; in axp_set_dcdc3() local
62 rc = pmic_bus_write(AXP209_DCDC3_VOLTAGE, cfg); in axp_set_dcdc3()
63 if (rc) in axp_set_dcdc3()
64 return rc; in axp_set_dcdc3()
71 int rc; in axp_set_aldo2() local
80 rc = pmic_bus_read(AXP209_LDO24_VOLTAGE, &reg); in axp_set_aldo2()
81 if (rc) in axp_set_aldo2()
82 return rc; in axp_set_aldo2()
86 rc = pmic_bus_write(AXP209_LDO24_VOLTAGE, reg); in axp_set_aldo2()
87 if (rc) in axp_set_aldo2()
88 return rc; in axp_set_aldo2()
96 int rc; in axp_set_aldo3() local
107 rc = pmic_bus_write(AXP209_LDO3_VOLTAGE, cfg); in axp_set_aldo3()
108 if (rc) in axp_set_aldo3()
109 return rc; in axp_set_aldo3()
116 int rc; in axp_set_aldo4() local
130 rc = pmic_bus_read(AXP209_LDO24_VOLTAGE, &reg); in axp_set_aldo4()
131 if (rc) in axp_set_aldo4()
132 return rc; in axp_set_aldo4()
136 rc = pmic_bus_write(AXP209_LDO24_VOLTAGE, reg); in axp_set_aldo4()
137 if (rc) in axp_set_aldo4()
138 return rc; in axp_set_aldo4()
146 int i, rc; in axp_init() local
148 rc = pmic_bus_init(); in axp_init()
149 if (rc) in axp_init()
150 return rc; in axp_init()
152 rc = pmic_bus_read(AXP209_CHIP_VERSION, &ver); in axp_init()
153 if (rc) in axp_init()
154 return rc; in axp_init()
164 rc = pmic_bus_write(i, 0); in axp_init()
165 if (rc) in axp_init()
166 return rc; in axp_init()
173 rc = pmic_bus_write(AXP_GPIO0_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
174 if (rc) in axp_init()
175 return rc; in axp_init()
177 rc = pmic_bus_write(AXP_GPIO1_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
178 if (rc) in axp_init()
179 return rc; in axp_init()
181 rc = pmic_bus_write(AXP_GPIO2_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
182 if (rc) in axp_init()
183 return rc; in axp_init()