Lines Matching defs:width
57 u16 width, height; /* container dimensions */
67 s32 (*reserve_2d)(struct tcm *tcm, u16 height, u16 width, u16 align,
86 * width and height fits within container
91 struct tcm *sita_init(u16 width, u16 height);
115 * @param width Width(in pages) of area to be reserved.
131 static inline s32 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height,
137 (area == NULL || width == 0 || height == 0 ||
140 (height > tcm->height || width > tcm->width) ? -ENOMEM : 0;
144 res = tcm->reserve_2d(tcm, height, width, align, offset,
171 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0;
229 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) {
231 slice->p1.x = slice->tcm->width - 1;
247 area->p1.x < area->tcm->width &&
252 area->p0.x < area->tcm->width &&
253 area->p0.x + area->p0.y * area->tcm->width <=
254 area->p1.x + area->p1.y * area->tcm->width) ||
269 i = p->x + p->y * a->tcm->width;
270 return i >= a->p0.x + a->p0.y * a->tcm->width &&
271 i <= a->p1.x + a->p1.y * a->tcm->width;
275 /* calculate area width */
293 area->tcm->width;
308 a->p1.x = (a->p0.x + num_pg - 1) % a->tcm->width;
309 a->p1.y = a->p0.y + ((a->p0.x + num_pg - 1) / a->tcm->width);