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