Lines Matching refs:cache_leaves
26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) macro
61 if (!cache_leaves(cpu) || !per_cpu_cacheinfo(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()
372 for (sib_index = 0; sib_index < cache_leaves(i); sib_index++) { in cache_shared_cpu_map_setup()
407 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_remove()
413 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove()
463 per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), sizeof(struct cacheinfo), GFP_ATOMIC); in allocate_cache_info()
465 cache_leaves(cpu) = 0; in allocate_cache_info()
494 if (ret || !cache_leaves(cpu)) { in fetch_cache_info()
499 if (!cache_leaves(cpu)) in fetch_cache_info()
510 unsigned int early_leaves = cache_leaves(cpu); in init_level_allocate_ci()
525 if (init_cache_level(cpu) || !cache_leaves(cpu)) in init_level_allocate_ci()
539 if (cache_leaves(cpu) <= early_leaves && per_cpu_cacheinfo(cpu)) in init_level_allocate_ci()
810 for (i = 0; i < cache_leaves(cpu); i++) { in cpu_cache_sysfs_exit()
835 per_cpu_index_dev(cpu) = kcalloc(cache_leaves(cpu), in cpu_cache_sysfs_init()
860 for (i = 0; i < cache_leaves(cpu); i++) { in cache_add_dev()
892 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in cpu_map_shared_cache()
906 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
935 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in update_per_cpu_data_slice_size_cpu()