Lines Matching refs:geom
66 } geom[TILFMT_NFORMATS] = { variable
370 w = DIV_ROUND_UP(w, geom[fmt].slot_w); in tiler_reserve_2d()
371 h = DIV_ROUND_UP(h, geom[fmt].slot_h); in tiler_reserve_2d()
374 min_align = max(min_align, (geom[fmt].slot_w * geom[fmt].cpp)); in tiler_reserve_2d()
376 align /= geom[fmt].slot_w * geom[fmt].cpp; in tiler_reserve_2d()
462 x_bits = CONT_WIDTH_BITS - geom[fmt].x_shft; in tiler_get_address()
463 y_bits = CONT_HEIGHT_BITS - geom[fmt].y_shft; in tiler_get_address()
464 alignment = geom[fmt].x_shft + geom[fmt].y_shft; in tiler_get_address()
496 block->area.p0.x * geom[block->fmt].slot_w, in tiler_ssptr()
497 block->area.p0.y * geom[block->fmt].slot_h); in tiler_ssptr()
507 (p->x * geom[block->fmt].slot_w) + x, in tiler_tsptr()
508 (p->y * geom[block->fmt].slot_h) + y); in tiler_tsptr()
514 *w = round_up(*w, geom[fmt].slot_w); in tiler_align()
515 *h = round_up(*h, geom[fmt].slot_h); in tiler_align()
523 return 1 << (CONT_HEIGHT_BITS + geom[fmt].x_shft); in tiler_stride()
525 return 1 << (CONT_WIDTH_BITS + geom[fmt].y_shft); in tiler_stride()
531 return geom[fmt].cpp * w * h; in tiler_size()
537 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; in tiler_vsize()