Searched refs:vol_step (Results 1 – 1 of 1) sorted by relevance
54 #define VOL2REG(vol_sel, vol_step) \ argument55 ((vol_sel) / (vol_step) & VOL_MSK)56 #define REG2VOL(val, vol_step) \ argument57 ((vol_step) * ((val) & VOL_MSK))68 int vol_step; member91 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()[all …]