Lines Matching refs:area
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()