Lines Matching refs:sel
71 #define BD_DATA(_name, enreg, enmask, vreg, vmask, _range, rmask, _dvs, sel) \ argument
76 .sel_mask = (sel) \
245 static int vrange_find_value(struct bd71837_vrange *r, unsigned int sel, in vrange_find_value() argument
248 if (!val || sel < r->min_sel || sel > r->max_sel) in vrange_find_value()
251 *val = r->min_volt + r->step * (sel - r->min_sel); in vrange_find_value()
256 unsigned int *sel) in vrange_find_selector() argument
264 *sel = r->min_sel + ((val - r->min_volt) / r->step); in vrange_find_selector()
267 *sel = r->min_sel; in vrange_find_selector()
320 unsigned int sel; in bd71837_set_value() local
340 found = !vrange_find_selector(r, uvolt, &sel); in bd71837_set_value()
349 found = !vrange_find_value(r, sel, &tmp); in bd71837_set_value()
359 sel <<= ffs(plat->volt_mask) - 1; in bd71837_set_value()
362 sel |= range; in bd71837_set_value()
365 plat->rangemask, sel); in bd71837_set_value()