Searched refs:diff_new (Results 1 – 5 of 5) sorted by relevance
299 unsigned int diff_new, diff_old, pwr_mode, i, idx; in ad7768_set_freq() local309 diff_new = abs(res - ad7768_clk_config[i].clk_div); in ad7768_set_freq()310 if (diff_new < diff_old) { in ad7768_set_freq()311 diff_old = diff_new; in ad7768_set_freq()
194 unsigned int diff_new, diff_old; in ad7124_find_closest_match() local200 diff_new = abs(val - array[i]); in ad7124_find_closest_match()201 if (diff_new < diff_old) { in ad7124_find_closest_match()202 diff_old = diff_new; in ad7124_find_closest_match()
574 unsigned int diff_new, diff_old; in ad7192_set_3db_filter_freq() local583 diff_new = abs(freq - freq_avail[i]); in ad7192_set_3db_filter_freq()584 if (diff_new < diff_old) { in ad7192_set_3db_filter_freq()585 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()