Home
last modified time | relevance | path

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

123456

/linux-6.6.21/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.6.21/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.6.21/arch/x86/coco/tdx/
Dtdcall.S130 movq %rdi, %rax
133 movq TDX_HYPERCALL_r8(%rax), %r8
134 movq TDX_HYPERCALL_r9(%rax), %r9
135 movq TDX_HYPERCALL_r10(%rax), %r10
136 movq TDX_HYPERCALL_r11(%rax), %r11
137 movq TDX_HYPERCALL_r12(%rax), %r12
138 movq TDX_HYPERCALL_r13(%rax), %r13
139 movq TDX_HYPERCALL_r14(%rax), %r14
140 movq TDX_HYPERCALL_r15(%rax), %r15
141 movq TDX_HYPERCALL_rdi(%rax), %rdi
[all …]
/linux-6.6.21/arch/x86/kernel/
Drelocate_kernel_64.S67 movq %cr0, %rax
68 movq %rax, CR0(%r11)
69 movq %cr3, %rax
70 movq %rax, CR3(%r11)
71 movq %cr4, %rax
72 movq %rax, CR4(%r11)
75 movq %rax, %r13
126 movq %cr4, %rax
127 andq $~(X86_CR4_CET), %rax
128 movq %rax, %cr4
[all …]
Dhead_64.S85 leaq .Lon_kernel_cs(%rip), %rax
86 pushq %rax
117 addq $(early_top_pgt - __START_KERNEL_map), %rax
160 movq sme_me_mask, %rax
162 xorq %rax, %rax
166 addq $(init_top_pgt - __START_KERNEL_map), %rax
194 addq phys_base(%rip), %rax
202 movq %rax, %rdi
213 movq %rax, %cr3
220 movq %rcx, %rax
[all …]
Dftrace_64.S83 movq %rax, RAX(%rsp)
128 movq RAX(%rsp), %rax
183 movq RIP(%rsp), %rax
184 movq %rax, MCOUNT_REG_SIZE(%rsp)
247 movq EFLAGS(%rsp), %rax
248 movq %rax, MCOUNT_REG_SIZE(%rsp)
251 movq RIP(%rsp), %rax
252 movq %rax, MCOUNT_REG_SIZE+8(%rsp)
262 movq ORIG_RAX(%rsp), %rax
263 movq %rax, MCOUNT_REG_SIZE-8(%rsp)
[all …]
/linux-6.6.21/arch/x86/lib/
Dmemset_64.S38 movq %r9,%rax
51 movabs $0x0101010101010101,%rax
52 imulq %rcx,%rax
67 movq %rax,(%rdi)
68 movq %rax,8(%rdi)
69 movq %rax,16(%rdi)
70 movq %rax,24(%rdi)
71 movq %rax,32(%rdi)
72 movq %rax,40(%rdi)
73 movq %rax,48(%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 …]
Dclear_page_64.S31 #define PUT(x) movq %rax,x*8(%rdi)
32 movq %rax,(%rdi)
86 1: movq %rax,(%rdi)
96 10: movq %rax,(%rdi)
97 11: movq %rax,8(%rdi)
98 12: movq %rax,16(%rdi)
99 13: movq %rax,24(%rdi)
100 14: movq %rax,32(%rdi)
101 15: movq %rax,40(%rdi)
102 16: movq %rax,48(%rdi)
[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.6.21/tools/arch/x86/lib/
Dmemset_64.S38 movq %r9,%rax
51 movabs $0x0101010101010101,%rax
52 imulq %rcx,%rax
67 movq %rax,(%rdi)
68 movq %rax,8(%rdi)
69 movq %rax,16(%rdi)
70 movq %rax,24(%rdi)
71 movq %rax,32(%rdi)
72 movq %rax,40(%rdi)
73 movq %rax,48(%rdi)
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/arch/x86/crypto/
Dpoly1305-x86_64-cryptogams.pl187 mov %rax,$d2
188 mov $r0,%rax
192 mov %rax,$h0 # future $h0
193 mov $r0,%rax
197 add %rax,$d2
198 mov $s1,%rax
203 add %rax,$h0
213 mov \$-4,%rax # mask value
216 and $d3,%rax # last reduction step
220 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.6.21/arch/x86/entry/
Dentry_64.S107 pushq %rax /* pt_regs->orig_ax */
109 PUSH_AND_CLEAR_REGS rax=$-ENOSYS
301 movq %rax, %rdi /* prev */
319 pushq %rax
325 popq %rax
547 movq %rax, %rsp /* Switch to new stack */
741 movq %rax, (0*8)(%rdi) /* user RAX */
742 movq (1*8)(%rsp), %rax /* user RIP */
743 movq %rax, (1*8)(%rdi)
744 movq (2*8)(%rsp), %rax /* user CS */
[all …]
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
206 pushq %rax /* pt_regs->orig_ax */
207 PUSH_AND_CLEAR_REGS rcx=%rbp rax=$-ENOSYS
234 popq %rax /* pt_regs->rax */
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.6.21/arch/x86/boot/compressed/
Dhead_64.S327 addq %rax, %rbp
328 notq %rax
329 andq %rax, %rbp
366 leaq gdt64(%rip), %rax
367 addq %rax, 2(%rax)
368 lgdt (%rax)
372 leaq .Lon_kernel_cs(%rip), %rax
373 pushq %rax
435 leaq rva(gdt64)(%rbx), %rax
437 movq %rdx, 2(%rax)
[all …]
/linux-6.6.21/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.6.21/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.6.21/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 */

123456