Lines Matching refs:supply
71 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
79 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
82 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV)
84 struct rockchip_iodomain *iod = supply->iod;
89 switch (supply->idx) {
93 b = supply->idx;
95 b = supply->idx + 4;
109 b = supply->idx - 1;
123 static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply,
126 struct rockchip_iodomain *iod = supply->iod;
132 val <<= supply->idx;
135 val |= (BIT(supply->idx) << 16);
148 struct rockchip_iodomain_supply *supply =
177 dev_dbg(supply->iod->dev, "Setting to %d\n", uV);
180 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV);
186 ret = supply->iod->write(supply, uV);
190 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
199 /* if no VCCIO6 supply we should leave things alone */
218 /* if no flash supply we should leave things alone */
237 /* if no vccio2 supply we should leave things alone */
256 /* if no flash supply we should leave things alone */
275 /* if no pmu io supply we should leave things alone */
612 struct rockchip_iodomain_supply *supply = &iod->supplies[i];
623 /* If a supply wasn't specified, that's OK */
651 /* setup our supply */
652 supply->idx = i;
653 supply->iod = iod;
654 supply->reg = reg;
655 supply->nb.notifier_call = rockchip_iodomain_notify;
657 ret = iod->write(supply, uV);
659 supply->reg = NULL;
664 ret = regulator_register_notifier(reg, &supply->nb);
668 supply->reg = NULL;