Lines Matching refs:this_leaf

139 		struct cache_info * this_leaf)
147 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map);
151 if (ia64_pal_cache_shared_info(this_leaf->level,
152 this_leaf->type,
163 cpumask_set_cpu(j, &this_leaf->shared_cpu_map);
167 ia64_pal_cache_shared_info(this_leaf->level,
168 this_leaf->type,
174 struct cache_info * this_leaf)
176 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map);
181 static ssize_t show_coherency_line_size(struct cache_info *this_leaf,
184 return sprintf(buf, "%u\n", 1 << this_leaf->cci.pcci_line_size);
187 static ssize_t show_ways_of_associativity(struct cache_info *this_leaf,
190 return sprintf(buf, "%u\n", this_leaf->cci.pcci_assoc);
193 static ssize_t show_attributes(struct cache_info *this_leaf, char *buf)
197 cache_mattrib[this_leaf->cci.pcci_cache_attr]);
200 static ssize_t show_size(struct cache_info *this_leaf, char *buf)
202 return sprintf(buf, "%uK\n", this_leaf->cci.pcci_cache_size / 1024);
205 static ssize_t show_number_of_sets(struct cache_info *this_leaf, char *buf)
207 unsigned number_of_sets = this_leaf->cci.pcci_cache_size;
208 number_of_sets /= this_leaf->cci.pcci_assoc;
209 number_of_sets /= 1 << this_leaf->cci.pcci_line_size;
214 static ssize_t show_shared_cpu_map(struct cache_info *this_leaf, char *buf)
219 &this_leaf->shared_cpu_map, cpu_online_mask);
224 static ssize_t show_type(struct cache_info *this_leaf, char *buf)
226 int type = this_leaf->type + this_leaf->cci.pcci_unified;
230 static ssize_t show_level(struct cache_info *this_leaf, char *buf)
232 return sprintf(buf, "%u\n", this_leaf->level);
275 struct cache_info *this_leaf = to_object(kobj);
278 ret = fattr->show ? fattr->show(this_leaf, buf) : 0;