Searched refs:diff_new (Results 1 – 5 of 5) sorted by relevance
300 unsigned int diff_new, diff_old, pwr_mode, i, idx; in ad7768_set_freq() local310 diff_new = abs(res - ad7768_clk_config[i].clk_div); in ad7768_set_freq()311 if (diff_new < diff_old) { in ad7768_set_freq()312 diff_old = diff_new; in ad7768_set_freq()
214 unsigned int diff_new, diff_old; in ad7124_find_closest_match() local220 diff_new = abs(val - array[i]); in ad7124_find_closest_match()221 if (diff_new < diff_old) { in ad7124_find_closest_match()222 diff_old = diff_new; in ad7124_find_closest_match()
615 unsigned int diff_new, diff_old; in ad7192_set_3db_filter_freq() local624 diff_new = abs(freq - freq_avail[i]); in ad7192_set_3db_filter_freq()625 if (diff_new < diff_old) { in ad7192_set_3db_filter_freq()626 diff_old = diff_new; in ad7192_set_3db_filter_freq()
398 s64 diff_new, diff_old; in ad5758_slew_rate_config() local436 diff_new = abs(st->slew_time - calc_slew_time); in ad5758_slew_rate_config()437 if (diff_new < diff_old) { in ad5758_slew_rate_config()438 diff_old = diff_new; in ad5758_slew_rate_config()
91 int diff_new = abs(target - n); in closer() local93 return (diff_new < diff_cur); in closer()