Lines Matching refs:index
29 * - a list of "index" objects representing the cpu's local cache hierarchy
34 struct cache_index_dir *index; /* list of index objects */
37 /* "index" object: each cpu's cache directory has an index
43 struct cache_index_dir *next; /* next index in parent directory */
64 /* These are used to index the cache_type_info array. */
484 struct cache_index_dir *index;
486 index = kobj_to_cache_index_dir(kobj);
488 pr_debug("freeing index directory for L%d %s cache\n",
489 index->cache->level, cache_type_string(index->cache));
491 kfree(index);
505 struct cache_index_dir *index;
507 index = kobj_to_cache_index_dir(k);
509 return index->cache;
591 struct cache_index_dir *index;
594 index = kobj_to_cache_index_dir(k);
595 cache = index->cache;
605 struct cache_index_dir *index;
610 index = kobj_to_cache_index_dir(k);
611 cache = index->cache;
699 static void __cpuinit cacheinfo_create_index_dir(struct cache *cache, int index, struct cache_dir *cache_dir)
711 cache_dir->kobj, "index%d", index);
715 index_dir->next = cache_dir->index;
716 cache_dir->index = index_dir;
729 int index = 0;
737 cacheinfo_create_index_dir(cache, index, cache_dir);
738 index++;
774 struct cache_index_dir *index;
776 index = cache_dir->index;
778 while (index) {
781 next = index->next;
782 kobject_put(&index->kobj);
783 index = next;