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