Lines Matching refs:sib_leaf
40 struct cacheinfo *sib_leaf) in cache_leaves_are_shared() argument
48 return (this_leaf->level != 1) && (sib_leaf->level != 1); in cache_leaves_are_shared()
50 if ((sib_leaf->attributes & CACHE_ID) && in cache_leaves_are_shared()
52 return sib_leaf->id == this_leaf->id; in cache_leaves_are_shared()
54 return sib_leaf->fw_token == this_leaf->fw_token; in cache_leaves_are_shared()
345 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_setup() local
373 sib_leaf = per_cpu_cacheinfo_idx(i, sib_index); in cache_shared_cpu_map_setup()
380 if (sib_leaf->level != this_leaf->level || in cache_shared_cpu_map_setup()
381 sib_leaf->type != this_leaf->type) in cache_shared_cpu_map_setup()
384 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_shared_cpu_map_setup()
385 cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
404 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_remove() local
414 sib_leaf = per_cpu_cacheinfo_idx(sibling, sib_index); in cache_shared_cpu_map_remove()
421 if (sib_leaf->level != this_leaf->level || in cache_shared_cpu_map_remove()
422 sib_leaf->type != this_leaf->type) in cache_shared_cpu_map_remove()
425 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_shared_cpu_map_remove()
426 cpumask_clear_cpu(cpu, &sib_leaf->shared_cpu_map); in cache_shared_cpu_map_remove()