Lines Matching refs:area
64 /* found a long enough free area */
130 /* assume the area is free until we find an overlap */
133 /* check subsequent rows to see if complete area is free */
154 /* set area as in-use. iterate over rows */
163 struct tcm_area *area)
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;
183 struct tcm_area *area)
193 area->p0.x = pos % tcm->width;
194 area->p0.y = pos / tcm->width;
195 area->p1.x = area->p0.x + w - 1;
196 area->p1.y = area->p0.y + h - 1;
208 static s32 sita_free(struct tcm *tcm, struct tcm_area *area)
213 pos = area->p0.x + area->p0.y * tcm->width;
214 if (area->is2d) {
215 w = area->p1.x - area->p0.x + 1;
216 h = area->p1.y - area->p0.y + 1;
218 w = area->p1.x + area->p1.y * tcm->width - pos + 1;