Lines Matching full:level
13 #define MAX_CACHE_LEVEL 7 /* Max 7 level supported */
24 static inline enum cache_type get_cache_type(int level) in get_cache_type() argument
28 if (level > MAX_CACHE_LEVEL) in get_cache_type()
31 return CLIDR_CTYPE(clidr, level); in get_cache_type()
35 enum cache_type type, unsigned int level) in ci_leaf_init() argument
37 this_leaf->level = level; in ci_leaf_init()
43 unsigned int ctype, level, leaves; in detect_cache_level() local
45 for (level = 1, leaves = 0; level <= MAX_CACHE_LEVEL; level++) { in detect_cache_level()
46 ctype = get_cache_type(level); in detect_cache_level()
48 level--; in detect_cache_level()
55 *level_p = level; in detect_cache_level()
70 unsigned int level, leaves; in init_cache_level() local
74 detect_cache_level(&level, &leaves); in init_cache_level()
84 if (level < fw_level) { in init_cache_level()
90 leaves += (fw_level - level); in init_cache_level()
91 level = fw_level; in init_cache_level()
94 this_cpu_ci->num_levels = level; in init_cache_level()
101 unsigned int level, idx; in populate_cache_leaves() local
106 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in populate_cache_leaves()
107 idx < this_cpu_ci->num_leaves; idx++, level++) { in populate_cache_leaves()
108 type = get_cache_type(level); in populate_cache_leaves()
110 ci_leaf_init(this_leaf++, CACHE_TYPE_DATA, level); in populate_cache_leaves()
111 ci_leaf_init(this_leaf++, CACHE_TYPE_INST, level); in populate_cache_leaves()
113 ci_leaf_init(this_leaf++, type, level); in populate_cache_leaves()