Lines Matching refs:vsel
221 u16 vsel; in wm831x_buckv_map_voltage() local
224 vsel = 0; in wm831x_buckv_map_voltage()
226 vsel = DIV_ROUND_UP(min_uV - 600000, 12500) + 8; in wm831x_buckv_map_voltage()
230 if (wm831x_buckv_list_voltage(rdev, vsel) > max_uV) in wm831x_buckv_map_voltage()
233 return vsel; in wm831x_buckv_map_voltage()
255 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument
264 if (dcdc->dvs_gpio && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
267 if (dcdc->dvs_gpio && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
271 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel()
274 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel()
290 if (vsel > dcdc->dvs_vsel) { in wm831x_buckv_set_voltage_sel()
293 vsel); in wm831x_buckv_set_voltage_sel()
295 dcdc->dvs_vsel = vsel; in wm831x_buckv_set_voltage_sel()
310 int vsel; in wm831x_buckv_set_suspend_voltage() local
312 vsel = wm831x_buckv_map_voltage(rdev, uV, uV); in wm831x_buckv_set_suspend_voltage()
313 if (vsel < 0) in wm831x_buckv_set_suspend_voltage()
314 return vsel; in wm831x_buckv_set_suspend_voltage()
316 return wm831x_set_bits(wm831x, reg, WM831X_DC1_SLP_VSEL_MASK, vsel); in wm831x_buckv_set_suspend_voltage()