Lines Matching refs:this_leaf

46 	struct cacheinfo *this_leaf;  in cache_setup_of_node()  local
66 this_leaf = this_cpu_ci->info_list + index; in cache_setup_of_node()
67 if (this_leaf->level != 1) in cache_setup_of_node()
73 this_leaf->of_node = np; in cache_setup_of_node()
83 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument
86 return sib_leaf->of_node == this_leaf->of_node; in cache_leaves_are_shared()
90 static inline bool cache_leaves_are_shared(struct cacheinfo *this_leaf, in cache_leaves_are_shared() argument
98 return !(this_leaf->level == 1); in cache_leaves_are_shared()
105 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_setup() local
116 this_leaf = this_cpu_ci->info_list + index; in cache_shared_cpu_map_setup()
118 if (!cpumask_empty(&this_leaf->shared_cpu_map)) in cache_shared_cpu_map_setup()
121 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
128 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_shared_cpu_map_setup()
130 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
141 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_remove() local
145 this_leaf = this_cpu_ci->info_list + index; in cache_shared_cpu_map_remove()
146 for_each_cpu(sibling, &this_leaf->shared_cpu_map) { in cache_shared_cpu_map_remove()
158 cpumask_clear_cpu(sibling, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_remove()
160 of_node_put(this_leaf->of_node); in cache_shared_cpu_map_remove()
232 struct cacheinfo *this_leaf = dev_get_drvdata(dev); \
233 return sprintf(buf, "%u\n", this_leaf->object); \
245 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in size_show() local
247 return sprintf(buf, "%uK\n", this_leaf->size >> 10); in size_show()
252 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in shared_cpumap_show_func() local
253 const struct cpumask *mask = &this_leaf->shared_cpu_map; in shared_cpumap_show_func()
273 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in type_show() local
275 switch (this_leaf->type) { in type_show()
290 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in allocation_policy_show() local
291 unsigned int ci_attr = this_leaf->attributes; in allocation_policy_show()
306 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in write_policy_show() local
307 unsigned int ci_attr = this_leaf->attributes; in write_policy_show()
349 struct cacheinfo *this_leaf = dev_get_drvdata(dev); in cache_default_attrs_is_visible() local
350 const struct cpumask *mask = &this_leaf->shared_cpu_map; in cache_default_attrs_is_visible()
353 if ((attr == &dev_attr_type.attr) && this_leaf->type) in cache_default_attrs_is_visible()
355 if ((attr == &dev_attr_level.attr) && this_leaf->level) in cache_default_attrs_is_visible()
362 this_leaf->coherency_line_size) in cache_default_attrs_is_visible()
365 this_leaf->size) /* allow 0 = full associativity */ in cache_default_attrs_is_visible()
368 this_leaf->number_of_sets) in cache_default_attrs_is_visible()
370 if ((attr == &dev_attr_size.attr) && this_leaf->size) in cache_default_attrs_is_visible()
373 (this_leaf->attributes & CACHE_WRITE_POLICY_MASK)) in cache_default_attrs_is_visible()
376 (this_leaf->attributes & CACHE_ALLOCATE_POLICY_MASK)) in cache_default_attrs_is_visible()
379 this_leaf->physical_line_partition) in cache_default_attrs_is_visible()
402 __weak cache_get_priv_group(struct cacheinfo *this_leaf) in cache_get_priv_group() argument
408 cache_get_attribute_groups(struct cacheinfo *this_leaf) in cache_get_attribute_groups() argument
411 cache_get_priv_group(this_leaf); in cache_get_attribute_groups()
471 struct cacheinfo *this_leaf; in cache_add_dev() local
481 this_leaf = this_cpu_ci->info_list + i; in cache_add_dev()
482 if (this_leaf->disable_sysfs) in cache_add_dev()
484 cache_groups = cache_get_attribute_groups(this_leaf); in cache_add_dev()
485 ci_dev = cpu_device_create(parent, this_leaf, cache_groups, in cache_add_dev()