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()
360 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_setup() local
390 sib_leaf = per_cpu_cacheinfo_idx(i, sib_index); in cache_shared_cpu_map_setup()
397 if (sib_leaf->level != this_leaf->level || in cache_shared_cpu_map_setup()
398 sib_leaf->type != this_leaf->type) in cache_shared_cpu_map_setup()
401 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_shared_cpu_map_setup()
402 cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
421 struct cacheinfo *this_leaf, *sib_leaf; in cache_shared_cpu_map_remove() local
434 sib_leaf = per_cpu_cacheinfo_idx(sibling, sib_index); in cache_shared_cpu_map_remove()
441 if (sib_leaf->level != this_leaf->level || in cache_shared_cpu_map_remove()
442 sib_leaf->type != this_leaf->type) in cache_shared_cpu_map_remove()
445 if (cache_leaves_are_shared(this_leaf, sib_leaf)) { in cache_shared_cpu_map_remove()
446 cpumask_clear_cpu(cpu, &sib_leaf->shared_cpu_map); in cache_shared_cpu_map_remove()