Lines Matching defs:leaf
41 static void flush_cache_leaf(unsigned int leaf)
45 struct cache_desc *cdesc = current_cpu_data.cache_leaves + leaf;
52 flush_cache_line(leaf, addr);
65 int leaf;
69 leaf = cache_present - 1;
70 if (cache_inclusive(cdesc + leaf)) {
71 flush_cache_leaf(leaf);
75 for (leaf = 0; leaf < cache_present; leaf++)
76 flush_cache_leaf(leaf);
91 #define populate_cache_properties(cfg0, cdesc, level, leaf) \
95 cfg1 = read_cpucfg(LOONGARCH_CPUCFG17 + leaf); \
109 cdesc++; leaf++; \
114 unsigned int leaf = 0, level = 1;
123 populate_cache_properties(config, cdesc, level, leaf);
128 populate_cache_properties(config, cdesc, level, leaf);
141 populate_cache_properties(config, cdesc, level, leaf);
146 populate_cache_properties(config, cdesc, level, leaf);
152 BUG_ON(leaf > CACHE_LEAVES_MAX);
154 current_cpu_data.cache_leaves_present = leaf;