Lines Matching defs:leaf
35 static inline bool topo_subleaf(struct topo_scan *tscan, u32 leaf, u32 subleaf,
49 u32 level : 8, // Current topology level. Same as sub leaf number
56 switch (leaf) {
62 cpuid_subleaf(leaf, subleaf, &sl);
68 pr_err_once("Topology: leaf 0x%x:%d Unknown domain type %u\n",
69 leaf, subleaf, sl.type);
85 pr_warn_once(FW_BUG "CPUID leaf 0x%x subleaf %d APIC ID mismatch %x != %x\n",
86 leaf, subleaf, tscan->c->topo.initial_apicid, sl.x2apic_id);
93 static bool parse_topology_leaf(struct topo_scan *tscan, u32 leaf)
99 for (subleaf = 0, last_dom = 0; topo_subleaf(tscan, leaf, subleaf, &last_dom); subleaf++);
113 pr_warn_once(FW_BUG "CPUID leaf 0x%x subleaf 0 has shift level 0 but %u CPUs. Fixing it up.\n",
114 leaf, tscan->dom_ncpus[TOPO_SMT_DOMAIN]);
124 /* Intel: Try leaf 0x1F first. */
128 /* Intel/AMD: Fall back to leaf 0xB if available */