Home
last modified time | relevance | path

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

/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c852 static void fill_map(char **map, int xdiv, int ydiv, struct tcm_area *a, in fill_map() argument
857 for (x = a->p0.x / xdiv; x <= a->p1.x / xdiv; x++) in fill_map()
862 static void fill_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p, in fill_map_pt() argument
865 map[p->y / ydiv][p->x / xdiv] = c; in fill_map_pt()
868 static char read_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p) in read_map_pt() argument
870 return map[p->y / ydiv][p->x / xdiv]; in read_map_pt()
873 static int map_width(int xdiv, int x0, int x1) in map_width() argument
875 return (x1 / xdiv) - (x0 / xdiv) + 1; in map_width()
878 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
880 char *p = map[yd] + (x0 / xdiv); in text_map()
[all …]
/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()
/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()
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c702 int xdiv = i ? hsub : 1; in atmel_hlcdc_plane_atomic_check() local
713 offset += ((x_offset + state->src_x) / xdiv) * in atmel_hlcdc_plane_atomic_check()
723 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
724 state->xstride[i] = ((((patched_src_w - 1) / xdiv) - 1) * in atmel_hlcdc_plane_atomic_check()
732 xdiv) * state->bpp[i]; in atmel_hlcdc_plane_atomic_check()
742 offset += ((x_offset + state->src_x) / xdiv) * in atmel_hlcdc_plane_atomic_check()
745 ((patched_src_w / xdiv) * in atmel_hlcdc_plane_atomic_check()