Lines Matching refs:index

33 	struct cache_index_dir *index; /* list of index objects */  member
511 struct cache_index_dir *index; in cache_index_release() local
513 index = kobj_to_cache_index_dir(kobj); in cache_index_release()
516 index->cache->level, cache_type_string(index->cache)); in cache_index_release()
518 kfree(index); in cache_index_release()
532 struct cache_index_dir *index; in index_kobj_to_cache() local
534 index = kobj_to_cache_index_dir(k); in index_kobj_to_cache()
536 return index->cache; in index_kobj_to_cache()
618 struct cache_index_dir *index; in level_show() local
621 index = kobj_to_cache_index_dir(k); in level_show()
622 cache = index->cache; in level_show()
632 struct cache_index_dir *index; in shared_cpu_map_show() local
636 index = kobj_to_cache_index_dir(k); in shared_cpu_map_show()
637 cache = index->cache; in shared_cpu_map_show()
723 static void cacheinfo_create_index_dir(struct cache *cache, int index, in cacheinfo_create_index_dir() argument
736 cache_dir->kobj, "index%d", index); in cacheinfo_create_index_dir()
740 index_dir->next = cache_dir->index; in cacheinfo_create_index_dir()
741 cache_dir->index = index_dir; in cacheinfo_create_index_dir()
755 int index = 0; in cacheinfo_sysfs_populate() local
763 cacheinfo_create_index_dir(cache, index, cache_dir); in cacheinfo_sysfs_populate()
764 index++; in cacheinfo_sysfs_populate()
803 struct cache_index_dir *index; in remove_index_dirs() local
805 index = cache_dir->index; in remove_index_dirs()
807 while (index) { in remove_index_dirs()
810 next = index->next; in remove_index_dirs()
811 kobject_put(&index->kobj); in remove_index_dirs()
812 index = next; in remove_index_dirs()