Lines Matching defs:geom
60 } geom[TILFMT_NFORMATS] = {
544 w = DIV_ROUND_UP(w, geom[fmt].slot_w);
545 h = DIV_ROUND_UP(h, geom[fmt].slot_h);
548 slot_bytes = geom[fmt].slot_w * geom[fmt].cpp;
638 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft;
639 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft;
640 alignment = geom[fmt].x_shft + geom[fmt].y_shft;
672 block->area.p0.x * geom[block->fmt].slot_w,
673 block->area.p0.y * geom[block->fmt].slot_h);
683 (p->x * geom[block->fmt].slot_w) + x,
684 (p->y * geom[block->fmt].slot_h) + y);
690 *w = round_up(*w, geom[fmt].slot_w);
691 *h = round_up(*h, geom[fmt].slot_h);
699 return 1 << (CONT_HEIGHT_BITS + geom[fmt].x_shft);
701 return 1 << (CONT_WIDTH_BITS + geom[fmt].y_shft);
707 return geom[fmt].cpp * w * h;
713 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h;