Lines Matching refs:ccw_cache
52 static kmem_cache_t *ccw_cache[CCW_NUMBER_CACHES]; variable
153 if ( ccw_cache[cachind] == NULL ) in ccw_alloc_request()
155 request = kmem_cache_alloc ( ccw_cache[cachind], CCW_CACHE_TYPE ); in ccw_alloc_request()
159 request->cache = ccw_cache[cachind]; in ccw_alloc_request()
269 ccw_cache[cachind] = in ccwcache_init()
274 debug_int_event ( debug_area, 1, (long)ccw_cache[cachind]); in ccwcache_init()
275 if (ccw_cache[cachind] == NULL) in ccwcache_init()
293 if ( ccw_cache[cachind] ) { in ccwcache_cleanup()
295 if ( kmem_cache_shrink(ccw_cache[cachind]) == 0 ) { in ccwcache_cleanup()
296 ccw_cache[cachind] = NULL; in ccwcache_cleanup()
299 kmem_cache_destroy(ccw_cache[cachind]); in ccwcache_cleanup()