Home
last modified time | relevance | path

Searched refs:chunk_order (Results 1 – 1 of 1) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_mm.c110 mm_default_slab_size(unsigned chunk_order) in mm_default_slab_size() argument
117 assert(chunk_order <= MM_MAX_ORDER && chunk_order >= MM_MIN_ORDER); in mm_default_slab_size()
119 return 1 << slab_order[chunk_order - MM_MIN_ORDER]; in mm_default_slab_size()
123 mm_slab_new(struct nouveau_mman *cache, struct mm_bucket *bucket, int chunk_order) in mm_slab_new() argument
127 const uint32_t size = mm_default_slab_size(chunk_order); in mm_slab_new()
131 words = ((size >> chunk_order) + 31) / 32; in mm_slab_new()
152 slab->order = chunk_order; in mm_slab_new()
153 slab->count = slab->free = size >> chunk_order; in mm_slab_new()
155 assert(bucket == mm_bucket_by_order(cache, chunk_order)); in mm_slab_new()