Searched refs:this_leaf (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/s390/kernel/ |
| H A D | cache.c | 103 static void ci_leaf_init(struct cacheinfo *this_leaf, int private, in ci_leaf_init() argument 112 this_leaf->level = level + 1; in ci_leaf_init() 113 this_leaf->type = type; in ci_leaf_init() 114 this_leaf->coherency_line_size = ecag(EXTRACT_LINE_SIZE, level, ti); in ci_leaf_init() 115 this_leaf->ways_of_associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); in ci_leaf_init() 116 this_leaf->size = ecag(EXTRACT_SIZE, level, ti); in ci_leaf_init() 117 num_sets = this_leaf->size / this_leaf->coherency_line_size; in ci_leaf_init() 118 num_sets /= this_leaf->ways_of_associativity; in ci_leaf_init() 119 this_leaf->number_of_sets = num_sets; in ci_leaf_init() 120 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in ci_leaf_init() [all …]
|
| /linux/arch/openrisc/kernel/ |
| H A D | cacheinfo.c | 17 static inline void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init() argument 20 this_leaf->type = type; in ci_leaf_init() 21 this_leaf->level = level; in ci_leaf_init() 22 this_leaf->coherency_line_size = cache->block_size; in ci_leaf_init() 23 this_leaf->number_of_sets = cache->sets; in ci_leaf_init() 24 this_leaf->ways_of_associativity = cache->ways; in ci_leaf_init() 25 this_leaf->size = cache->size; in ci_leaf_init() 26 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in ci_leaf_init() 88 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 92 ci_leaf_init(this_leaf, CACHE_TYPE_DATA, level, &cpuinfo->dcache, cpu); in populate_cache_leaves() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | cacheinfo.c | 81 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 86 fill_cpumask_siblings(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 87 populate_cache(dcache, this_leaf, level, CACHE_TYPE_DATA); in populate_cache_leaves() 88 fill_cpumask_siblings(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 89 populate_cache(icache, this_leaf, level, CACHE_TYPE_INST); in populate_cache_leaves() 92 populate_cache(dcache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves() 98 fill_cpumask_siblings(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 99 populate_cache(vcache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves() 105 fill_cpumask_cluster(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 106 populate_cache(scache, this_leaf, level, CACHE_TYPE_UNIFIED); in populate_cache_leaves() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | cacheinfo.c | 34 static void ci_leaf_init(struct cacheinfo *this_leaf, in ci_leaf_init() argument 37 this_leaf->level = level; in ci_leaf_init() 38 this_leaf->type = type; in ci_leaf_init()
|
| /linux/arch/riscv/include/asm/ |
| H A D | cacheinfo.h | 13 *this_leaf);
|