Lines Matching refs:__leaf
249 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
251 : "0"(__leaf))
253 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
255 : "0"(__leaf), "2"(__count))
258 #define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
263 : "0"(__leaf))
265 #define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
270 : "0"(__leaf), "2"(__count))
273 static __inline unsigned int __get_cpuid_max (unsigned int __leaf,
298 __cpuid(__leaf, __eax, __ebx, __ecx, __edx);
304 static __inline int __get_cpuid (unsigned int __leaf, unsigned int *__eax,
308 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
310 if (__max_leaf == 0 || __max_leaf < __leaf)
313 __cpuid(__leaf, *__eax, *__ebx, *__ecx, *__edx);
317 static __inline int __get_cpuid_count (unsigned int __leaf,
322 unsigned int __max_leaf = __get_cpuid_max(__leaf & 0x80000000, 0);
324 if (__max_leaf == 0 || __max_leaf < __leaf)
327 __cpuid_count(__leaf, __subleaf, *__eax, *__ebx, *__ecx, *__edx);