Lines Matching refs:this_leaf
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()
57 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); in cache_cpumap_setup()
60 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_cpumap_setup()
62 cpumask_set_cpu(i, &this_leaf->shared_cpu_map); in cache_cpumap_setup()
72 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
78 this_leaf->type = cd->type; in populate_cache_leaves()
79 this_leaf->level = cd->level; in populate_cache_leaves()
80 this_leaf->coherency_line_size = cd->linesz; in populate_cache_leaves()
81 this_leaf->number_of_sets = cd->sets; in populate_cache_leaves()
82 this_leaf->ways_of_associativity = cd->ways; in populate_cache_leaves()
83 this_leaf->size = cd->linesz * cd->sets * cd->ways; in populate_cache_leaves()
84 this_leaf->priv = &cd->flags; in populate_cache_leaves()
85 this_leaf++; in populate_cache_leaves()