Lines Matching refs:cache
179 struct _WsbmSlabCache *cache; member
253 wsbmFreeTimeoutKBOsLocked(struct _WsbmSlabCache *cache, struct timeval *time) in wsbmFreeTimeoutKBOsLocked() argument
258 if (!wsbmTimeAfterEq(time, &cache->nextCheck)) in wsbmFreeTimeoutKBOsLocked()
261 WSBMLISTFOREACHSAFE(list, next, &cache->timeoutList) { in wsbmFreeTimeoutKBOsLocked()
272 cache->nextCheck = *time; in wsbmFreeTimeoutKBOsLocked()
273 wsbmTimeAdd(&cache->nextCheck, &cache->checkInterval); in wsbmFreeTimeoutKBOsLocked()
283 wsbmSetKernelBOFree(struct _WsbmSlabCache *cache, in wsbmSetKernelBOFree() argument
291 WSBM_MUTEX_LOCK(&cache->mutex); in wsbmSetKernelBOFree()
292 wsbmTimeAdd(&timeFreed, &cache->slabTimeout); in wsbmSetKernelBOFree()
296 WSBMLISTADD(&kbo->head, &cache->cached); in wsbmSetKernelBOFree()
298 WSBMLISTADD(&kbo->head, &cache->unCached); in wsbmSetKernelBOFree()
300 WSBMLISTADDTAIL(&kbo->timeoutHead, &cache->timeoutList); in wsbmSetKernelBOFree()
301 wsbmFreeTimeoutKBOsLocked(cache, &time); in wsbmSetKernelBOFree()
303 WSBM_MUTEX_UNLOCK(&cache->mutex); in wsbmSetKernelBOFree()
314 struct _WsbmSlabCache *cache = slabPool->cache; in wsbmAllocKernelBO() local
330 WSBM_MUTEX_LOCK(&cache->mutex); in wsbmAllocKernelBO()
336 &cache->cached : &cache->unCached; in wsbmAllocKernelBO()
359 WSBM_MUTEX_UNLOCK(&cache->mutex); in wsbmAllocKernelBO()
515 wsbmSetKernelBOFree(header->slabPool->cache, slab->kbo); in wsbmAllocSlab()
550 struct _WsbmSlabCache *cache = header->slabPool->cache; in wsbmSlabFreeBufferLocked() local
568 wsbmSetKernelBOFree(cache, slab->kbo); in wsbmSlabFreeBufferLocked()
1065 wsbmSlabCacheFinish(struct _WsbmSlabCache *cache) in wsbmSlabCacheFinish() argument
1069 time = cache->nextCheck; in wsbmSlabCacheFinish()
1070 WSBM_MUTEX_LOCK(&cache->mutex); in wsbmSlabCacheFinish()
1071 wsbmTimeAdd(&time, &cache->checkInterval); in wsbmSlabCacheFinish()
1072 wsbmFreeTimeoutKBOsLocked(cache, &time); in wsbmSlabCacheFinish()
1073 WSBM_MUTEX_UNLOCK(&cache->mutex); in wsbmSlabCacheFinish()
1075 assert(cache->timeoutList.next == &cache->timeoutList); in wsbmSlabCacheFinish()
1076 assert(cache->unCached.next == &cache->unCached); in wsbmSlabCacheFinish()
1077 assert(cache->cached.next == &cache->cached); in wsbmSlabCacheFinish()
1079 WSBM_MUTEX_FREE(&cache->mutex); in wsbmSlabCacheFinish()
1080 free(cache); in wsbmSlabCacheFinish()
1146 uint32_t pageAlignment, struct _WsbmSlabCache *cache) in wsbmSlabPoolInit() argument
1167 slabPool->cache = cache; in wsbmSlabPoolInit()