Lines Matching refs:_stats
32 static struct block_cache_stats _stats = { variable
82 ++_stats.hits; in blkcache_read()
88 ++_stats.misses; in blkcache_read()
100 if (blkcnt > _stats.max_blocks_per_entry) in blkcache_fill()
103 if (_stats.max_entries == 0) in blkcache_fill()
107 if (_stats.max_entries <= _stats.entries) { in blkcache_fill()
111 _stats.entries--; in blkcache_fill()
143 _stats.entries++; in blkcache_fill()
158 --_stats.entries; in blkcache_invalidate()
166 if ((blocks != _stats.max_blocks_per_entry) || in blkcache_configure()
167 (entries != _stats.max_entries)) { in blkcache_configure()
175 _stats.entries = 0; in blkcache_configure()
178 _stats.max_blocks_per_entry = blocks; in blkcache_configure()
179 _stats.max_entries = entries; in blkcache_configure()
181 _stats.hits = 0; in blkcache_configure()
182 _stats.misses = 0; in blkcache_configure()
187 memcpy(stats, &_stats, sizeof(*stats)); in blkcache_stats()
188 _stats.hits = 0; in blkcache_stats()
189 _stats.misses = 0; in blkcache_stats()