Searched refs:diff2 (Results 1 – 5 of 5) sorted by relevance
344 int diff1, diff2; in ess_calc_best_speed() local348 div2 = ess_calc_div (clock2, rev2, &speed2, &diff2); in ess_calc_best_speed()350 if (diff1 < diff2) { in ess_calc_best_speed()
929 int good_diff, diff, diff2; in cs4297a_update_ptr() local950 diff2 = diff = (d->ringsz + hwptr - d->hwptr) % d->ringsz; in cs4297a_update_ptr()955 while (diff2--) { in cs4297a_update_ptr()1020 diff2 = diff = (hwptr + d->ringsz - d->hwptr) % d->ringsz; in cs4297a_update_ptr()
845 int diff1, diff2; in ad1848_set_speed() local848 diff2 = speed_table[i].speed - arg; in ad1848_set_speed()850 if (diff1 < diff2) in ad1848_set_speed()
2108 int diff1, diff2; in aty_init() local2110 diff2 = 510*29/pll_ref_div-pll; in aty_init()2113 if (diff2 < 0) in aty_init()2114 diff2 = -diff2; in aty_init()2115 if (diff2 < diff1) { in aty_init()
228 int diff1, diff2; in cs4231_rate_to_bits() local231 diff2 = p[1].speed - wanted; in cs4231_rate_to_bits()232 if (diff2 < diff1) in cs4231_rate_to_bits()