Lines Matching refs:this_leaf

143 		struct cache_info * this_leaf)  in cache_shared_cpu_map_setup()  argument
151 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
155 if (ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
156 this_leaf->type, in cache_shared_cpu_map_setup()
167 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
171 ia64_pal_cache_shared_info(this_leaf->level, in cache_shared_cpu_map_setup()
172 this_leaf->type, in cache_shared_cpu_map_setup()
178 struct cache_info * this_leaf) in cache_shared_cpu_map_setup() argument
180 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
185 static ssize_t show_coherency_line_size(struct cache_info *this_leaf, in show_coherency_line_size() argument
188 return sprintf(buf, "%u\n", 1 << this_leaf->cci.pcci_line_size); in show_coherency_line_size()
191 static ssize_t show_ways_of_associativity(struct cache_info *this_leaf, in show_ways_of_associativity() argument
194 return sprintf(buf, "%u\n", this_leaf->cci.pcci_assoc); in show_ways_of_associativity()
197 static ssize_t show_attributes(struct cache_info *this_leaf, char *buf) in show_attributes() argument
201 cache_mattrib[this_leaf->cci.pcci_cache_attr]); in show_attributes()
204 static ssize_t show_size(struct cache_info *this_leaf, char *buf) in show_size() argument
206 return sprintf(buf, "%uK\n", this_leaf->cci.pcci_cache_size / 1024); in show_size()
209 static ssize_t show_number_of_sets(struct cache_info *this_leaf, char *buf) in show_number_of_sets() argument
211 unsigned number_of_sets = this_leaf->cci.pcci_cache_size; in show_number_of_sets()
212 number_of_sets /= this_leaf->cci.pcci_assoc; in show_number_of_sets()
213 number_of_sets /= 1 << this_leaf->cci.pcci_line_size; in show_number_of_sets()
218 static ssize_t show_shared_cpu_map(struct cache_info *this_leaf, char *buf) in show_shared_cpu_map() argument
223 &this_leaf->shared_cpu_map, cpu_online_mask); in show_shared_cpu_map()
228 static ssize_t show_type(struct cache_info *this_leaf, char *buf) in show_type() argument
230 int type = this_leaf->type + this_leaf->cci.pcci_unified; in show_type()
234 static ssize_t show_level(struct cache_info *this_leaf, char *buf) in show_level() argument
236 return sprintf(buf, "%u\n", this_leaf->level); in show_level()
279 struct cache_info *this_leaf = to_object(kobj); in ia64_cache_show() local
282 ret = fattr->show ? fattr->show(this_leaf, buf) : 0; in ia64_cache_show()