Lines Matching refs:this_leaf
112 static void ci_leaf_init(struct cacheinfo *this_leaf, int private, in ci_leaf_init() argument
121 this_leaf->level = level + 1; in ci_leaf_init()
122 this_leaf->type = type; in ci_leaf_init()
123 this_leaf->coherency_line_size = ecag(EXTRACT_LINE_SIZE, level, ti); in ci_leaf_init()
124 this_leaf->ways_of_associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); in ci_leaf_init()
125 this_leaf->size = ecag(EXTRACT_SIZE, level, ti); in ci_leaf_init()
126 num_sets = this_leaf->size / this_leaf->coherency_line_size; in ci_leaf_init()
127 num_sets /= this_leaf->ways_of_associativity; in ci_leaf_init()
128 this_leaf->number_of_sets = num_sets; in ci_leaf_init()
129 cpumask_set_cpu(cpu, &this_leaf->shared_cpu_map); in ci_leaf_init()
131 this_leaf->disable_sysfs = true; in ci_leaf_init()
161 struct cacheinfo *this_leaf = this_cpu_ci->info_list; in populate_cache_leaves() local
171 if (!this_leaf) in populate_cache_leaves()
176 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_DATA, level, cpu); in populate_cache_leaves()
177 ci_leaf_init(this_leaf++, pvt, CACHE_TYPE_INST, level, cpu); in populate_cache_leaves()
179 ci_leaf_init(this_leaf++, pvt, ctype, level, cpu); in populate_cache_leaves()