Lines Matching refs:vol_step
54 #define VOL2REG(vol_sel, vol_step) \ argument
55 ((vol_sel) / (vol_step) & VOL_MSK)
56 #define REG2VOL(val, vol_step) \ argument
57 ((vol_step) * ((val) & VOL_MSK))
68 int vol_step; member
91 return REG2VOL(index + VOL_MIN_IDX, tps549b22->vol_step); in tps549b22_dcdc_list_voltage()
153 return REG2VOL(val, tps549b22->vol_step); in tps549b22dcdc_get_voltage()
167 if (min_uV < REG2VOL(VOL_MIN_IDX, tps549b22->vol_step) || in tps549b22dcdc_set_voltage()
168 min_uV > REG2VOL(VOL_MAX_IDX, tps549b22->vol_step)) { in tps549b22dcdc_set_voltage()
171 REG2VOL(min_uV, tps549b22->vol_step)); in tps549b22dcdc_set_voltage()
176 if (REG2VOL(val, tps549b22->vol_step) >= min_uV) in tps549b22dcdc_set_voltage()
179 if (REG2VOL(val, tps549b22->vol_step) > max_uV) in tps549b22dcdc_set_voltage()
182 REG2VOL(val, tps549b22->vol_step)); in tps549b22dcdc_set_voltage()
191 REG2VOL(val, tps549b22->vol_step)); in tps549b22dcdc_set_voltage()
245 &tps549b22->vol_step)) in tps549b22_parse_dt()
246 tps549b22->vol_step = VOL_STEP_DEF; in tps549b22_parse_dt()
248 dev_info(tps549b22->dev, "voltage-step: %duV\n", tps549b22->vol_step); in tps549b22_parse_dt()