Home
last modified time | relevance | path

Searched refs:diff_new (Results 1 – 5 of 5) sorted by relevance

/drivers/iio/adc/
Dad7768-1.c300 unsigned int diff_new, diff_old, pwr_mode, i, idx; in ad7768_set_freq() local
310 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()
Dad7124.c212 unsigned int diff_new, diff_old; in ad7124_find_closest_match() local
218 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()
Dad7192.c575 unsigned int diff_new, diff_old; in ad7192_set_3db_filter_freq() local
584 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()
/drivers/iio/dac/
Dad5758.c399 s64 diff_new, diff_old; in ad5758_slew_rate_config() local
437 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()
/drivers/cpufreq/
Ds3c24xx-cpufreq.c91 int diff_new = abs(target - n); in closer() local
93 return (diff_new < diff_cur); in closer()