Searched refs:xdiv (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.c805 static void fill_map(char **map, int xdiv, int ydiv, struct tcm_area *a, fill_map() argument
810 for (x = a->p0.x / xdiv; x <= a->p1.x / xdiv; x++) fill_map()
815 static void fill_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p, fill_map_pt() argument
818 map[p->y / ydiv][p->x / xdiv] = c; fill_map_pt()
821 static char read_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p) read_map_pt() argument
823 return map[p->y / ydiv][p->x / xdiv]; read_map_pt()
826 static int map_width(int xdiv, int x0, int x1) map_width() argument
828 return (x1 / xdiv) - (x0 / xdiv) + 1; map_width()
831 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) text_map() argument
833 char *p = map[yd] + (x0 / xdiv); text_map()
834 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; text_map()
842 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, map_1d_info() argument
847 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, map_1d_info()
850 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) map_1d_info()
851 text_map(map, xdiv, nice, a->p0.y / ydiv, map_1d_info()
852 a->p0.x + xdiv, 256 - 1); map_1d_info()
853 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) map_1d_info()
854 text_map(map, xdiv, nice, a->p1.y / ydiv, map_1d_info()
855 0, a->p1.y - xdiv); map_1d_info()
856 } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { map_1d_info()
857 text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); map_1d_info()
861 static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, map_2d_info() argument
865 if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) map_2d_info()
866 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, map_2d_info()
872 int xdiv = 2, ydiv = 1; tiler_map_show() local
893 w_adj = omap_dmm->container_width / xdiv; tiler_map_show()
915 fill_map(map, xdiv, ydiv, &block->area, tiler_map_show()
921 map_2d_info(map, xdiv, ydiv, nice, tiler_map_show()
924 bool start = read_map_pt(map, xdiv, tiler_map_show()
926 bool end = read_map_pt(map, xdiv, ydiv, tiler_map_show()
930 fill_map(map, xdiv, ydiv, &a, tiler_map_show()
932 fill_map_pt(map, xdiv, ydiv, tiler_map_show()
935 fill_map_pt(map, xdiv, ydiv, tiler_map_show()
938 map_1d_info(map, xdiv, ydiv, nice, tiler_map_show()
/linux-4.4.14/arch/mn10300/kernel/
H A Dgdb-io-ttysm.c101 unsigned xdiv, tmp; gdbstub_io_set_baud() local
109 xdiv = 2; gdbstub_io_set_baud()
113 xdiv = 1; gdbstub_io_set_baud()
118 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
123 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
128 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
136 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
141 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
146 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; gdbstub_io_set_baud()
H A Dmn10300-serial.c1065 int baud, bits, xdiv, tmp; mn10300_serial_change_speed() local
1169 xdiv = 1; mn10300_serial_change_speed()
1172 xdiv = 2; mn10300_serial_change_speed()
1230 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
1236 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
1242 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
1250 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
1256 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
1262 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; mn10300_serial_change_speed()
/linux-4.4.14/drivers/cpufreq/
H A Dcpufreq-nforce2.c88 unsigned char xmul, xdiv; nforce2_calc_pll() local
94 for (xdiv = 2; xdiv <= 0x80; xdiv++) nforce2_calc_pll()
96 if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) == nforce2_calc_pll()
99 div = xdiv; nforce2_calc_pll()
/linux-4.4.14/drivers/media/tuners/
H A Dfc0011.c186 u32 fvco, xin, frac, xdiv, xdivr; fc0011_set_params() local
222 xdiv = fvco / 18000; fc0011_set_params()
223 WARN_ON(xdiv > 0xFF); fc0011_set_params()
224 frac = fvco - xdiv * 18000; fc0011_set_params()
236 xdivr = xdiv; fc0011_set_params()
237 if (fvco - xdiv * 18000 >= 9000) fc0011_set_params()
H A Dfc0012.c141 unsigned short xtal_freq_khz_2, xin, xdiv; fc0012_set_params() local
216 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); fc0012_set_params()
217 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) fc0012_set_params()
218 xdiv++; fc0012_set_params()
220 pm = (unsigned char)(xdiv / 8); fc0012_set_params()
221 am = (unsigned char)(xdiv - (8 * pm)); fc0012_set_params()
H A Dfc0013.c233 unsigned short xtal_freq_khz_2, xin, xdiv; fc0013_set_params() local
370 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); fc0013_set_params()
371 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) fc0013_set_params()
372 xdiv++; fc0013_set_params()
374 pm = (unsigned char)(xdiv / 8); fc0013_set_params()
375 am = (unsigned char)(xdiv - (8 * pm)); fc0013_set_params()
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c629 int xdiv = i ? hsub : 1; atmel_hlcdc_plane_atomic_check() local
640 offset += ((x_offset + state->src_x) / xdiv) * atmel_hlcdc_plane_atomic_check()
650 xdiv) * state->bpp[i]; atmel_hlcdc_plane_atomic_check()
651 state->xstride[i] = ((((patched_src_w - 1) / xdiv) - 1) * atmel_hlcdc_plane_atomic_check()
659 xdiv) * state->bpp[i]; atmel_hlcdc_plane_atomic_check()
669 offset += ((x_offset + state->src_x) / xdiv) * atmel_hlcdc_plane_atomic_check()
672 ((patched_src_w / xdiv) * atmel_hlcdc_plane_atomic_check()

Completed in 421 milliseconds