Lines Matching refs:leaf_id
123 Leaf GetCpuidLeaf(uint32_t leaf_id, int ecx) { in GetCpuidLeaf() argument
125 __cpuid_count(leaf_id, ecx, leaf.eax, leaf.ebx, leaf.ecx, leaf.edx); in GetCpuidLeaf()
143 Leaf GetCpuidLeaf(uint32_t leaf_id, int ecx) { in GetCpuidLeaf() argument
146 __cpuidex(data, leaf_id, ecx); in GetCpuidLeaf()
160 static Leaf CpuId(uint32_t leaf_id) { return GetCpuidLeaf(leaf_id, 0); } in CpuId() argument
164 static Leaf SafeCpuIdEx(uint32_t max_cpuid_leaf, uint32_t leaf_id, int ecx) { in SafeCpuIdEx() argument
165 if (leaf_id <= max_cpuid_leaf) { in SafeCpuIdEx()
166 return GetCpuidLeaf(leaf_id, ecx); in SafeCpuIdEx()
172 static Leaf SafeCpuId(uint32_t max_cpuid_leaf, uint32_t leaf_id) { in SafeCpuId() argument
173 return SafeCpuIdEx(max_cpuid_leaf, leaf_id, 0); in SafeCpuId()
1535 static void SetString(const uint32_t max_cpuid_ext_leaf, const uint32_t leaf_id, in SetString() argument
1537 const Leaf leaf = SafeCpuId(max_cpuid_ext_leaf, leaf_id); in SetString()