Lines Matching defs:entries
61 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) {
66 i = (i + 1) % cache->entries;
69 if (n == cache->entries) {
71 * Block not in cache, if all cache entries are used
89 for (n = 0; n < cache->entries; n++) {
92 i = (i + 1) % cache->entries;
95 cache->next_blk = (i + 1) % cache->entries;
204 for (i = 0; i < cache->entries; i++) {
219 * Initialise cache allocating the specified number of entries, each of
223 struct squashfs_cache *squashfs_cache_init(char *name, int entries,
234 cache->entry = kcalloc(entries, sizeof(*(cache->entry)), GFP_KERNEL);
242 cache->unused = entries;
243 cache->entries = entries;
252 for (i = 0; i < entries; i++) {