Home
last modified time | relevance | path

Searched refs:acrs (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/arch/s390/include/asm/
Dswitch_to.h19 static inline void save_access_regs(unsigned int *acrs) in save_access_regs() argument
23 asm volatile("stam 0,15,%0" : "=Q" (*(acrstype *)acrs)); in save_access_regs()
26 static inline void restore_access_regs(unsigned int *acrs) in restore_access_regs() argument
30 asm volatile("lam 0,15,%0" : : "Q" (*(acrstype *)acrs)); in restore_access_regs()
39 save_access_regs(&prev->thread.acrs[0]); \
43 restore_access_regs(&next->thread.acrs[0]); \
Dcompat.h57 u32 acrs[NUM_ACRS]; member
Dprocessor.h109 unsigned int acrs[NUM_ACRS]; member
/linux-6.1.9/arch/s390/kernel/
Dptrace.c198 if (addr < offsetof(struct user, regs.acrs)) { in __peek_user()
213 offset = addr - offsetof(struct user, regs.acrs); in __peek_user()
219 if (addr == offsetof(struct user, regs.acrs[15])) in __peek_user()
220 tmp = ((unsigned long) child->thread.acrs[15]) << 32; in __peek_user()
222 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); in __peek_user()
280 if (addr >= offsetof(struct user, regs.acrs) && in peek_user()
328 if (addr < offsetof(struct user, regs.acrs)) { in __poke_user()
359 offset = addr - offsetof(struct user, regs.acrs); in __poke_user()
366 if (addr == offsetof(struct user, regs.acrs[15])) in __poke_user()
367 child->thread.acrs[15] = (unsigned int) (data >> 32); in __poke_user()
[all …]
Dprocess.c123 save_access_regs(&p->thread.acrs[0]); in copy_thread()
174 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
176 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
177 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
Dsignal.c110 save_access_regs(current->thread.acrs); in store_sigregs()
117 restore_access_regs(current->thread.acrs); in load_sigregs()
131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs()
132 sizeof(user_sregs.regs.acrs)); in save_sigregs()
168 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs()
169 sizeof(current->thread.acrs)); in restore_sigregs()
Dcompat_signal.c57 save_access_regs(current->thread.acrs); in store_sigregs()
64 restore_access_regs(current->thread.acrs); in load_sigregs()
79 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs32()
80 sizeof(user_sregs.regs.acrs)); in save_sigregs32()
117 memcpy(&current->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs32()
118 sizeof(current->thread.acrs)); in restore_sigregs32()
Dcrash_dump.c45 u32 acrs[16]; member
95 memcpy(&sa->acrs, &lc->access_regs_save_area, sizeof(sa->acrs)); in save_area_add_regs()
308 memcpy(&nt_prstatus.pr_reg.acrs, sa->acrs, sizeof(sa->acrs)); in fill_cpu_elf_notes()
Dcompat_ptrace.h24 u32 acrs[NUM_ACRS]; member
Dearly.c253 unsigned int acrs[NUM_ACRS] = { 0 }; in setup_access_registers() local
255 restore_access_regs(acrs); in setup_access_registers()
Dcompat_linux.h38 __u32 acrs[__NUM_ACRS]; member
/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dresets.c96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear()
105 TEST_ASSERT(!memcmp(sync_regs->acrs, regs_null, sizeof(sync_regs->acrs)), in assert_clear()
126 TEST_ASSERT(sync_regs->acrs[9] == 1, "ar9 == 1 (sync_regs)"); in assert_initial_noclear()
Dsync_regs_test.c65 REG_COMPARE32(acrs[i]); in compare_sregs()
156 run->s.regs.acrs[0] = 1 << 11; in test_set_and_verify_various_reg_values()
175 TEST_ASSERT(run->s.regs.acrs[0] == 1 << 11, in test_set_and_verify_various_reg_values()
177 run->s.regs.acrs[0]); in test_set_and_verify_various_reg_values()
/linux-6.1.9/tools/arch/s390/include/uapi/asm/
Dkvm.h183 __u32 acrs[16]; member
250 __u32 acrs[16]; /* access registers */ member
Dptrace.h286 unsigned int acrs[NUM_ACRS]; member
444 unsigned int acrs[NUM_ACRS]; member
/linux-6.1.9/arch/s390/include/uapi/asm/
Dptrace.h286 unsigned int acrs[NUM_ACRS]; member
444 unsigned int acrs[NUM_ACRS]; member
Dkvm.h183 __u32 acrs[16]; member
250 __u32 acrs[16]; /* access registers */ member
Dsigcontext.h51 unsigned int acrs[__NUM_ACRS]; member
/linux-6.1.9/arch/s390/kvm/
Dkvm-s390.c4084 memset(&regs->acrs, 0, sizeof(regs->acrs)); in kvm_arch_vcpu_ioctl_clear_reset()
4112 memcpy(&vcpu->run->s.regs.acrs, &sregs->acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_set_sregs()
4124 memcpy(&sregs->acrs, &vcpu->run->s.regs.acrs, sizeof(sregs->acrs)); in kvm_arch_vcpu_ioctl_get_sregs()
4779 restore_access_regs(vcpu->run->s.regs.acrs); in sync_regs()
4851 save_access_regs(vcpu->run->s.regs.acrs); in store_regs()
4991 &vcpu->run->s.regs.acrs, 64); in kvm_s390_store_status_unloaded()
5006 save_access_regs(vcpu->run->s.regs.acrs); in kvm_s390_vcpu_store_status()
Dgaccess.c394 save_access_regs(vcpu->run->s.regs.acrs); in ar_translation()
395 alet.val = vcpu->run->s.regs.acrs[ar]; in ar_translation()
Dinterrupt.c598 save_access_regs(vcpu->run->s.regs.acrs); in __write_machine_check()
670 &vcpu->run->s.regs.acrs, 64); in __write_machine_check()