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