Home
last modified time | relevance | path

Searched refs:rax (Results 1 – 25 of 126) sorted by relevance

123456

/linux-6.1.9/arch/x86/power/
Dhibernate_asm_64.S33 movq mmu_cr4_features(%rip), %rax
34 movq %rax, %rdx
39 movq %rax, %cr4; # turn PGE back on
42 movq $saved_context, %rax
43 movq pt_regs_sp(%rax), %rsp
44 movq pt_regs_bp(%rax), %rbp
45 movq pt_regs_si(%rax), %rsi
46 movq pt_regs_di(%rax), %rdi
47 movq pt_regs_bx(%rax), %rbx
48 movq pt_regs_cx(%rax), %rcx
[all …]
/linux-6.1.9/arch/x86/kernel/acpi/
Dwakeup_64.S20 movq saved_magic, %rax
22 cmpq %rdx, %rax
43 movq saved_rip, %rax
45 jmp *%rax
54 movq $saved_context, %rax
55 movq %rsp, pt_regs_sp(%rax)
56 movq %rbp, pt_regs_bp(%rax)
57 movq %rsi, pt_regs_si(%rax)
58 movq %rdi, pt_regs_di(%rax)
59 movq %rbx, pt_regs_bx(%rax)
[all …]
/linux-6.1.9/arch/x86/kernel/
Drelocate_kernel_64.S66 movq %cr0, %rax
67 movq %rax, CR0(%r11)
68 movq %cr3, %rax
69 movq %rax, CR3(%r11)
70 movq %cr4, %rax
71 movq %rax, CR4(%r11)
74 movq %rax, %r13
125 movq %cr4, %rax
126 andq $~(X86_CR4_CET), %rax
127 movq %rax, %cr4
[all …]
Dhead_64.S76 movq initial_gs(%rip), %rax
78 subq %rdx, %rax
79 addq %rdi, %rax
80 movq %rax, %rdx
103 leaq .Lon_kernel_cs(%rip), %rax
104 pushq %rax
125 addq $(early_top_pgt - __START_KERNEL_map), %rax
167 movq sme_me_mask, %rax
169 xorq %rax, %rax
173 addq $(init_top_pgt - __START_KERNEL_map), %rax
[all …]
Dftrace_64.S82 movq %rax, RAX(%rsp)
127 movq RAX(%rsp), %rax
172 movq RIP(%rsp), %rax
173 movq %rax, MCOUNT_REG_SIZE(%rsp)
231 movq EFLAGS(%rsp), %rax
232 movq %rax, MCOUNT_REG_SIZE(%rsp)
235 movq RIP(%rsp), %rax
236 movq %rax, MCOUNT_REG_SIZE+8(%rsp)
246 movq ORIG_RAX(%rsp), %rax
247 movq %rax, MCOUNT_REG_SIZE-8(%rsp)
[all …]
/linux-6.1.9/tools/arch/x86/lib/
Dmemset_64.S36 movabs $0x0101010101010101,%rax
37 imulq %rsi,%rax
41 movq %r9,%rax
65 movq %r9,%rax
74 movabs $0x0101010101010101,%rax
75 imulq %rcx,%rax
90 movq %rax,(%rdi)
91 movq %rax,8(%rdi)
92 movq %rax,16(%rdi)
93 movq %rax,24(%rdi)
[all …]
/linux-6.1.9/arch/x86/lib/
Dmemset_64.S36 movabs $0x0101010101010101,%rax
37 imulq %rsi,%rax
41 movq %r9,%rax
65 movq %r9,%rax
74 movabs $0x0101010101010101,%rax
75 imulq %rcx,%rax
90 movq %rax,(%rdi)
91 movq %rax,8(%rdi)
92 movq %rax,16(%rdi)
93 movq %rax,24(%rdi)
[all …]
Dhweight.S45 movabsq $0x5555555555555555, %rax
47 andq %rdx, %rax # t &= 0x5555555555555555
49 subq %rax, %rdi # w -= t
51 movq %rdi, %rax # w -> t
53 andq %rdx, %rax # t &= 0x3333333333333333
55 addq %rdx, %rax # w = w_tmp + t
57 movq %rax, %rdx # w -> t
59 addq %rdx, %rax # w_tmp += t
61 andq %rdx, %rax # w_tmp &= 0x0f0f0f0f0f0f0f0f
63 imulq %rdx, %rax # w_tmp *= 0x0101010101010101
[all …]
Dcsum-copy_64.S95 adcq %rbx, %rax
96 adcq %r8, %rax
97 adcq %r11, %rax
98 adcq %rdx, %rax
99 adcq %r10, %rax
100 adcq %r15, %rax
101 adcq %r14, %rax
102 adcq %r13, %rax
129 adcq %r9, %rax
143 adcq %rbx, %rax
[all …]
/linux-6.1.9/arch/x86/entry/
Dentry_64_compat.S57 pushq %rax
58 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
59 popq %rax
87 pushq %rax /* pt_regs->orig_ax */
88 PUSH_AND_CLEAR_REGS rax=$-ENOSYS
207 pushq %rax /* pt_regs->orig_ax */
208 PUSH_AND_CLEAR_REGS rcx=%rbp rax=$-ENOSYS
235 popq %rax /* pt_regs->rax */
326 pushq %rax /* pt_regs->orig_ax */
329 SWITCH_TO_KERNEL_CR3 scratch_reg=%rax
[all …]
Dentry_64.S107 pushq %rax /* pt_regs->orig_ax */
109 PUSH_AND_CLEAR_REGS rax=$-ENOSYS
290 movq %rax, %rdi
319 pushq %rax
325 popq %rax
539 movq %rax, %rsp /* Switch to new stack */
732 movq %rax, (0*8)(%rdi) /* user RAX */
733 movq (1*8)(%rsp), %rax /* user RIP */
734 movq %rax, (1*8)(%rdi)
735 movq (2*8)(%rsp), %rax /* user CS */
[all …]
Dcalling.h68 .macro PUSH_REGS rdx=%rdx rcx=%rcx rax=%rax save_ret=0
79 pushq \rax /* pt_regs->ax */
120 .macro PUSH_AND_CLEAR_REGS rdx=%rdx rcx=%rcx rax=%rax save_ret=0
121 PUSH_REGS rdx=\rdx, rcx=\rcx, rax=\rax, save_ret=\save_ret
136 popq %rax
213 pushq %rax
214 SWITCH_TO_USER_CR3_NOSTACK scratch_reg=\scratch_reg scratch_reg2=%rax
215 popq %rax
307 or %rdx, %rax
308 mov %rax, \save_reg
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dencls.h67 #define __encls_ret_N(rax, inputs...) \ argument
75 : "a"(rax), inputs \
80 #define __encls_ret_1(rax, rcx) \ argument
82 __encls_ret_N(rax, "c"(rcx)); \
85 #define __encls_ret_2(rax, rbx, rcx) \ argument
87 __encls_ret_N(rax, "b"(rbx), "c"(rcx)); \
90 #define __encls_ret_3(rax, rbx, rcx, rdx) \ argument
92 __encls_ret_N(rax, "b"(rbx), "c"(rcx), "d"(rdx)); \
110 #define __encls_N(rax, rbx_out, inputs...) \ argument
119 : "a"(rax), inputs \
[all …]
/linux-6.1.9/arch/x86/platform/efi/
Defi_thunk_64.S37 movq %rsp, %rax
39 push %rax
45 movq 0x18(%rax), %rbp
46 movq 0x20(%rax), %rbx
47 movq 0x28(%rax), %rax
55 movq $__START_KERNEL_map, %rax
56 subq phys_base(%rip), %rax
60 subq %rax, %rbp
61 subq %rax, %rbx
/linux-6.1.9/arch/x86/boot/compressed/
Defi_thunk_64.S30 push %rax
32 push %rax
34 push %rax
39 movq 0x40(%rsp), %rax
70 leaq efi32_boot_idt(%rip), %rax
71 lidt (%rax)
72 leaq efi32_boot_gdt(%rip), %rax
73 lgdt (%rax)
76 movzwq efi32_boot_cs(%rip), %rax
77 pushq %rax
[all …]
Dhead_64.S386 subq %rax, %rbp
391 addq %rax, %rbp
392 notq %rax
393 andq %rax, %rbp
434 leaq gdt64(%rip), %rax
435 addq %rax, 2(%rax)
436 lgdt (%rax)
440 leaq .Lon_kernel_cs(%rip), %rax
441 pushq %rax
486 movq %rax, %rcx
[all …]
/linux-6.1.9/arch/x86/um/
Dstub_64.S12 mov 0x0(%rsp), %rax
16 mov %rax, 8(%rbx)
17 cmp $0, %rax
24 add %rax, %rsp
27 pop %rax
42 cmp %rcx, %rax
47 mov %rax, (%rbx)
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dxen_vmcall_test.c30 unsigned long rax = INPUTVALUE; in guest_code() local
41 "=a"(rax) : in guest_code()
42 "a"(rax), "D"(rdi), "S"(rsi), "d"(rdx), in guest_code()
44 GUEST_ASSERT(rax == RETVALUE); in guest_code()
62 __asm__ __volatile__("call *%1" : "=a"(rax) : in guest_code()
64 "a"(rax), "D"(rdi), "S"(rsi), "d"(rdx), in guest_code()
66 GUEST_ASSERT(rax == RETVALUE); in guest_code()
69 rax = 0; in guest_code()
72 __asm__ __volatile__("call *%1" : "=a"(rax) : in guest_code()
74 "a"(rax), "c"(rcx), "d"(rdx), in guest_code()
[all …]
/linux-6.1.9/arch/x86/crypto/
Dpoly1305-x86_64-cryptogams.pl188 mov %rax,$d2
189 mov $r0,%rax
193 mov %rax,$h0 # future $h0
194 mov $r0,%rax
198 add %rax,$d2
199 mov $s1,%rax
204 add %rax,$h0
214 mov \$-4,%rax # mask value
217 and $d3,%rax # last reduction step
221 add $d3,%rax
[all …]
Dblake2s-core.S71 movd (%rsi,%rax,4),%xmm4
73 movd (%rsi,%rax,4),%xmm5
75 movd (%rsi,%rax,4),%xmm6
77 movd (%rsi,%rax,4),%xmm7
92 movd (%rsi,%rax,4),%xmm5
94 movd (%rsi,%rax,4),%xmm6
96 movd (%rsi,%rax,4),%xmm7
98 movd (%rsi,%rax,4),%xmm4
116 movd (%rsi,%rax,4),%xmm6
118 movd (%rsi,%rax,4),%xmm7
[all …]
Dchacha-avx2-x86_64.S67 mov %rcx,%rax
142 cmp $0x10,%rax
149 cmp $0x20,%rax
156 cmp $0x30,%rax
163 cmp $0x40,%rax
171 cmp $0x50,%rax
177 cmp $0x60,%rax
183 cmp $0x70,%rax
189 cmp $0x80,%rax
200 mov %rax,%r9
[all …]
/linux-6.1.9/arch/x86/entry/vdso/
Dvsgx.S108 mov %rbx, %rax
119 push %rax
122 push %rax
131 mov SGX_ENCLAVE_RUN_USER_HANDLER(%rax), %rax
133 call *%rax
/linux-6.1.9/tools/testing/selftests/sgx/
Dtest_encl_bootstrap.S47 lea (encl_stack)(%rbx), %rax
52 lea -1(%rbx), %rax
54 xchg %rsp, %rax
55 push %rax
82 pop %rax
83 mov %rax, %rsp
86 mov $4, %rax
/linux-6.1.9/arch/x86/mm/
Dmem_encrypt_boot.S37 movq %rcx, %rax /* Workarea stack page */
38 leaq PAGE_SIZE(%rax), %rsp /* Set new stack pointer */
39 addq $PAGE_SIZE, %rax /* Workarea encryption routine */
47 movq %rax, %rdi /* Workarea encryption routine */
57 movq %rax, %r8 /* Workarea encryption routine */
61 call *%rax /* Call the encryption routine */
/linux-6.1.9/arch/x86/include/asm/
Dintel_pconfig.h52 unsigned long rax = MKTME_KEY_PROGRAM; in mktme_key_program() local
58 : "=a" (rax), "=b" (key_program) in mktme_key_program()
59 : "0" (rax), "1" (key_program) in mktme_key_program()
62 return rax; in mktme_key_program()

123456