Home
last modified time | relevance | path

Searched refs:eax (Results 1 – 190 of 190) sorted by relevance

/linux-4.1.27/arch/x86/math-emu/
Dwm_sqrt.S89 movl SIGH(%esi),%eax
98 shrl $1,%eax /* arg is in the range [1.0 .. 2.0) */
106 movl %eax,FPU_fsqrt_arg_2 /* ms word of n */
111 shrl $1,%eax
112 addl $0x40000000,%eax
142 addl %eax,%esi /* the new estimate */
147 addl %eax,%esi
152 addl %eax,%esi
163 movl %esi,%eax
168 subl %ecx,%eax
[all …]
Dmul_Xsig.S36 xor %eax,%eax
37 movl %eax,-4(%ebp)
38 movl %eax,-8(%ebp)
40 movl (%esi),%eax /* lsl of Xsig */
44 movl 4(%esi),%eax /* midl of Xsig */
46 addl %eax,-12(%ebp)
50 movl 8(%esi),%eax /* msl of Xsig */
52 addl %eax,-8(%ebp)
55 movl -12(%ebp),%eax
56 movl %eax,(%esi)
[all …]
Dpolynom_Xsig.S50 movl TERM_SIZE,%eax
52 addl %eax,%edi
58 xor %eax,%eax
59 movl %eax,SUM_LS
67 xor %eax,%eax
68 movl %eax,ACCUM_MS
69 movl %eax,ACCUM_MIDDLE
71 movl SUM_MIDDLE,%eax
75 movl SUM_MIDDLE,%eax
77 addl %eax,ACCUM_LS
[all …]
Dreg_u_div.S93 movswl EXP(%ebx),%eax
94 subl %eax,%edx
122 movl SIGL(%esi),%eax /* Dividend */
133 movl %eax,FPU_result_2
136 xorl %eax,%eax
138 movl %eax,FPU_result_1
141 xorl %eax,%eax
155 rcrl %eax
181 movl SIGL(%esi),%eax
182 movl %eax,FPU_accum_2
[all …]
Ddiv_Xsig.S115 movl XsigH(%esi),%eax
116 rcrl %eax
117 movl %eax,FPU_accum_3
118 movl XsigL(%esi),%eax
119 rcrl %eax
120 movl %eax,FPU_accum_2
121 movl XsigLL(%esi),%eax
122 rcrl %eax
123 movl %eax,FPU_accum_1
124 movl $0,%eax
[all …]
Dreg_norm.S32 movl SIGL(%ebx),%eax
38 orl %eax,%eax
41 movl %eax,%edx
42 xorl %eax,%eax
50 shld %cl,%eax,%edx
51 shl %cl,%eax
55 movl %eax,SIGL(%ebx)
65 movl TAG_Valid,%eax
79 movl TAG_Zero,%eax
109 movl SIGL(%ebx),%eax
[all …]
Dround_Xsig.S36 movl (%esi),%eax
45 movl %eax,%ebx
46 xorl %eax,%eax
56 shld %cl,%eax,%ebx
57 shl %cl,%eax
60 testl $0x80000000,%eax
73 movl %eax,(%esi)
75 movl -4(%ebp),%eax
96 movl (%esi),%eax
105 movl %eax,%ebx
[all …]
Dwm_shrx.S48 xorl %eax,%eax /* extension */
49 shrd %cl,%ebx,%eax
64 movl (%esi),%eax /* lsl */
66 shrd %cl,%edx,%eax
79 movl 4(%esi),%eax /* msl */
80 shr %cl,%eax
89 xorl %eax,%eax
90 movl %eax,(%esi)
91 movl %eax,4(%esi)
130 movl (%esi),%eax /* lsl */
[all …]
Dreg_u_sub.S63 movl SIGH(%edi),%eax /* register ms word */
83 shrd %cl,%eax,%ebx
84 shr %cl,%eax
94 shrd %cl,%eax,%edx
95 shr %cl,%eax
102 movl %eax,%ebx
103 xorl %eax,%eax
108 movl %eax,%ebx
109 xorl %eax,%eax
117 movl %eax,%edx
[all …]
Dreg_u_add.S51 movl SIGH(%esi),%eax
61 movl SIGH(%edi),%eax
70 testl $0x80000000,%eax
83 shrd %cl,%eax,%ebx
84 shr %cl,%eax
94 shrd %cl,%eax,%edx
95 shr %cl,%eax
102 movl %eax,%ebx
103 xorl %eax,%eax
108 movl %eax,%ebx
[all …]
Dreg_u_mul.S71 movl SIGL(%esi),%eax
73 movl %eax,FPU_accum_0
76 movl SIGL(%esi),%eax
78 addl %eax,FPU_accum_1
82 movl SIGH(%esi),%eax
84 addl %eax,FPU_accum_1
88 movl SIGH(%esi),%eax
90 addl %eax,%ebx
94 movl PARAM6,%eax
95 subl EXP_BIAS-1,%eax
[all …]
Dreg_round.S119 movl SIGH(%edi),%eax
201 movl %eax,%ecx
210 movl %eax,%ecx
225 testl $0x00000100,%eax
230 andl $0xffffff00,%eax /* Truncate to 24 bits */
233 addl $0x00000100,%eax
237 movl %eax,%ecx
244 andl $0xffffff00,%eax /* Truncate to 24 bits */
309 adcl $0,%eax
373 adcl $0,%eax
[all …]
Dshr_Xsig.S35 movl (%esi),%eax /* lsl */
38 shrd %cl,%ebx,%eax
41 movl %eax,(%esi)
54 movl 4(%esi),%eax /* midl */
56 shrd %cl,%edx,%eax
58 movl %eax,(%esi)
70 movl 8(%esi),%eax /* msl */
71 shr %cl,%eax
73 movl %eax,(%esi)
81 xorl %eax,%eax
[all …]
Ddiv_small.S30 movl 4(%esi),%eax /* Get the current num msw */
34 movl %eax,4(%esi)
36 movl (%esi),%eax /* Get the num lsw */
39 movl %eax,(%esi)
41 movl %edx,%eax /* Return the remainder in eax */
Dreg_ld_str.c972 unsigned eax; in FPU_round_to_int() local
985 eax = FPU_shrxs(&r->sigl, 63 - exponent(r)); in FPU_round_to_int()
987 #define half_or_more (eax & 0x80000000) in FPU_round_to_int()
988 #define frac_part (eax) in FPU_round_to_int()
989 #define more_than_half ((eax & 0x80000001) == 0x80000001) in FPU_round_to_int()
1020 return eax ? PRECISION_LOST_DOWN : 0; in FPU_round_to_int()
/linux-4.1.27/arch/x86/um/
Dchecksum_32.S55 movl 20(%esp),%eax # Function arg: unsigned int sum
67 adcl $0, %eax
74 adcl %ebx, %eax
76 adcl %ebx, %eax
78 adcl %ebx, %eax
80 adcl %ebx, %eax
82 adcl %ebx, %eax
84 adcl %ebx, %eax
86 adcl %ebx, %eax
88 adcl %ebx, %eax
[all …]
Dstub_32.S13 mov 0x0(%esp), %eax
17 mov %eax, STUB_DATA+4
18 cmpl $0, %eax
25 add %eax, %esp
28 pop %eax
43 cmp %ebx, %eax
48 mov %eax, STUB_DATA
Dsetjmp_32.S23 movl %eax,%edx
28 xorl %eax,%eax # Return value
46 xchgl %eax,%edx
49 movl 8(%esp),%eax # Return value
Dsetjmp_64.S25 xorl %eax,%eax # Return value
44 movl %esi,%eax # Return value (int)
/linux-4.1.27/arch/x86/kernel/
Drelocate_kernel_32.S53 movl %cr0, %eax
54 movl %eax, CR0(%edi)
55 movl %cr3, %eax
56 movl %eax, CR3(%edi)
57 movl %cr4, %eax
58 movl %eax, CR4(%edi)
74 movl PTR(PA_PGD)(%ebp), %eax
75 movl %eax, CP_PA_PGD(%edi)
76 movl PTR(PA_SWAP_PAGE)(%ebp), %eax
77 movl %eax, CP_PA_SWAP_PAGE(%edi)
[all …]
Dhead_32.S108 movl $(__BOOT_DS),%eax
109 movl %eax,%ds
110 movl %eax,%es
111 movl %eax,%fs
112 movl %eax,%gs
113 movl %eax,%ss
121 xorl %eax,%eax
151 movl %cr3, %eax
152 movl %eax, pa(olpc_ofw_pgd)
184 movl $PTE_IDENT_ATTR, %eax
[all …]
Dentry_32.S195 pushl_cfi %eax
196 CFI_REL_OFFSET eax, 0
230 popl_cfi %eax
231 CFI_RESTORE eax
281 CFI_OFFSET eax, PT_EAX-PT_OLDESP
292 pushl_cfi %eax
295 popl_cfi %eax
304 pushl_cfi %eax
307 popl_cfi %eax
310 movl PT_EBP(%esp),%eax
[all …]
Dverify_cpu.S43 popl %eax
44 movl %eax,%ebx
45 xorl $0x200000,%eax
46 pushl %eax
49 popl %eax
50 cmpl %eax,%ebx
54 movl $0x0,%eax # See if cpuid 1 is implemented
56 cmpl $0x1,%eax
79 movl $0x1, %eax # check CPU family and model
81 movl %eax, %ecx
[all …]
Dhead_64.S80 andl $~PMD_PAGE_MASK, %eax
81 testl %eax, %eax
120 andl $(PTRS_PER_PUD-1), %eax
122 incl %eax
123 andl $(PTRS_PER_PUD-1), %eax
200 movl $0x80000001, %eax
207 btsl $_EFER_SCE, %eax /* Enable System Call */
210 btsl $_EFER_NX, %eax
218 movl $CR0_STATE, %eax
238 xorl %eax,%eax
[all …]
Dxsave.c468 int eax, ebx, ecx, edx, leaf = 0x2; in setup_xstate_features() local
475 cpuid_count(XSTATE_CPUID, leaf, &eax, &ebx, &ecx, &edx); in setup_xstate_features()
477 if (eax == 0) in setup_xstate_features()
481 xstate_sizes[leaf] = eax; in setup_xstate_features()
587 unsigned int eax, ebx, ecx, edx; in init_xstate_size() local
591 cpuid_count(XSTATE_CPUID, 0, &eax, &ebx, &ecx, &edx); in init_xstate_size()
599 cpuid_count(XSTATE_CPUID, i, &eax, &ebx, &ecx, &edx); in init_xstate_size()
600 xstate_size += eax; in init_xstate_size()
610 unsigned int eax, ebx, ecx, edx; in xstate_enable_boot_cpu() local
617 cpuid_count(XSTATE_CPUID, 0, &eax, &ebx, &ecx, &edx); in xstate_enable_boot_cpu()
[all …]
Dapm_32.c578 u32 eax; member
618 &call->eax, &call->ebx, &call->ecx, &call->edx, in __apm_bios_call()
625 return call->eax & 0xff; in __apm_bios_call()
647 call->err = (call->eax >> 8) & 0xff; in on_cpu0()
694 &call->eax); in __apm_bios_call_simple()
716 static int apm_bios_call_simple(u32 func, u32 ebx_in, u32 ecx_in, u32 *eax, in apm_bios_call_simple() argument
727 *eax = call.eax; in apm_bios_call_simple()
750 u32 eax; in apm_driver_version() local
753 if (apm_bios_call_simple(APM_FUNC_VERSION, 0, *val, &eax, &err)) in apm_driver_version()
755 *val = eax; in apm_driver_version()
[all …]
Dcpuid.c50 u32 eax, ebx, ecx, edx; member
57 cpuid_count(cmd->eax, cmd->ecx, in cpuid_smp_cpuid()
58 &cmd->eax, &cmd->ebx, &cmd->ecx, &cmd->edx); in cpuid_smp_cpuid()
97 cmd.eax = pos; in cpuid_read()
Dentry_64.S255 andl $__SYSCALL_MASK,%eax
256 cmpl $__NR_syscall_max,%eax
340 andl $__SYSCALL_MASK,%eax
341 cmpl $__NR_syscall_max,%eax
510 testl %eax, %eax
835 andl $0xffff0000,%eax
1116 xorl %eax,%eax
1117 movl %eax,%gs
1351 movl %ecx,%eax /* zero extend */
1377 movl %ebx,%eax
[all …]
Drelocate_kernel_64.S119 orl $(X86_CR0_PG | X86_CR0_PE), %eax
126 movl $X86_CR4_PAE, %eax
154 xorl %eax, %eax
Dsmpboot.c1406 unsigned int eax, ebx, ecx, edx; in mwait_play_dead() local
1419 eax = CPUID_MWAIT_LEAF; in mwait_play_dead()
1421 native_cpuid(&eax, &ebx, &ecx, &edx); in mwait_play_dead()
1428 eax = 0; in mwait_play_dead()
1437 eax = (highest_cstate << MWAIT_SUBSTATE_SIZE) | in mwait_play_dead()
1463 __mwait(eax, 0); in mwait_play_dead()
Dptrace.c969 R32(eax, ax); in putreg32()
1039 R32(eax, ax); in getreg32()
/linux-4.1.27/arch/x86/boot/compressed/
Defi_thunk_64.S31 movl %eax, 4(%rsp)
33 movl %eax, (%rsp)
34 movl %eax, 2(%rax) /* Fixup the gdt base address */
36 movl %ds, %eax
38 movl %es, %eax
40 movl %ss, %eax
89 movl %eax, %ecx
91 andl $0xf0000000, %eax
115 movl $__KERNEL_DS, %eax
116 movl %eax, %ds
[all …]
Dhead_64.S54 movl $(__BOOT_DS), %eax
55 movl %eax, %ds
56 movl %eax, %es
57 movl %eax, %ss
74 movl $boot_stack_end, %eax
75 addl %ebp, %eax
76 movl %eax, %esp
79 testl %eax, %eax
93 movl BP_kernel_alignment(%esi), %eax
94 decl %eax
[all …]
Dhead_32.S56 leal efi32_config(%esi), %eax
57 add %esi, 88(%eax)
58 pushl %eax
61 cmpl $0, %eax
63 movl %esi, BP_code32_start(%eax)
65 pushl %eax
82 leal efi32_config(%esi), %eax
83 add %esi, 88(%eax)
84 pushl %eax
87 cmpl $0, %eax
[all …]
/linux-4.1.27/arch/x86/lib/
Dchecksum_32.S56 movl 20(%esp),%eax # Function arg: unsigned int sum
68 adcl %ebx, %eax
69 roll $8, %eax
81 adcl $0, %eax
88 adcl %ebx, %eax
90 adcl %ebx, %eax
92 adcl %ebx, %eax
94 adcl %ebx, %eax
96 adcl %ebx, %eax
98 adcl %ebx, %eax
[all …]
Datomic64_386_32.S48 movl (v), %eax
62 movl (v), %eax
71 addl %eax, (v)
78 addl (v), %eax
80 movl %eax, (v)
87 subl %eax, (v)
95 negl %eax
97 addl (v), %eax
99 movl %eax, (v)
113 movl (v), %eax
[all …]
Dmsr-reg.S21 movl (%rdi), %eax
30 2: movl %eax, (%r10)
31 movl %r11d, %eax /* Return value */
61 pushl_cfi %eax
62 movl 4(%eax), %ecx
63 movl 8(%eax), %edx
64 movl 12(%eax), %ebx
65 movl 20(%eax), %ebp
66 movl 24(%eax), %esi
67 movl 28(%eax), %edi
[all …]
Datomic64_cx8_32.S17 movl %ebx, %eax
65 movl %eax, %esi
71 movl %eax, %ebx
80 movl %ebx, %eax
101 movl %eax, %ebx
110 movl %ebx, %eax
127 movl %eax, %ebx
137 movl %ebx, %eax
152 movl %eax, %ebp
157 cmpl %eax, 0(%esp)
[all …]
Dputuser.S46 xor %eax,%eax
58 xor %eax,%eax
69 3: movl %eax,(%_ASM_CX)
70 xor %eax,%eax
85 xor %eax,%eax
91 movl $-EFAULT,%eax
Dgetuser.S45 xor %eax,%eax
60 xor %eax,%eax
75 xor %eax,%eax
91 xor %eax,%eax
103 xor %eax,%eax
Dclear_page_64.S24 xorl %eax,%eax
33 xorl %eax,%eax
57 xorl %eax,%eax
Dcopy_user_64.S83 xorl %eax,%eax
87 movl %edx,%eax
155 23: xor %eax,%eax
224 xorl %eax,%eax
257 xorl %eax,%eax
Dcsum-copy_64.S71 movl %ecx, %eax
170 movl %eax, %ebx
172 addl %ebx, %eax
173 adcl %r9d, %eax
188 adcl %ebx, %eax
195 adcl %r9d, %eax /* add in carry */
206 addl %ebx, %eax
207 adcl %r9d, %eax /* carry */
Dthunk_32.S16 pushl_cfi_reg eax
22 movl 3*4(%esp), %eax
28 popl_cfi_reg eax
Dcopy_user_nocache_64.S99 23: xorl %eax,%eax
/linux-4.1.27/arch/x86/crypto/
Dsalsa20-i586-asm_32.S11 mov %esp,%eax
12 and $31,%eax
13 add $256,%eax
14 sub %eax,%esp
15 # eax_stack = eax
16 movl %eax,80(%esp)
26 movl 4(%esp,%eax),%edx
28 movl 8(%esp,%eax),%esi
30 movl 12(%esp,%eax),%edi
32 movl 16(%esp,%eax),%ebx
[all …]
Dtwofish-i586-asm_32.S48 #define R0D %eax
233 mov (%edi), %eax
237 input_whitening(%eax,%ebp,a_offset)
238 ror $16, %eax
261 output_whitening(%eax,%ebp,c_offset)
266 mov %eax, c_offset(%edi)
275 mov $1, %eax
290 mov (%edi), %eax
294 output_whitening(%eax,%ebp,a_offset)
318 input_whitening(%eax,%ebp,c_offset)
[all …]
Dcast5-avx-x86_64-asm_64.S264 movzbl rr(CTX), %eax;
265 testl %eax, %eax;
323 movzbl rr(CTX), %eax;
324 testl %eax, %eax;
Dcrc32c-pcl-intel-asm_64.S223 leal (%eax,%eax,2), %eax # rax *= 3 (total *24)
Daesni-intel_asm.S140 #define AREG %eax
274 mov keysize,%eax
275 shr $2,%eax # 128->4, 192->6, 256->8
276 add $5,%eax # 128->9, 192->11, 256->13
284 sub $1,%eax
390 mov keysize,%eax
391 shr $2,%eax # 128->4, 192->6, 256->8
392 sub $4,%eax # 128->0, 192->2, 256->4
401 sub $1,%eax
496 mov keysize,%eax
[all …]
Dserpent-sse2-i586-asm_32.S527 movl arg_src(%esp), %eax;
528 read_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
564 movl arg_dst(%esp), %eax;
569 write_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
574 xor_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
590 movl arg_src(%esp), %eax;
591 read_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
627 movl arg_dst(%esp), %eax;
628 write_blocks(%eax, RC, RD, RB, RE, RT0, RT1, RA);
Dcrc32-pclmul_asm.S87 #define BUF %eax
243 PEXTRD 0x01, %xmm1, %eax
Dtwofish-x86_64-asm_64.S43 #define R0D %eax
267 movl $1,%eax
319 movl $1,%eax
Dcamellia-aesni-avx-asm_64.S919 movl $24, %eax;
920 cmovel %eax, %r8d; /* max */
947 movl $24, %eax;
948 cmovel %eax, %r8d; /* max */
1264 movl $24, %eax;
1265 cmovel %eax, %r8d; /* input whitening key, last for dec */
Dcamellia-aesni-avx2-asm_64.S965 movl $24, %eax;
966 cmovel %eax, %r8d; /* max */
997 movl $24, %eax;
998 cmovel %eax, %r8d; /* max */
1380 movl $24, %eax;
1381 cmovel %eax, %r8d; /* input whitening key, last for dec */
DMakefile6 avx2_supported := $(call as-instr,vpgatherdd %ymm0$(comma)(%eax$(comma)%ymm1\
Dblowfish-x86_64-asm_64.S44 #define RX0d %eax
Daes-x86_64-asm_64.S22 #define R1E %eax
Dtwofish-x86_64-asm_64-3way.S46 #define RAB0d %eax
Daes-i586-asm_32.S56 #define r0 eax
Dcamellia-x86_64-asm_64.S62 #define RAB0d %eax
Dsha1_avx2_x86_64_asm.S81 #define REG_D %eax
Dsha1_ssse3_asm.S43 #define REG_T1 %eax
Ddes3_ede-asm_64.S54 #define RW0d %eax
Dsha256-avx-asm.S107 a = %eax
Dsha256-ssse3-asm.S99 a = %eax
Daesni-intel_avx-x86_64.S1425 vmovd %xmm9, %eax
1426 mov %eax, 8(%r10)
2700 vmovd %xmm9, %eax
2701 mov %eax, 8(%r10)
Dsalsa20-x86_64-asm_64.S613 addl 80(%rsp),%eax
Dsha256-avx2-asm.S105 a = %eax
/linux-4.1.27/drivers/lguest/x86/
Dswitcher_32.S124 movl %esp, LGUEST_PAGES_host_sp(%eax)
134 movl %eax, %edx
140 lgdt LGUEST_PAGES_guest_gdt_desc(%eax)
144 lidt LGUEST_PAGES_guest_idt_desc(%eax)
160 movl (LGUEST_PAGES_host_gdt_desc+2)(%eax), %edx
173 popl %eax
214 pushl %eax; \
220 movl $(LGUEST_DS), %eax; \
221 movl %eax, %ds; \
230 movl %esp, %eax; \
[all …]
Dcore.c201 return &cpu->regs->eax; in lguest_arch_regptr()
/linux-4.1.27/arch/x86/net/
Dbpf_jit.S35 mov %r9d,%eax # hlen
36 sub %esi,%eax # hlen - offset
37 cmp $3,%eax
39 mov (SKBDATA,%rsi),%eax
40 bswap %eax /* ntohl() */
52 mov %r9d,%eax
53 sub %esi,%eax # hlen - offset
54 cmp $1,%eax
56 movzwl (SKBDATA,%rsi),%eax
71 movzbl (SKBDATA,%rsi),%eax
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dvmware.c40 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
42 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
50 uint32_t eax, ebx, ecx, edx; in __vmware_platform() local
51 VMWARE_PORT(GETVERSION, eax, ebx, ecx, edx); in __vmware_platform()
52 return eax != (uint32_t)-1 && ebx == VMWARE_HYPERVISOR_MAGIC; in __vmware_platform()
58 uint32_t eax, ebx, ecx, edx; in vmware_get_tsc_khz() local
60 VMWARE_PORT(GETHZ, eax, ebx, ecx, edx); in vmware_get_tsc_khz()
62 tsc_hz = eax | (((uint64_t)ebx) << 32); in vmware_get_tsc_khz()
80 uint32_t eax, ebx, ecx, edx; in vmware_platform_setup() local
82 VMWARE_PORT(GETHZ, eax, ebx, ecx, edx); in vmware_platform_setup()
[all …]
Dtopology.c21 #define BITS_SHIFT_NEXT_LEVEL(eax) ((eax) & 0x1f) argument
32 unsigned int eax, ebx, ecx, edx, sub_index; in detect_extended_topology() local
40 cpuid_count(0xb, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology()
59 core_plus_mask_width = ht_mask_width = BITS_SHIFT_NEXT_LEVEL(eax); in detect_extended_topology()
63 cpuid_count(0xb, sub_index, &eax, &ebx, &ecx, &edx); in detect_extended_topology()
70 core_plus_mask_width = BITS_SHIFT_NEXT_LEVEL(eax); in detect_extended_topology()
Dintel_cacheinfo.c153 union _cpuid4_leaf_eax eax; member
224 amd_cpuid4(int leaf, union _cpuid4_leaf_eax *eax, in amd_cpuid4() argument
235 eax->full = 0; in amd_cpuid4()
278 eax->split.is_self_initializing = 1; in amd_cpuid4()
279 eax->split.type = types[leaf]; in amd_cpuid4()
280 eax->split.level = levels[leaf]; in amd_cpuid4()
281 eax->split.num_threads_sharing = 0; in amd_cpuid4()
282 eax->split.num_cores_on_die = __this_cpu_read(cpu_info.x86_max_cores) - 1; in amd_cpuid4()
286 eax->split.is_fully_associative = 1; in amd_cpuid4()
588 union _cpuid4_leaf_eax eax; in cpuid4_cache_lookup_regs() local
[all …]
Dmshyperv.c76 u32 eax; in ms_hyperv_platform() local
83 &eax, &hyp_signature[0], &hyp_signature[1], &hyp_signature[2]); in ms_hyperv_platform()
85 if (eax >= HYPERV_CPUID_MIN && in ms_hyperv_platform()
86 eax <= HYPERV_CPUID_MAX && in ms_hyperv_platform()
Damd.c300 u32 eax, ebx, ecx, edx; in amd_get_topology() local
302 cpuid(0x8000001e, &eax, &ebx, &ecx, &edx); in amd_get_topology()
747 u32 ebx, eax, ecx, edx; in cpu_detect_tlb_amd() local
756 cpuid(0x80000006, &eax, &ebx, &ecx, &edx); in cpu_detect_tlb_amd()
766 cpuid(0x80000005, &eax, &ebx, &ecx, &edx); in cpu_detect_tlb_amd()
771 if (!((eax >> 16) & mask)) in cpu_detect_tlb_amd()
774 tlb_lld_2m[ENTRIES] = (eax >> 16) & mask; in cpu_detect_tlb_amd()
780 if (!(eax & mask)) { in cpu_detect_tlb_amd()
785 cpuid(0x80000005, &eax, &ebx, &ecx, &edx); in cpu_detect_tlb_amd()
786 tlb_lli_2m[ENTRIES] = eax & 0xff; in cpu_detect_tlb_amd()
[all …]
Dcommon.c511 u32 eax, ebx, ecx, edx; in detect_ht() local
524 cpuid(1, &eax, &ebx, &ecx, &edx); in detect_ht()
632 u32 eax, ebx, ecx, edx; in get_cpu_cap() local
634 cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx); in get_cpu_cap()
641 u32 eax, ebx, ecx, edx; in get_cpu_cap() local
643 cpuid_count(0x0000000d, 1, &eax, &ebx, &ecx, &edx); in get_cpu_cap()
645 c->x86_capability[10] = eax; in get_cpu_cap()
650 u32 eax, ebx, ecx, edx; in get_cpu_cap() local
653 cpuid_count(0x0000000F, 0, &eax, &ebx, &ecx, &edx); in get_cpu_cap()
660 cpuid_count(0x0000000F, 1, &eax, &ebx, &ecx, &edx); in get_cpu_cap()
[all …]
Dintel.c323 unsigned int eax, ebx, ecx, edx; in intel_num_cpu_cores() local
329 cpuid_count(4, 0, &eax, &ebx, &ecx, &edx); in intel_num_cpu_cores()
330 if (eax & 0x1f) in intel_num_cpu_cores()
331 return (eax >> 26) + 1; in intel_num_cpu_cores()
409 unsigned eax = cpuid_eax(10); in init_intel() local
411 if ((eax & 0xff) && (((eax>>8) & 0xff) > 1)) in init_intel()
Dperf_event_amd_uncore.c359 unsigned int eax, ebx, ecx, edx; in amd_uncore_cpu_starting() local
364 cpuid(0x8000001e, &eax, &ebx, &ecx, &edx); in amd_uncore_cpu_starting()
376 cpuid_count(0x8000001d, 2, &eax, &ebx, &ecx, &edx); in amd_uncore_cpu_starting()
377 nshared = ((eax >> 14) & 0xfff) + 1; in amd_uncore_cpu_starting()
Dperf_event_intel.c2988 union cpuid10_eax eax; in intel_pmu_init() local
3011 cpuid(10, &eax.full, &ebx.full, &unused, &edx.full); in intel_pmu_init()
3012 if (eax.split.mask_length < ARCH_PERFMON_EVENTS_COUNT) in intel_pmu_init()
3015 version = eax.split.version_id; in intel_pmu_init()
3022 x86_pmu.num_counters = eax.split.num_counters; in intel_pmu_init()
3023 x86_pmu.cntval_bits = eax.split.bit_width; in intel_pmu_init()
3024 x86_pmu.cntval_mask = (1ULL << eax.split.bit_width) - 1; in intel_pmu_init()
3027 x86_pmu.events_mask_len = eax.split.mask_length; in intel_pmu_init()
/linux-4.1.27/arch/x86/xen/
Dxen-asm_32.S28 push %eax
34 pop %eax
44 movl PT_EAX(%esp), %eax /* Shouldn't be necessary? */
94 push %eax
100 movl $(__KERNEL_PERCPU), %eax
101 movl %eax, %fs
102 movl %fs:xen_vcpu, %eax
105 movl %ss:xen_vcpu, %eax
118 setz %ss:XEN_vcpu_info_mask(%eax)
122 cmpw $0x0001, %ss:XEN_vcpu_info_pending(%eax)
[all …]
Dxen-head.S67 mov $0x80000001, %eax
73 bts $_EFER_SCE, %eax
77 bts $_EFER_NX, %eax
Dxen-asm.S114 push %eax
120 pop %eax
Denlighten.c1761 uint32_t eax, ebx, ecx, edx, pages, msr, base; in init_hvm_pv_info() local
1765 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in init_hvm_pv_info()
1767 major = eax >> 16; in init_hvm_pv_info()
1768 minor = eax & 0xffff; in init_hvm_pv_info()
/linux-4.1.27/drivers/char/
Dtoshiba.c136 unsigned long eax,ecx,flags; in tosh_emulate_fan() local
139 eax = regs->eax & 0xff00; in tosh_emulate_fan()
145 if (eax==0xfe00) { in tosh_emulate_fan()
151 regs->eax = 0x00; in tosh_emulate_fan()
154 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan()
162 regs->eax = 0x00; in tosh_emulate_fan()
165 if ((eax==0xff00) && (ecx==0x0001)) { in tosh_emulate_fan()
173 regs->eax = 0x00; in tosh_emulate_fan()
181 if (eax==0xfe00) { in tosh_emulate_fan()
187 regs->eax = 0x00; in tosh_emulate_fan()
[all …]
Di8k.c123 unsigned int eax; member
144 int eax = regs->eax; in i8k_smm() local
212 if (rc != 0 || (regs->eax & 0xffff) == 0xffff || regs->eax == eax) in i8k_smm()
226 struct smm_regs regs = { .eax = I8K_SMM_FN_STATUS, }; in i8k_get_fn_status()
233 switch ((regs.eax >> I8K_FN_SHIFT) & I8K_FN_MASK) { in i8k_get_fn_status()
250 struct smm_regs regs = { .eax = I8K_SMM_POWER_STATUS, }; in i8k_get_power_status()
257 return (regs.eax & 0xff) == I8K_POWER_AC ? I8K_AC : I8K_BATTERY; in i8k_get_power_status()
265 struct smm_regs regs = { .eax = I8K_SMM_GET_FAN, }; in i8k_get_fan_status()
268 return i8k_smm(&regs) ? : regs.eax & 0xff; in i8k_get_fan_status()
276 struct smm_regs regs = { .eax = I8K_SMM_GET_SPEED, }; in i8k_get_fan_speed()
[all …]
/linux-4.1.27/arch/x86/realmode/rm/
Dwakeup_asm.S51 movl %cr0, %eax
53 movl %eax, %cr0
63 movl %eax, %cr0
82 movl signature, %eax
83 cmpl $WAKEUP_HEADER_SIGNATURE, %eax
87 movl end_signature, %eax
88 cmpl $REALMODE_END_SIGNATURE, %eax
100 movl pmode_misc_en, %eax
110 movl pmode_cr3, %eax
111 movl %eax, %cr3
[all …]
Dreboot.S25 movl $__KERNEL_DS, %eax
26 movl %eax, %ds
30 movl %cr0, %eax
31 andl $~X86_CR0_PG, %eax
32 movl %eax, %cr0
36 xorl %eax, %eax
41 movl %edi, %eax
Dtrampoline_32.S41 movl tr_start, %eax # where we need to go
/linux-4.1.27/arch/x86/power/
Dhibernate_asm_32.S31 movl resume_pg_dir, %eax
32 subl $__PAGE_OFFSET, %eax
33 movl %eax, %cr3
38 movl %cr3, %eax; # flush TLB
39 movl %eax, %cr3
61 movl $swapper_pg_dir, %eax
62 subl $__PAGE_OFFSET, %eax
63 movl %eax, %cr3
79 movl $saved_context, %eax
80 lgdt saved_context_gdt_desc(%eax)
[all …]
/linux-4.1.27/arch/x86/include/asm/
Dmwait.h18 static inline void __monitor(const void *eax, unsigned long ecx, in __monitor() argument
23 :: "a" (eax), "c" (ecx), "d"(edx)); in __monitor()
26 static inline void __mwait(unsigned long eax, unsigned long ecx) in __mwait() argument
30 :: "a" (eax), "c" (ecx)); in __mwait()
33 static inline void __sti_mwait(unsigned long eax, unsigned long ecx) in __sti_mwait() argument
38 :: "a" (eax), "c" (ecx)); in __sti_mwait()
51 static inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx) in mwait_idle_with_hints() argument
62 __mwait(eax, ecx); in mwait_idle_with_hints()
Dxcr.h29 u32 eax, edx; in xgetbv() local
32 : "=a" (eax), "=d" (edx) in xgetbv()
34 return eax + ((u64)edx << 32); in xgetbv()
39 u32 eax = value; in xsetbv() local
43 : : "a" (eax), "d" (edx), "c" (index)); in xsetbv()
Dprocessor.h191 static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, in native_cpuid() argument
196 : "=a" (*eax), in native_cpuid()
200 : "0" (*eax), "2" (*ecx) in native_cpuid()
629 unsigned int *eax, unsigned int *ebx, in cpuid() argument
632 *eax = op; in cpuid()
634 __cpuid(eax, ebx, ecx, edx); in cpuid()
639 unsigned int *eax, unsigned int *ebx, in cpuid_count() argument
642 *eax = op; in cpuid_count()
644 __cpuid(eax, ebx, ecx, edx); in cpuid_count()
652 unsigned int eax, ebx, ecx, edx; in cpuid_eax() local
[all …]
Dapm.h27 u32 *eax, u32 *ebx, u32 *ecx, in apm_bios_call_asm() argument
42 : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx), in apm_bios_call_asm()
49 u32 ecx_in, u32 *eax) in apm_bios_call_simple_asm() argument
66 : "=a" (*eax), "=b" (error), "=c" (cx), "=d" (dx), in apm_bios_call_simple_asm()
Dvirtext.h86 uint32_t eax, ebx, ecx, edx; in cpu_has_svm() local
94 cpuid(0x80000000, &eax, &ebx, &ecx, &edx); in cpu_has_svm()
95 if (eax < SVM_CPUID_FUNC) { in cpu_has_svm()
101 cpuid(0x80000001, &eax, &ebx, &ecx, &edx); in cpu_has_svm()
Dmicrocode.h101 u32 eax = 0x00000000; in x86_vendor() local
104 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_vendor()
129 u32 eax = 0x00000001; in x86_family() local
132 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_family()
134 return __x86_family(eax); in x86_family()
Dirqflags.h143 #define GET_CR0_INTO_EAX movl %cr0, %eax
183 pushl %eax; \
189 popl %eax;
Dstring_32.h282 : "a" (eax), "0" (count/4), "1" ((long)s) \ in __constant_c_and_count_memset()
289 register unsigned long eax asm("%eax") = pattern; in __constant_c_and_count_memset()
291 unsigned long eax = pattern; in __constant_c_and_count_memset() local
Dcalling.h227 pushl_cfi_reg eax
243 popl_cfi_reg eax
Dlguest.h33 unsigned long eax, ebx, ecx, edx; member
Duser32.h36 __u32 ebx, ecx, edx, esi, edi, ebp, eax; member
Dparavirt.h29 static inline void __cpuid(unsigned int *eax, unsigned int *ebx, in __cpuid() argument
32 PVOP_VCALL4(pv_cpu_ops.cpuid, eax, ebx, ecx, edx); in __cpuid()
897 COND_PUSH(set, CLBR_EAX, eax); \
905 COND_POP(set, CLBR_EAX, eax)
Dinst.h19 .ifc \r32,%eax
Dkvm_emulate.h210 u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
Dparavirt_types.h151 void (*cpuid)(unsigned int *eax, unsigned int *ebx,
/linux-4.1.27/arch/x86/platform/efi/
Defi_thunk_64.S70 movl %ds, %eax
72 movl %es, %eax
74 movl %ss, %eax
109 movl %eax, %ecx
111 andl $0xf0000000, %eax
132 movl $__KERNEL_DS, %eax
133 movl %eax, %ds
134 movl %eax, %es
135 movl %eax, %ss
140 movl %eax, %edi
[all …]
/linux-4.1.27/arch/x86/kvm/
Dcpuid.c36 u32 eax, ebx, ecx, edx, offset; in xstate_required_size() local
37 cpuid_count(0xD, feature_bit, &eax, &ebx, &ecx, &edx); in xstate_required_size()
39 ret = max(ret, offset + eax); in xstate_required_size()
90 (best->eax | ((u64)best->edx << 32)) & in kvm_update_cpuid()
97 if (best && (best->eax & (F(XSAVES) | F(XSAVEC)))) in kvm_update_cpuid()
107 if (best && ((best->eax & 0xff00) >> 8) != 48 && in kvm_update_cpuid()
108 ((best->eax & 0xff00) >> 8) != 0) in kvm_update_cpuid()
150 if (!best || best->eax < 0x80000008) in cpuid_query_maxphyaddr()
154 return best->eax & 0xff; in cpuid_query_maxphyaddr()
181 vcpu->arch.cpuid_entries[i].eax = cpuid_entries[i].eax; in kvm_vcpu_ioctl_set_cpuid()
[all …]
Dpmu.c467 union cpuid10_eax eax; in kvm_pmu_cpuid_update() local
480 eax.full = entry->eax; in kvm_pmu_cpuid_update()
483 pmu->version = eax.split.version_id; in kvm_pmu_cpuid_update()
487 pmu->nr_arch_gp_counters = min_t(int, eax.split.num_counters, in kvm_pmu_cpuid_update()
489 pmu->counter_bitmask[KVM_PMC_GP] = ((u64)1 << eax.split.bit_width) - 1; in kvm_pmu_cpuid_update()
491 ((1ull << eax.split.mask_length) - 1); in kvm_pmu_cpuid_update()
Dtss.h15 u32 eax; member
Dcpuid.h21 void kvm_cpuid(struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
Demulate.c336 FOP1E(op##l, eax) \
365 FOP2E(op##l, eax, edx) \
374 FOP2E(op##l, eax, edx) \
383 FOP2E(op##l, eax, cl) \
392 FOP2E(op##l, edx, eax) \
404 FOP3E(op##l, eax, edx, cl) \
2294 u32 eax, ebx, ecx, edx; in vendor_intel() local
2296 eax = ecx = 0; in vendor_intel()
2297 ctxt->ops->get_cpuid(ctxt, &eax, &ebx, &ecx, &edx); in vendor_intel()
2306 u32 eax, ebx, ecx, edx; in em_syscall_is_enabled() local
[all …]
Dsvm.c1206 u32 eax = 1; in svm_vcpu_reset() local
1210 kvm_cpuid(vcpu, &eax, &dummy, &dummy, &dummy); in svm_vcpu_reset()
1211 kvm_register_write(vcpu, VCPU_REGS_RDX, eax); in svm_vcpu_reset()
4095 entry->eax = 1; /* SVM revision 1 */ in svm_set_supported_cpuid()
Dx86.c5006 u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) in emulator_get_cpuid() argument
5008 kvm_cpuid(emul_to_vcpu(ctxt), eax, ebx, ecx, edx); in emulator_get_cpuid()
/linux-4.1.27/arch/x86/boot/
Dcpucheck.c126 u32 eax, edx; in check_cpu() local
128 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu()
129 eax &= ~(1 << 15); in check_cpu()
130 asm("wrmsr" : : "a" (eax), "d" (edx), "c" (ecx)); in check_cpu()
141 u32 eax, edx; in check_cpu() local
143 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu()
144 eax |= (1<<1)|(1<<7); in check_cpu()
145 asm("wrmsr" : : "a" (eax), "d" (edx), "c" (ecx)); in check_cpu()
153 u32 eax, edx; in check_cpu() local
156 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu()
[all …]
Dcopy.S39 movzbl %dl, %eax
40 imull $0x01010101,%eax
Dmemory.c62 if (oreg.eax != SMAP) { in detect_memory_e820()
Dpmjump.S76 jmpl *%eax # Jump to the 32-bit entrypoint
Dmain.c95 boot_params.ist_info.signature = oreg.eax; in query_ist()
Dboot.h241 u32 eax; member
/linux-4.1.27/arch/x86/lguest/
Dhead_32.S37 movl $LHCALL_LGUEST_INIT, %eax
42 movl $LHCALL_NEW_PGTABLE, %eax
63 LGUEST_PATCH(pushf, movl lguest_data+LGUEST_DATA_irq_enabled, %eax)
106 pushl %eax
107 movl $LHCALL_SEND_INTERRUPTS, %eax
111 popl %eax
121 movl %eax, lguest_data+LGUEST_DATA_irq_enabled
130 testl lguest_data+LGUEST_DATA_irq_pending, %eax
/linux-4.1.27/tools/power/cpupower/debug/i386/
Dintel_gsic.c26 r.eax = 0x0000E980; in main()
35 if (r.eax == 0x47534943) { in main()
38 (r.eax >> 24) & 0xff, in main()
39 (r.eax >> 16) & 0xff, in main()
40 (r.eax >> 8) & 0xff, in main()
41 (r.eax) & 0xff); in main()
64 printf("eax = 0x%.8x\n", r.eax); in main()
/linux-4.1.27/arch/x86/kernel/cpu/microcode/
Damd_early.c120 u32 rev, eax, ebx, ecx, edx; in apply_ucode_in_initrd() local
145 eax = 0x00000001; in apply_ucode_in_initrd()
147 native_cpuid(&eax, &ebx, &ecx, &edx); in apply_ucode_in_initrd()
159 eq_id = find_equiv_id(eq, eax); in apply_ucode_in_initrd()
201 native_rdmsr(MSR_AMD64_PATCH_LEVEL, rev, eax); in apply_ucode_in_initrd()
307 u32 rev, eax; in load_ucode_amd_ap() local
317 rdmsr(MSR_AMD64_PATCH_LEVEL, rev, eax); in load_ucode_amd_ap()
320 uci->cpu_sig.sig = eax; in load_ucode_amd_ap()
322 eax = cpuid_eax(0x00000001); in load_ucode_amd_ap()
325 eq_id = find_equiv_id(eq, eax); in load_ucode_amd_ap()
[all …]
Dintel_early.c356 unsigned int eax, ebx, ecx, edx; in collect_cpu_info_early() local
364 eax = 0x00000001; in collect_cpu_info_early()
366 native_cpuid(&eax, &ebx, &ecx, &edx); in collect_cpu_info_early()
367 csig.sig = eax; in collect_cpu_info_early()
/linux-4.1.27/arch/x86/purgatory/
Dsetup-x86_64.S23 movl $0x18, %eax /* data segment */
24 movl %eax, %ds
25 movl %eax, %es
26 movl %eax, %ss
27 movl %eax, %fs
28 movl %eax, %gs
Dentry64.S24 movl $0x18, %eax /* data segment */
25 movl %eax, %ds
26 movl %eax, %es
27 movl %eax, %ss
28 movl %eax, %fs
29 movl %eax, %gs
/linux-4.1.27/arch/x86/oprofile/
Dop_model_ppro.c79 union cpuid10_eax eax; in ppro_setup_ctrs() local
80 eax.full = cpuid_eax(0xa); in ppro_setup_ctrs()
86 if (!(eax.split.version_id == 0 && in ppro_setup_ctrs()
90 if (counter_width < eax.split.bit_width) in ppro_setup_ctrs()
91 counter_width = eax.split.bit_width; in ppro_setup_ctrs()
210 union cpuid10_eax eax; in arch_perfmon_setup_counters() local
212 eax.full = cpuid_eax(0xa); in arch_perfmon_setup_counters()
215 if (eax.split.version_id == 0 && __this_cpu_read(cpu_info.x86) == 6 && in arch_perfmon_setup_counters()
217 eax.split.version_id = 2; in arch_perfmon_setup_counters()
218 eax.split.num_counters = 2; in arch_perfmon_setup_counters()
[all …]
/linux-4.1.27/arch/x86/kernel/acpi/
Dwakeup_32.S25 movl %cr3, %eax
26 movl %eax, %cr3
32 movl %cs:saved_magic, %eax
33 cmpl $0x12345678, %eax
37 movl saved_eip, %eax
38 jmp *%eax
50 leal 4(%esp), %eax
51 movl %eax, saved_context_esp
Dcstate.c62 unsigned int eax; member
76 unsigned int eax, ebx, ecx, edx; in acpi_processor_ffh_cstate_probe_cpu() local
81 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); in acpi_processor_ffh_cstate_probe_cpu()
131 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe()
139 percpu_entry->states[cx->index].eax = cx->address; in acpi_processor_ffh_cstate_probe()
161 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, in acpi_processor_ffh_cstate_enter()
Dwakeup_64.S43 xorl %eax, %eax
75 xorl %eax, %eax
110 xorl %eax, %eax
/linux-4.1.27/arch/x86/platform/olpc/
Dxo1-wakeup.S25 movl $initial_page_table - __PAGE_OFFSET, %eax
26 movl %eax, %cr3
28 movl saved_cr4, %eax
29 movl %eax, %cr4
31 movl saved_cr0, %eax
32 movl %eax, %cr0
50 movl %cr3, %eax
51 movl %eax, %cr3
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_synth.c340 int ecx = vol[1], eax = vol[0];
353 eax >>= 8;
354 ecx = eax;
360 voice->parm3 |= (eax & 0x7f);
363 voice->parm3 |= (eax & 0xFE00) << 5;
373 u32 eax, edx;
376 eax = ((sr << 0xf) * 0x57619F1) & 0xffffffff;
383 eax = 0x7fff;
386 eax = 7;
389 eax--;
[all …]
Dau88x0_eq.c610 u32 eax, ebx; in vortex_Eqlzr_SetA3dBypassGain() local
615 eax = eq->this0e; in vortex_Eqlzr_SetA3dBypassGain()
617 eax = eq->this0a; in vortex_Eqlzr_SetA3dBypassGain()
618 ebx = (eax * eq->this58) >> 0x10; in vortex_Eqlzr_SetA3dBypassGain()
619 eax = (eax * eq->this5c) >> 0x10; in vortex_Eqlzr_SetA3dBypassGain()
620 vortex_EqHw_SetA3DBypassGain(vortex, ebx, eax); in vortex_Eqlzr_SetA3dBypassGain()
626 u32 eax, ebx; in vortex_Eqlzr_ProgramA3dBypassGain() local
629 eax = eq->this0e; in vortex_Eqlzr_ProgramA3dBypassGain()
631 eax = eq->this0a; in vortex_Eqlzr_ProgramA3dBypassGain()
632 ebx = (eax * eq->this58) >> 0x10; in vortex_Eqlzr_ProgramA3dBypassGain()
[all …]
Dau88x0_core.c301 int esp14 = -1, esp18, eax, ebx, edx, ebp, esi = 0; in vortex_mixer_delWTD() local
304 eax = hwread(vortex->mmio, VORTEX_MIXER_SR); in vortex_mixer_delWTD()
305 if (((1 << ch) & eax) == 0) { in vortex_mixer_delWTD()
306 dev_err(vortex->card->dev, "mix ALARM %x\n", eax); in vortex_mixer_delWTD()
701 int esp14 = -1, esp18, eax, ebx, edx, ebp, esi = 0; in vortex_src_delWTD() local
704 eax = hwread(vortex->mmio, VORTEX_SRCBLOCK_SR); in vortex_src_delWTD()
705 if (((1 << ch) & eax) == 0) { in vortex_src_delWTD()
/linux-4.1.27/drivers/cpufreq/
Dlongrun.c143 u32 eax, ebx, ecx, edx; in longrun_get() local
148 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_get()
149 pr_debug("cpuid eax is %u\n", eax); in longrun_get()
151 return eax * 1000; in longrun_get()
169 u32 eax, ebx, ecx, edx; in longrun_determine_freqs() local
216 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs()
227 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs()
232 pr_debug("percentage is %u %%, freq is %u MHz\n", ecx, eax); in longrun_determine_freqs()
242 if ((ecx > 95) || (ecx == 0) || (eax < ebx)) in longrun_determine_freqs()
245 edx = ((eax - ebx) * 100) / (100 - ecx); in longrun_determine_freqs()
Dpowernow-k8.c474 u32 eax, ebx, ecx, edx; in check_supported_cpu() local
479 eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE); in check_supported_cpu()
481 if ((eax & CPUID_XFAM) == CPUID_XFAM_K8) { in check_supported_cpu()
482 if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) || in check_supported_cpu()
483 ((eax & CPUID_XMOD) > CPUID_XMOD_REV_MASK)) { in check_supported_cpu()
484 pr_info("Processor cpuid %x not supported\n", eax); in check_supported_cpu()
488 eax = cpuid_eax(CPUID_GET_MAX_CAPABILITIES); in check_supported_cpu()
489 if (eax < CPUID_FREQ_VOLT_CAPABILITIES) { in check_supported_cpu()
494 cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); in check_supported_cpu()
Dpowernow-k7.c121 unsigned int maxei, eax, ebx, ecx, edx; in check_powernow() local
141 cpuid(0x80000007, &eax, &ebx, &ecx, &edx); in check_powernow()
/linux-4.1.27/tools/perf/arch/x86/tests/
Dregs_load.S67 movl %eax, AX(%edi)
72 pop %eax
73 movl %eax, DI(%edi)
76 leal 4(%esp), %eax /* exclude this call. */
77 movl %eax, SP(%edi)
79 movl 0(%esp), %eax
80 movl %eax, IP(%edi)
/linux-4.1.27/arch/x86/ia32/
Dia32entry.S35 xorl %eax,%eax
60 movl %eax,%eax /* zero extension */
127 movl %eax, %eax
248 movl %eax,%edi /* 1st arg: syscall number */
250 movl RAX(%rsp),%eax /* reload syscall number */
265 movl %eax,%esi /* second arg, syscall return value */
266 cmpl $-MAX_ERRNO,%eax /* is it an error ? */
268 movslq %eax, %rsi /* if error sign extend to 64 bits */
363 movl %eax,%eax
519 movl %eax,%eax
Dia32_aout.c86 dump->regs.eax = regs->ax; in dump_thread32()
/linux-4.1.27/drivers/hwmon/
Dcoretemp.c135 u32 eax, edx; in show_crit_alarm() local
140 rdmsr_on_cpu(tdata->cpu, tdata->status_reg, &eax, &edx); in show_crit_alarm()
142 return sprintf(buf, "%d\n", (eax >> 5) & 1); in show_crit_alarm()
166 u32 eax, edx; in show_temp() local
175 rdmsr_on_cpu(tdata->cpu, tdata->status_reg, &eax, &edx); in show_temp()
182 tdata->temp = tdata->tjmax - ((eax >> 16) & 0x7f) * 1000; in show_temp()
247 u32 eax, edx; in adjust_tjmax() local
288 err = rdmsr_safe_on_cpu(id, 0x17, &eax, &edx); in adjust_tjmax()
294 } else if (c->x86_model < 0x17 && !(eax & 0x10000000)) { in adjust_tjmax()
322 err = rdmsr_safe_on_cpu(id, 0xee, &eax, &edx); in adjust_tjmax()
[all …]
Dvia-cputemp.c81 u32 eax, edx; in show_temp() local
84 err = rdmsr_safe_on_cpu(data->id, data->msr_temp, &eax, &edx); in show_temp()
88 return sprintf(buf, "%lu\n", ((unsigned long)eax & 0xffffff) * 1000); in show_temp()
95 u32 eax, edx; in show_cpu_vid() local
98 err = rdmsr_safe_on_cpu(data->id, data->msr_vid, &eax, &edx); in show_cpu_vid()
129 u32 eax, edx; in via_cputemp_probe() local
156 err = rdmsr_safe_on_cpu(data->id, data->msr_temp, &eax, &edx); in via_cputemp_probe()
/linux-4.1.27/lib/raid6/
Dx86.h54 u32 eax, ebx, ecx, edx; in boot_cpu_has() local
56 eax = (flag & 0x100) ? 7 : in boot_cpu_has()
61 : "+a" (eax), "=b" (ebx), "=d" (edx), "+c" (ecx)); in boot_cpu_has()
/linux-4.1.27/drivers/thermal/
Dx86_pkg_temp_thermal.c144 u32 eax, edx; in get_tj_max() local
148 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tj_max()
152 val = (eax >> 16) & 0xff; in get_tj_max()
169 u32 eax, edx; in sys_get_curr_temp() local
174 &eax, &edx); in sys_get_curr_temp()
175 if (eax & 0x80000000) { in sys_get_curr_temp()
177 ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp()
188 u32 eax, edx; in sys_get_trip_temp() local
208 MSR_IA32_PACKAGE_THERM_INTERRUPT, &eax, &edx); in sys_get_trip_temp()
212 thres_reg_value = (eax & mask) >> shift; in sys_get_trip_temp()
[all …]
Dintel_powerclamp.c183 unsigned int eax, ebx, ecx, edx; in find_target_mwait() local
191 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); in find_target_mwait()
447 unsigned long eax = target_mwait; in clamp_thread() local
455 mwait_idle_with_hints(eax, ecx); in clamp_thread()
Dintel_soc_dts_thermal.c84 u32 eax, edx; in get_tj_max() local
88 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tj_max()
92 val = (eax >> 16) & 0xff; in get_tj_max()
/linux-4.1.27/drivers/thermal/int340x_thermal/
Dprocessor_thermal_device.c127 u32 eax, edx; in get_tjmax() local
131 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tjmax()
135 val = (eax >> 16) & 0xff; in get_tjmax()
145 u32 eax, edx; in read_temp_msr() local
152 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_THERM_STATUS, &eax, in read_temp_msr()
157 if (eax & 0x80000000) { in read_temp_msr()
158 curr_temp_off = (eax >> 16) & 0x7f; in read_temp_msr()
/linux-4.1.27/Documentation/virtual/kvm/
Dcpuid.txt13 returns : eax = 0x40000001,
18 The value in eax corresponds to the maximum cpuid function present in this leaf,
20 Note also that old hosts set eax value to 0x0. This should
27 eax = and OR'ed group of (1 << flag), where each flags is:
Dapi.txt517 __u32 eax;
1191 __u32 eax;
1218 function: the eax value used to obtain the entry
1231 eax, ebx, ecx, edx: the values returned by the cpuid instruction for
2714 __u32 eax;
2744 function: the eax value used to obtain the entry
2757 eax, ebx, ecx, edx: the values returned by the cpuid instruction for
/linux-4.1.27/drivers/video/fbdev/
Duvesafb.c369 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_save()
377 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_state_save()
380 task->t.regs.eax, err); in uvesafb_vbe_state_save()
401 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_restore()
409 if (err || (task->t.regs.eax & 0xffff) != 0x004f) in uvesafb_vbe_state_restore()
412 task->t.regs.eax, err); in uvesafb_vbe_state_restore()
422 task->t.regs.eax = 0x4f00; in uvesafb_vbe_getinfo()
429 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_getinfo()
431 "(eax=0x%x, err=%d)\n", (u32)task->t.regs.eax, in uvesafb_vbe_getinfo()
502 task->t.regs.eax = 0x4f01; in uvesafb_vbe_getmodes()
[all …]
Dneofb.c1301 regs.eax = 0xff00; /* HCI_SET */ in neofb_blank()
1342 regs.eax = 0xff00; /* HCI_SET */ in neofb_blank()
/linux-4.1.27/arch/x86/vdso/vdso32/
Dsigreturn.S24 popl %eax /* XXX does this mean it needs unwind info? */
25 movl $__NR_sigreturn, %eax
36 movl $__NR_rt_sigreturn, %eax
/linux-4.1.27/drivers/staging/unisys/visorutil/
Dvisorkmodutils.c40 unsigned int eax, ebx, ecx, edx; in visorutil_spar_detect() local
44 cpuid(UNISYS_SPAR_LEAF_ID, &eax, &ebx, &ecx, &edx); in visorutil_spar_detect()
/linux-4.1.27/drivers/hv/
Dhv.c56 unsigned int eax; in query_hypervisor_info() local
67 eax = 0; in query_hypervisor_info()
72 cpuid(op, &eax, &ebx, &ecx, &edx); in query_hypervisor_info()
74 max_leaf = eax; in query_hypervisor_info()
77 eax = 0; in query_hypervisor_info()
82 cpuid(op, &eax, &ebx, &ecx, &edx); in query_hypervisor_info()
83 host_info_eax = eax; in query_hypervisor_info()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Dcpuid.c26 unsigned int eax, ebx, ecx, edx; \
27 __cpuid(op, eax, ebx, ecx, edx); \
30 cpuid_func(eax);
/linux-4.1.27/Documentation/x86/
Dexception-tables.txt129 > movl current_set,%eax
130 > cmpl $24,788(%eax)
135 > movl %edx,%eax
141 > 3: movl $-14,%eax
189 > c017e787 <do_con_write+c3> movl 0xc01c7bec,%eax
190 > c017e78c <do_con_write+c8> cmpl $0x18,0x314(%eax)
194 > c017e79f <do_con_write+db> movl %edx,%eax
206 > c0199ff5 <.fixup+10b5> movl $0xfffffff2,%eax
232 3: movl $-14,%eax
246 the original assembly code: > 3: movl $-14,%eax
[all …]
/linux-4.1.27/arch/x86/pci/
Dpcbios.c129 u32 signature, eax, ebx, ecx; in check_pcibios() local
143 "=a" (eax), in check_pcibios()
151 status = (eax >> 8) & 0xff; in check_pcibios()
152 hw_mech = eax & 0xff; in check_pcibios()
Dxen.c442 uint32_t eax = cpuid_eax(xen_cpuid_base() + 4); in xen_msi_init() local
444 if (((eax & XEN_HVM_CPUID_X2APIC_VIRT) && x2apic_mode) || in xen_msi_init()
445 ((eax & XEN_HVM_CPUID_APIC_ACCESS_VIRT) && cpu_has_apic)) in xen_msi_init()
/linux-4.1.27/drivers/idle/
Dintel_idle.c122 #define MWAIT2flg(eax) ((eax & 0xFF) << 24) argument
664 unsigned long eax = flg2MWAIT(state->flags); in intel_idle() local
668 cstate = (((eax) >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK) + 1; in intel_idle()
680 mwait_idle_with_hints(eax, ecx); in intel_idle()
698 unsigned long eax = flg2MWAIT(drv->states[index].flags); in intel_idle_freeze() local
700 mwait_idle_with_hints(eax, ecx); in intel_idle_freeze()
856 unsigned int eax, ebx, ecx; in intel_idle_probe() local
876 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &mwait_substates); in intel_idle_probe()
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c139 unsigned int eax, ebx, ecx, edx, max_level; in validate_cpuid() local
142 eax = ebx = ecx = edx = 0; in validate_cpuid()
176 asm("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (6)); in validate_cpuid()
/linux-4.1.27/drivers/input/misc/
Dwistron_btns.c69 u32 eax, ebx, ecx; member
82 : "=a" (regs->eax), "=b" (regs->ebx), "=c" (regs->ecx) in call_bios()
83 : "0" (regs->eax), "1" (regs->ebx), "2" (regs->ecx), in call_bios()
164 regs.eax = 0x9610; in bios_pop_queue()
169 return regs.eax; in bios_pop_queue()
177 regs.eax = 0x9610; in bios_attach()
187 regs.eax = 0x9610; in bios_detach()
197 regs.eax = 0x9610; in bios_get_cmos_address()
209 regs.eax = 0x9610; in bios_get_default_setting()
213 return regs.eax; in bios_get_default_setting()
[all …]
/linux-4.1.27/Documentation/trace/
Dtracepoint-analysis.txt304 0.00 : 34eeb: 0f 18 08 prefetcht0 (%eax)
310 12.40 : 34eee: 66 0f 7f 80 40 ff ff movdqa %xmm0,-0xc0(%eax)
312 12.40 : 34ef6: 66 0f 7f 80 50 ff ff movdqa %xmm0,-0xb0(%eax)
314 12.39 : 34efe: 66 0f 7f 80 60 ff ff movdqa %xmm0,-0xa0(%eax)
316 12.67 : 34f06: 66 0f 7f 80 70 ff ff movdqa %xmm0,-0x90(%eax)
318 12.58 : 34f0e: 66 0f 7f 40 80 movdqa %xmm0,-0x80(%eax)
319 12.31 : 34f13: 66 0f 7f 40 90 movdqa %xmm0,-0x70(%eax)
320 12.40 : 34f18: 66 0f 7f 40 a0 movdqa %xmm0,-0x60(%eax)
321 12.31 : 34f1d: 66 0f 7f 40 b0 movdqa %xmm0,-0x50(%eax)
/linux-4.1.27/Documentation/
Dstatic-keys.txt202 ffffffff810442c7: 31 c0 xor %eax,%eax
209 ffffffff810441f0: 8b 05 8a 52 d8 00 mov 0xd8528a(%rip),%eax # ffffffff81dc948…
212 ffffffff810441fa: 85 c0 test %eax,%eax
224 ffffffff8104422c: 31 c0 xor %eax,%eax
DBUG-HUNTING192 > mov 0x13c(%ebx), %eax ! %eax = inet_sk(sk)->opt
Doops-tracing.txt203 Aug 29 09:51:01 blizard kernel: eax: 315e97cc ebx: 003a6f80 ecx: 001be77b edx: 00237c0c
Dkmemcheck.txt504 ffffffff8104ede0: mov $0x30,%eax
/linux-4.1.27/include/uapi/linux/
Dtoshiba.h28 unsigned int eax; member
/linux-4.1.27/arch/x86/crypto/sha-mb/
DMakefile5 avx2_supported := $(call as-instr,vpgatherdd %ymm0$(comma)(%eax$(comma)%ymm1\
Dsha1_mb_mgr_submit_avx2.S87 DWORD_len = %eax
/linux-4.1.27/arch/x86/include/uapi/asm/
Dptrace.h24 long eax; member
Dvm86.h72 long eax; member
Dkvm.h192 __u32 eax; member
210 __u32 eax; member
Dsigcontext.h117 unsigned long eax; member
/linux-4.1.27/include/uapi/video/
Duvesafb.h13 __u32 eax; member
/linux-4.1.27/scripts/
Dmarkup_oops.pl53 $regs{"%eax"} = $1;
64 $regs{"%eax"} = $1;
/linux-4.1.27/arch/s390/kvm/
Dgaccess.c367 int eax, rc; in ar_translation() local
423 eax = (vcpu->arch.sie_block->gcr[8] >> 16) & 0xffff; in ar_translation()
424 if (ale.aleax != eax) { in ar_translation()
425 if (eax / 16 > aste.atl) in ar_translation()
428 authority_table_addr = aste.ato * 4 + eax / 4; in ar_translation()
436 if ((authority_table & (0x40 >> ((eax & 3) * 2))) == 0) in ar_translation()
/linux-4.1.27/arch/x86/include/asm/xen/
Dinterface_32.h55 uint32_t eax; member
/linux-4.1.27/tools/perf/Documentation/
Dexamples.txt203 0.00 : 31a2e95602: b8 38 00 00 00 mov $0x38,%eax
207 0.00 : 31a2e95615: 85 c0 test %eax,%eax
/linux-4.1.27/tools/lguest/
Dlguest.c1547 case 0: return getreg(eax) & mask; in getreg_num()
1574 case 0: setreg(eax, val | (getreg(eax) & ~mask)); return; in setreg_num()
1614 unsigned int eax, port, mask; in emulate_insn() local
1695 eax = getreg(eax); in emulate_insn()
1707 eax &= ~mask; in emulate_insn()
1709 eax |= val & mask; in emulate_insn()
1711 setreg(eax, eax); in emulate_insn()
1714 if (!pci_addr_iowrite(port, mask, eax)) in emulate_insn()
1717 if (!pci_data_iowrite(port, mask, eax)) in emulate_insn()
1725 in ? "IN" : "OUT", mask, port, eax); in emulate_insn()
/linux-4.1.27/arch/x86/
DMakefile152 asinstr += $(call as-instr,crc32l %eax$(comma)%eax,-DCONFIG_AS_CRC32=1)
/linux-4.1.27/drivers/acpi/
Dacpi_pad.c47 unsigned int eax, ebx, ecx, edx; in power_saving_mwait_init() local
57 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); in power_saving_mwait_init()
/linux-4.1.27/drivers/platform/x86/
Dacer-wmi.c627 u32 eax; member
634 u32 eax; member
728 args.eax = ACER_AMW0_WRITE; in AMW0_set_u32()
772 args.eax = 0x86; in AMW0_find_mailled()
842 args.eax = ACER_AMW0_WRITE; in AMW0_set_capabilities()
861 if (ret.eax & 0x1) in AMW0_set_capabilities()
884 if (ret.eax & 0x1) in AMW0_set_capabilities()
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_xs.c667 uint32_t eax, ebx, ecx, edx, base; in xen_strict_xenbus_quirk() local
670 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in xen_strict_xenbus_quirk()
672 if ((eax >> 16) < 4) in xen_strict_xenbus_quirk()
/linux-4.1.27/drivers/xen/
Dxen-acpi-processor.c448 u32 eax, ebx, ecx, edx; in check_prereq() local
449 cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); in check_prereq()
/linux-4.1.27/Documentation/networking/
Dfilter.txt501 25: cmp $0x800,%eax
505 36: cmp $0x1,%eax
507 3b: mov $0xffff,%eax
509 42: xor %eax,%eax
537 25: cmp $0x800,%eax
545 36: cmp $0x1,%eax
549 3b: mov $0xffff,%eax
553 42: xor %eax,%eax
/linux-4.1.27/Documentation/zh_CN/
Doops-tracing.txt167 Aug 29 09:51:01 blizard kernel: eax: 315e97cc ebx: 003a6f80 ecx: 001be77b edx: 00237c0c
/linux-4.1.27/tools/power/x86/turbostat/
Dturbostat.c2572 unsigned int eax, ebx, ecx, edx, max_level; in process_cpuid() local
2575 eax = ebx = ecx = edx = 0; in process_cpuid()
2614 __get_cpuid(0x80000007, &eax, &ebx, &ecx, &edx); in process_cpuid()
2623 __get_cpuid(0x6, &eax, &ebx, &ecx, &edx); in process_cpuid()
2625 do_dts = eax & (1 << 0); in process_cpuid()
2626 do_ptm = eax & (1 << 6); in process_cpuid()
/linux-4.1.27/
DREADME340 eax: xxxxxxxx ebx: xxxxxxxx ecx: xxxxxxxx edx: xxxxxxxx
DCREDITS3458 W: http://www.eax.com
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3220 esp = 1342630420, ebx = 1348150624, edx = 1280, ecx = 0, eax = 0,
3573 esp = 1342630864, ebx = 256, edx = 0, ecx = 256, eax = 1024, trapno = 14,
3625 0x1001c2bf <block_write+1103>: addl %eax,0xc(%ebp)