Home
last modified time | relevance | path

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

/linux/drivers/base/
A Dcacheinfo.c150 cache_size(this_leaf, np); in cache_of_set_props()
152 cache_nr_sets(this_leaf, np); in cache_of_set_props()
153 cache_associativity(this_leaf); in cache_of_set_props()
159 struct cacheinfo *this_leaf; in cache_setup_of_node() local
181 if (this_leaf->level != 1) in cache_setup_of_node()
188 this_leaf->fw_token = np; in cache_setup_of_node()
207 return !(this_leaf->level == 1); in cache_leaves_are_shared()
408 switch (this_leaf->type) { in type_show()
513 this_leaf->number_of_sets) in cache_default_attrs_is_visible()
616 struct cacheinfo *this_leaf; in cache_add_dev() local
[all …]
/linux/arch/riscv/kernel/
A Dcacheinfo.c39 struct cacheinfo *this_leaf; in get_cacheinfo() local
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()
71 this_leaf->level = level; in ci_leaf_init()
72 this_leaf->type = type; in ci_leaf_init()
73 this_leaf->size = size; in ci_leaf_init()
74 this_leaf->number_of_sets = sets; in ci_leaf_init()
[all …]
/linux/arch/nds32/kernel/
A Dcacheinfo.c8 static void ci_leaf_init(struct cacheinfo *this_leaf, in ci_leaf_init() argument
13 this_leaf->level = level; in ci_leaf_init()
14 this_leaf->type = type; in ci_leaf_init()
16 this_leaf->number_of_sets = CACHE_SET(cache_type); in ci_leaf_init()
18 this_leaf->size = this_leaf->number_of_sets * in ci_leaf_init()
19 this_leaf->coherency_line_size * this_leaf->ways_of_associativity; in ci_leaf_init()
21 this_leaf->attributes = CACHE_WRITE_THROUGH; in ci_leaf_init()
23 this_leaf->attributes = CACHE_WRITE_BACK; in ci_leaf_init()
41 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
45 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
[all …]
/linux/arch/x86/kernel/cpu/
A Dcacheinfo.c514 if (!this_leaf->priv) in cache_private_attrs_is_visible()
566 if (this_leaf->level < 3 || !nb) in cache_get_priv_group()
585 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache()
618 this_leaf->eax = eax; in cpuid4_cache_lookup_regs()
619 this_leaf->ebx = ebx; in cpuid4_cache_lookup_regs()
620 this_leaf->ecx = ecx; in cpuid4_cache_lookup_regs()
761 new_l2 = this_leaf.size/1024; in init_intel_cacheinfo()
882 struct cacheinfo *this_leaf; in __cache_amd_cpumap_setup() local
974 this_leaf->id = base->id; in ci_leaf_init()
982 this_leaf->size = base->size; in ci_leaf_init()
[all …]
/linux/arch/ia64/kernel/
A Dtopology.c138 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() argument
150 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
151 this_leaf->type, in cache_shared_cpu_map_setup()
166 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
167 this_leaf->type, in cache_shared_cpu_map_setup()
173 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() argument
207 number_of_sets /= this_leaf->cci.pcci_assoc; in show_number_of_sets()
218 &this_leaf->shared_cpu_map, cpu_online_mask); in show_shared_cpu_map()
225 int type = this_leaf->type + this_leaf->cci.pcci_unified; in show_type()
231 return sprintf(buf, "%u\n", this_leaf->level); in show_level()
[all …]
/linux/arch/s390/kernel/
A Dcache.c115 this_leaf->level = level + 1; in ci_leaf_init()
116 this_leaf->type = type; in ci_leaf_init()
119 this_leaf->size = ecag(EXTRACT_SIZE, level, ti); in ci_leaf_init()
120 num_sets = this_leaf->size / this_leaf->coherency_line_size; in ci_leaf_init()
121 num_sets /= this_leaf->ways_of_associativity; in ci_leaf_init()
122 this_leaf->number_of_sets = num_sets; in ci_leaf_init()
123 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in ci_leaf_init()
125 this_leaf->disable_sysfs = true; in ci_leaf_init()
155 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
165 if (!this_leaf) in populate_cache_leaves()
[all …]
/linux/arch/mips/kernel/
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/drivers/acpi/
A Dpptt.c365 this_leaf->fw_token = cpu_node; in update_cache_properties()
367 this_leaf->size = found_cache->size; in update_cache_properties()
380 this_leaf->attributes = CACHE_WRITE_BACK; in update_cache_properties()
394 this_leaf->attributes |= in update_cache_properties()
409 if (this_leaf->type == CACHE_TYPE_NOCACHE && in update_cache_properties()
411 this_leaf->type = CACHE_TYPE_UNIFIED; in update_cache_properties()
416 this_leaf->id = found_cache_v1->cache_id; in update_cache_properties()
417 this_leaf->attributes |= CACHE_ID; in update_cache_properties()
427 struct cacheinfo *this_leaf; in cache_setup_acpi_cpu() local
434 this_leaf->type, in cache_setup_acpi_cpu()
[all …]
/linux/arch/arm64/kernel/
A Dcacheinfo.c39 static void ci_leaf_init(struct cacheinfo *this_leaf, in ci_leaf_init() argument
42 this_leaf->level = level; in ci_leaf_init()
43 this_leaf->type = type; in ci_leaf_init()
86 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
92 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
93 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
95 ci_leaf_init(this_leaf++, type, level); in populate_cache_leaves()
/linux/drivers/soc/sifive/
A Dsifive_l2_cache.c142 static const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf) in l2_get_priv_group() argument
145 if (this_leaf->level == 2) in l2_get_priv_group()
/linux/arch/riscv/include/asm/
A Dcacheinfo.h13 *this_leaf);
/linux/include/linux/
A Dcacheinfo.h102 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);

Completed in 825 milliseconds