Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_mm.c101 mm_default_slab_size(unsigned chunk_order) in mm_default_slab_size() argument
108 assert(chunk_order <= MM_MAX_ORDER && chunk_order >= MM_MIN_ORDER); in mm_default_slab_size()
110 return 1 << slab_order[chunk_order - MM_MIN_ORDER]; in mm_default_slab_size()
114 mm_slab_new(struct nouveau_mman *cache, int chunk_order) in mm_slab_new() argument
118 const uint32_t size = mm_default_slab_size(chunk_order); in mm_slab_new()
120 words = ((size >> chunk_order) + 31) / 32; in mm_slab_new()
141 slab->order = chunk_order; in mm_slab_new()
142 slab->count = slab->free = size >> chunk_order; in mm_slab_new()
144 LIST_ADD(&slab->head, &mm_bucket_by_order(cache, chunk_order)->free); in mm_slab_new()