Lines Matching defs:func
58 * Array of subleafs for this func, if there is no subleafs
142 struct cpuid_func *func;
153 func = &range->funcs[f & 0xffff];
155 if (!func->leafs) {
156 func->leafs = malloc(sizeof(struct subleaf));
157 if (!func->leafs)
158 perror("malloc func leaf");
160 func->nr = 1;
162 s = func->nr;
163 func->leafs = realloc(func->leafs, (s + 1) * sizeof(*leaf));
164 if (!func->leafs)
167 func->nr++;
170 leaf = &func->leafs[s];
191 struct cpuid_func *func = &range->funcs[f];
198 if (!func->nr)
202 for (i = 0; i < func->nr; i++)
203 leaf_print_raw(&func->leafs[i]);
296 struct cpuid_func *func;
347 func = &range->funcs[index];
350 if (!func->nr)
355 if ((int)sub > func->nr)
358 leaf = &func->leafs[sub];
498 static void show_func(struct cpuid_func *func)
502 if (!func)
505 for (i = 0; i < func->nr; i++)
506 show_leaf(&func->leafs[i]);
534 struct cpuid_func *func;
545 func = index_to_func(user_index);
546 if (!func)
553 if (user_sub + 1 <= (u32)func->nr) {
554 show_leaf(&func->leafs[user_sub]);
561 show_func(func);