/kernel/linux/linux-5.10/arch/x86/lib/ |
D | copy_user_64.S | 22 movl %edi,%ecx 23 andl $7,%ecx 25 subl $8,%ecx 26 negl %ecx 27 subl %ecx,%edx 32 decl %ecx 36 103: addl %ecx,%edx /* ecx is zerorest also */ 62 movl %edx,%ecx 64 shrl $6,%ecx 84 decl %ecx [all …]
|
D | copy_mc_64.S | 34 movl %esi, %ecx 35 andl $7, %ecx 36 subl $8, %ecx 37 negl %ecx 38 subl %ecx, %edx 47 decl %ecx 51 movl %edx, %ecx 53 shrl $3, %ecx 64 decl %ecx 73 movl %edx, %ecx [all …]
|
D | atomic64_cx8_32.S | 13 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 …]
|
D | checksum_32.S | 53 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 …]
|
D | putuser.S | 53 xor %ecx,%ecx 67 xor %ecx,%ecx 81 xor %ecx,%ecx 98 xor %ecx,%ecx 108 movl $-EFAULT,%ecx
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | mwait.h | 28 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 …]
|
D | processor.h | 146 u32 eax, ebx, ecx, edx; member 212 unsigned int *ecx, unsigned int *edx) in native_cpuid() argument 218 "=c" (*ecx), in native_cpuid() 220 : "0" (*eax), "2" (*ecx) in native_cpuid() 227 unsigned int eax = op, ebx, ecx = 0, edx; \ 229 native_cpuid(&eax, &ebx, &ecx, &edx); \ 239 native_cpuid_reg(ecx) in native_cpuid_reg() 609 unsigned int *ecx, unsigned int *edx) in cpuid() argument 612 *ecx = 0; in cpuid() 613 __cpuid(eax, ebx, ecx, edx); in cpuid() [all …]
|
D | microcode.h | 92 #define CPUID_IS(a, b, c, ebx, ecx, edx) \ argument 93 (!((ebx ^ (a))|(edx ^ (b))|(ecx ^ (c)))) 107 u32 ebx, ecx = 0, edx; in x86_cpuid_vendor() local 109 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_cpuid_vendor() 111 if (CPUID_IS(CPUID_INTEL1, CPUID_INTEL2, CPUID_INTEL3, ebx, ecx, edx)) in x86_cpuid_vendor() 114 if (CPUID_IS(CPUID_AMD1, CPUID_AMD2, CPUID_AMD3, ebx, ecx, edx)) in x86_cpuid_vendor() 123 u32 ebx, ecx = 0, edx; in x86_cpuid_family() local 125 native_cpuid(&eax, &ebx, &ecx, &edx); in x86_cpuid_family()
|
/kernel/linux/linux-5.10/arch/x86/math-emu/ |
D | reg_round.S | 125 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 …]
|
D | wm_sqrt.S | 91 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 …]
|
D | mul_Xsig.S | 35 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 …]
|
D | reg_u_sub.S | 46 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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | pkey-x86.h | 60 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() 84 unsigned int *ecx, unsigned int *edx) in __cpuid() argument 91 "=c" (*ecx), in __cpuid() 93 : "0" (*eax), "2" (*ecx)); in __cpuid() 104 unsigned int ecx; in cpu_has_pkeys() local 108 ecx = 0x0; in cpu_has_pkeys() 109 __cpuid(&eax, &ebx, &ecx, &edx); in cpu_has_pkeys() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.c | 92 unsigned long eax, ebx, ecx, edx, si = 0, di = 0; in vmw_open_channel() local 98 eax, ebx, ecx, edx, si, di); in vmw_open_channel() 100 if ((HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS) == 0) in vmw_open_channel() 121 unsigned long eax, ebx, ecx, edx, si, di; in vmw_close_channel() local 131 eax, ebx, ecx, edx, si, di); in vmw_close_channel() 133 if ((HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS) == 0) in vmw_close_channel() 151 unsigned long si, di, eax, ebx, ecx, edx; in vmw_port_hb_out() local 167 eax, ebx, ecx, edx, si, di); in vmw_port_hb_out() 173 ecx = MESSAGE_STATUS_SUCCESS << 16; in vmw_port_hb_out() 174 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out() [all …]
|
D | vmwgfx_msg.h | 59 eax, ebx, ecx, edx, si, di) \ argument 64 "=c"(ecx), \ 103 eax, ebx, ecx, edx, si, di) \ argument 111 "=c"(ecx), \ 128 eax, ebx, ecx, edx, si, di) \ argument 136 "=c"(ecx), \ 162 eax, ebx, ecx, edx, si, di) \ argument 172 "=c"(ecx), \ 189 eax, ebx, ecx, edx, si, di) \ argument 199 "=c"(ecx), \
|
/kernel/linux/linux-5.10/arch/x86/um/ |
D | checksum_32.S | 53 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 …]
|
/kernel/linux/linux-5.10/arch/x86/entry/ |
D | entry_32.S | 260 pushl %ecx 263 movl 4*4(%esp), %ecx # flags 264 movl %ecx, %ss:-1*4(%eax) 266 movl 3*4(%esp), %ecx # cs 267 andl $0x0000ffff, %ecx 268 movl %ecx, %ss:-2*4(%eax) 270 movl 2*4(%esp), %ecx # ip 271 movl %ecx, %ss:-3*4(%eax) 273 movl 1*4(%esp), %ecx # eax 274 movl %ecx, %ss:-4*4(%eax) [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
D | topology.c | 24 #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 110 cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); in detect_extended_topology() 119 cpuid_count(leaf, sub_index, &eax, &ebx, &ecx, &edx); in detect_extended_topology() 124 if (LEAFB_SUBTYPE(ecx) == CORE_TYPE) { in detect_extended_topology() [all …]
|
D | vmware.c | 59 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument 61 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \ 67 #define VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) \ argument 69 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \ 75 #define VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx) \ argument 77 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \ 83 #define VMWARE_CMD(cmd, eax, ebx, ecx, edx) do { \ argument 86 VMWARE_VMCALL(cmd, eax, ebx, ecx, edx); \ 89 VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx); \ 92 VMWARE_PORT(cmd, eax, ebx, ecx, edx); \ [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | ftrace_32.S | 45 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 …]
|
D | head_32.S | 69 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 …]
|
/kernel/linux/linux-5.10/arch/x86/realmode/rm/ |
D | reboot.S | 39 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
|
/kernel/linux/linux-5.10/drivers/char/ |
D | toshiba.c | 124 unsigned long eax,ecx,flags; in tosh_emulate_fan() local 128 ecx = regs->ecx & 0xffff; in tosh_emulate_fan() 140 regs->ecx = (unsigned int) (al & 0x01); in tosh_emulate_fan() 142 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan() 151 regs->ecx = 0x00; in tosh_emulate_fan() 153 if ((eax==0xff00) && (ecx==0x0001)) { in tosh_emulate_fan() 162 regs->ecx = 0x01; in tosh_emulate_fan() 176 regs->ecx = al & 0x01; in tosh_emulate_fan() 178 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan() 186 regs->ecx = 0x00; in tosh_emulate_fan() [all …]
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
D | cpucheck.c | 133 u32 ecx = MSR_K7_HWCR; in check_cpu() local 136 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu() 138 asm("wrmsr" : : "a" (eax), "d" (edx), "c" (ecx)); in check_cpu() 148 u32 ecx = MSR_VIA_FCR; in check_cpu() local 151 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu() 153 asm("wrmsr" : : "a" (eax), "d" (edx), "c" (ecx)); in check_cpu() 160 u32 ecx = 0x80860004; in check_cpu() local 164 asm("rdmsr" : "=a" (eax), "=d" (edx) : "c" (ecx)); in check_cpu() 165 asm("wrmsr" : : "a" (~0), "d" (edx), "c" (ecx)); in check_cpu() 169 asm("wrmsr" : : "a" (eax), "d" (edx), "c" (ecx)); in check_cpu()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | longrun.c | 138 u32 eax, ebx, ecx, edx; in longrun_get() local 143 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_get() 164 u32 eax, ebx, ecx, edx; in longrun_determine_freqs() local 211 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs() 214 for (try_hi = 80; try_hi > 0 && ecx > 90; try_hi -= 10) { in longrun_determine_freqs() 222 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs() 227 pr_debug("percentage is %u %%, freq is %u MHz\n", ecx, eax); in longrun_determine_freqs() 235 ebx = (((cpu_khz / 1000) * ecx) / 100); /* to MHz */ in longrun_determine_freqs() 237 if ((ecx > 95) || (ecx == 0) || (eax < ebx)) in longrun_determine_freqs() 240 edx = ((eax - ebx) * 100) / (100 - ecx); in longrun_determine_freqs()
|