Home
last modified time | relevance | path

Searched refs:ecx (Results 1 – 25 of 122) sorted by relevance

12345

/linux/arch/x86/include/asm/
H A Dmwait.h28 static __always_inline void __monitor(const void *eax, u32 ecx, u32 edx) in __monitor() argument
34 asm volatile("monitor" :: "a" (eax), "c" (ecx), "d" (edx)); in __monitor()
37 static __always_inline void __monitorx(const void *eax, u32 ecx, u32 edx) in __monitorx() argument
39 asm volatile("monitorx" :: "a" (eax), "c" (ecx), "d"(edx)); in __monitorx()
42 static __always_inline void __mwait(u32 eax, u32 ecx) in __mwait() argument
48 asm volatile("mwait" :: "a" (eax), "c" (ecx)); in __mwait()
77 static __always_inline void __mwaitx(u32 eax, u32 ebx, u32 ecx) in __mwaitx() argument
81 asm volatile("mwaitx" :: "a" (eax), "b" (ebx), "c" (ecx)); in __mwaitx()
93 static __always_inline void __sti_mwait(u32 eax, u32 ecx) in __sti_mwait() argument
96 asm volatile("sti; mwait" :: "a" (eax), "c" (ecx)); in __sti_mwait()
[all …]
/linux/arch/x86/lib/
H A Dcopy_mc_64.S31 movl %esi, %ecx
32 andl $7, %ecx
33 subl $8, %ecx
34 negl %ecx
35 subl %ecx, %edx
42 decl %ecx
46 movl %edx, %ecx
48 shrl $3, %ecx
57 decl %ecx
66 movl %edx, %ecx
[all …]
H A Datomic64_cx8_32.S13 movl %ecx, %edx
25 read64 %ecx
57 movl %ecx, %ebp
59 read64_nonatomic %ecx
62 movl %edx, %ecx
64 \insc\()l %edi, %ecx
71 movl %ecx, %edx
90 movl %edx, %ecx
92 \insc\()l $0, %ecx
99 movl %ecx, %edx
[all …]
H A Dchecksum_32.S53 movl 16(%esp),%ecx # Function arg: int len
61 dec %ecx
70 subl $2, %ecx # Alignment uses up two bytes.
72 addl $2, %ecx # ecx was < 2. Deal with it.
79 movl %ecx, %edx
80 shrl $5, %ecx
100 dec %ecx
103 2: movl %edx, %ecx
112 4: andl $3, %ecx
114 cmpl $2, %ecx
[all …]
H A Dcopy_user_64.S39 cmp $8,%ecx
42 testl %ecx,%ecx
64 sub $8,%ecx
66 cmp $8,%ecx
102 movl %eax,%ecx
103 testl %ecx,%ecx
H A Dcsum-copy_64.S49 movl %edx, %ecx
50 cmpl $8, %ecx
56 movl %ecx, %r12d
135 andl $63, %ecx
136 shrl $3, %ecx
144 decl %ecx
161 movl %r10d, %ecx
162 andl $7, %ecx
164 shrl $1, %ecx
174 decl %ecx
[all …]
H A Datomic64_386_32.S35 #define v %ecx
46 movl %ecx, 4(v)
56 movl %ecx, 4(v)
61 #define v %ecx
69 #define v %ecx
79 #define v %ecx
87 #define v %ecx
142 addl %eax, %ecx
146 cmpl %eax, %ecx
/linux/arch/x86/kernel/
H A Dftrace_32.S45 pushl %ecx
61 movl function_trace_op, %ecx
70 popl %ecx
128 pushl %ecx
136 movl function_trace_op, %ecx # 3rd argument: ftrace_pos
146 movl PT_EIP(%esp), %ecx
147 movl %ecx, -4(%eax)
150 movl PT_EAX(%esp), %ecx
151 movl %ecx, -8(%eax)
154 popl %ecx
[all …]
H A Dhead_64.S69 movl $MSR_GS_BASE, %ecx
223 andl %edx, %ecx
226 btsl $X86_CR4_PSE_BIT, %ecx
232 btsl $X86_CR4_PGE_BIT, %ecx
244 movl smpboot_control(%rip), %ecx
245 testl $STARTUP_READ_APICID, %ecx
251 andl $(~STARTUP_PARALLEL_MASK), %ecx
256 mov $MSR_IA32_APICBASE, %ecx
285 mov $APIC_X2APIC_ID_MSR, %ecx
290 xorl %ecx, %ecx
[all …]
/linux/arch/x86/realmode/rm/
H A Dreboot.S40 movl $MSR_EFER, %ecx
60 movl $16, %ecx
61 movl %ecx, %ds
62 movl %ecx, %es
63 movl %ecx, %fs
64 movl %ecx, %gs
65 movl %ecx, %ss
98 xorl %ecx, %ecx
103 movl %ecx, %cr3
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv17 0x0, 0, ecx, 31:0, cpu_vendorid_2 , CPU vendor ID string bytes 8 - 11
33 0x1, 0, ecx, 0, pni , Streaming SIMD Extensions 3 (SSE3)
34 0x1, 0, ecx, 1, pclmulqdq , PCLMULQDQ instruction support
35 0x1, 0, ecx, 2, dtes64 , 64-bit DS save area
36 0x1, 0, ecx, 3, monitor , MONITOR/MWAIT support
37 0x1, 0, ecx, 4, ds_cpl , CPL Qualified Debug Store
38 0x1, 0, ecx, 5, vmx , Virtual Machine Extensions
39 0x1, 0, ecx, 6, smx , Safer Mode Extensions
40 0x1, 0, ecx, 7, est , Enhanced Intel SpeedStep
41 0x1, 0, ecx,
[all...]
H A Dkcpuid.c33 /* descriptor info for eax/ebx/ecx/edx */
174 /* Return true is the input eax/ebx/ecx/edx are all zero */ in raw_dump_range()
241 u32 eax, ebx, ecx, edx; in setup_cpuid_range()
243 cpuid(range->index, max_func, ebx, ecx, edx); in setup_cpuid_range()
268 cpuid(f, eax, ebx, ecx, edx); in setup_cpuid_range()
270 allzero = cpuid_store(range, f, 0, eax, ebx, ecx, edx); in setup_cpuid_range()
295 cpuid_count(f, subleaf, eax, ebx, ecx, edx); in parse_line()
297 allzero = cpuid_store(range, f, subleaf, eax, ebx, ecx, edx); in parse_line()
52 u32 eax, ebx, ecx, edx; global() member
88 cpuid(u32 * eax,u32 * ebx,u32 * ecx,u32 * edx) cpuid() argument
201 u32 eax, ebx, ecx, edx, f = input_eax; setup_cpuid_range() local
579 u32 eax, ebx, ecx, edx; setup_platform_cpuid() local
/linux/arch/x86/boot/compressed/
H A Dmem_encrypt.S39 movl $MSR_AMD64_SEV, %ecx /* Read the SEV MSR */
69 movl $MSR_AMD64_SEV_ES_GHCB, %ecx
75 movl %eax, %ecx
76 andl $0x3ffff000, %ecx # Bits [12-29] MBZ
96 pushl %ecx
155 popl %ecx
170 movl $MSR_AMD64_SEV_ES_GHCB, %ecx
190 leal (%ecx, %edx, 8), %ecx
198 movl %edx, (%ecx)
206 movl %edx, 4(%ecx)
[all …]
H A Dsev.c331 unsigned int eax, ebx, ecx, edx; in sev_check_cpu_support() local
335 ecx = 0; in sev_check_cpu_support()
336 native_cpuid(&eax, &ebx, &ecx, &edx); in sev_check_cpu_support()
349 ecx = 0; in sev_check_cpu_support()
350 native_cpuid(&eax, &ebx, &ecx, &edx); in sev_check_cpu_support()
489 unsigned int eax, ebx, ecx, edx; in early_is_sevsnp_guest() local
495 ecx = 0; in early_is_sevsnp_guest()
496 native_cpuid(&eax, &ebx, &ecx, &edx); in early_is_sevsnp_guest()
H A Dhead_32.S117 movl $(_bss - startup_32), %ecx
118 shrl $2, %ecx
148 leal _ebss@GOTOFF(%ebx), %ecx
149 subl %edi, %ecx
150 shrl $2, %ecx
/linux/drivers/char/
H A Dtoshiba.c123 unsigned long eax,ecx,flags; in tosh_emulate_fan() local
127 ecx = regs->ecx & 0xffff; in tosh_emulate_fan()
139 regs->ecx = (unsigned int) (al & 0x01); in tosh_emulate_fan()
141 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan()
150 regs->ecx = 0x00; in tosh_emulate_fan()
152 if ((eax==0xff00) && (ecx==0x0001)) { in tosh_emulate_fan()
161 regs->ecx = 0x01; in tosh_emulate_fan()
175 regs->ecx = al & 0x01; in tosh_emulate_fan()
177 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan()
185 regs->ecx = 0x00; in tosh_emulate_fan()
[all …]
/linux/arch/x86/kernel/cpu/microcode/
H A Dinternal.h64 #define CPUID_IS(a, b, c, ebx, ecx, edx) \ argument
65 (!(((ebx) ^ (a)) | ((edx) ^ (b)) | ((ecx) ^ (c))))
79 u32 ebx, ecx = 0, edx; in x86_cpuid_vendor() local
81 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_cpuid_vendor()
83 if (CPUID_IS(CPUID_INTEL1, CPUID_INTEL2, CPUID_INTEL3, ebx, ecx, edx)) in x86_cpuid_vendor()
86 if (CPUID_IS(CPUID_AMD1, CPUID_AMD2, CPUID_AMD3, ebx, ecx, edx)) in x86_cpuid_vendor()
95 u32 ebx, ecx = 0, edx; in x86_cpuid_family() local
97 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_cpuid_family()
/linux/tools/testing/selftests/kvm/x86/
H A Dcpuid_test.c20 u32 ecx; member
30 u32 eax, ebx, ecx, edx; in test_guest_cpuids() local
35 &eax, &ebx, &ecx, &edx); in test_guest_cpuids()
39 GUEST_ASSERT_EQ(ecx, guest_cpuid->entries[i].ecx); in test_guest_cpuids()
109 (e1->ecx & mask.ecx) == (e2->ecx & mask.ecx) && in compare_cpuids()
114 e1->ecx & mask.ecx, e1->edx & mask.edx, in compare_cpuids()
116 e2->ecx & mask.ecx, e2->edx & mask.edx); in compare_cpuids()
/linux/arch/x86/boot/
H A Dpmjump.S51 movl %ecx, %ds
52 movl %ecx, %es
53 movl %ecx, %fs
54 movl %ecx, %gs
55 movl %ecx, %ss
65 xorl %ecx, %ecx
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_msg.c105 u32 ecx, edx, esi, edi; in vmw_open_channel() local
109 &ecx, &edx, &esi, &edi); in vmw_open_channel()
111 if ((HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS) == 0) in vmw_open_channel()
132 u32 ecx; in vmw_close_channel() local
138 &ecx); in vmw_close_channel()
140 if ((HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS) == 0) in vmw_close_channel()
158 u32 ebx, ecx; in vmw_port_hb_out() local
175 ecx = MESSAGE_STATUS_SUCCESS << 16; in vmw_port_hb_out()
176 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out()
189 &ecx); in vmw_port_hb_out()
[all …]
/linux/arch/x86/kernel/acpi/
H A Dcstate.c115 unsigned int ecx; member
128 unsigned int eax, ebx, ecx, edx; in acpi_processor_ffh_cstate_probe_cpu() local
133 cpuid(CPUID_LEAF_MWAIT, &eax, &ebx, &ecx, &edx); in acpi_processor_ffh_cstate_probe_cpu()
151 if (!(ecx & CPUID5_ECX_EXTENSIONS_SUPPORTED) || in acpi_processor_ffh_cstate_probe_cpu()
152 !(ecx & CPUID5_ECX_INTERRUPT_BREAK)) { in acpi_processor_ffh_cstate_probe_cpu()
185 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe()
194 percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK; in acpi_processor_ffh_cstate_probe()
226 percpu_entry->states[cx->index].ecx); in acpi_processor_ffh_cstate_enter()
/linux/sound/pci/au88x0/
H A Dau88x0_synth.c185 int ecx; in vortex_wt_SetReg() local
261 ecx = WT_SRAMP(wt); in vortex_wt_SetReg()
264 ecx = WT_ARAMP(wt); in vortex_wt_SetReg()
267 ecx = WT_MRAMP(wt); in vortex_wt_SetReg()
270 ecx = WT_CTRL(wt); in vortex_wt_SetReg()
273 ecx = WT_DSREG(wt); in vortex_wt_SetReg()
281 hwwrite(vortex->mmio, ecx, val); in vortex_wt_SetReg()
328 int ecx = vol[1], eax = vol[0];
342 ecx = eax;
343 if (ecx < 0x80)
[all …]
/linux/arch/x86/crypto/
H A Daes-ctr-avx-x86_64.S119 sub $8, %ecx // LEN - 8
125 neg %ecx
126 shl $3, %ecx
132 add $4, %ecx // LEN - 4
142 add $2, %ecx // LEN - 2
147 shl $3, %ecx
158 sub $8, %ecx // LEN - 8
163 mov %ecx, \tmp32
164 shl $3, %ecx
171 add $4, %ecx // LEN - 4
[all …]
/linux/Documentation/translations/zh_CN/virt/acrn/
H A Dcpuid.rst30 ecx = 0x4e524341
33 注意,ebx,ecx和edx中的这个值对应于字符串“ACRNACRNACRN”。eax中的值对应于这个叶子
40 ebx, ecx, edx
55 ebx, ecx, edx
/linux/tools/arch/x86/lib/
H A Dmemset_64.S52 movzbl %sil,%ecx
84 movl %edx,%ecx
85 andl $63&(~7),%ecx
87 shrl $3,%ecx
90 decl %ecx

12345