Home
last modified time | relevance | path

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

12345678910

/linux-5.19.10/arch/x86/lib/
Dcopy_user_64.S22 movl %edi,%ecx
23 andl $7,%ecx
25 subl $8,%ecx
26 negl %ecx
27 subl %ecx,%edx
32 decl %ecx
58 movl %edx,%ecx
60 shrl $6,%ecx
80 decl %ecx
84 30: shll $6,%ecx
[all …]
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 …]
Datomic64_cx8_32.S13 movl %ecx, %edx
20 read64 %ecx
52 movl %ecx, %ebp
54 read64 %ecx
57 movl %edx, %ecx
59 \insc\()l %edi, %ecx
66 movl %ecx, %edx
85 movl %edx, %ecx
87 \insc\()l $0, %ecx
94 movl %ecx, %edx
[all …]
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 …]
Dputuser.S54 xor %ecx,%ecx
69 xor %ecx,%ecx
84 xor %ecx,%ecx
102 xor %ecx,%ecx
112 movl $-EFAULT,%ecx
/linux-5.19.10/arch/x86/include/asm/
Dmwait.h28 static inline void __monitor(const void *eax, unsigned long ecx, in __monitor() argument
33 :: "a" (eax), "c" (ecx), "d"(edx)); in __monitor()
36 static inline void __monitorx(const void *eax, unsigned long ecx, in __monitorx() argument
41 :: "a" (eax), "c" (ecx), "d"(edx)); in __monitorx()
44 static inline void __mwait(unsigned long eax, unsigned long ecx) in __mwait() argument
50 :: "a" (eax), "c" (ecx)); in __mwait()
80 unsigned long ecx) in __mwaitx() argument
86 :: "a" (eax), "b" (ebx), "c" (ecx)); in __mwaitx()
89 static inline void __sti_mwait(unsigned long eax, unsigned long ecx) in __sti_mwait() argument
94 :: "a" (eax), "c" (ecx)); in __sti_mwait()
[all …]
Dprocessor.h150 u32 eax, ebx, ecx, edx; member
217 unsigned int *ecx, unsigned int *edx) in native_cpuid() argument
223 "=c" (*ecx), in native_cpuid()
225 : "0" (*eax), "2" (*ecx) in native_cpuid()
232 unsigned int eax = op, ebx, ecx = 0, edx; \
234 native_cpuid(&eax, &ebx, &ecx, &edx); \
244 native_cpuid_reg(ecx) in native_cpuid_reg()
602 unsigned int *ecx, unsigned int *edx) in cpuid() argument
605 *ecx = 0; in cpuid()
606 __cpuid(eax, ebx, ecx, edx); in cpuid()
[all …]
/linux-5.19.10/arch/x86/math-emu/
Dreg_round.S125 movl PARAM4,%ecx
145 movl %ecx,%esi
146 andl CW_PC,%ecx
147 cmpl PR_64_BITS,%ecx
150 cmpl PR_53_BITS,%ecx
153 cmpl PR_24_BITS,%ecx
159 cmpl PR_RESERVED_BITS,%ecx
173 movl %esi,%ecx
174 andl CW_RC,%ecx
175 cmpl RC_RND,%ecx
[all …]
Dwm_sqrt.S91 movl SIGL(%esi),%ecx
100 rcrl $1,%ecx
108 movl %ecx,FPU_fsqrt_arg_1
114 movl $0xaaaaaaaa,%ecx
115 mull %ecx
128 movl FPU_fsqrt_arg_2,%ecx /* ms word */
137 shrl %ecx /* Doing this first will prevent a divide */
140 movl %ecx,%edx /* msw of the arg / 2 */
145 movl %ecx,%edx
150 movl %ecx,%edx
[all …]
Dmul_Xsig.S35 movl PARAM2,%ecx
42 mull %ecx /* msl of b */
46 mull %ecx /* msl of b */
52 mull %ecx /* msl of b */
76 movl PARAM2,%ecx
83 mull 4(%ecx) /* msl of b */
87 mull (%ecx) /* lsl of b */
93 mull 4(%ecx) /* msl of b */
99 mull (%ecx) /* lsl of b */
105 mull 4(%ecx) /* msl of b */
[all …]
Dreg_u_sub.S46 movl PARAM6,%ecx
47 subl PARAM7,%ecx /* exp1 - exp2 */
156 xorl %ecx,%ecx
157 subl %edx,%ecx
158 movl %ecx,%edx
159 movl SIGL(%esi),%ecx
160 sbbl %ebx,%ecx
161 movl %ecx,%ebx
162 movl SIGH(%esi),%ecx
163 sbbl %eax,%ecx
[all …]
/linux-5.19.10/arch/x86/entry/
Dentry_32.S183 pushl %ecx
186 movl 4*4(%esp), %ecx # flags
187 movl %ecx, %ss:-1*4(%eax)
189 movl 3*4(%esp), %ecx # cs
190 andl $0x0000ffff, %ecx
191 movl %ecx, %ss:-2*4(%eax)
193 movl 2*4(%esp), %ecx # ip
194 movl %ecx, %ss:-3*4(%eax)
196 movl 1*4(%esp), %ecx # eax
197 movl %ecx, %ss:-4*4(%eax)
[all …]
/linux-5.19.10/arch/x86/um/
Dchecksum_32.S53 movl 16(%esp),%ecx # Function arg: int len
57 subl $2, %ecx # Alignment uses up two bytes.
59 addl $2, %ecx # ecx was < 2. Deal with it.
66 movl %ecx, %edx
67 shrl $5, %ecx
87 dec %ecx
90 2: movl %edx, %ecx
99 4: andl $3, %ecx
101 cmpl $2, %ecx
106 shll $16,%ecx
[all …]
Dstub_32.S9 mov %esp, %ecx
18 mov %eax, 0x4(%ecx)
23 mov %esp, 0x4(%ecx)
33 pop %ecx
43 mov %esp, %ecx
44 andl $(~UM_KERN_PAGE_SIZE) + 1, %ecx
53 mov %eax, (%ecx)
/linux-5.19.10/arch/x86/kernel/cpu/
Dtopology.c24 #define LEAFB_SUBTYPE(ecx) (((ecx) >> 8) & 0xff) argument
37 unsigned int eax, ebx, ecx, edx; in check_extended_topology_leaf() local
39 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in check_extended_topology_leaf()
41 if (ebx == 0 || (LEAFB_SUBTYPE(ecx) != SMT_TYPE)) in check_extended_topology_leaf()
68 unsigned int eax, ebx, ecx, edx; in detect_extended_topology_early() local
77 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology_early()
95 unsigned int eax, ebx, ecx, edx, sub_index; in detect_extended_topology() local
109 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology()
118 cpuid_count(leaf, sub_index, &eax, &ebx, &ecx, &edx); in detect_extended_topology()
123 if (LEAFB_SUBTYPE(ecx) == CORE_TYPE) { in detect_extended_topology()
[all …]
Dvmware.c60 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
62 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
68 #define VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) \ argument
70 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
76 #define VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx) \ argument
78 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
84 #define VMWARE_CMD(cmd, eax, ebx, ecx, edx) do { \ argument
87 VMWARE_VMCALL(cmd, eax, ebx, ecx, edx); \
90 VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx); \
93 VMWARE_PORT(cmd, eax, ebx, ecx, edx); \
[all …]
/linux-5.19.10/arch/x86/kernel/
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 …]
Dhead_32.S69 movl pa(initial_stack),%ecx
81 leal -__PAGE_OFFSET(%ecx),%esp
89 movl $pa(__bss_stop),%ecx
90 subl %edi,%ecx
91 shrl $2,%ecx
102 movl $(PARAM_SIZE/4),%ecx
110 movl $(COMMAND_LINE_SIZE/4),%ecx
148 movl initial_stack, %ecx
149 movl %ecx, %esp
170 movl pa(initial_stack),%ecx
[all …]
/linux-5.19.10/tools/testing/selftests/vm/
Dpkey-x86.h60 unsigned int ecx = 0; in __read_pkey_reg() local
65 : "c" (ecx)); in __read_pkey_reg()
73 unsigned int ecx = 0; in __write_pkey_reg() local
79 : : "a" (eax), "c" (ecx), "d" (edx)); in __write_pkey_reg()
91 unsigned int ecx; in cpu_has_pkeys() local
94 __cpuid_count(0x7, 0x0, eax, ebx, ecx, edx); in cpu_has_pkeys()
96 if (!(ecx & X86_FEATURE_PKU)) { in cpu_has_pkeys()
100 if (!(ecx & X86_FEATURE_OSPKE)) { in cpu_has_pkeys()
120 unsigned int ecx; in pkey_reg_xstate_offset() local
130 __cpuid_count(XSTATE_CPUID, leaf, eax, ebx, ecx, edx); in pkey_reg_xstate_offset()
/linux-5.19.10/arch/x86/realmode/rm/
Dreboot.S39 movl $MSR_EFER, %ecx
59 movl $16, %ecx
60 movl %ecx, %ds
61 movl %ecx, %es
62 movl %ecx, %fs
63 movl %ecx, %gs
64 movl %ecx, %ss
97 xorl %ecx, %ecx
102 movl %ecx, %cr3
/linux-5.19.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg_x86.h62 eax, ebx, ecx, edx, si, di) \ argument
67 "=c"(ecx), \
106 eax, ebx, ecx, edx, si, di) \ argument
114 "=c"(ecx), \
131 eax, ebx, ecx, edx, si, di) \ argument
139 "=c"(ecx), \
165 eax, ebx, ecx, edx, si, di) \ argument
175 "=c"(ecx), \
192 eax, ebx, ecx, edx, si, di) \ argument
202 "=c"(ecx), \
Dvmwgfx_msg_arm64.h52 unsigned long *ecx, unsigned long *edx, in vmw_port() argument
74 *ecx = x2; in vmw_port()
85 unsigned long *ecx, unsigned long *edx, in vmw_port_hb() argument
107 *ecx = x2; in vmw_port_hb()
113 #define VMW_PORT(cmd, in_ebx, in_si, in_di, flags, magic, eax, ebx, ecx, edx, \ argument
115 vmw_port(cmd, in_ebx, in_si, in_di, flags, magic, &eax, &ebx, &ecx, \
119 ecx, edx, si, di) \ argument
121 0, &eax, &ebx, &ecx, &edx, &si, &di)
124 ecx, edx, si, di) \ argument
126 X86_IO_W7_DIR, &eax, &ebx, &ecx, &edx, &si, &di)
/linux-5.19.10/drivers/char/
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-5.19.10/tools/testing/selftests/kvm/x86_64/
Damx_test.c127 uint32_t eax, ebx, ecx, edx; in check_cpuid_xsave() local
130 ecx = 0; in check_cpuid_xsave()
131 cpuid(&eax, &ebx, &ecx, &edx); in check_cpuid_xsave()
132 if (!(ecx & X86_FEATURE_XSAVE)) in check_cpuid_xsave()
134 if (!(ecx & X86_FEATURE_OSXSAVE)) in check_cpuid_xsave()
145 u32 eax, ebx, ecx, edx; in enum_xtile_config() local
148 ecx = TILE_PALETTE_CPUID_SUBLEAVE; in enum_xtile_config()
150 cpuid(&eax, &ebx, &ecx, &edx); in enum_xtile_config()
151 if (!eax || !ebx || !ecx) in enum_xtile_config()
163 xtile.max_rows = ecx; in enum_xtile_config()
[all …]
/linux-5.19.10/arch/x86/kvm/
Dcpuid.c44 u32 eax, ebx, ecx, edx, offset; in xstate_required_size() local
45 cpuid_count(0xD, feature_bit, &eax, &ebx, &ecx, &edx); in xstate_required_size()
48 offset = (ecx & 0x2) ? ALIGN(ret, 64) : ret; in xstate_required_size()
139 e2[i].ecx != orig->ecx || e2[i].edx != orig->edx) in kvm_cpuid_check_equal()
160 signature[1] = entry->ecx; in kvm_update_kvm_cpuid_base()
270 best->ecx &= guest_supported_xcr0 & 0xffffffff; in __kvm_update_cpuid_runtime()
272 best->ecx |= XFEATURE_MASK_FPSSE; in __kvm_update_cpuid_runtime()
416 e2[i].ecx = e[i].ecx; in kvm_vcpu_ioctl_set_cpuid()
487 &entry.eax, &entry.ebx, &entry.ecx, &entry.edx); in __kvm_cpu_cap_mask()
746 &entry->eax, &entry->ebx, &entry->ecx, &entry->edx); in do_host_cpuid()
[all …]

12345678910