Searched refs:abs_diff (Results 1 – 5 of 5) sorted by relevance
34 #define abs_diff(a, b) ({ \ macro
770 diff = abs_diff(freq2k * p * r2, LC_FREQ_2K * n2); in hsw_wrpll_update_rnp()771 diff_best = abs_diff(freq2k * best->p * best->r2, in hsw_wrpll_update_rnp()1318 deviation = div64_u64(10000 * abs_diff(dco_freq, central_freq), in skl_wrpll_try_divider()
224 int abs_diff; in calculate_baud_abs_diff() local229 abs_diff = baud - (port->uartclk / (mode * n)); in calculate_baud_abs_diff()230 if (abs_diff < 0) in calculate_baud_abs_diff()231 abs_diff = -abs_diff; in calculate_baud_abs_diff()233 return abs_diff; in calculate_baud_abs_diff()
376 static inline u32 abs_diff(u32 a, u32 b) in abs_diff() function417 delta_current = abs_diff (f_current, f_vco); in svga_compute_pll()
546 unsigned int abs_diff; in find_best_seam() local579 abs_diff = in_pos_aligned - in_pos; in find_best_seam()581 abs_diff = in_pos - in_pos_aligned; in find_best_seam()583 if (abs_diff < min_diff) { in find_best_seam()586 min_diff = abs_diff; in find_best_seam()