Lines Matching refs:geom
65 } geom[TILFMT_NFORMATS] = { variable
369 w = DIV_ROUND_UP(w, geom[fmt].slot_w); in tiler_reserve_2d()
370 h = DIV_ROUND_UP(h, geom[fmt].slot_h); in tiler_reserve_2d()
373 min_align = max(min_align, (geom[fmt].slot_w * geom[fmt].cpp)); in tiler_reserve_2d()
375 align /= geom[fmt].slot_w * geom[fmt].cpp; in tiler_reserve_2d()
461 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; in tiler_get_address()
462 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; in tiler_get_address()
463 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address()
495 block->area.p0.x * geom[block->fmt].slot_w, in tiler_ssptr()
496 block->area.p0.y * geom[block->fmt].slot_h); in tiler_ssptr()
506 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr()
507 (p->y * geom[block->fmt].slot_h) + y); in tiler_tsptr()
513 *w = round_up(*w, geom[fmt].slot_w); in tiler_align()
514 *h = round_up(*h, geom[fmt].slot_h); in tiler_align()
522 return 1 << (CONT_HEIGHT_BITS + geom[fmt].x_shft); in tiler_stride()
524 return 1 << (CONT_WIDTH_BITS + geom[fmt].y_shft); in tiler_stride()
530 return geom[fmt].cpp * w * h; in tiler_size()
536 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; in tiler_vsize()