Home
last modified time | relevance | path

Searched refs:xdiv (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c853 static void fill_map(char **map, int xdiv, int ydiv, struct tcm_area *a, in fill_map() argument
858 for (x = a->p0.x / xdiv; x <= a->p1.x / xdiv; x++) in fill_map()
863 static void fill_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p, in fill_map_pt() argument
866 map[p->y / ydiv][p->x / xdiv] = c; in fill_map_pt()
869 static char read_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p) in read_map_pt() argument
871 return map[p->y / ydiv][p->x / xdiv]; in read_map_pt()
874 static int map_width(int xdiv, int x0, int x1) in map_width() argument
876 return (x1 / xdiv) - (x0 / xdiv) + 1; in map_width()
879 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
881 char *p = map[yd] + (x0 / xdiv); in text_map()
[all …]
/Linux-v4.19/drivers/cpufreq/
Dcpufreq-nforce2.c88 unsigned char xmul, xdiv; in nforce2_calc_pll() local
94 for (xdiv = 2; xdiv <= 0x80; xdiv++) in nforce2_calc_pll()
96 if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == in nforce2_calc_pll()
99 div = xdiv; in nforce2_calc_pll()
/Linux-v4.19/drivers/media/tuners/
Dfc0012.c136 unsigned short xtal_freq_khz_2, xin, xdiv; in fc0012_set_params() local
211 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0012_set_params()
212 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0012_set_params()
213 xdiv++; in fc0012_set_params()
215 pm = (unsigned char)(xdiv / 8); in fc0012_set_params()
216 am = (unsigned char)(xdiv - (8 * pm)); in fc0012_set_params()
Dfc0011.c180 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local
216 xdiv = fvco / 18000; in fc0011_set_params()
217 WARN_ON(xdiv > 0xFF); in fc0011_set_params()
218 frac = fvco - xdiv * 18000; in fc0011_set_params()
230 xdivr = xdiv; in fc0011_set_params()
231 if (fvco - xdiv * 18000 >= 9000) in fc0011_set_params()
Dfc0013.c228 unsigned short xtal_freq_khz_2, xin, xdiv; in fc0013_set_params() local
365 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0013_set_params()
366 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0013_set_params()
367 xdiv++; in fc0013_set_params()
369 pm = (unsigned char)(xdiv / 8); in fc0013_set_params()
370 am = (unsigned char)(xdiv - (8 * pm)); in fc0013_set_params()
/Linux-v4.19/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c686 int xdiv = i ? hsub : 1; in atmel_hlcdc_plane_atomic_check() local
697 offset += ((x_offset + state->src_x) / xdiv) * in atmel_hlcdc_plane_atomic_check()
707 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
708 state->xstride[i] = ((((patched_src_w - 1) / xdiv) - 1) * in atmel_hlcdc_plane_atomic_check()
716 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
726 offset += ((x_offset + state->src_x) / xdiv) * in atmel_hlcdc_plane_atomic_check()
729 ((patched_src_w / xdiv) * in atmel_hlcdc_plane_atomic_check()