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 unsigned int level, unsigned int size, in ci_leaf_init() argument
71 this_leaf->level = level; in ci_leaf_init()
93 struct device_node *node, unsigned int level) in fill_cacheinfo() argument
100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
106 ci_leaf_init((*this_leaf)++, CACHE_TYPE_INST, level, size, sets, line_size); in fill_cacheinfo()
112 ci_leaf_init((*this_leaf)++, CACHE_TYPE_DATA, level, size, sets, line_size); in fill_cacheinfo()
121 int levels = 0, leaves = 0, level; in init_cache_level() local
138 if (of_property_read_u32(np, "cache-level", &level)) in init_cache_level()
140 if (level <= levels) in init_cache_level()
148 levels = level; in init_cache_level()
164 int levels = 1, level = 1; in populate_cache_leaves() local
166 /* Level 1 caches in cpu node */ in populate_cache_leaves()
167 fill_cacheinfo(&this_leaf, np, level); in populate_cache_leaves()
169 /* Next level caches in cache nodes */ in populate_cache_leaves()
177 if (of_property_read_u32(np, "cache-level", &level)) in populate_cache_leaves()
179 if (level <= levels) in populate_cache_leaves()
182 fill_cacheinfo(&this_leaf, np, level); in populate_cache_leaves()
184 levels = level; in populate_cache_leaves()