Lines Matching refs:slab
469 contigmalloc_size(uma_slab_t slab) in contigmalloc_size() argument
473 KASSERT(IS_CONTIG_MALLOC(slab), in contigmalloc_size()
474 ("%s: called on non-contigmalloc allocation: %p", __func__, slab)); in contigmalloc_size()
475 va = (uintptr_t)slab; in contigmalloc_size()
583 malloc_large_size(uma_slab_t slab) in malloc_large_size() argument
587 va = (uintptr_t)slab; in malloc_large_size()
588 KASSERT(IS_MALLOC_LARGE(slab), in malloc_large_size()
589 ("%s: called on non-malloc_large allocation: %p", __func__, slab)); in malloc_large_size()
909 uma_slab_t slab; in _free() local
920 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in _free()
921 if (slab == NULL) in _free()
925 switch (GET_SLAB_COOKIE(slab)) { in _free()
935 uma_zfree_arg(zone, addr, slab); in _free()
938 size = malloc_large_size(slab); in _free()
946 size = round_page(contigmalloc_size(slab)); in _free()
953 __func__, dozero, addr, slab, GET_SLAB_COOKIE(slab)); in _free()
989 uma_slab_t slab; in realloc() local
1016 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in realloc()
1019 KASSERT(slab != NULL, in realloc()
1023 switch (GET_SLAB_COOKIE(slab)) { in realloc()
1028 alloc = malloc_large_size(slab); in realloc()
1033 "slab %p cookie %d", __func__, addr, slab, GET_SLAB_COOKIE(slab)); in realloc()
1098 uma_slab_t slab; in malloc_usable_size() local
1113 vtozoneslab((vm_offset_t)addr & (~UMA_SLAB_MASK), &zone, &slab); in malloc_usable_size()
1114 if (slab == NULL) in malloc_usable_size()
1118 switch (GET_SLAB_COOKIE(slab)) { in malloc_usable_size()
1123 size = malloc_large_size(slab); in malloc_usable_size()