Lines Matching refs:chunksize
1403 size_t chunksize = cp->cache_chunksize; in umem_slab_create() local
1430 chunks = (slabsize - color) / chunksize; in umem_slab_create()
1433 chunks = (slabsize - sizeof (umem_slab_t) - color) / chunksize; in umem_slab_create()
1471 buf += chunksize; in umem_slab_create()
2656 size_t chunksize; in umem_cache_create() local
2795 chunksize = bufsize; in umem_cache_create()
2798 chunksize = P2ROUNDUP(chunksize, UMEM_ALIGN); in umem_cache_create()
2799 cp->cache_bufctl = chunksize - UMEM_ALIGN; in umem_cache_create()
2803 cp->cache_bufctl = chunksize; in umem_cache_create()
2804 cp->cache_buftag = chunksize; in umem_cache_create()
2805 chunksize += sizeof (umem_buftag_t); in umem_cache_create()
2816 cp->cache_chunksize = chunksize = P2ROUNDUP(chunksize, align); in umem_cache_create()
2818 if (chunksize < bufsize) { in umem_cache_create()
2827 cp->cache_slabsize = P2ROUNDUP(chunksize, vmp->vm_quantum); in umem_cache_create()
2828 cp->cache_mincolor = cp->cache_slabsize - chunksize; in umem_cache_create()
2834 chunksize < vmp->vm_quantum / UMEM_VOID_FRACTION)) { in umem_cache_create()
2838 (cp->cache_slabsize - sizeof (umem_slab_t)) % chunksize; in umem_cache_create()
2840 if (chunksize + sizeof (umem_slab_t) > cp->cache_slabsize) { in umem_cache_create()
2851 slabsize = P2ROUNDUP(chunksize * chunks, in umem_cache_create()
2856 if ((slabsize / chunks) < chunksize) { in umem_cache_create()
2860 chunks = slabsize / chunksize; in umem_cache_create()
2861 waste = (slabsize % chunksize) / chunks; in umem_cache_create()
2875 cp->cache_maxcolor = bestfit % chunksize; in umem_cache_create()
2911 cp->cache_hash_shift = highbit((ulong_t)chunksize) - 1; in umem_cache_create()
2919 for (mtp = umem_magtype; chunksize <= mtp->mt_minbuf; mtp++) in umem_cache_create()