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()
39 struct cacheinfo *this_leaf; in get_cacheinfo() local
43 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo()
44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
45 return this_leaf; in get_cacheinfo()
53 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_size() local
55 return this_leaf ? this_leaf->size : 0; in get_cache_size()
60 struct cacheinfo *this_leaf = get_cacheinfo(level, type); in get_cache_geometry() local
62 return this_leaf ? (this_leaf->ways_of_associativity << 16 | in get_cache_geometry()
63 this_leaf->coherency_line_size) : in get_cache_geometry()
67 static void ci_leaf_init(struct cacheinfo *this_leaf, enum cache_type type, in ci_leaf_init() argument
71 this_leaf->level = level; in ci_leaf_init()
72 this_leaf->type = type; in ci_leaf_init()
73 this_leaf->size = size; in ci_leaf_init()
74 this_leaf->number_of_sets = sets; in ci_leaf_init()
75 this_leaf->coherency_line_size = line_size; in ci_leaf_init()
89 this_leaf->ways_of_associativity = (size / sets) / line_size; in ci_leaf_init()
92 static void fill_cacheinfo(struct cacheinfo **this_leaf, in fill_cacheinfo() argument
100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo()
106 ci_leaf_init((*this_leaf)++, CACHE_TYPE_INST, level, size, sets, line_size); in fill_cacheinfo()
112 ci_leaf_init((*this_leaf)++, CACHE_TYPE_DATA, level, size, sets, line_size); in fill_cacheinfo()
161 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
167 fill_cacheinfo(&this_leaf, np, level); in populate_cache_leaves()
182 fill_cacheinfo(&this_leaf, np, level); in populate_cache_leaves()