| H A D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Processor cache information made available to userspace via sysfs; 27 /* per-cpu object for tracking: 28 * - a "cache" kobject for the top-level director 43 struct cache *cache; global() member 117 struct cache { global() struct 118 ofnodecache global() argument 119 shared_cpu_mapcache global() argument 120 typecache global() argument 121 int level; /* level not explicit in device tree */ global() member 122 group_idcache global() argument 123 listcache global() argument 124 next_localcache global() argument 139 cache_type_string(const struct cache * cache) cache_type_string() argument 144 cache_init(struct cache * cache,int type,int level,struct device_node * ofnode,int group_id) cache_init() argument 155 new_cache(int type,int level,struct device_node * ofnode,int group_id) new_cache() argument 158 struct cache *cache; new_cache() local 167 release_cache_debugcheck(struct cache * cache) release_cache_debugcheck() argument 180 release_cache(struct cache * cache) release_cache() argument 194 cache_cpu_set(struct cache * cache,int cpu) cache_cpu_set() argument 208 cache_size(const struct cache * cache,unsigned int * ret) cache_size() argument 223 cache_size_kb(const struct cache * cache,unsigned int * ret) cache_size_kb() argument 235 cache_get_line_size(const struct cache * cache,unsigned int * ret) cache_get_line_size() argument 258 cache_nr_sets(const struct cache * cache,unsigned int * ret) cache_nr_sets() argument 273 cache_associativity(const struct cache * cache,unsigned int * ret) cache_associativity() argument 305 cache_find_first_sibling(struct cache * cache) cache_find_first_sibling() argument 326 struct cache *cache = NULL; cache_lookup_by_node_group() local 362 cache_do_one_devnode_unified(struct device_node * node,int group_id,int level) cache_do_one_devnode_unified() argument 370 cache_do_one_devnode_split(struct device_node * node,int group_id,int level) cache_do_one_devnode_split() argument 392 cache_do_one_devnode(struct device_node * node,int group_id,int level) cache_do_one_devnode() argument 394 struct cache *cache; cache_do_one_devnode() local 406 cache_lookup_or_instantiate(struct device_node * node,int group_id,int level) cache_lookup_or_instantiate() argument 408 struct cache *cache; cache_lookup_or_instantiate() local 442 do_subsidiary_caches_debugcheck(struct cache * cache) do_subsidiary_caches_debugcheck() argument 463 get_group_id(unsigned int cpu_id,int level) get_group_id() argument 477 do_subsidiary_caches(struct cache * cache,unsigned int cpu_id) do_subsidiary_caches() argument 480 int level = cache->level; do_subsidiary_caches() local 592 struct cache *cache; size_show() local 609 struct cache *cache; line_size_show() local 625 struct cache *cache; nr_sets_show() local 641 struct cache *cache; associativity_show() local 656 struct cache *cache; type_show() local 669 struct cache *cache; level_show() local 684 struct cache *cache; show_shared_cpumap() local 747 struct cache *cache; cacheinfo_create_index_opt_attrs() local 785 cacheinfo_create_index_dir(struct cache * cache,int index,struct cache_dir * cache_dir) cacheinfo_create_index_dir() argument 814 struct cache *cache; cacheinfo_sysfs_populate() local 831 struct cache *cache; cacheinfo_cpu_online() local 848 struct cache *cache; cache_lookup_by_cpu() local 890 cache_cpu_clear(struct cache * cache,int cpu) cache_cpu_clear() argument 914 struct cache *cache; cacheinfo_cpu_offline() local [all...] |