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()
212 unsigned int diff_new, diff_old; in ad7124_find_closest_match() local218 diff_new = abs(val - array[i]); in ad7124_find_closest_match()219 if (diff_new < diff_old) { in ad7124_find_closest_match()220 diff_old = diff_new; in ad7124_find_closest_match()
575 unsigned int diff_new, diff_old; in ad7192_set_3db_filter_freq() local584 diff_new = abs(freq - freq_avail[i]); in ad7192_set_3db_filter_freq()585 if (diff_new < diff_old) { in ad7192_set_3db_filter_freq()586 diff_old = diff_new; in ad7192_set_3db_filter_freq()
399 s64 diff_new, diff_old; in ad5758_slew_rate_config() local437 diff_new = abs(st->slew_time - calc_slew_time); in ad5758_slew_rate_config()438 if (diff_new < diff_old) { in ad5758_slew_rate_config()439 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()