Lines Matching refs:slab
471 contigmalloc_size(uma_slab_t slab) in contigmalloc_size() argument
475 KASSERT(IS_CONTIG_MALLOC(slab), in contigmalloc_size()
476 ("%s: called on non-contigmalloc allocation: %p", __func__, slab)); in contigmalloc_size()
477 va = (uintptr_t)slab; in contigmalloc_size()
623 malloc_large_size(uma_slab_t slab) in malloc_large_size() argument
627 va = (uintptr_t)slab; in malloc_large_size()
628 KASSERT(IS_MALLOC_LARGE(slab), in malloc_large_size()
629 ("%s: called on non-malloc_large allocation: %p", __func__, slab)); in malloc_large_size()
949 uma_slab_t slab; in _free() local
960 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in _free()
961 if (slab == NULL) in _free()
965 switch (GET_SLAB_COOKIE(slab)) { in _free()
975 uma_zfree_arg(zone, addr, slab); in _free()
978 size = malloc_large_size(slab); in _free()
986 size = round_page(contigmalloc_size(slab)); in _free()
993 __func__, dozero, addr, slab, GET_SLAB_COOKIE(slab)); in _free()
1029 uma_slab_t slab; in realloc() local
1056 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in realloc()
1059 KASSERT(slab != NULL, in realloc()
1063 switch (GET_SLAB_COOKIE(slab)) { in realloc()
1068 alloc = malloc_large_size(slab); in realloc()
1073 "slab %p cookie %d", __func__, addr, slab, GET_SLAB_COOKIE(slab)); in realloc()
1138 uma_slab_t slab; in malloc_usable_size() local
1153 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in malloc_usable_size()
1154 if (slab == NULL) in malloc_usable_size()
1158 switch (GET_SLAB_COOKIE(slab)) { in malloc_usable_size()
1163 size = malloc_large_size(slab); in malloc_usable_size()
1166 size = round_page(contigmalloc_size(slab)); in malloc_usable_size()