Home
last modified time | relevance | path

Searched refs:this_leaf (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/arch/riscv/kernel/
H A Dcacheinfo.c20 cache_get_priv_group(struct cacheinfo *this_leaf) in cache_get_priv_group() argument
23 return rv_cache_ops->get_priv_group(this_leaf); in cache_get_priv_group()
39 struct cacheinfo *this_leaf; in get_cacheinfo() local
43 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo()
44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
45 return this_leaf; in get_cacheinfo()
55 return this_leaf ? this_leaf->size : 0; in get_cache_size()
62 return this_leaf ? (this_leaf->ways_of_associativity << 16 | in get_cache_geometry()
63 this_leaf->coherency_line_size) : in get_cache_geometry()
70 this_leaf->level = level; in ci_leaf_init()
[all …]
/linux-6.15/drivers/base/
H A Dcacheinfo.c197 cache_size(this_leaf, np); in cache_of_set_props()
198 cache_get_line_size(this_leaf, np); in cache_of_set_props()
199 cache_nr_sets(this_leaf, np); in cache_of_set_props()
200 cache_associativity(this_leaf); in cache_of_set_props()
205 struct cacheinfo *this_leaf; in cache_setup_of_node() local
220 if (this_leaf->level != 1) { in cache_setup_of_node()
227 this_leaf->fw_token = np; in cache_setup_of_node()
644 switch (this_leaf->type) { in type_show()
749 this_leaf->number_of_sets) in cache_default_attrs_is_visible()
852 struct cacheinfo *this_leaf; in cache_add_dev() local
[all …]
/linux-6.15/arch/loongarch/kernel/
H A Dcacheinfo.c34 struct cacheinfo *this_leaf, *sib_leaf; in cache_cpumap_setup() local
40 this_leaf = this_cpu_ci->info_list + index; in cache_cpumap_setup()
42 if (!cpumask_empty(&this_leaf->shared_cpu_map)) in cache_cpumap_setup()
45 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_cpumap_setup()
78 this_leaf->type = cd->type; in populate_cache_leaves()
79 this_leaf->level = cd->level; in populate_cache_leaves()
80 this_leaf->coherency_line_size = cd->linesz; in populate_cache_leaves()
81 this_leaf->number_of_sets = cd->sets; in populate_cache_leaves()
82 this_leaf->ways_of_associativity = cd->ways; in populate_cache_leaves()
84 this_leaf->priv = &cd->flags; in populate_cache_leaves()
[all …]
/linux-6.15/arch/x86/kernel/cpu/
H A Dcacheinfo.c520 if (!this_leaf->priv) in cache_private_attrs_is_visible()
572 if (this_leaf->level < 3 || !nb) in cache_get_priv_group()
591 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache()
624 this_leaf->eax = eax; in cpuid4_cache_lookup_regs()
625 this_leaf->ebx = ebx; in cpuid4_cache_lookup_regs()
626 this_leaf->ecx = ecx; in cpuid4_cache_lookup_regs()
767 new_l2 = this_leaf.size/1024; in init_intel_cacheinfo()
871 struct cacheinfo *this_leaf; in __cache_amd_cpumap_setup() local
963 this_leaf->id = base->id; in ci_leaf_init()
971 this_leaf->size = base->size; in ci_leaf_init()
[all …]
/linux-6.15/arch/s390/kernel/
H A Dcache.c112 this_leaf->level = level + 1; in ci_leaf_init()
113 this_leaf->type = type; 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()
122 this_leaf->disable_sysfs = true; in ci_leaf_init()
150 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
158 if (!this_leaf) in populate_cache_leaves()
[all …]
/linux-6.15/arch/openrisc/kernel/
H A Dcacheinfo.c20 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()
93 this_leaf->attributes = ((mfspr(SPR_DCCFGR) & SPR_DCCFGR_CWS) >> 8) ? in populate_cache_leaves()
[all …]
/linux-6.15/arch/mips/kernel/
H A Dcacheinfo.c81 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-6.15/drivers/acpi/
H A Dpptt.c369 this_leaf->fw_token = cpu_node; in update_cache_properties()
371 this_leaf->size = found_cache->size; in update_cache_properties()
384 this_leaf->attributes = CACHE_WRITE_BACK; in update_cache_properties()
398 this_leaf->attributes |= in update_cache_properties()
413 if (this_leaf->type == CACHE_TYPE_NOCACHE && in update_cache_properties()
415 this_leaf->type = CACHE_TYPE_UNIFIED; in update_cache_properties()
420 this_leaf->id = found_cache_v1->cache_id; in update_cache_properties()
421 this_leaf->attributes |= CACHE_ID; in update_cache_properties()
431 struct cacheinfo *this_leaf; in cache_setup_acpi_cpu() local
438 this_leaf->type, in cache_setup_acpi_cpu()
[all …]
/linux-6.15/arch/arm/kernel/
H A Dcacheinfo.c76 static void ci_leaf_init(struct cacheinfo *this_leaf, in ci_leaf_init() argument
79 this_leaf->level = level; in ci_leaf_init()
80 this_leaf->type = type; in ci_leaf_init()
154 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
165 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
166 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
168 ci_leaf_init(this_leaf++, type, level); in populate_cache_leaves()
/linux-6.15/arch/arm64/kernel/
H A Dcacheinfo.c34 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-6.15/arch/riscv/include/asm/
H A Dcacheinfo.h13 *this_leaf);
/linux-6.15/drivers/cache/
H A Dsifive_ccache.c195 *this_leaf) in ccache_get_priv_group() argument
198 if (this_leaf->level == level) in ccache_get_priv_group()
/linux-6.15/include/linux/
H A Dcacheinfo.h114 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);