Lines Matching defs:__leaf
238 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
240 : "0"(__leaf))
242 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
244 : "0"(__leaf), "2"(__count))
247 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
252 : "0"(__leaf))
254 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
259 : "0"(__leaf), "2"(__count))
262 static __inline int __get_cpuid_max (unsigned int __leaf, unsigned int *__sig)
286 __cpuid(__leaf, __eax, __ebx, __ecx, __edx);
292 static __inline int __get_cpuid (unsigned int __leaf, unsigned int *__eax,
296 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
298 if (__max_leaf == 0 || __max_leaf < __leaf)
301 __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
305 static __inline int __get_cpuid_count (unsigned int __leaf,
310 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
312 if (__max_leaf == 0 || __max_leaf < __leaf)
315 __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);