Home
last modified time | relevance | path

Searched refs:ctrl_uV (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/regulator/
H A Dvctrl-regulator.c59 static int vctrl_calc_output_voltage(struct vctrl_data *vctrl, int ctrl_uV) in vctrl_calc_output_voltage() argument
64 if (ctrl_uV < 0) { in vctrl_calc_output_voltage()
66 return ctrl_uV; in vctrl_calc_output_voltage()
69 if (ctrl_uV < ctrl->min_uV) in vctrl_calc_output_voltage()
72 if (ctrl_uV > ctrl->max_uV) in vctrl_calc_output_voltage()
76 DIV_ROUND_CLOSEST_ULL((s64)(ctrl_uV - ctrl->min_uV) * in vctrl_calc_output_voltage()
84 int ctrl_uV; in vctrl_get_voltage() local
89 ctrl_uV = regulator_get_voltage_rdev(rdev->supply->rdev); in vctrl_get_voltage()
91 return vctrl_calc_output_voltage(vctrl, ctrl_uV); in vctrl_get_voltage()
329 int ctrl_uV; in vctrl_init_vtable() local
[all …]