Lines Matching refs:cache_leaves
26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) macro
61 if (!cache_leaves(cpu)) in last_level_cache_is_valid()
64 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in last_level_cache_is_valid()
78 llc_x = per_cpu_cacheinfo_idx(cpu_x, cache_leaves(cpu_x) - 1); in last_level_cache_is_shared()
79 llc_y = per_cpu_cacheinfo_idx(cpu_y, cache_leaves(cpu_y) - 1); in last_level_cache_is_shared()
218 while (index < cache_leaves(cpu)) { in cache_setup_of_node()
231 if (index != cache_leaves(cpu)) /* not all OF nodes populated */ in cache_setup_of_node()
363 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_setup()
374 for (sib_index = 0; sib_index < cache_leaves(i); sib_index++) { in cache_shared_cpu_map_setup()
409 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_remove()
418 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove()
469 per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), in allocate_cache_info()
472 cache_leaves(cpu) = 0; in allocate_cache_info()
501 if (ret || !cache_leaves(cpu)) { in fetch_cache_info()
506 if (!cache_leaves(cpu)) in fetch_cache_info()
517 unsigned int early_leaves = cache_leaves(cpu); in init_level_allocate_ci()
532 if (init_cache_level(cpu) || !cache_leaves(cpu)) in init_level_allocate_ci()
542 if (cache_leaves(cpu) <= early_leaves) in init_level_allocate_ci()
813 for (i = 0; i < cache_leaves(cpu); i++) { in cpu_cache_sysfs_exit()
838 per_cpu_index_dev(cpu) = kcalloc(cache_leaves(cpu), in cpu_cache_sysfs_init()
863 for (i = 0; i < cache_leaves(cpu); i++) { in cache_add_dev()
895 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in cpu_map_shared_cache()
909 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
938 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in update_per_cpu_data_slice_size_cpu()