Lines Matching refs:buf
92 * on the cache's buf-to-bufctl hash table (if the buffer is allocated).
163 #define UMEM_BUFTAG(cp, buf) \
164 ((umem_buftag_t *)((char *)(buf) + (cp)->cache_buftag))
166 #define UMEM_BUFCTL(cp, buf) \
167 ((umem_bufctl_t *)((char *)(buf) + (cp)->cache_bufctl))
172 #define UMEM_SLAB(cp, buf) \
173 ((umem_slab_t *)P2END((uintptr_t)(buf), (cp)->cache_slabsize) - 1)
182 #define UMEM_SLAB_MEMBER(sp, buf) \
183 ((size_t)(buf) - (size_t)(sp)->slab_base < \
201 #define UMEM_HASH(cp, buf) \
203 (((uintptr_t)(buf) >> (cp)->cache_hash_shift) & (cp)->cache_hash_mask))
296 size_t cache_chunksize; /* buf + alignment [+ debug] */
298 size_t cache_bufctl; /* buf-to-bufctl distance */
299 size_t cache_buftag; /* buf-to-buftag distance */