Searched refs:umem_alloc_sizes (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/libumem/amd64/ |
H A D | umem_genasm.c | 456 genasm_malloc(void *base, size_t len, int nents, int *umem_alloc_sizes) in genasm_malloc() argument 477 umem_alloc_sizes[nents-1]); in genasm_malloc() 483 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc() 490 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], allocoff); in genasm_malloc() 496 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_malloc() 505 genasm_free(void *base, size_t len, int nents, int *umem_alloc_sizes) in genasm_free() argument 527 umem_alloc_sizes[nents - 1]); in genasm_free() 533 off = genasm_firstcache(bp, umem_alloc_sizes[0], rbufoff); in genasm_free() 540 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], rbufoff); in genasm_free() 546 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_free()
|
/illumos-gate/usr/src/lib/libumem/i386/ |
H A D | umem_genasm.c | 446 genasm_malloc(void *base, size_t len, int nents, int *umem_alloc_sizes) in genasm_malloc() argument 467 umem_alloc_sizes[nents-1]); in genasm_malloc() 473 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc() 480 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], allocoff); in genasm_malloc() 486 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_malloc() 495 genasm_free(void *base, size_t len, int nents, int *umem_alloc_sizes) in genasm_free() argument 517 umem_alloc_sizes[nents - 1]); in genasm_free() 523 off = genasm_firstcache(bp, umem_alloc_sizes[0], rbufoff); in genasm_free() 530 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], rbufoff); in genasm_free() 536 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_free()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem.c | 642 static int umem_alloc_sizes[] = { variable 674 #define NUM_ALLOC_SIZES (sizeof (umem_alloc_sizes) / sizeof (*umem_alloc_sizes)) 3010 umem_alloc_sizes[0] = UMEM_MAXBUF; in umem_alloc_sizes_clear() 3012 umem_alloc_sizes[i] = 0; in umem_alloc_sizes_clear() 3033 if (umem_alloc_sizes[NUM_ALLOC_SIZES - 1] != 0) { in umem_alloc_sizes_add() 3046 int cur = umem_alloc_sizes[i]; in umem_alloc_sizes_add() 3057 umem_alloc_sizes[j] = umem_alloc_sizes[j-1]; in umem_alloc_sizes_add() 3058 umem_alloc_sizes[i] = size; in umem_alloc_sizes_add() 3072 int cur = umem_alloc_sizes[i]; in umem_alloc_sizes_remove() 3083 umem_alloc_sizes[i] = umem_alloc_sizes[i+1]; in umem_alloc_sizes_remove() [all …]
|