Lines Matching refs:area
56 /* found a long enough free area */
122 /* assume the area is free until we find an overlap */
125 /* check subsequent rows to see if complete area is free */
146 /* set area as in-use. iterate over rows */
155 struct tcm_area *area)
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;
175 struct tcm_area *area)
185 area->p0.x = pos % tcm->width;
186 area->p0.y = pos / tcm->width;
187 area->p1.x = area->p0.x + w - 1;
188 area->p1.y = area->p0.y + h - 1;
200 static s32 sita_free(struct tcm *tcm, struct tcm_area *area)
205 pos = area->p0.x + area->p0.y * tcm->width;
206 if (area->is2d) {
207 w = area->p1.x - area->p0.x + 1;
208 h = area->p1.y - area->p0.y + 1;
210 w = area->p1.x + area->p1.y * tcm->width - pos + 1;