Lines Matching refs:xdiv
997 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()
1026 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
1034 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
1039 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
1042 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
1043 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
1044 a->p0.x + xdiv, 256 - 1); in map_1d_info()
1045 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
1046 text_map(map, xdiv, nice, a->p1.y / ydiv, in map_1d_info()
1047 0, a->p1.y - xdiv); in map_1d_info()
1048 } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { in map_1d_info()
1049 text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); in map_1d_info()
1053 static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, in map_2d_info() argument
1057 if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) in map_2d_info()
1058 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, in map_2d_info()
1064 int xdiv = 2, ydiv = 1; in tiler_map_show() local
1085 w_adj = omap_dmm->container_width / xdiv; in tiler_map_show()
1107 fill_map(map, xdiv, ydiv, &block->area, in tiler_map_show()
1113 map_2d_info(map, xdiv, ydiv, nice, in tiler_map_show()
1116 bool start = read_map_pt(map, xdiv, in tiler_map_show()
1118 bool end = read_map_pt(map, xdiv, ydiv, in tiler_map_show()
1122 fill_map(map, xdiv, ydiv, &a, in tiler_map_show()
1124 fill_map_pt(map, xdiv, ydiv, in tiler_map_show()
1127 fill_map_pt(map, xdiv, ydiv, in tiler_map_show()
1130 map_1d_info(map, xdiv, ydiv, nice, in tiler_map_show()