Lines Matching defs:eax

121 	unsigned int eax;
143 int eax = regs->eax;
179 "andl $1,%%eax\n"
184 asm volatile("pushl %%eax\n\t"
185 "movl 0(%%eax),%%edx\n\t"
187 "movl 4(%%eax),%%ebx\n\t"
188 "movl 8(%%eax),%%ecx\n\t"
189 "movl 12(%%eax),%%edx\n\t"
190 "movl 16(%%eax),%%esi\n\t"
191 "movl 20(%%eax),%%edi\n\t"
192 "popl %%eax\n\t"
195 "xchgl %%eax,(%%esp)\n\t"
196 "movl %%ebx,4(%%eax)\n\t"
197 "movl %%ecx,8(%%eax)\n\t"
198 "movl %%edx,12(%%eax)\n\t"
199 "movl %%esi,16(%%eax)\n\t"
200 "movl %%edi,20(%%eax)\n\t"
202 "movl %%edx,0(%%eax)\n\t"
204 "shrl $8,%%eax\n\t"
205 "andl $1,%%eax\n"
210 if (rc != 0 || (regs->eax & 0xffff) == 0xffff || regs->eax == eax)
217 pr_debug("smm(0x%.4x 0x%.4x) = 0x%.4x (took %7lu usecs)\n", eax, ebx,
218 (rc ? 0xffff : regs->eax & 0xffff), duration);
243 struct smm_regs regs = { .eax = I8K_SMM_GET_FAN, };
249 return i8k_smm(&regs) ? : regs.eax & 0xff;
257 struct smm_regs regs = { .eax = I8K_SMM_GET_SPEED, };
263 return i8k_smm(&regs) ? : (regs.eax & 0xffff) * i8k_fan_mult;
271 struct smm_regs regs = { .eax = I8K_SMM_GET_FAN_TYPE, };
277 return i8k_smm(&regs) ? : regs.eax & 0xff;
296 struct smm_regs regs = { .eax = I8K_SMM_GET_NOM_SPEED, };
302 return i8k_smm(&regs) ? : (regs.eax & 0xffff) * i8k_fan_mult;
315 regs.eax = enable ? auto_fan : manual_fan;
324 struct smm_regs regs = { .eax = I8K_SMM_SET_FAN, };
337 struct smm_regs regs = { .eax = I8K_SMM_GET_TEMP_TYPE, };
340 return i8k_smm(&regs) ? : regs.eax & 0xff;
349 .eax = I8K_SMM_GET_TEMP,
353 return i8k_smm(&regs) ? : regs.eax & 0xff;
387 struct smm_regs regs = { .eax = req_fn, };
394 return regs.eax == 1145651527 && regs.edx == 1145392204 ? 0 : -1;
404 struct smm_regs regs = { .eax = I8K_SMM_FN_STATUS, };
411 switch ((regs.eax >> I8K_FN_SHIFT) & I8K_FN_MASK) {
428 struct smm_regs regs = { .eax = I8K_SMM_POWER_STATUS, };
435 return (regs.eax & 0xff) == I8K_POWER_AC ? I8K_AC : I8K_BATTERY;