Lines Matching defs:__leaf
261 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
263 : "0"(__leaf))
265 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
267 : "0"(__leaf), "2"(__count))
270 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
275 : "0"(__leaf))
277 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
282 : "0"(__leaf), "2"(__count))
285 static __inline unsigned int __get_cpuid_max (unsigned int __leaf,
310 __cpuid(__leaf, __eax, __ebx, __ecx, __edx);
316 static __inline int __get_cpuid (unsigned int __leaf, unsigned int *__eax,
320 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
322 if (__max_leaf == 0 || __max_leaf < __leaf)
325 __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
329 static __inline int __get_cpuid_count (unsigned int __leaf,
334 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
336 if (__max_leaf == 0 || __max_leaf < __leaf)
339 __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);
346 static __inline void __cpuidex(int __cpu_info[4], int __leaf, int __subleaf) {
347 __cpuid_count(__leaf, __subleaf, __cpu_info[0], __cpu_info[1], __cpu_info[2],