Searched refs:this_leaf (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/drivers/base/ |
D | cacheinfo.c | 46 struct cacheinfo *this_leaf; in cache_setup_of_node() local 66 this_leaf = this_cpu_ci->info_list + index; in cache_setup_of_node() 67 if (this_leaf->level != 1) in cache_setup_of_node() 73 this_leaf->of_node = np; in cache_setup_of_node() 83 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 86 return sib_leaf->of_node == this_leaf->of_node; in cache_leaves_are_shared() 90 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 98 return !(this_leaf->level == 1); in cache_leaves_are_shared() 105 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_setup() local 116 this_leaf = this_cpu_ci->info_list + index; in cache_shared_cpu_map_setup() [all …]
|
/linux-4.4.14/arch/arm64/kernel/ |
D | cacheinfo.c | 67 static void ci_leaf_init(struct cacheinfo *this_leaf, in ci_leaf_init() argument 73 this_leaf->level = level; in ci_leaf_init() 74 this_leaf->type = type; in ci_leaf_init() 75 this_leaf->coherency_line_size = CACHE_LINESIZE(tmp); in ci_leaf_init() 76 this_leaf->number_of_sets = CACHE_NUMSETS(tmp); in ci_leaf_init() 77 this_leaf->ways_of_associativity = CACHE_ASSOCIATIVITY(tmp); in ci_leaf_init() 78 this_leaf->size = this_leaf->number_of_sets * in ci_leaf_init() 79 this_leaf->coherency_line_size * this_leaf->ways_of_associativity; in ci_leaf_init() 80 this_leaf->attributes = in ci_leaf_init() 112 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in __populate_cache_leaves() local [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | intel_cacheinfo.c | 342 static ssize_t show_cache_disable(struct cacheinfo *this_leaf, char *buf, in show_cache_disable() argument 346 struct amd_northbridge *nb = this_leaf->priv; in show_cache_disable() 360 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 361 return show_cache_disable(this_leaf, buf, slot); \ 428 static ssize_t store_cache_disable(struct cacheinfo *this_leaf, in store_cache_disable() argument 434 struct amd_northbridge *nb = this_leaf->priv; in store_cache_disable() 439 cpu = cpumask_first(&this_leaf->shared_cpu_map); in store_cache_disable() 460 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 461 return store_cache_disable(this_leaf, buf, count, slot); \ 469 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in subcaches_show() local [all …]
|
/linux-4.4.14/arch/ia64/kernel/ |
D | topology.c | 143 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() argument 151 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 155 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 156 this_leaf->type, in cache_shared_cpu_map_setup() 167 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 171 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 172 this_leaf->type, in cache_shared_cpu_map_setup() 178 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() argument 180 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 185 static ssize_t show_coherency_line_size(struct cache_info *this_leaf, in show_coherency_line_size() argument [all …]
|
/linux-4.4.14/arch/s390/kernel/ |
D | cache.c | 112 static void ci_leaf_init(struct cacheinfo *this_leaf, int private, in ci_leaf_init() argument 121 this_leaf->level = level + 1; in ci_leaf_init() 122 this_leaf->type = type; in ci_leaf_init() 123 this_leaf->coherency_line_size = ecag(EXTRACT_LINE_SIZE, level, ti); in ci_leaf_init() 124 this_leaf->ways_of_associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); in ci_leaf_init() 125 this_leaf->size = ecag(EXTRACT_SIZE, level, ti); in ci_leaf_init() 126 num_sets = this_leaf->size / this_leaf->coherency_line_size; in ci_leaf_init() 127 num_sets /= this_leaf->ways_of_associativity; in ci_leaf_init() 128 this_leaf->number_of_sets = num_sets; in ci_leaf_init() 129 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in ci_leaf_init() [all …]
|
/linux-4.4.14/include/linux/ |
D | cacheinfo.h | 98 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);
|