Lines Matching refs:supply
79 static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply,
82 struct rockchip_iodomain *iod = supply->iod;
88 val <<= supply->idx;
91 val |= (BIT(supply->idx) << 16);
104 struct rockchip_iodomain_supply *supply =
133 dev_dbg(supply->iod->dev, "Setting to %d\n", uV);
136 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV);
142 ret = rockchip_iodomain_write(supply, uV);
146 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
155 /* if no VCCIO6 supply we should leave things alone */
174 /* if no flash supply we should leave things alone */
193 /* if no vccio2 supply we should leave things alone */
212 /* if no flash supply we should leave things alone */
231 /* if no pmu io supply we should leave things alone */
523 struct rockchip_iodomain_supply *supply = &iod->supplies[i];
534 /* If a supply wasn't specified, that's OK */
562 /* setup our supply */
563 supply->idx = i;
564 supply->iod = iod;
565 supply->reg = reg;
566 supply->nb.notifier_call = rockchip_iodomain_notify;
568 ret = rockchip_iodomain_write(supply, uV);
570 supply->reg = NULL;
575 ret = regulator_register_notifier(reg, &supply->nb);
579 supply->reg = NULL;