• Home
  • Raw
  • Download

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()
511 wsbmSetKernelBOFree(header->slabPool->cache, slab->kbo); in wsbmAllocSlab()
546 struct _WsbmSlabCache *cache = header->slabPool->cache; in wsbmSlabFreeBufferLocked() local
564 wsbmSetKernelBOFree(cache, slab->kbo); in wsbmSlabFreeBufferLocked()
1061 wsbmSlabCacheFinish(struct _WsbmSlabCache *cache) in wsbmSlabCacheFinish() argument
1065 time = cache->nextCheck; in wsbmSlabCacheFinish()
1066 WSBM_MUTEX_LOCK(&cache->mutex); in wsbmSlabCacheFinish()
1067 wsbmTimeAdd(&time, &cache->checkInterval); in wsbmSlabCacheFinish()
1068 wsbmFreeTimeoutKBOsLocked(cache, &time); in wsbmSlabCacheFinish()
1069 WSBM_MUTEX_UNLOCK(&cache->mutex); in wsbmSlabCacheFinish()
1071 assert(cache->timeoutList.next == &cache->timeoutList); in wsbmSlabCacheFinish()
1072 assert(cache->unCached.next == &cache->unCached); in wsbmSlabCacheFinish()
1073 assert(cache->cached.next == &cache->cached); in wsbmSlabCacheFinish()
1075 WSBM_MUTEX_FREE(&cache->mutex); in wsbmSlabCacheFinish()
1076 free(cache); in wsbmSlabCacheFinish()
1142 uint32_t pageAlignment, struct _WsbmSlabCache *cache) in wsbmSlabPoolInit() argument
1163 slabPool->cache = cache; in wsbmSlabPoolInit()