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