| /linux/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) ci_leaf_init() argument 82 struct cacheinfo *this_leaf = this_cpu_ci->info_list; populate_cache_leaves() local [all...] |
| /linux/drivers/base/ |
| H A D | cacheinfo.c | 41 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() 50 return (this_leaf->level != 1) && (sib_leaf->level != 1); in cache_leaves_are_shared() 53 (this_leaf->attributes & CACHE_ID)) in cache_leaves_are_shared() 54 return sib_leaf->id == this_leaf->id; in cache_leaves_are_shared() 56 return sib_leaf->fw_token == this_leaf->fw_token; in cache_leaves_are_shared() 141 static void cache_size(struct cacheinfo *this_leaf, struct device_node *np) in cache_get_line_size() 146 ct_idx = get_cacheinfo_idx(this_leaf->type); in cache_get_line_size() 149 of_property_read_u32(np, propname, &this_leaf->size); in cache_get_line_size() 153 static void cache_get_line_size(struct cacheinfo *this_leaf, in cache_get_line_size() 158 ct_idx = get_cacheinfo_idx(this_leaf in cache_nr_sets() 40 cache_leaves_are_shared(struct cacheinfo * this_leaf,struct cacheinfo * sib_leaf) cache_leaves_are_shared() argument 122 cache_size(struct cacheinfo * this_leaf,struct device_node * np) cache_size() argument 134 cache_get_line_size(struct cacheinfo * this_leaf,struct device_node * np) cache_get_line_size() argument 156 cache_nr_sets(struct cacheinfo * this_leaf,struct device_node * np) cache_nr_sets() argument 167 cache_associativity(struct cacheinfo * this_leaf) cache_associativity() argument 181 cache_node_is_unified(struct cacheinfo * this_leaf,struct device_node * np) cache_node_is_unified() argument 210 cache_of_set_id(struct cacheinfo * this_leaf,struct device_node * cache_node) cache_of_set_id() argument 235 cache_of_set_props(struct cacheinfo * this_leaf,struct device_node * np) cache_of_set_props() argument 255 struct cacheinfo *this_leaf; cache_setup_of_node() local 395 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_setup() local 454 struct cacheinfo *this_leaf, *sib_leaf; cache_shared_cpu_map_remove() local 666 struct cacheinfo *this_leaf = dev_get_drvdata(dev); size_show() local 674 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_map_show() local 683 struct cacheinfo *this_leaf = dev_get_drvdata(dev); shared_cpu_list_show() local 692 struct cacheinfo *this_leaf = dev_get_drvdata(dev); type_show() local 715 struct cacheinfo *this_leaf = dev_get_drvdata(dev); allocation_policy_show() local 734 struct cacheinfo *this_leaf = dev_get_drvdata(dev); write_policy_show() local 779 struct cacheinfo *this_leaf = dev_get_drvdata(dev); cache_default_attrs_is_visible() local 834 cache_get_priv_group(struct cacheinfo * this_leaf) cache_get_priv_group() argument 840 cache_get_attribute_groups(struct cacheinfo * this_leaf) cache_get_attribute_groups() argument 903 struct cacheinfo *this_leaf; cache_add_dev() local [all...] |
| /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);
|
| /linux/include/linux/ |
| H A D | cacheinfo.h | 115 const struct attribute_group *cache_get_priv_group(struct cacheinfo *this_leaf);
|