Lines Matching full:leaf
44 static void flush_cache_leaf(unsigned int leaf) in flush_cache_leaf() argument
48 struct cache_desc *cdesc = current_cpu_data.cache_leaves + leaf; in flush_cache_leaf()
55 flush_cache_line(leaf, addr); in flush_cache_leaf()
68 int leaf; in __flush_cache_all() local
72 leaf = cache_present - 1; in __flush_cache_all()
73 if (cache_inclusive(cdesc + leaf)) { in __flush_cache_all()
74 flush_cache_leaf(leaf); in __flush_cache_all()
78 for (leaf = 0; leaf < cache_present; leaf++) in __flush_cache_all()
79 flush_cache_leaf(leaf); in __flush_cache_all()
94 #define populate_cache_properties(cfg0, cdesc, level, leaf) \ argument
98 cfg1 = read_cpucfg(LOONGARCH_CPUCFG17 + leaf); \
112 cdesc++; leaf++; \
117 unsigned int leaf = 0, level = 1; in cpu_cache_init() local
126 populate_cache_properties(config, cdesc, level, leaf); in cpu_cache_init()
131 populate_cache_properties(config, cdesc, level, leaf); in cpu_cache_init()
144 populate_cache_properties(config, cdesc, level, leaf); in cpu_cache_init()
149 populate_cache_properties(config, cdesc, level, leaf); in cpu_cache_init()
155 BUG_ON(leaf > CACHE_LEAVES_MAX); in cpu_cache_init()
157 current_cpu_data.cache_leaves_present = leaf; in cpu_cache_init()