Lines Matching refs:new_tree
187 struct cpuinfo_tree *new_tree; in build_cpuinfo_tree() local
197 new_tree = kzalloc(struct_size(new_tree, nodes, n), GFP_ATOMIC); in build_cpuinfo_tree()
198 if (!new_tree) in build_cpuinfo_tree()
201 new_tree->total_nodes = n; in build_cpuinfo_tree()
202 memcpy(&new_tree->level, tmp_level, sizeof(tmp_level)); in build_cpuinfo_tree()
208 n = new_tree->level[level].start_index; in build_cpuinfo_tree()
211 node = &new_tree->nodes[n]; in build_cpuinfo_tree()
215 kfree(new_tree); in build_cpuinfo_tree()
223 ? new_tree->level[level - 1].start_index : -1; in build_cpuinfo_tree()
227 ? cpu : new_tree->level[level + 1].start_index; in build_cpuinfo_tree()
246 kfree(new_tree); in build_cpuinfo_tree()
252 node = &new_tree->nodes[level_rover[level]]; in build_cpuinfo_tree()
276 if (n <= new_tree->level[level].end_index) { in build_cpuinfo_tree()
277 node = &new_tree->nodes[n]; in build_cpuinfo_tree()
293 return new_tree; in build_cpuinfo_tree()