Lines Matching defs:width
23 * w width in slots
38 * w width in slots
70 * w = width in slots
163 area->p0.x = pos % tcm->width;
164 area->p0.y = pos / tcm->width;
165 area->p1.x = (pos + num_slots - 1) % tcm->width;
166 area->p1.y = (pos + num_slots - 1) / tcm->width;
182 tcm->map_size, tcm->width);
185 area->p0.x = pos % tcm->width;
186 area->p0.y = pos / tcm->width;
205 pos = area->p0.x + area->p0.y * tcm->width;
210 w = area->p1.x + area->p1.y * tcm->width - pos + 1;
215 free_slots(pos, w, h, tcm->bitmap, tcm->width);
220 struct tcm *sita_init(u16 width, u16 height)
223 size_t map_size = BITS_TO_LONGS(width*height) * sizeof(unsigned long);
225 if (width == 0 || height == 0)
234 tcm->width = width;
242 bitmap_clear(tcm->bitmap, 0, width*height);
244 tcm->map_size = width*height;