Home
last modified time | relevance | path

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

/linux-6.1.9/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.c214 unsigned int diff_new, diff_old; in ad7124_find_closest_match() local
220 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()
Dad7192.c615 unsigned int diff_new, diff_old; in ad7192_set_3db_filter_freq() local
624 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()
/linux-6.1.9/drivers/iio/dac/
Dad5758.c398 s64 diff_new, diff_old; in ad5758_slew_rate_config() local
436 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()
/linux-6.1.9/drivers/cpufreq/
Ds3c24xx-cpufreq.c91 int diff_new = abs(target - n); in closer() local
93 return (diff_new < diff_cur); in closer()