Lines Matching refs:vrange_ctrl
243 u32 vrange_ctrl[2]; in vctrl_parse_dt() local
294 ret = of_property_read_u32_array(np, "ctrl-voltage-range", vrange_ctrl, in vctrl_parse_dt()
302 if (vrange_ctrl[0] >= vrange_ctrl[1]) { in vctrl_parse_dt()
304 vrange_ctrl[0], vrange_ctrl[1]); in vctrl_parse_dt()
308 vctrl->vrange.ctrl.min_uV = vrange_ctrl[0]; in vctrl_parse_dt()
309 vctrl->vrange.ctrl.max_uV = vrange_ctrl[1]; in vctrl_parse_dt()
327 struct vctrl_voltage_range *vrange_ctrl = &vctrl->vrange.ctrl; in vctrl_init_vtable() local
340 if (ctrl_uV < vrange_ctrl->min_uV || in vctrl_init_vtable()
341 ctrl_uV > vrange_ctrl->max_uV) in vctrl_init_vtable()
360 if (ctrl_uV < vrange_ctrl->min_uV || in vctrl_init_vtable()
361 ctrl_uV > vrange_ctrl->max_uV) in vctrl_init_vtable()
449 struct vctrl_voltage_range *vrange_ctrl; in vctrl_probe() local
469 vrange_ctrl = &vctrl->vrange.ctrl; in vctrl_probe()
507 if (ctrl_uV < vrange_ctrl->min_uV) { in vctrl_probe()
509 } else if (ctrl_uV > vrange_ctrl->max_uV) { in vctrl_probe()