Lines Matching defs:width
31 * w width in slots
46 * w width in slots
78 * w = width in slots
171 area->p0.x = pos % tcm->width;
172 area->p0.y = pos / tcm->width;
173 area->p1.x = (pos + num_slots - 1) % tcm->width;
174 area->p1.y = (pos + num_slots - 1) / tcm->width;
190 tcm->map_size, tcm->width);
193 area->p0.x = pos % tcm->width;
194 area->p0.y = pos / tcm->width;
213 pos = area->p0.x + area->p0.y * tcm->width;
218 w = area->p1.x + area->p1.y * tcm->width - pos + 1;
223 free_slots(pos, w, h, tcm->bitmap, tcm->width);
228 struct tcm *sita_init(u16 width, u16 height)
231 size_t map_size = BITS_TO_LONGS(width*height) * sizeof(unsigned long);
233 if (width == 0 || height == 0)
242 tcm->width = width;
250 bitmap_clear(tcm->bitmap, 0, width*height);
252 tcm->map_size = width*height;