Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.c997 static void fill_map(char **map, int xdiv, int ydiv, struct tcm_area *a, in fill_map() argument
1002 for (x = a->p0.x / xdiv; x <= a->p1.x / xdiv; x++) in fill_map()
1007 static void fill_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p, in fill_map_pt() argument
1010 map[p->y / ydiv][p->x / xdiv] = c; in fill_map_pt()
1013 static char read_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p) in read_map_pt() argument
1015 return map[p->y / ydiv][p->x / xdiv]; in read_map_pt()
1018 static int map_width(int xdiv, int x0, int x1) in map_width() argument
1020 return (x1 / xdiv) - (x0 / xdiv) + 1; in map_width()
1023 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
1025 char *p = map[yd] + (x0 / xdiv); in text_map()
[all …]
/linux/drivers/cpufreq/
H A 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/drivers/media/tuners/
H A Dfc0012.c127 unsigned short xtal_freq_khz_2, xin, xdiv; in fc0012_set_params() local
202 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0012_set_params()
203 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0012_set_params()
204 xdiv++; in fc0012_set_params()
206 pm = (unsigned char)(xdiv / 8); in fc0012_set_params()
207 am = (unsigned char)(xdiv - (8 * pm)); in fc0012_set_params()
H A Dfc0011.c171 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local
207 xdiv = fvco / 18000; in fc0011_set_params()
208 WARN_ON(xdiv > 0xFF); in fc0011_set_params()
209 frac = fvco - xdiv * 18000; in fc0011_set_params()
221 xdivr = xdiv; in fc0011_set_params()
222 if (fvco - xdiv * 18000 >= 9000) in fc0011_set_params()
H A Dfc0013.c218 unsigned short xtal_freq_khz_2, xin, xdiv; in fc0013_set_params() local
355 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0013_set_params()
356 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0013_set_params()
357 xdiv++; in fc0013_set_params()
359 pm = (unsigned char)(xdiv / 8); in fc0013_set_params()
360 am = (unsigned char)(xdiv - (8 * pm)); in fc0013_set_params()
/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c750 int xdiv = i ? fb->format->hsub : 1; in atmel_hlcdc_plane_atomic_check() local
762 xdiv) * hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
772 xdiv) * hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
773 hstate->xstride[i] = ((((hstate->src_w - 1) / xdiv) - 1) * in atmel_hlcdc_plane_atomic_check()
780 offset += (hstate->src_x / xdiv) * hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
788 offset += (hstate->src_x / xdiv) * hstate->bpp[i]; in atmel_hlcdc_plane_atomic_check()
790 ((hstate->src_w / xdiv) * in atmel_hlcdc_plane_atomic_check()