Lines Matching refs:rc
146 int rc; in stm32mp_pwr_regulator_probe() local
148 rc = dev_read_stringlist_search(dev, "regulator-name", in stm32mp_pwr_regulator_probe()
150 if (rc >= 0) { in stm32mp_pwr_regulator_probe()
153 } else if (rc != -ENODATA) { in stm32mp_pwr_regulator_probe()
154 return rc; in stm32mp_pwr_regulator_probe()
211 int rc; in stm32mp_pwr_regulator_get_enable() local
214 rc = pmic_read(dev->parent, 0, (uint8_t *)®, sizeof(reg)); in stm32mp_pwr_regulator_get_enable()
215 if (rc) in stm32mp_pwr_regulator_get_enable()
216 return rc; in stm32mp_pwr_regulator_get_enable()
226 int rc; in stm32mp_pwr_regulator_set_enable() local
232 rc = pmic_read(dev->parent, 0, (uint8_t *)®, sizeof(reg)); in stm32mp_pwr_regulator_set_enable()
233 if (rc) in stm32mp_pwr_regulator_set_enable()
234 return rc; in stm32mp_pwr_regulator_set_enable()
244 rc = pmic_write(dev->parent, 0, (uint8_t *)®, sizeof(reg)); in stm32mp_pwr_regulator_set_enable()
245 if (rc) in stm32mp_pwr_regulator_set_enable()
246 return rc; in stm32mp_pwr_regulator_set_enable()
254 rc = pmic_read(dev->parent, 0, (uint8_t *)®, sizeof(reg)); in stm32mp_pwr_regulator_set_enable()
255 if (rc) in stm32mp_pwr_regulator_set_enable()
256 return rc; in stm32mp_pwr_regulator_set_enable()