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()
603 malloc_large_size(uma_slab_t slab) in malloc_large_size() argument
607 va = (uintptr_t)slab; in malloc_large_size()
608 KASSERT(IS_MALLOC_LARGE(slab), in malloc_large_size()
609 ("%s: called on non-malloc_large allocation: %p", __func__, slab)); in malloc_large_size()
929 uma_slab_t slab; in _free() local
940 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in _free()
941 if (slab == NULL) in _free()
945 switch (GET_SLAB_COOKIE(slab)) { in _free()
955 uma_zfree_arg(zone, addr, slab); in _free()
958 size = malloc_large_size(slab); in _free()
966 size = round_page(contigmalloc_size(slab)); in _free()
973 __func__, dozero, addr, slab, GET_SLAB_COOKIE(slab)); in _free()
1009 uma_slab_t slab; in realloc() local
1036 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in realloc()
1039 KASSERT(slab != NULL, in realloc()
1043 switch (GET_SLAB_COOKIE(slab)) { in realloc()
1048 alloc = malloc_large_size(slab); in realloc()
1053 "slab %p cookie %d", __func__, addr, slab, GET_SLAB_COOKIE(slab)); in realloc()
1118 uma_slab_t slab; in malloc_usable_size() local
1133 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in malloc_usable_size()
1134 if (slab == NULL) in malloc_usable_size()
1138 switch (GET_SLAB_COOKIE(slab)) { in malloc_usable_size()
1143 size = malloc_large_size(slab); in malloc_usable_size()