/linux-master/arch/arm64/include/asm/ |
H A D | exception.h | 10 #include <asm/esr.h> 19 unsigned long esr = ESR_ELx_EC_SERROR << ESR_ELx_EC_SHIFT; local 22 esr |= (disr & DISR_EL1_ESR_MASK); 24 esr |= (disr & ESR_ELx_ISS_MASK); 26 return 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_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr, [all...] |
H A D | traps.h | 11 #include <asm/esr.h> 31 int early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs); 60 static inline bool arm64_is_ras_serror(unsigned long esr) argument 64 if (esr & ESR_ELx_IDS) 80 static inline unsigned long arm64_ras_serror_get_severity(unsigned long esr) argument 82 unsigned long aet = esr & ESR_ELx_AET; 84 if (!arm64_is_ras_serror(esr)) { 93 if ((esr & ESR_ELx_FSC) != ESR_ELx_FSC_SERROR) { 101 bool arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned long esr); 102 void __noreturn arm64_serror_panic(struct pt_regs *regs, unsigned long esr); 104 arm64_mops_reset_regs(struct user_pt_regs *regs, unsigned long esr) argument [all...] |
H A D | esr.h | 74 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT) 79 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK) 82 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT) 215 #define ESR_ELx_SYS64_ISS_RT(esr) \ 216 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT) 375 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr) 382 esr_is_data_abort(unsigned long esr) argument 389 esr_fsc_is_translation_fault(unsigned long esr) argument 397 esr_fsc_is_permission_fault(unsigned long esr) argument 402 esr_fsc_is_access_flag_fault(unsigned long esr) argument [all...] |
H A D | kvm_ras.h | 17 static inline int kvm_handle_guest_sea(phys_addr_t addr, u64 esr) argument
|
H A D | debug-monitors.h | 11 #include <asm/esr.h> 67 int (*fn)(struct pt_regs *regs, unsigned long esr); 78 int (*fn)(struct pt_regs *regs, unsigned long esr);
|
H A D | kvm_emulate.h | 17 #include <asm/esr.h> 304 u64 esr = kvm_vcpu_get_esr(vcpu); local 306 if (esr & ESR_ELx_CV) 307 return (esr & ESR_ELx_COND_MASK) >> ESR_ELx_COND_SHIFT; 419 unsigned long esr = kvm_vcpu_get_esr(vcpu); local 421 BUG_ON(!esr_fsc_is_permission_fault(esr)); 422 return BIT(ARM64_HW_PGTABLE_LEVEL_SHIFT(esr & ESR_ELx_FSC_LEVEL)); 440 u64 esr = kvm_vcpu_get_esr(vcpu); local 441 return ESR_ELx_SYS64_ISS_RT(esr);
|
/linux-master/arch/arm64/kernel/ |
H A D | entry-common.c | 20 #include <asm/esr.h> 321 unsigned long esr) 328 vector, smp_processor_id(), esr, 329 esr_get_class_string(esr)); 426 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) argument 432 do_mem_abort(far, esr, regs); 437 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) argument 443 do_sp_pc_abort(far, esr, regs); 448 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) argument 452 do_el1_undef(regs, esr); 320 __panic_unhandled(struct pt_regs *regs, const char *vector, unsigned long esr) argument 457 el1_bti(struct pt_regs *regs, unsigned long esr) argument 466 el1_dbg(struct pt_regs *regs, unsigned long esr) argument 476 el1_fpac(struct pt_regs *regs, unsigned long esr) argument 487 unsigned long esr = read_sysreg(esr_el1); local 566 unsigned long esr = read_sysreg(esr_el1); local 574 el0_da(struct pt_regs *regs, unsigned long esr) argument 584 el0_ia(struct pt_regs *regs, unsigned long esr) argument 602 el0_fpsimd_acc(struct pt_regs *regs, unsigned long esr) argument 610 el0_sve_acc(struct pt_regs *regs, unsigned long esr) argument 618 el0_sme_acc(struct pt_regs *regs, unsigned long esr) argument 626 el0_fpsimd_exc(struct pt_regs *regs, unsigned long esr) argument 634 el0_sys(struct pt_regs *regs, unsigned long esr) argument 642 el0_pc(struct pt_regs *regs, unsigned long esr) argument 655 el0_sp(struct pt_regs *regs, unsigned long esr) argument 663 el0_undef(struct pt_regs *regs, unsigned long esr) argument 679 el0_mops(struct pt_regs *regs, unsigned long esr) argument 687 el0_inv(struct pt_regs *regs, unsigned long esr) argument 695 el0_dbg(struct pt_regs *regs, unsigned long esr) argument 716 el0_fpac(struct pt_regs *regs, unsigned long esr) argument 726 unsigned long esr = read_sysreg(esr_el1); local 822 unsigned long esr = read_sysreg(esr_el1); local 839 el0_cp15(struct pt_regs *regs, unsigned long esr) argument 858 unsigned long esr = read_sysreg(esr_el1); local 924 unsigned long esr = read_sysreg(esr_el1); local [all...] |
H A D | traps.c | 39 #include <asm/esr.h> 247 unsigned long esr = tsk->thread.fault_code; local 257 if (esr) 258 pr_cont("%s, ESR 0x%016lx, ", esr_get_class_string(esr), esr); 454 void do_el0_undef(struct pt_regs *regs, unsigned long esr) argument 475 void do_el1_undef(struct pt_regs *regs, unsigned long esr) argument 486 die("Oops - Undefined instruction", regs, esr); 494 void do_el1_bti(struct pt_regs *regs, unsigned long esr) argument 500 die("Oops - BTI", regs, esr); 503 do_el0_fpac(struct pt_regs *regs, unsigned long esr) argument 508 do_el1_fpac(struct pt_regs *regs, unsigned long esr) argument 517 do_el0_mops(struct pt_regs *regs, unsigned long esr) argument 543 user_cache_maint_handler(unsigned long esr, struct pt_regs *regs) argument 583 ctr_read_handler(unsigned long esr, struct pt_regs *regs) argument 602 cntvct_read_handler(unsigned long esr, struct pt_regs *regs) argument 610 cntfrq_read_handler(unsigned long esr, struct pt_regs *regs) argument 618 mrs_handler(unsigned long esr, struct pt_regs *regs) argument 629 wfi_handler(unsigned long esr, struct pt_regs *regs) argument 686 cp15_cond_valid(unsigned long esr, struct pt_regs *regs) argument 706 compat_cntfrq_read_handler(unsigned long esr, struct pt_regs *regs) argument 723 compat_cntvct_read_handler(unsigned long esr, struct pt_regs *regs) argument 748 do_el0_cp15(unsigned long esr, struct pt_regs *regs) argument 788 do_el0_sys(unsigned long esr, struct pt_regs *regs) argument 853 esr_get_class_string(unsigned long esr) argument 862 bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr) argument 878 panic_bad_stack(struct pt_regs *regs, unsigned long esr, unsigned long far) argument 908 arm64_serror_panic(struct pt_regs *regs, unsigned long esr) argument 922 arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned long esr) argument 954 do_serror(struct pt_regs *regs, unsigned long esr) argument 976 bug_handler(struct pt_regs *regs, unsigned long esr) argument 1002 cfi_handler(struct pt_regs *regs, unsigned long esr) argument 1033 reserved_fault_handler(struct pt_regs *regs, unsigned long esr) argument 1055 kasan_handler(struct pt_regs *regs, unsigned long esr) argument 1095 ubsan_handler(struct pt_regs *regs, unsigned long esr) argument 1097 die(report_ubsan_failure(regs, esr & UBSAN_BRK_MASK), regs, esr); local 1114 early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument [all...] |
H A D | debug-monitors.c | 205 static int call_step_hook(struct pt_regs *regs, unsigned long esr) argument 218 retval = hook->fn(regs, esr); 241 static int single_step_handler(unsigned long unused, unsigned long esr, argument 253 if (!handler_found && call_step_hook(regs, esr) == DBG_HOOK_HANDLED) 302 static int call_break_hook(struct pt_regs *regs, unsigned long esr) argument 306 int (*fn)(struct pt_regs *regs, unsigned long esr) = NULL; 315 unsigned long comment = esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; 321 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; 325 static int brk_handler(unsigned long unused, unsigned long esr, argument 328 if (call_break_hook(regs, esr) [all...] |
/linux-master/arch/arm64/kvm/ |
H A D | inject_fault.c | 16 #include <asm/esr.h> 61 u64 esr = 0; local 70 esr |= ESR_ELx_IL; 77 esr |= (ESR_ELx_EC_IABT_LOW << ESR_ELx_EC_SHIFT); 79 esr |= (ESR_ELx_EC_IABT_CUR << ESR_ELx_EC_SHIFT); 82 esr |= ESR_ELx_EC_DABT_LOW << ESR_ELx_EC_SHIFT; 84 esr |= ESR_ELx_FSC_EXTABT; 88 vcpu_write_sys_reg(vcpu, esr, ESR_EL1); 91 vcpu_write_sys_reg(vcpu, esr, ESR_EL2); 97 u64 esr local 192 unsigned long addr, esr; local 233 kvm_set_sei_esr(struct kvm_vcpu *vcpu, u64 esr) argument [all...] |
H A D | handle_exit.c | 14 #include <asm/esr.h> 31 static void kvm_handle_guest_serror(struct kvm_vcpu *vcpu, u64 esr) argument 33 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(NULL, esr)) 116 u64 esr = kvm_vcpu_get_esr(vcpu); local 118 if (esr & ESR_ELx_WFx_ISS_WFE) { 126 if (esr & ESR_ELx_WFx_ISS_WFxT) { 127 if (esr & ESR_ELx_WFx_ISS_RV) { 137 esr &= ~ESR_ELx_WFx_ISS_WFxT; 141 if (esr 169 u64 esr = kvm_vcpu_get_esr(vcpu); local 190 u64 esr = kvm_vcpu_get_esr(vcpu); local 285 u64 esr = kvm_vcpu_get_esr(vcpu); local 386 nvhe_hyp_panic_handler(u64 esr, u64 spsr, u64 elr_virt, u64 elr_phys, u64 par, uintptr_t vcpu, u64 far, u64 hpfar) argument [all...] |
H A D | sys_regs.h | 37 #define esr_sys64_to_params(esr) \ 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) \ 46 ((struct sys_reg_params){ .Op1 = ((esr) >> 14) & 0x7, \ 47 .CRn = ((esr) >> 1 [all...] |
H A D | trace_arm.h | 140 TP_PROTO(unsigned long vcpu_pc, unsigned long esr, 142 TP_ARGS(vcpu_pc, esr, far, ipa), 146 __field( unsigned long, esr ) 153 __entry->esr = esr; 158 TP_printk("ipa %#016lx, esr %#016lx, far %#016lx, pc %#016lx", 159 __entry->ipa, __entry->esr,
|
/linux-master/arch/arm64/mm/ |
H A D | fault.c | 37 #include <asm/esr.h> 47 int (*fn)(unsigned long far, unsigned long esr, 57 static inline const struct fault_info *esr_to_fault_info(unsigned long esr) argument 59 return fault_info + (esr & ESR_ELx_FSC); 62 static inline const struct fault_info *esr_to_debug_fault_info(unsigned long esr) argument 64 return debug_fault_info + DBG_ESR_EVT(esr); 67 static void data_abort_decode(unsigned long esr) argument 69 unsigned long iss2 = ESR_ELx_ISS2(esr); 73 if (esr & ESR_ELx_ISV) { 75 1U << ((esr 100 mem_abort_decode(unsigned long esr) argument 247 is_el1_instruction_abort(unsigned long esr) argument 252 is_el1_data_abort(unsigned long esr) argument 257 is_el1_permission_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 273 is_spurious_el1_translation_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 304 die_kernel_fault(const char *msg, unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 323 report_tag_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 335 report_tag_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 339 do_tag_recovery(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 355 is_el1_mte_sync_tag_check_fault(unsigned long esr) argument 368 __do_kernel_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 413 set_thread_esr(unsigned long address, unsigned long esr) argument 470 do_bad_area(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 508 is_el0_instruction_abort(unsigned long esr) argument 517 is_write_abort(unsigned long esr) argument 522 do_page_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 697 do_translation_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 710 do_alignment_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 720 do_bad(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 725 do_sea(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 755 do_tag_check_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 835 do_mem_abort(unsigned long far, unsigned long esr, struct pt_regs *regs) argument 855 do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs) argument 912 do_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr, struct pt_regs *regs) argument [all...] |
/linux-master/arch/arm64/kvm/hyp/include/hyp/ |
H A D | fault.h | 44 static inline bool __get_fault_info(u64 esr, struct kvm_vcpu_fault_info *fault) argument 61 if (!(esr & ESR_ELx_S1PTW) && 63 esr_fsc_is_permission_fault(esr))) {
|
/linux-master/arch/powerpc/platforms/4xx/ |
H A D | machine_check.c | 13 unsigned long reason = regs->esr;
|
/linux-master/arch/sh/boards/mach-dreamcast/ |
H A D | irq.c | 90 __u32 esr = ESR_BASE + (LEVEL(irq) << 2); local 92 outl((1 << EVENT_BIT(irq)), esr); 107 __u32 emr, esr, status, level; local 124 esr = ESR_BASE + (level << 2); 127 status = inl(esr);
|
/linux-master/arch/alpha/kernel/ |
H A D | core_lca.c | 340 mem_error(unsigned long esr, unsigned long ear) 343 ((esr & ESR_CEE) ? "Correctable" : 344 (esr & ESR_UEE) ? "Uncorrectable" : "A"), 345 (esr & ESR_WRE) ? "write" : "read", 346 (esr & ESR_SOR) ? "memory" : "b-cache", 348 if (esr & ESR_CTE) { 351 if (esr & ESR_MSE) { 354 if (esr & ESR_MHE) { 357 if (esr & ESR_NXM) { 437 if (el.s->esr 338 mem_error(unsigned long esr, unsigned long ear) argument [all...] |
/linux-master/arch/powerpc/platforms/44x/ |
H A D | machine_check.c | 14 unsigned long reason = regs->esr; 51 unsigned long reason = regs->esr;
|
/linux-master/arch/powerpc/include/uapi/asm/ |
H A D | kvm_para.h | 58 __u32 esr; member in struct:kvm_vcpu_arch_shared
|
/linux-master/drivers/net/can/ |
H A D | bxcan.c | 158 u32 esr; /* 0x18 - error status */ member in struct:bxcan_regs 466 static void bxcan_handle_state_change(struct net_device *ndev, u32 esr) argument 476 if (!(esr & (BXCAN_ESR_EWGF | BXCAN_ESR_EPVF | BXCAN_ESR_BOFF))) 479 bec.txerr = FIELD_GET(BXCAN_ESR_TEC_MASK, esr); 480 bec.rxerr = FIELD_GET(BXCAN_ESR_REC_MASK, esr); 482 if (esr & BXCAN_ESR_BOFF) 484 else if (esr & BXCAN_ESR_EPVF) 486 else if (esr & BXCAN_ESR_EWGF) 517 static void bxcan_handle_bus_err(struct net_device *ndev, u32 esr) argument 524 lec_code = FIELD_GET(BXCAN_ESR_LEC_MASK, esr); 607 u32 msr, esr; local 916 u32 esr; local [all...] |
/linux-master/arch/mips/include/asm/octeon/ |
H A D | cvmx-sli-defs.h | 107 __BITFIELD_FIELD(uint64_t esr:2, 119 __BITFIELD_FIELD(uint64_t esr:2,
|
/linux-master/arch/microblaze/include/uapi/asm/ |
H A D | ptrace.h | 53 microblaze_reg_t esr; member in struct:pt_regs
|
/linux-master/arch/microblaze/include/asm/ |
H A D | thread_info.h | 55 __u32 esr; member in struct:cpu_context
|
/linux-master/sound/soc/fsl/ |
H A D | fsl_esai.c | 102 u32 esr; local 105 regmap_read(esai_priv->regmap, REG_ESAI_ESR, &esr); 118 if (esr & ESAI_ESR_TINIT_MASK) 121 if (esr & ESAI_ESR_RFF_MASK) 124 if (esr & ESAI_ESR_TFE_MASK) 127 if (esr & ESAI_ESR_TLS_MASK) 130 if (esr & ESAI_ESR_TDE_MASK) 133 if (esr & ESAI_ESR_TED_MASK) 136 if (esr & ESAI_ESR_TD_MASK) 139 if (esr [all...] |