Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_dpll_mgr.h34 #define abs_diff(a, b) ({ \ macro
Dintel_dpll_mgr.c770 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()
/kernel/linux/linux-5.10/drivers/tty/serial/
Domap-serial.c224 int abs_diff; in calculate_baud_abs_diff() local
229 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()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dsvgalib.c376 static inline u32 abs_diff(u32 a, u32 b) in abs_diff() function
417 delta_current = abs_diff (f_current, f_vco); in svga_compute_pll()
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/
Dipu-image-convert.c546 unsigned int abs_diff; in find_best_seam() local
579 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()