Lines Matching defs:eax
22 unsigned eax;
31 : "=a" (eax)
36 asm("cpuid" : "=a" (eax), "=b" (v.b), "=c" (v.c), "=d" (v.d) : "0" (0));
54 asm("cpuid" : "=a" (v.eax) : "a" (code) : "ecx","ebx","edx");
64 static inline unsigned int cpu_model(unsigned int eax)
66 unsigned model = (eax & 0xf0) >> 4;
67 unsigned ext_model = (eax & 0xf0000) >> 12;
71 static inline unsigned int cpu_family(unsigned int eax)
73 unsigned family = (eax & 0xf00) >> 8;
74 unsigned ext_family = (eax & 0xff00000) >> 20;
78 static inline unsigned int cpu_stepping(unsigned int eax)
80 return (eax & 0xf);
89 unsigned eax;
93 eax = cpuid_signature();
94 if (cpu_family(eax) != 6 || cpu_model(eax) != 26
95 || cpu_stepping(eax) > 4)
103 unsigned ebx, eax;
110 : "=a" (eax), "=c" (ebx)
115 asm("cpuid" : "=a" (eax), "=b" (ebx) : "0" (0xa) : "ecx","edx");
118 return ebx & num_to_mask(eax >> 24);