Searched refs:round_div (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/video/fbdev/aty/ |
D | aty128fb.c | 462 #define round_div(n, d) ((n+(d/2))/d) macro 967 par->constants.xclk = round_div((2 * Nx * par->constants.ref_clk), in aty128_timings() 1395 pll->feedback_divider = round_div(n, d); in aty128_var_to_pll() 1441 x = round_div(n, d); in aty128_ddafifo() 1463 x = round_div(n, d); in aty128_ddafifo()
|
D | radeon_base.c | 694 sclk = round_div((2 * Ns * xtal), (2 * M)); in radeon_probe_pll_params() 695 mclk = round_div((2 * Nm * xtal), (2 * M)); in radeon_probe_pll_params() 1628 fb_div = round_div(rinfo->pll.ref_div*pll_output_freq, in radeon_calc_pll_regs() 1846 hRatio = round_div(mode->xres * HORZ_STRETCH_RATIO_MAX, in radeonfb_set_par() 1859 vRatio = round_div(mode->yres * VERT_STRETCH_RATIO_MAX, in radeonfb_set_par()
|
D | radeonfb.h | 439 static inline int round_div(int num, int den) in round_div() function
|