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