Lines Matching refs:func
138 struct cpuid_func *func; in cpuid_store() local
149 func = &range->funcs[f & 0xffff]; in cpuid_store()
151 if (!func->leafs) { in cpuid_store()
152 func->leafs = malloc(sizeof(struct subleaf)); in cpuid_store()
153 if (!func->leafs) in cpuid_store()
156 func->nr = 1; in cpuid_store()
158 s = func->nr; in cpuid_store()
159 func->leafs = realloc(func->leafs, (s + 1) * sizeof(*leaf)); in cpuid_store()
160 if (!func->leafs) in cpuid_store()
163 func->nr++; in cpuid_store()
166 leaf = &func->leafs[s]; in cpuid_store()
187 struct cpuid_func *func = &range->funcs[f]; in raw_dump_range() local
194 if (!func->nr) in raw_dump_range()
198 for (i = 0; i < func->nr; i++) in raw_dump_range()
199 leaf_print_raw(&func->leafs[i]); in raw_dump_range()
292 struct cpuid_func *func; in parse_line() local
343 func = &range->funcs[index]; in parse_line()
346 if (!func->nr) in parse_line()
351 if ((int)sub > func->nr) in parse_line()
354 leaf = &func->leafs[sub]; in parse_line()
480 static void show_func(struct cpuid_func *func) in show_func() argument
484 if (!func) in show_func()
487 for (i = 0; i < func->nr; i++) in show_func()
488 show_leaf(&func->leafs[i]); in show_func()
515 struct cpuid_func *func; in show_info() local
526 func = index_to_func(user_index); in show_info()
527 if (!func) in show_info()
534 if (user_sub + 1 <= (u32)func->nr) { in show_info()
535 show_leaf(&func->leafs[user_sub]); in show_info()
542 show_func(func); in show_info()