Home
last modified time | relevance | path

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

/hardware/google/gfxstream/guest/mesa/src/util/
Dralloc.c698 alloc_from_slab(gc_slab *slab, uint32_t bucket) in alloc_from_slab() argument
702 if (slab->freelist) { in alloc_from_slab()
706 header = slab->freelist; in alloc_from_slab()
707 slab->freelist = get_gc_freelist_next(slab->freelist); in alloc_from_slab()
708 } else if (slab->next_available + size <= ((char *) slab) + SLAB_SIZE) { in alloc_from_slab()
709 header = (gc_block_header *) slab->next_available; in alloc_from_slab()
710 header->slab_offset = (char *) header - (char *) slab; in alloc_from_slab()
712 slab->next_available += size; in alloc_from_slab()
717 slab->num_allocated++; in alloc_from_slab()
718 slab->num_free--; in alloc_from_slab()
[all …]
DAndroid.bp124 "slab.c",
Dmeson.build119 'slab.c',
120 'slab.h',