Lines Matching refs:cache_leaves

27 #define cache_leaves(cpu)	(ci_cacheinfo(cpu)->num_leaves)  macro
62 if (!cache_leaves(cpu) || !per_cpu_cacheinfo(cpu)) in last_level_cache_is_valid()
65 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in last_level_cache_is_valid()
79 llc_x = per_cpu_cacheinfo_idx(cpu_x, cache_leaves(cpu_x) - 1); in last_level_cache_is_shared()
80 llc_y = per_cpu_cacheinfo_idx(cpu_y, cache_leaves(cpu_y) - 1); in last_level_cache_is_shared()
268 while (index < cache_leaves(cpu)) { in cache_setup_of_node()
281 if (index != cache_leaves(cpu)) /* not all OF nodes populated */ in cache_setup_of_node()
413 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_setup()
422 for (sib_index = 0; sib_index < cache_leaves(i); sib_index++) { in cache_shared_cpu_map_setup()
457 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_remove()
463 for (sib_index = 0; sib_index < cache_leaves(sibling); sib_index++) { in cache_shared_cpu_map_remove()
513 per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), sizeof(struct cacheinfo), GFP_ATOMIC); in allocate_cache_info()
515 cache_leaves(cpu) = 0; in allocate_cache_info()
544 if (ret || !cache_leaves(cpu)) { in fetch_cache_info()
549 if (!cache_leaves(cpu)) in fetch_cache_info()
560 unsigned int early_leaves = cache_leaves(cpu); in init_level_allocate_ci()
575 if (init_cache_level(cpu) || !cache_leaves(cpu)) in init_level_allocate_ci()
589 if (cache_leaves(cpu) <= early_leaves && per_cpu_cacheinfo(cpu)) in init_level_allocate_ci()
860 for (i = 0; i < cache_leaves(cpu); i++) { in cpu_cache_sysfs_exit()
885 per_cpu_index_dev(cpu) = kcalloc(cache_leaves(cpu), in cpu_cache_sysfs_init()
910 for (i = 0; i < cache_leaves(cpu); i++) { in cache_add_dev()
942 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in cpu_map_shared_cache()
956 sib_llc = per_cpu_cacheinfo_idx(sibling, cache_leaves(sibling) - 1); in cpu_map_shared_cache()
985 llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); in update_per_cpu_data_slice_size_cpu()