Lines Matching full:uv
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) in rk3568_iodomain_write() argument
85 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write()
124 int uV) in rockchip_iodomain_write() argument
131 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write()
150 int uV; in rockchip_iodomain_notify() local
169 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify()
172 uV = (unsigned long)data; in rockchip_iodomain_notify()
177 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify()
179 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_notify()
180 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify()
186 ret = supply->iod->write(supply, uV); in rockchip_iodomain_notify()
190 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify()
614 int uV; in rockchip_iodomain_probe() local
633 uV = regulator_get_voltage(reg); in rockchip_iodomain_probe()
636 if (uV < 0) { in rockchip_iodomain_probe()
639 ret = uV; in rockchip_iodomain_probe()
643 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_probe()
645 "%d uV is too high. May damage SoC!\n", in rockchip_iodomain_probe()
646 uV); in rockchip_iodomain_probe()
657 ret = iod->write(supply, uV); in rockchip_iodomain_probe()