Lines Matching refs:geom
66 } geom[TILFMT_NFORMATS] = { variable
417 w = DIV_ROUND_UP(w, geom[fmt].slot_w); in tiler_reserve_2d()
418 h = DIV_ROUND_UP(h, geom[fmt].slot_h); in tiler_reserve_2d()
421 slot_bytes = geom[fmt].slot_w * geom[fmt].cpp; in tiler_reserve_2d()
511 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; in tiler_get_address()
512 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; in tiler_get_address()
513 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address()
545 block->area.p0.x * geom[block->fmt].slot_w, in tiler_ssptr()
546 block->area.p0.y * geom[block->fmt].slot_h); in tiler_ssptr()
556 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr()
557 (p->y * geom[block->fmt].slot_h) + y); in tiler_tsptr()
563 *w = round_up(*w, geom[fmt].slot_w); in tiler_align()
564 *h = round_up(*h, geom[fmt].slot_h); in tiler_align()
572 return 1 << (CONT_HEIGHT_BITS + geom[fmt].x_shft); in tiler_stride()
574 return 1 << (CONT_WIDTH_BITS + geom[fmt].y_shft); in tiler_stride()
580 return geom[fmt].cpp * w * h; in tiler_size()
586 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; in tiler_vsize()