Lines Matching refs:level

121 	int level;                     /* level not explicit in device tree */  member
144 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument
148 cache->level = level; in cache_init()
155 static struct cache *new_cache(int type, int level, in new_cache() argument
162 cache_init(cache, type, level, ofnode, group_id); in new_cache()
185 pr_debug("freeing L%d %s cache for %pOFP\n", cache->level, in release_cache()
362 int level) in cache_do_one_devnode_unified() argument
364 pr_debug("creating L%d ucache for %pOFP\n", level, node); in cache_do_one_devnode_unified()
366 return new_cache(cache_is_unified_d(node), level, node, group_id); in cache_do_one_devnode_unified()
370 int level) in cache_do_one_devnode_split() argument
374 pr_debug("creating L%d dcache and icache for %pOFP\n", level, in cache_do_one_devnode_split()
377 dcache = new_cache(CACHE_TYPE_DATA, level, node, group_id); in cache_do_one_devnode_split()
378 icache = new_cache(CACHE_TYPE_INSTRUCTION, level, node, group_id); in cache_do_one_devnode_split()
392 static struct cache *cache_do_one_devnode(struct device_node *node, int group_id, int level) in cache_do_one_devnode() argument
397 cache = cache_do_one_devnode_unified(node, group_id, level); in cache_do_one_devnode()
399 cache = cache_do_one_devnode_split(node, group_id, level); in cache_do_one_devnode()
406 int level) in cache_lookup_or_instantiate() argument
412 WARN_ONCE(cache && cache->level != level, in cache_lookup_or_instantiate()
414 cache->level, level); in cache_lookup_or_instantiate()
417 cache = cache_do_one_devnode(node, group_id, level); in cache_lookup_or_instantiate()
436 WARN_ONCE((smaller->level == 1 && bigger->level > 2) || in link_cache_lists()
437 (smaller->level > 1 && bigger->level != smaller->level + 1), in link_cache_lists()
439 smaller->level, smaller->ofnode, bigger->level, bigger->ofnode); in link_cache_lists()
444 WARN_ONCE(cache->level != 1, in do_subsidiary_caches_debugcheck()
446 "%pOFP instead of an L1\n", cache->level, in do_subsidiary_caches_debugcheck()
463 static int get_group_id(unsigned int cpu_id, int level) in get_group_id() argument
465 if (has_big_cores && level == 1) in get_group_id()
468 else if (thread_group_shares_l2 && level == 2) in get_group_id()
471 else if (thread_group_shares_l3 && level == 3) in get_group_id()
480 int level = cache->level; in do_subsidiary_caches() local
488 level++; in do_subsidiary_caches()
489 group_id = get_group_id(cpu_id, level); in do_subsidiary_caches()
490 subcache = cache_lookup_or_instantiate(subcache_node, group_id, level); in do_subsidiary_caches()
566 index->cache->level, cache_type_string(index->cache)); in cache_index_release()
674 return sprintf(buf, "%d\n", cache->level); in level_show()
678 __ATTR(level, 0444, level_show, NULL);