Lines Matching full:uv
75 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
83 int (*write)(struct rockchip_iodomain_supply *supply, int uV);
86 static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) in rk3568_iodomain_write() argument
89 u32 is_3v3 = uV > MAX_VOLTAGE_1_8; in rk3568_iodomain_write()
128 int uV) in rockchip_iodomain_write() argument
135 val = (uV > MAX_VOLTAGE_1_8) ? 0 : 1; in rockchip_iodomain_write()
154 int uV; in rockchip_iodomain_notify() local
173 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify()
176 uV = (unsigned long)data; in rockchip_iodomain_notify()
181 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify()
183 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_notify()
184 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify()
190 ret = supply->iod->write(supply, uV); in rockchip_iodomain_notify()
194 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify()
654 int uV; in rockchip_iodomain_probe() local
673 uV = regulator_get_voltage(reg); in rockchip_iodomain_probe()
676 if (uV < 0) { in rockchip_iodomain_probe()
679 ret = uV; in rockchip_iodomain_probe()
683 if (uV > MAX_VOLTAGE_3_3) { in rockchip_iodomain_probe()
685 "%d uV is too high. May damage SoC!\n", in rockchip_iodomain_probe()
686 uV); in rockchip_iodomain_probe()
697 ret = iod->write(supply, uV); in rockchip_iodomain_probe()