Lines Matching refs:cacheptr
253 cache_t *cacheptr; in realloc() local
278 cacheptr = (cache_t *)*(uintptr_t *)mem; in realloc()
279 if (bytes <= (cacheptr->mt_size - OVERHEAD)) in realloc()
321 cacheptr = (cache_t *)*(uintptr_t *)mem; in realloc()
324 MIN(cacheptr->mt_size - OVERHEAD - shift, bytes)); in realloc()
359 cache_t *cacheptr; in free() local
411 cacheptr = (cache_t *)*(uintptr_t *)mem; in free()
412 freeblocks = cacheptr->mt_freelist; in free()
420 offset = mem - cacheptr->mt_arena; in free()
426 i = offset / cacheptr->mt_size; in free()
444 copy_pattern(FREEPATTERN, ptr, cacheptr->mt_size - OVERHEAD); in free()
446 (void) mutex_lock(&cacheptr->mt_cache_lock); in free()
453 cacheptr->mt_nfree++; in free()
456 (void) mutex_unlock(&cacheptr->mt_cache_lock); in free()