Lines Matching full:level
27 static struct cacheinfo *get_cacheinfo(u32 level, enum cache_type type) in get_cacheinfo() argument
44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
51 uintptr_t get_cache_size(u32 level, enum cache_type type) in get_cache_size() argument
53 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size()
58 uintptr_t get_cache_geometry(u32 level, enum cache_type type) in get_cache_geometry() argument
60 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_geometry()
68 enum cache_type type, unsigned int level) in ci_leaf_init() argument
70 this_leaf->level = level; in ci_leaf_init()
84 int levels = 1, level = 1; in populate_cache_leaves() local
96 for (; level <= this_cpu_ci->num_levels; level++) { in populate_cache_leaves()
97 if (level <= split_levels) { in populate_cache_leaves()
98 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
99 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
101 ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); in populate_cache_leaves()
112 ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); in populate_cache_leaves()
114 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
116 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
124 if (of_property_read_u32(np, "cache-level", &level)) in populate_cache_leaves()
126 if (level <= levels) in populate_cache_leaves()
129 ci_leaf_init(this_leaf++, CACHE_TYPE_UNIFIED, level); in populate_cache_leaves()
131 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
133 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
134 levels = level; in populate_cache_leaves()