/kernel/linux/linux-5.10/drivers/base/ |
H A D | cacheinfo.c | 35 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 38 return sib_leaf->fw_token == this_leaf->fw_token; in cache_leaves_are_shared() 74 static void cache_size(struct cacheinfo *this_leaf, struct device_node *np) in cache_size() argument 79 ct_idx = get_cacheinfo_idx(this_leaf->type); in cache_size() 82 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 86 static void cache_get_line_size(struct cacheinfo *this_leaf, in cache_get_line_size() argument 91 ct_idx = get_cacheinfo_idx(this_leaf->type); in cache_get_line_size() 102 this_leaf->coherency_line_size = line_size; in cache_get_line_size() 108 static void cache_nr_sets(struct cacheinfo *this_leaf, struct device_node *np) in cache_nr_sets() argument 113 ct_idx = get_cacheinfo_idx(this_leaf in cache_nr_sets() 119 cache_associativity(struct cacheinfo *this_leaf) cache_associativity() argument 133 cache_node_is_unified(struct cacheinfo *this_leaf, struct device_node *np) cache_node_is_unified() argument 139 cache_of_set_props(struct cacheinfo *this_leaf, struct device_node *np) cache_of_set_props() argument 159 struct cacheinfo *this_leaf; cache_setup_of_node() local 199 cache_leaves_are_shared(struct cacheinfo *this_leaf, struct cacheinfo *sib_leaf) cache_leaves_are_shared() argument 221 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_setup() local 267 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_remove() local 378 struct cacheinfo *this_leaf = dev_get_drvdata(dev); size_show() local 386 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_map_show() local 395 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_list_show() local 404 struct cacheinfo *this_leaf = dev_get_drvdata(dev); type_show() local 427 struct cacheinfo *this_leaf = dev_get_drvdata(dev); allocation_policy_show() local 446 struct cacheinfo *this_leaf = dev_get_drvdata(dev); write_policy_show() local 491 struct cacheinfo *this_leaf = dev_get_drvdata(dev); cache_default_attrs_is_visible() local 546 cache_get_priv_group(struct cacheinfo *this_leaf) cache_get_priv_group() argument 552 cache_get_attribute_groups(struct cacheinfo *this_leaf) cache_get_attribute_groups() argument 615 struct cacheinfo *this_leaf; cache_add_dev() local [all...] |
/kernel/linux/linux-6.6/drivers/base/ |
H A D | cacheinfo.c | 39 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 48 return (this_leaf->level != 1) && (sib_leaf->level != 1); in cache_leaves_are_shared() 51 (this_leaf->attributes & CACHE_ID)) in cache_leaves_are_shared() 52 return sib_leaf->id == this_leaf->id; in cache_leaves_are_shared() 54 return sib_leaf->fw_token == this_leaf->fw_token; in cache_leaves_are_shared() 121 static void cache_size(struct cacheinfo *this_leaf, struct device_node *np) in cache_size() argument 126 ct_idx = get_cacheinfo_idx(this_leaf->type); in cache_size() 129 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 133 static void cache_get_line_size(struct cacheinfo *this_leaf, in cache_get_line_size() argument 138 ct_idx = get_cacheinfo_idx(this_leaf in cache_get_line_size() 155 cache_nr_sets(struct cacheinfo *this_leaf, struct device_node *np) cache_nr_sets() argument 166 cache_associativity(struct cacheinfo *this_leaf) cache_associativity() argument 180 cache_node_is_unified(struct cacheinfo *this_leaf, struct device_node *np) cache_node_is_unified() argument 186 cache_of_set_props(struct cacheinfo *this_leaf, struct device_node *np) cache_of_set_props() argument 206 struct cacheinfo *this_leaf; cache_setup_of_node() local 360 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_setup() local 421 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_remove() local 633 struct cacheinfo *this_leaf = dev_get_drvdata(dev); size_show() local 641 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_map_show() local 650 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_list_show() local 659 struct cacheinfo *this_leaf = dev_get_drvdata(dev); type_show() local 682 struct cacheinfo *this_leaf = dev_get_drvdata(dev); allocation_policy_show() local 701 struct cacheinfo *this_leaf = dev_get_drvdata(dev); write_policy_show() local 746 struct cacheinfo *this_leaf = dev_get_drvdata(dev); cache_default_attrs_is_visible() local 801 cache_get_priv_group(struct cacheinfo *this_leaf) cache_get_priv_group() argument 807 cache_get_attribute_groups(struct cacheinfo *this_leaf) cache_get_attribute_groups() argument 870 struct cacheinfo *this_leaf; cache_add_dev() local [all...] |
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | cacheinfo.c | 20 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() 53 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size() local 55 return this_leaf ? this_leaf in get_cache_size() 60 struct cacheinfo *this_leaf = get_cacheinfo(level, type); get_cache_geometry() local 67 ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, unsigned int level, unsigned int size, unsigned int sets, unsigned int line_size) ci_leaf_init() argument 92 fill_cacheinfo(struct cacheinfo **this_leaf, struct device_node *node, unsigned int level) fill_cacheinfo() argument 161 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | cacheinfo.c | 19 cache_get_priv_group(struct cacheinfo *this_leaf) in cache_get_priv_group() argument 22 return rv_cache_ops->get_priv_group(this_leaf); in cache_get_priv_group() 38 struct cacheinfo *this_leaf; in get_cacheinfo() local 42 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo() 43 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo() 44 return this_leaf; in get_cacheinfo() 52 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size() local 54 return this_leaf ? this_leaf in get_cache_size() 59 struct cacheinfo *this_leaf = get_cacheinfo(level, type); get_cache_geometry() local 66 ci_leaf_init(struct cacheinfo *this_leaf, struct device_node *node, enum cache_type type, unsigned int level) ci_leaf_init() argument 77 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-5.10/arch/nds32/kernel/ |
H A D | cacheinfo.c | 8 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() 15 this_leaf->coherency_line_size = CACHE_LINE_SIZE(cache_type); in ci_leaf_init() 16 this_leaf->number_of_sets = CACHE_SET(cache_type); in ci_leaf_init() 17 this_leaf->ways_of_associativity = CACHE_WAY(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 in ci_leaf_init() 41 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | cacheinfo.c | 23 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 26 return (!(*(unsigned char *)(this_leaf->priv) & CACHE_PRIVATE) in cache_leaves_are_shared() 33 struct cacheinfo *this_leaf, *sib_leaf; in cache_cpumap_setup() local 39 this_leaf = this_cpu_ci->info_list + index; in cache_cpumap_setup() 41 if (!cpumask_empty(&this_leaf->shared_cpu_map)) in cache_cpumap_setup() 44 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_cpumap_setup() 53 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_cpumap_setup() 55 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); in cache_cpumap_setup() 65 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 71 this_leaf in populate_cache_leaves() [all...] |
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | cacheinfo.c | 24 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument 27 return (!(*(unsigned char *)(this_leaf->priv) & CACHE_PRIVATE) in cache_leaves_are_shared() 34 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() 54 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_cpumap_setup() 56 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); in cache_cpumap_setup() 66 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 72 this_leaf in populate_cache_leaves() [all...] |
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | topology.c | 139 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() 147 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 151 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 152 this_leaf->type, in cache_shared_cpu_map_setup() 163 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 167 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 168 this_leaf->type, in cache_shared_cpu_map_setup() 174 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() 176 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 181 static ssize_t show_coherency_line_size(struct cache_info *this_leaf, in show_coherency_line_size() argument 138 cache_shared_cpu_map_setup(unsigned int cpu, struct cache_info * this_leaf) cache_shared_cpu_map_setup() argument 173 cache_shared_cpu_map_setup(unsigned int cpu, struct cache_info * this_leaf) cache_shared_cpu_map_setup() argument 187 show_ways_of_associativity(struct cache_info *this_leaf, char *buf) show_ways_of_associativity() argument 193 show_attributes(struct cache_info *this_leaf, char *buf) show_attributes() argument 200 show_size(struct cache_info *this_leaf, char *buf) show_size() argument 205 show_number_of_sets(struct cache_info *this_leaf, char *buf) show_number_of_sets() argument 214 show_shared_cpu_map(struct cache_info *this_leaf, char *buf) show_shared_cpu_map() argument 224 show_type(struct cache_info *this_leaf, char *buf) show_type() argument 230 show_level(struct cache_info *this_leaf, char *buf) show_level() argument 275 struct cache_info *this_leaf = to_object(kobj); ia64_cache_show() local [all...] |
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | topology.c | 128 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() 136 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 140 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 141 this_leaf->type, in cache_shared_cpu_map_setup() 152 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 156 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup() 157 this_leaf->type, in cache_shared_cpu_map_setup() 163 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() 165 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup() 170 static ssize_t show_coherency_line_size(struct cache_info *this_leaf, in show_coherency_line_size() argument 127 cache_shared_cpu_map_setup(unsigned int cpu, struct cache_info * this_leaf) cache_shared_cpu_map_setup() argument 162 cache_shared_cpu_map_setup(unsigned int cpu, struct cache_info * this_leaf) cache_shared_cpu_map_setup() argument 176 show_ways_of_associativity(struct cache_info *this_leaf, char *buf) show_ways_of_associativity() argument 182 show_attributes(struct cache_info *this_leaf, char *buf) show_attributes() argument 189 show_size(struct cache_info *this_leaf, char *buf) show_size() argument 194 show_number_of_sets(struct cache_info *this_leaf, char *buf) show_number_of_sets() argument 203 show_shared_cpu_map(struct cache_info *this_leaf, char *buf) show_shared_cpu_map() argument 213 show_type(struct cache_info *this_leaf, char *buf) show_type() argument 219 show_level(struct cache_info *this_leaf, char *buf) show_level() argument 265 struct cache_info *this_leaf = to_object(kobj); ia64_cache_show() local [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
H A D | cacheinfo.c | 349 static ssize_t show_cache_disable(struct cacheinfo *this_leaf, char *buf, in show_cache_disable() argument 353 struct amd_northbridge *nb = this_leaf->priv; in show_cache_disable() 367 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 368 return show_cache_disable(this_leaf, buf, slot); \ 435 static ssize_t store_cache_disable(struct cacheinfo *this_leaf, in store_cache_disable() argument 441 struct amd_northbridge *nb = this_leaf->priv; in store_cache_disable() 446 cpu = cpumask_first(&this_leaf->shared_cpu_map); in store_cache_disable() 467 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 468 return store_cache_disable(this_leaf, buf, count, slot); \ 476 struct cacheinfo *this_leaf in subcaches_show() local 486 struct cacheinfo *this_leaf = dev_get_drvdata(dev); subcaches_store() local 511 struct cacheinfo *this_leaf = dev_get_drvdata(dev); cache_private_attrs_is_visible() local 562 cache_get_priv_group(struct cacheinfo *this_leaf) cache_get_priv_group() argument 575 amd_init_l3_cache(struct _cpuid4_info_regs *this_leaf, int index) amd_init_l3_cache() argument 593 cpuid4_cache_lookup_regs(int index, struct _cpuid4_info_regs *this_leaf) cpuid4_cache_lookup_regs() argument 746 struct _cpuid4_info_regs this_leaf = {}; init_intel_cacheinfo() local 881 struct cacheinfo *this_leaf; __cache_amd_cpumap_setup() local 938 struct cacheinfo *this_leaf, *sibling_leaf; __cache_cpumap_setup() local 970 ci_leaf_init(struct cacheinfo *this_leaf, struct _cpuid4_info_regs *base) ci_leaf_init() argument 1021 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/ |
H A D | cacheinfo.c | 364 static ssize_t show_cache_disable(struct cacheinfo *this_leaf, char *buf, in show_cache_disable() argument 368 struct amd_northbridge *nb = this_leaf->priv; in show_cache_disable() 382 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 383 return show_cache_disable(this_leaf, buf, slot); \ 450 static ssize_t store_cache_disable(struct cacheinfo *this_leaf, in store_cache_disable() argument 456 struct amd_northbridge *nb = this_leaf->priv; in store_cache_disable() 461 cpu = cpumask_first(&this_leaf->shared_cpu_map); in store_cache_disable() 482 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \ 483 return store_cache_disable(this_leaf, buf, count, slot); \ 491 struct cacheinfo *this_leaf in subcaches_show() local 501 struct cacheinfo *this_leaf = dev_get_drvdata(dev); subcaches_store() local 526 struct cacheinfo *this_leaf = dev_get_drvdata(dev); cache_private_attrs_is_visible() local 577 cache_get_priv_group(struct cacheinfo *this_leaf) cache_get_priv_group() argument 590 amd_init_l3_cache(struct _cpuid4_info_regs *this_leaf, int index) amd_init_l3_cache() argument 608 cpuid4_cache_lookup_regs(int index, struct _cpuid4_info_regs *this_leaf) cpuid4_cache_lookup_regs() argument 761 struct _cpuid4_info_regs this_leaf = {}; init_intel_cacheinfo() local 894 struct cacheinfo *this_leaf; __cache_amd_cpumap_setup() local 951 struct cacheinfo *this_leaf, *sibling_leaf; __cache_cpumap_setup() local 983 ci_leaf_init(struct cacheinfo *this_leaf, struct _cpuid4_info_regs *base) ci_leaf_init() argument 1034 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | cache.c | 106 static void ci_leaf_init(struct cacheinfo *this_leaf, int private, in ci_leaf_init() argument 115 this_leaf->level = level + 1; in ci_leaf_init() 116 this_leaf->type = type; in ci_leaf_init() 117 this_leaf->coherency_line_size = ecag(EXTRACT_LINE_SIZE, level, ti); in ci_leaf_init() 118 this_leaf->ways_of_associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); 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 in ci_leaf_init() 155 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-6.6/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 in ci_leaf_init() 150 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
/kernel/linux/linux-6.6/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, leve in populate_cache_leaves() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cacheinfo.c | 76 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 80 fill_cpumask_siblings(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 81 populate_cache(dcache, this_leaf, 1, CACHE_TYPE_DATA); in populate_cache_leaves() 82 fill_cpumask_siblings(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 83 populate_cache(icache, this_leaf, 1, CACHE_TYPE_INST); in populate_cache_leaves() 85 populate_cache(dcache, this_leaf, 1, CACHE_TYPE_UNIFIED); in populate_cache_leaves() 90 fill_cpumask_cluster(cpu, &this_leaf->shared_cpu_map); in populate_cache_leaves() 91 populate_cache(scache, this_leaf, 2, CACHE_TYPE_UNIFIED); in populate_cache_leaves() 95 populate_cache(tcache, this_leaf, 3, CACHE_TYPE_UNIFIED); in populate_cache_leaves()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | cacheinfo.c | 39 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() 90 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 96 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves() 97 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves() 99 ci_leaf_init(this_leaf++, type, level); in populate_cache_leaves()
|
/kernel/linux/linux-6.6/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() 104 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local 110 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves() 111 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves() 113 ci_leaf_init(this_leaf++, type, level); in populate_cache_leaves()
|
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | pptt.c | 346 * @this_leaf: Kernel cache info structure being updated 357 static void update_cache_properties(struct cacheinfo *this_leaf, in update_cache_properties() argument 364 this_leaf->fw_token = cpu_node; in update_cache_properties() 366 this_leaf->size = found_cache->size; in update_cache_properties() 368 this_leaf->coherency_line_size = found_cache->line_size; in update_cache_properties() 370 this_leaf->number_of_sets = found_cache->number_of_sets; in update_cache_properties() 372 this_leaf->ways_of_associativity = found_cache->associativity; in update_cache_properties() 376 this_leaf->attributes = CACHE_WRITE_THROUGH; in update_cache_properties() 379 this_leaf->attributes = CACHE_WRITE_BACK; in update_cache_properties() 386 this_leaf in update_cache_properties() 426 struct cacheinfo *this_leaf; cache_setup_acpi_cpu() local [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | pptt.c | 347 * @this_leaf: Kernel cache info structure being updated 357 static void update_cache_properties(struct cacheinfo *this_leaf, in update_cache_properties() argument 361 this_leaf->fw_token = cpu_node; in update_cache_properties() 363 this_leaf->size = found_cache->size; in update_cache_properties() 365 this_leaf->coherency_line_size = found_cache->line_size; in update_cache_properties() 367 this_leaf->number_of_sets = found_cache->number_of_sets; in update_cache_properties() 369 this_leaf->ways_of_associativity = found_cache->associativity; in update_cache_properties() 373 this_leaf->attributes = CACHE_WRITE_THROUGH; in update_cache_properties() 376 this_leaf->attributes = CACHE_WRITE_BACK; in update_cache_properties() 383 this_leaf in update_cache_properties() 416 struct cacheinfo *this_leaf; cache_setup_acpi_cpu() local [all...] |
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
H A D | cacheinfo.h | 13 *this_leaf);
|
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | cacheinfo.h | 13 *this_leaf);
|
/kernel/linux/linux-5.10/drivers/soc/sifive/ |
H A D | sifive_l2_cache.c | 136 static const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf) in l2_get_priv_group() argument 139 if (this_leaf->level == 2) in l2_get_priv_group()
|
/kernel/linux/linux-6.6/drivers/soc/sifive/ |
H A D | sifive_ccache.c | 151 *this_leaf) in ccache_get_priv_group() 154 if (this_leaf->level == level) in ccache_get_priv_group() 150 ccache_get_priv_group(struct cacheinfo *this_leaf) ccache_get_priv_group() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | cacheinfo.h | 103 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | cacheinfo.h | 112 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);
|