Lines Matching refs:this_leaf
20 cache_get_priv_group(struct cacheinfo *this_leaf) in cache_get_priv_group() argument
23 return rv_cache_ops->get_priv_group(this_leaf); in cache_get_priv_group()
30 struct cacheinfo *this_leaf; in get_cacheinfo() local
34 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo()
35 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
36 return this_leaf; in get_cacheinfo()
44 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size() local
46 return this_leaf ? this_leaf->size : 0; in get_cache_size()
51 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_geometry() local
53 return this_leaf ? (this_leaf->ways_of_associativity << 16 | in get_cache_geometry()
54 this_leaf->coherency_line_size) : in get_cache_geometry()
58 static void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init() argument
62 this_leaf->level = level; in ci_leaf_init()
63 this_leaf->type = type; in ci_leaf_init()
64 this_leaf->size = size; in ci_leaf_init()
65 this_leaf->number_of_sets = sets; in ci_leaf_init()
66 this_leaf->coherency_line_size = line_size; in ci_leaf_init()
80 this_leaf->ways_of_associativity = (size / sets) / line_size; in ci_leaf_init()
83 static void fill_cacheinfo(struct cacheinfo **this_leaf, in fill_cacheinfo() argument
91 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
97 ci_leaf_init((*this_leaf)++, CACHE_TYPE_INST, level, size, sets, line_size); in fill_cacheinfo()
103 ci_leaf_init((*this_leaf)++, CACHE_TYPE_DATA, level, size, sets, line_size); in fill_cacheinfo()
152 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in __populate_cache_leaves() local
158 fill_cacheinfo(&this_leaf, np, level); in __populate_cache_leaves()
173 fill_cacheinfo(&this_leaf, np, level); in __populate_cache_leaves()