Home
last modified time | relevance | path

Searched refs:esr (Results 1 – 25 of 77) sorted by relevance

1234

/linux/arch/arm64/mm/
H A Dfault.c38 #include <asm/esr.h>
48 int (*fn)(unsigned long far, unsigned long esr,
57 static inline const struct fault_info *esr_to_fault_info(unsigned long esr) in esr_to_fault_info() argument
59 return fault_info + (esr & ESR_ELx_FSC); in esr_to_fault_info()
62 static void data_abort_decode(unsigned long esr) in data_abort_decode() argument
64 unsigned long iss2 = ESR_ELx_ISS2(esr); in data_abort_decode()
68 if (esr & ESR_ELx_ISV) { in data_abort_decode()
70 1U << ((esr & ESR_ELx_SAS) >> ESR_ELx_SAS_SHIFT)); in data_abort_decode()
72 (esr & ESR_ELx_SSE) >> ESR_ELx_SSE_SHIFT, in data_abort_decode()
73 (esr in data_abort_decode()
95 mem_abort_decode(unsigned long esr) mem_abort_decode() argument
242 is_el1_instruction_abort(unsigned long esr) is_el1_instruction_abort() argument
247 is_el1_data_abort(unsigned long esr) is_el1_data_abort() argument
252 is_el1_permission_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) is_el1_permission_fault() argument
269 is_spurious_el1_translation_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) is_spurious_el1_translation_fault() argument
300 die_kernel_fault(const char * msg,unsigned long addr,unsigned long esr,struct pt_regs * regs) die_kernel_fault() argument
318 report_tag_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) report_tag_fault() argument
330 report_tag_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) report_tag_fault() argument
334 do_tag_recovery(unsigned long addr,unsigned long esr,struct pt_regs * regs) do_tag_recovery() argument
350 is_el1_mte_sync_tag_check_fault(unsigned long esr) is_el1_mte_sync_tag_check_fault() argument
363 __do_kernel_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) __do_kernel_fault() argument
408 set_thread_esr(unsigned long address,unsigned long esr) set_thread_esr() argument
465 do_bad_area(unsigned long far,unsigned long esr,struct pt_regs * regs) do_bad_area() argument
513 is_gcs_fault(unsigned long esr) is_gcs_fault() argument
521 is_el0_instruction_abort(unsigned long esr) is_el0_instruction_abort() argument
530 is_write_abort(unsigned long esr) is_write_abort() argument
535 is_invalid_gcs_access(struct vm_area_struct * vma,u64 esr) is_invalid_gcs_access() argument
552 do_page_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_page_fault() argument
783 do_translation_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_translation_fault() argument
795 do_alignment_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_alignment_fault() argument
805 do_bad(unsigned long far,unsigned long esr,struct pt_regs * regs) do_bad() argument
810 do_sea(unsigned long far,unsigned long esr,struct pt_regs * regs) do_sea() argument
841 do_tag_check_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_tag_check_fault() argument
924 do_mem_abort(unsigned long far,unsigned long esr,struct pt_regs * regs) do_mem_abort() argument
944 do_sp_pc_abort(unsigned long addr,unsigned long esr,struct pt_regs * regs) do_sp_pc_abort() argument
[all...]
H A Dextable.c11 #include <asm/esr.h>
15 unsigned long esr) in cpy_faulted_on_uaccess() argument
18 bool fault_on_write = esr & ESR_ELx_WNR; in cpy_faulted_on_uaccess()
23 bool insn_may_access_user(unsigned long addr, unsigned long esr) in insn_may_access_user() argument
32 return cpy_faulted_on_uaccess(ex, esr); in insn_may_access_user()
58 struct pt_regs *regs, unsigned long esr) in ex_handler_uaccess_cpy() argument
61 if (!cpy_faulted_on_uaccess(ex, esr)) in ex_handler_uaccess_cpy()
95 bool fixup_exception(struct pt_regs *regs, unsigned long esr) in fixup_exception() argument
110 return ex_handler_uaccess_cpy(ex, regs, esr); in fixup_exception()
/linux/arch/arm64/include/asm/
H A Desr.h76 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT) argument
81 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK) argument
84 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT) argument
243 #define ESR_ELx_SYS64_ISS_RT(esr) \ argument
244 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
392 #define ESR_ELx_SME_ISS_SMTC(esr) ((esr) argument
405 ESR_ELx_MOPS_ISS_DESTREG(esr) global() argument
406 ESR_ELx_MOPS_ISS_SRCREG(esr) global() argument
407 ESR_ELx_MOPS_ISS_SIZEREG(esr) global() argument
437 esr_brk_comment(unsigned long esr) esr_brk_comment() argument
442 esr_is_data_abort(unsigned long esr) esr_is_data_abort() argument
449 esr_is_cfi_brk(unsigned long esr) esr_is_cfi_brk() argument
455 esr_is_ubsan_brk(unsigned long esr) esr_is_ubsan_brk() argument
460 esr_fsc_is_translation_fault(unsigned long esr) esr_fsc_is_translation_fault() argument
471 esr_fsc_is_permission_fault(unsigned long esr) esr_fsc_is_permission_fault() argument
481 esr_fsc_is_access_flag_fault(unsigned long esr) esr_fsc_is_access_flag_fault() argument
491 esr_fsc_is_addr_sz_fault(unsigned long esr) esr_fsc_is_addr_sz_fault() argument
502 esr_fsc_is_sea_ttw(unsigned long esr) esr_fsc_is_sea_ttw() argument
513 esr_fsc_is_secc_ttw(unsigned long esr) esr_fsc_is_secc_ttw() argument
525 esr_iss_is_eretax(unsigned long esr) esr_iss_is_eretax() argument
531 esr_iss_is_eretab(unsigned long esr) esr_iss_is_eretab() argument
[all...]
H A Dexception.h10 #include <asm/esr.h>
19 unsigned long esr = ESR_ELx_EC_SERROR << ESR_ELx_EC_SHIFT; in disr_to_esr() local
22 esr |= (disr & DISR_EL1_ESR_MASK); in disr_to_esr()
24 esr |= (disr & ESR_ELx_ISS_MASK); in disr_to_esr()
26 return esr; in disr_to_esr()
55 void do_mem_abort(unsigned long far, unsigned long esr, struct pt_regs *regs);
56 void do_el0_undef(struct pt_regs *regs, unsigned long esr);
57 void do_el1_undef(struct pt_regs *regs, unsigned long esr);
59 void do_el1_bti(struct pt_regs *regs, unsigned long esr);
60 void do_el0_gcs(struct pt_regs *regs, unsigned long esr);
67 do_breakpoint(unsigned long esr,struct pt_regs * regs) do_breakpoint() argument
68 do_watchpoint(unsigned long addr,unsigned long esr,struct pt_regs * regs) do_watchpoint() argument
[all...]
H A Dtraps.h11 #include <asm/esr.h>
32 int bug_brk_handler(struct pt_regs *regs, unsigned long esr);
33 int cfi_brk_handler(struct pt_regs *regs, unsigned long esr);
34 int reserved_fault_brk_handler(struct pt_regs *regs, unsigned long esr);
35 int kasan_brk_handler(struct pt_regs *regs, unsigned long esr);
36 int ubsan_brk_handler(struct pt_regs *regs, unsigned long esr);
38 int early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs);
67 static inline bool arm64_is_ras_serror(unsigned long esr) in arm64_is_ras_serror() argument
71 if (esr & ESR_ELx_IDS) in arm64_is_ras_serror()
87 static inline unsigned long arm64_ras_serror_get_severity(unsigned long esr) in arm64_ras_serror_get_severity() argument
111 arm64_mops_reset_regs(struct user_pt_regs * regs,unsigned long esr) arm64_mops_reset_regs() argument
[all...]
H A Dkgdb.h27 int kgdb_brk_handler(struct pt_regs *regs, unsigned long esr);
28 int kgdb_compiled_brk_handler(struct pt_regs *regs, unsigned long esr);
30 int kgdb_single_step_handler(struct pt_regs *regs, unsigned long esr);
33 unsigned long esr) in kgdb_single_step_handler() argument
H A Dkvm_emulate.h18 #include <asm/esr.h>
48 int kvm_inject_serror_esr(struct kvm_vcpu *vcpu, u64 esr);
80 int kvm_inject_nested_serror(struct kvm_vcpu *vcpu, u64 esr);
84 u64 esr = FIELD_PREP(ESR_ELx_EC_MASK, ESR_ELx_EC_SVE) | in kvm_inject_nested_sve_trap() local
87 kvm_inject_nested_sync(vcpu, esr); in kvm_inject_nested_sve_trap()
322 u64 esr = kvm_vcpu_get_esr(vcpu); in guest_hyp_wfx_traps_enabled() local
323 bool is_wfe = !!(esr & ESR_ELx_WFx_ISS_WFE); in guest_hyp_wfx_traps_enabled()
335 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_vcpu_get_condition() local
337 if (esr & ESR_ELx_CV) in kvm_vcpu_get_condition()
338 return (esr in kvm_vcpu_get_condition()
455 unsigned long esr = kvm_vcpu_get_esr(vcpu); kvm_vcpu_trap_get_perm_fault_granule() local
476 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_vcpu_sys_get_rt() local
[all...]
H A Duprobes.h31 int uprobe_brk_handler(struct pt_regs *regs, unsigned long esr);
33 int uprobe_single_step_handler(struct pt_regs *regs, unsigned long esr);
36 unsigned long esr) in uprobe_single_step_handler() argument
H A Dkprobes.h46 unsigned long esr);
48 unsigned long esr);
50 unsigned long esr);
H A Dextable.h36 bool insn_may_access_user(unsigned long addr, unsigned long esr);
50 bool fixup_exception(struct pt_regs *regs, unsigned long esr);
/linux/arch/arm64/kernel/
H A Dentry-common.c21 #include <asm/esr.h>
325 unsigned long esr) in __panic_unhandled() argument
332 vector, smp_processor_id(), esr, in __panic_unhandled()
333 esr_get_class_string(esr)); in __panic_unhandled()
475 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort() argument
481 do_mem_abort(far, esr, regs); in el1_abort()
486 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc() argument
492 do_sp_pc_abort(far, esr, regs); in el1_pc()
497 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) in el1_undef() argument
501 do_el1_undef(regs, esr); in el1_undef()
506 el1_bti(struct pt_regs * regs,unsigned long esr) el1_bti() argument
515 el1_gcs(struct pt_regs * regs,unsigned long esr) el1_gcs() argument
524 el1_mops(struct pt_regs * regs,unsigned long esr) el1_mops() argument
533 el1_breakpt(struct pt_regs * regs,unsigned long esr) el1_breakpt() argument
542 el1_softstp(struct pt_regs * regs,unsigned long esr) el1_softstp() argument
560 el1_watchpt(struct pt_regs * regs,unsigned long esr) el1_watchpt() argument
572 el1_brk64(struct pt_regs * regs,unsigned long esr) el1_brk64() argument
581 el1_fpac(struct pt_regs * regs,unsigned long esr) el1_fpac() argument
592 unsigned long esr = read_sysreg(esr_el1); el1h_64_sync_handler() local
683 unsigned long esr = read_sysreg(esr_el1); el1h_64_error_handler() local
691 el0_da(struct pt_regs * regs,unsigned long esr) el0_da() argument
701 el0_ia(struct pt_regs * regs,unsigned long esr) el0_ia() argument
719 el0_fpsimd_acc(struct pt_regs * regs,unsigned long esr) el0_fpsimd_acc() argument
727 el0_sve_acc(struct pt_regs * regs,unsigned long esr) el0_sve_acc() argument
735 el0_sme_acc(struct pt_regs * regs,unsigned long esr) el0_sme_acc() argument
743 el0_fpsimd_exc(struct pt_regs * regs,unsigned long esr) el0_fpsimd_exc() argument
751 el0_sys(struct pt_regs * regs,unsigned long esr) el0_sys() argument
759 el0_pc(struct pt_regs * regs,unsigned long esr) el0_pc() argument
772 el0_sp(struct pt_regs * regs,unsigned long esr) el0_sp() argument
780 el0_undef(struct pt_regs * regs,unsigned long esr) el0_undef() argument
796 el0_mops(struct pt_regs * regs,unsigned long esr) el0_mops() argument
804 el0_gcs(struct pt_regs * regs,unsigned long esr) el0_gcs() argument
812 el0_inv(struct pt_regs * regs,unsigned long esr) el0_inv() argument
820 el0_breakpt(struct pt_regs * regs,unsigned long esr) el0_breakpt() argument
833 el0_softstp(struct pt_regs * regs,unsigned long esr) el0_softstp() argument
852 el0_watchpt(struct pt_regs * regs,unsigned long esr) el0_watchpt() argument
865 el0_brk64(struct pt_regs * regs,unsigned long esr) el0_brk64() argument
884 el0_fpac(struct pt_regs * regs,unsigned long esr) el0_fpac() argument
894 unsigned long esr = read_sysreg(esr_el1); el0t_64_sync_handler() local
999 unsigned long esr = read_sysreg(esr_el1); __el0_error_handler_common() local
1016 el0_cp15(struct pt_regs * regs,unsigned long esr) el0_cp15() argument
1033 el0_bkpt32(struct pt_regs * regs,unsigned long esr) el0_bkpt32() argument
1043 unsigned long esr = read_sysreg(esr_el1); el0t_32_sync_handler() local
1114 unsigned long esr = read_sysreg(esr_el1); handle_bad_stack() local
[all...]
H A Dtraps.c39 #include <asm/esr.h>
239 unsigned long esr = tsk->thread.fault_code; in arm64_show_signal() local
249 if (esr) in arm64_show_signal()
250 pr_cont("%s, ESR 0x%016lx, ", esr_get_class_string(esr), esr); in arm64_show_signal()
452 void do_el0_undef(struct pt_regs *regs, unsigned long esr) in do_el0_undef() argument
473 void do_el1_undef(struct pt_regs *regs, unsigned long esr) in do_el1_undef() argument
484 die("Oops - Undefined instruction", regs, esr); in do_el1_undef()
492 void do_el1_bti(struct pt_regs *regs, unsigned long esr) in do_el1_bti() argument
498 die("Oops - BTI", regs, esr); in do_el1_bti()
501 do_el0_gcs(struct pt_regs * regs,unsigned long esr) do_el0_gcs() argument
506 do_el1_gcs(struct pt_regs * regs,unsigned long esr) do_el1_gcs() argument
511 do_el0_fpac(struct pt_regs * regs,unsigned long esr) do_el0_fpac() argument
516 do_el1_fpac(struct pt_regs * regs,unsigned long esr) do_el1_fpac() argument
525 do_el0_mops(struct pt_regs * regs,unsigned long esr) do_el0_mops() argument
536 do_el1_mops(struct pt_regs * regs,unsigned long esr) do_el1_mops() argument
558 user_cache_maint_handler(unsigned long esr,struct pt_regs * regs) user_cache_maint_handler() argument
598 ctr_read_handler(unsigned long esr,struct pt_regs * regs) ctr_read_handler() argument
617 cntvct_read_handler(unsigned long esr,struct pt_regs * regs) cntvct_read_handler() argument
629 cntfrq_read_handler(unsigned long esr,struct pt_regs * regs) cntfrq_read_handler() argument
641 mrs_handler(unsigned long esr,struct pt_regs * regs) mrs_handler() argument
652 wfi_handler(unsigned long esr,struct pt_regs * regs) wfi_handler() argument
709 cp15_cond_valid(unsigned long esr,struct pt_regs * regs) cp15_cond_valid() argument
729 compat_cntfrq_read_handler(unsigned long esr,struct pt_regs * regs) compat_cntfrq_read_handler() argument
746 compat_cntvct_read_handler(unsigned long esr,struct pt_regs * regs) compat_cntvct_read_handler() argument
771 do_el0_cp15(unsigned long esr,struct pt_regs * regs) do_el0_cp15() argument
811 do_el0_sys(unsigned long esr,struct pt_regs * regs) do_el0_sys() argument
877 esr_get_class_string(unsigned long esr) esr_get_class_string() argument
886 bad_el0_sync(struct pt_regs * regs,int reason,unsigned long esr) bad_el0_sync() argument
900 panic_bad_stack(struct pt_regs * regs,unsigned long esr,unsigned long far) panic_bad_stack() argument
929 arm64_serror_panic(struct pt_regs * regs,unsigned long esr) arm64_serror_panic() argument
944 arm64_is_fatal_ras_serror(struct pt_regs * regs,unsigned long esr) arm64_is_fatal_ras_serror() argument
976 do_serror(struct pt_regs * regs,unsigned long esr) do_serror() argument
998 bug_brk_handler(struct pt_regs * regs,unsigned long esr) bug_brk_handler() argument
1019 cfi_brk_handler(struct pt_regs * regs,unsigned long esr) cfi_brk_handler() argument
1044 reserved_fault_brk_handler(struct pt_regs * regs,unsigned long esr) reserved_fault_brk_handler() argument
1059 KASAN_ESR_SIZE(esr) global() argument
1061 kasan_brk_handler(struct pt_regs * regs,unsigned long esr) kasan_brk_handler() argument
1095 ubsan_brk_handler(struct pt_regs * regs,unsigned long esr) ubsan_brk_handler() argument
[all...]
H A Ddebug-monitors.c181 void do_el0_softstep(unsigned long esr, struct pt_regs *regs) in do_el0_softstep() argument
183 if (uprobe_single_step_handler(regs, esr) == DBG_HOOK_HANDLED) in do_el0_softstep()
196 void do_el1_softstep(unsigned long esr, struct pt_regs *regs) in do_el1_softstep() argument
198 if (kgdb_single_step_handler(regs, esr) == DBG_HOOK_HANDLED) in do_el1_softstep()
210 static int call_el1_break_hook(struct pt_regs *regs, unsigned long esr) in call_el1_break_hook() argument
212 if (esr_brk_comment(esr) == BUG_BRK_IMM) in call_el1_break_hook()
213 return bug_brk_handler(regs, esr); in call_el1_break_hook()
215 if (IS_ENABLED(CONFIG_CFI_CLANG) && esr_is_cfi_brk(esr)) in call_el1_break_hook()
216 return cfi_brk_handler(regs, esr); in call_el1_break_hook()
218 if (esr_brk_comment(esr) in call_el1_break_hook()
254 do_el0_brk64(unsigned long esr,struct pt_regs * regs) do_el0_brk64() argument
264 do_el1_brk64(unsigned long esr,struct pt_regs * regs) do_el1_brk64() argument
274 do_bkpt32(unsigned long esr,struct pt_regs * regs) do_bkpt32() argument
[all...]
/linux/tools/arch/arm64/include/asm/
H A Desr.h73 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT) argument
78 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK) argument
81 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT) argument
224 #define ESR_ELx_SYS64_ISS_RT(esr) \ argument
225 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
384 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr) argument
385 ESR_ELx_MOPS_ISS_SRCREG(esr) global() argument
386 ESR_ELx_MOPS_ISS_SIZEREG(esr) global() argument
391 esr_brk_comment(unsigned long esr) esr_brk_comment() argument
396 esr_is_data_abort(unsigned long esr) esr_is_data_abort() argument
403 esr_is_cfi_brk(unsigned long esr) esr_is_cfi_brk() argument
409 esr_fsc_is_translation_fault(unsigned long esr) esr_fsc_is_translation_fault() argument
420 esr_fsc_is_permission_fault(unsigned long esr) esr_fsc_is_permission_fault() argument
430 esr_fsc_is_access_flag_fault(unsigned long esr) esr_fsc_is_access_flag_fault() argument
441 esr_iss_is_eretax(unsigned long esr) esr_iss_is_eretax() argument
447 esr_iss_is_eretab(unsigned long esr) esr_iss_is_eretab() argument
[all...]
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dfault.h15 static inline bool __fault_safe_to_translate(u64 esr) in __fault_safe_to_translate() argument
17 u64 fsc = esr & ESR_ELx_FSC; in __fault_safe_to_translate()
19 if (esr_fsc_is_sea_ttw(esr) || esr_fsc_is_secc_ttw(esr)) in __fault_safe_to_translate()
22 return !(fsc == ESR_ELx_FSC_EXTABT && (esr & ESR_ELx_FnV)); in __fault_safe_to_translate()
60 static inline bool __hpfar_valid(u64 esr) in __hpfar_valid() argument
70 esr_fsc_is_translation_fault(esr)) in __hpfar_valid()
73 if (esr_fsc_is_translation_fault(esr) || esr_fsc_is_access_flag_fault(esr)) in __hpfar_valid()
76 if ((esr in __hpfar_valid()
82 __get_fault_info(u64 esr,struct kvm_vcpu_fault_info * fault) __get_fault_info() argument
[all...]
/linux/arch/arm64/kvm/
H A Dhandle_exit.c15 #include <asm/esr.h>
32 static void kvm_handle_guest_serror(struct kvm_vcpu *vcpu, u64 esr) in kvm_handle_guest_serror() argument
34 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(NULL, esr)) in kvm_handle_guest_serror()
132 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_wfx() local
133 bool is_wfe = !!(esr & ESR_ELx_WFx_ISS_WFE); in kvm_handle_wfx()
146 if (esr & ESR_ELx_WFx_ISS_WFxT) { in kvm_handle_wfx()
147 if (esr & ESR_ELx_WFx_ISS_RV) { in kvm_handle_wfx()
157 esr &= ~ESR_ELx_WFx_ISS_WFxT; in kvm_handle_wfx()
161 if (esr in kvm_handle_wfx()
189 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_guest_debug() local
213 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_unknown_ec() local
316 u64 esr = kvm_vcpu_get_esr(vcpu); handle_other() local
404 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_get_exit_handler() local
519 nvhe_hyp_panic_handler(u64 esr,u64 spsr,u64 elr_virt,u64 elr_phys,u64 par,uintptr_t vcpu,u64 far,u64 hpfar) nvhe_hyp_panic_handler() argument
[all...]
H A Dsys_regs.h37 #define esr_sys64_to_params(esr) \ argument
38 ((struct sys_reg_params){ .Op0 = ((esr) >> 20) & 3, \
39 .Op1 = ((esr) >> 14) & 0x7, \
40 .CRn = ((esr) >> 10) & 0xf, \
41 .CRm = ((esr) >> 1) & 0xf, \
42 .Op2 = ((esr) >> 17) & 0x7, \
43 .is_write = !((esr) & 1) })
45 #define esr_cp1x_32_to_params(esr) \ argument
46 ((struct sys_reg_params){ .Op1 = ((esr) >> 14) & 0x7, \
47 .CRn = ((esr) >> 1
[all...]
H A Dnested.c144 u32 esr; in esr_s2_fault() local
146 esr = kvm_vcpu_get_esr(vcpu) & ~ESR_ELx_FSC; in esr_s2_fault()
147 esr |= compute_fsc(level, fsc); in esr_s2_fault()
148 return esr; in esr_s2_fault()
246 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
275 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
285 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
297 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
303 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
309 out->esr in walk_nested_s2_pgd()
1245 u64 esr = kvm_vcpu_get_esr(vcpu); inject_vncr_perm() local
1288 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_vncr_abort() local
[all...]
/linux/arch/sh/boards/mach-dreamcast/
H A Dirq.c90 __u32 esr = ESR_BASE + (LEVEL(irq) << 2); in mask_ack_systemasic_irq() local
92 outl((1 << EVENT_BIT(irq)), esr); in mask_ack_systemasic_irq()
107 __u32 emr, esr, status, level; in systemasic_irq_demux() local
124 esr = ESR_BASE + (level << 2); in systemasic_irq_demux()
127 status = inl(esr); in systemasic_irq_demux()
/linux/drivers/net/can/
H A Dbxcan.c158 u32 esr; /* 0x18 - error status */ member
466 static void bxcan_handle_state_change(struct net_device *ndev, u32 esr) in bxcan_handle_state_change() argument
476 if (!(esr & (BXCAN_ESR_EWGF | BXCAN_ESR_EPVF | BXCAN_ESR_BOFF))) in bxcan_handle_state_change()
479 bec.txerr = FIELD_GET(BXCAN_ESR_TEC_MASK, esr); in bxcan_handle_state_change()
480 bec.rxerr = FIELD_GET(BXCAN_ESR_REC_MASK, esr); in bxcan_handle_state_change()
482 if (esr & BXCAN_ESR_BOFF) in bxcan_handle_state_change()
484 else if (esr & BXCAN_ESR_EPVF) in bxcan_handle_state_change()
486 else if (esr & BXCAN_ESR_EWGF) in bxcan_handle_state_change()
517 static void bxcan_handle_bus_err(struct net_device *ndev, u32 esr) in bxcan_handle_bus_err() argument
524 lec_code = FIELD_GET(BXCAN_ESR_LEC_MASK, esr); in bxcan_handle_bus_err()
607 u32 msr, esr; bxcan_state_change_isr() local
916 u32 esr; bxcan_get_berr_counter() local
[all...]
/linux/tools/testing/selftests/kvm/arm64/
H A Dexternal_aborts.c17 u64 esr = read_sysreg(esr_el1); in expect_sea_handler() local
20 GUEST_ASSERT_EQ(ESR_ELx_EC(esr), ESR_ELx_EC_DABT_CUR); in expect_sea_handler()
21 GUEST_ASSERT_EQ(esr & ESR_ELx_FSC_TYPE, ESR_ELx_FSC_EXTABT); in expect_sea_handler()
220 u64 esr = read_sysreg(esr_el1); in expect_serror_handler() local
222 GUEST_ASSERT_EQ(ESR_ELx_EC(esr), ESR_ELx_EC_SERROR); in expect_serror_handler()
224 GUEST_ASSERT_EQ(ESR_ELx_ISS(esr), EXPECTED_SERROR_ISS); in expect_serror_handler()
/linux/arch/arm64/kvm/hyp/vhe/
H A Dswitch.c253 u64 esr, val; in kvm_hyp_handle_timer() local
264 esr = kvm_vcpu_get_esr(vcpu); in kvm_hyp_handle_timer()
265 if ((esr & ESR_ELx_SYS64_ISS_DIR_MASK) != ESR_ELx_SYS64_ISS_DIR_READ) in kvm_hyp_handle_timer()
268 switch (esr_sys64_to_sysreg(esr)) { in kvm_hyp_handle_timer()
329 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_hyp_handle_eret() local
365 if (esr_iss_is_eretax(esr)) { in kvm_hyp_handle_eret()
431 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_hyp_handle_cpacr_el1() local
434 if (!is_hyp_ctxt(vcpu) || esr_sys64_to_sysreg(esr) != SYS_CPACR_EL1) in kvm_hyp_handle_cpacr_el1()
439 if ((esr & ESR_ELx_SYS64_ISS_DIR_MASK) == ESR_ELx_SYS64_ISS_DIR_READ) { in kvm_hyp_handle_cpacr_el1()
/linux/drivers/net/ethernet/ibm/emac/
H A Dmal.c222 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_serr() local
225 set_mal_dcrn(mal, MAL_ESR, esr); in mal_serr()
227 MAL_DBG(mal, "SERR %08x" NL, esr); in mal_serr()
229 if (esr & MAL_ESR_EVB) { in mal_serr()
230 if (esr & MAL_ESR_DE) { in mal_serr()
237 if (esr & MAL_ESR_PEIN) { in mal_serr()
245 mal->index, esr); in mal_serr()
255 mal->index, esr); in mal_serr()
355 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_int() local
357 if (esr in mal_int()
[all...]
/linux/arch/powerpc/platforms/44x/
H A Dmachine_check.c14 unsigned long reason = regs->esr; in machine_check_4xx()
29 unsigned long reason = regs->esr; in machine_check_440A()
66 unsigned long reason = regs->esr; in machine_check_47x()
/linux/sound/soc/fsl/
H A Dfsl_esai.c102 u32 esr; in esai_isr() local
105 regmap_read(esai_priv->regmap, REG_ESAI_ESR, &esr); in esai_isr()
118 if (esr & ESAI_ESR_TINIT_MASK) in esai_isr()
121 if (esr & ESAI_ESR_RFF_MASK) in esai_isr()
124 if (esr & ESAI_ESR_TFE_MASK) in esai_isr()
127 if (esr & ESAI_ESR_TLS_MASK) in esai_isr()
130 if (esr & ESAI_ESR_TDE_MASK) in esai_isr()
133 if (esr & ESAI_ESR_TED_MASK) in esai_isr()
136 if (esr & ESAI_ESR_TD_MASK) in esai_isr()
139 if (esr in esai_isr()
[all...]

1234