Home
last modified time | relevance | path

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

1234

/linux-6.12.1/arch/arm64/mm/
Dfault.c48 int (*fn)(unsigned long far, unsigned long esr,
58 static inline const struct fault_info *esr_to_fault_info(unsigned long esr) in esr_to_fault_info() argument
60 return fault_info + (esr & ESR_ELx_FSC); in esr_to_fault_info()
63 static inline const struct fault_info *esr_to_debug_fault_info(unsigned long esr) in esr_to_debug_fault_info() argument
65 return debug_fault_info + DBG_ESR_EVT(esr); in esr_to_debug_fault_info()
68 static void data_abort_decode(unsigned long esr) in data_abort_decode() argument
70 unsigned long iss2 = ESR_ELx_ISS2(esr); in data_abort_decode()
74 if (esr & ESR_ELx_ISV) { in data_abort_decode()
76 1U << ((esr & ESR_ELx_SAS) >> ESR_ELx_SAS_SHIFT)); in data_abort_decode()
78 (esr & ESR_ELx_SSE) >> ESR_ELx_SSE_SHIFT, in data_abort_decode()
[all …]
/linux-6.12.1/arch/arm64/kernel/
Dentry-common.c321 unsigned long esr) in __panic_unhandled() argument
328 vector, smp_processor_id(), esr, in __panic_unhandled()
329 esr_get_class_string(esr)); in __panic_unhandled()
426 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort() argument
432 do_mem_abort(far, esr, regs); in el1_abort()
437 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc() argument
443 do_sp_pc_abort(far, esr, regs); in el1_pc()
448 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) in el1_undef() argument
452 do_el1_undef(regs, esr); in el1_undef()
457 static void noinstr el1_bti(struct pt_regs *regs, unsigned long esr) in el1_bti() argument
[all …]
Dtraps.c247 unsigned long esr = tsk->thread.fault_code; in arm64_show_signal() local
257 if (esr) in arm64_show_signal()
258 pr_cont("%s, ESR 0x%016lx, ", esr_get_class_string(esr), esr); in arm64_show_signal()
460 void do_el0_undef(struct pt_regs *regs, unsigned long esr) in do_el0_undef() argument
481 void do_el1_undef(struct pt_regs *regs, unsigned long esr) in do_el1_undef() argument
492 die("Oops - Undefined instruction", regs, esr); in do_el1_undef()
500 void do_el1_bti(struct pt_regs *regs, unsigned long esr) in do_el1_bti() argument
506 die("Oops - BTI", regs, esr); in do_el1_bti()
509 void do_el0_fpac(struct pt_regs *regs, unsigned long esr) in do_el0_fpac() argument
511 force_signal_inject(SIGILL, ILL_ILLOPN, regs->pc, esr); in do_el0_fpac()
[all …]
Ddebug-monitors.c205 static int call_step_hook(struct pt_regs *regs, unsigned long esr) in call_step_hook() argument
218 retval = hook->fn(regs, esr); in call_step_hook()
241 static int single_step_handler(unsigned long unused, unsigned long esr, in single_step_handler() argument
253 if (!handler_found && call_step_hook(regs, esr) == DBG_HOOK_HANDLED) in single_step_handler()
302 static int call_break_hook(struct pt_regs *regs, unsigned long esr) in call_break_hook() argument
306 int (*fn)(struct pt_regs *regs, unsigned long esr) = NULL; in call_break_hook()
315 if ((esr_brk_comment(esr) & ~hook->mask) == hook->imm) in call_break_hook()
319 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; in call_break_hook()
323 static int brk_handler(unsigned long unused, unsigned long esr, in brk_handler() argument
326 if (call_break_hook(regs, esr) == DBG_HOOK_HANDLED) in brk_handler()
Dfpsimd.c1385 void do_sve_acc(unsigned long esr, struct pt_regs *regs) in do_sve_acc() argument
1427 void do_sme_acc(unsigned long esr, struct pt_regs *regs) in do_sme_acc() argument
1439 if (ESR_ELx_ISS(esr) != ESR_ELx_SME_ISS_SME_DISABLED) { in do_sme_acc()
1471 void do_fpsimd_acc(unsigned long esr, struct pt_regs *regs) in do_fpsimd_acc() argument
1489 void do_fpsimd_exc(unsigned long esr, struct pt_regs *regs) in do_fpsimd_exc() argument
1493 if (esr & ESR_ELx_FP_EXC_TFV) { in do_fpsimd_exc()
1494 if (esr & FPEXC_IOF) in do_fpsimd_exc()
1496 else if (esr & FPEXC_DZF) in do_fpsimd_exc()
1498 else if (esr & FPEXC_OFF) in do_fpsimd_exc()
1500 else if (esr & FPEXC_UFF) in do_fpsimd_exc()
[all …]
Dkgdb.c237 static int kgdb_brk_fn(struct pt_regs *regs, unsigned long esr) in kgdb_brk_fn() argument
244 static int kgdb_compiled_brk_fn(struct pt_regs *regs, unsigned long esr) in NOKPROBE_SYMBOL()
253 static int kgdb_step_brk_fn(struct pt_regs *regs, unsigned long esr) in kgdb_step_brk_fn() argument
/linux-6.12.1/arch/arm64/include/asm/
Desr.h74 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT) argument
79 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK) argument
82 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT) argument
225 #define ESR_ELx_SYS64_ISS_RT(esr) \ argument
226 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
385 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr) & (UL(0x1f) << 10)) >> 10) argument
386 #define ESR_ELx_MOPS_ISS_SRCREG(esr) (((esr) & (UL(0x1f) << 5)) >> 5) argument
387 #define ESR_ELx_MOPS_ISS_SIZEREG(esr) (((esr) & (UL(0x1f) << 0)) >> 0) argument
392 static inline unsigned long esr_brk_comment(unsigned long esr) in esr_brk_comment() argument
394 return esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in esr_brk_comment()
[all …]
Dexception.h19 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_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr,
62 void do_fpsimd_acc(unsigned long esr, struct pt_regs *regs);
[all …]
Dtraps.h32 int early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs);
61 static inline bool arm64_is_ras_serror(unsigned long esr) in arm64_is_ras_serror() argument
65 if (esr & ESR_ELx_IDS) in arm64_is_ras_serror()
81 static inline unsigned long arm64_ras_serror_get_severity(unsigned long esr) in arm64_ras_serror_get_severity() argument
83 unsigned long aet = esr & ESR_ELx_AET; in arm64_ras_serror_get_severity()
85 if (!arm64_is_ras_serror(esr)) { in arm64_ras_serror_get_severity()
94 if ((esr & ESR_ELx_FSC) != ESR_ELx_FSC_SERROR) { in arm64_ras_serror_get_severity()
102 bool arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned long esr);
103 void __noreturn arm64_serror_panic(struct pt_regs *regs, unsigned long esr);
105 static inline void arm64_mops_reset_regs(struct user_pt_regs *regs, unsigned long esr) in arm64_mops_reset_regs() argument
[all …]
Dkvm_emulate.h61 u64 esr = FIELD_PREP(ESR_ELx_EC_MASK, ESR_ELx_EC_SVE) | in kvm_inject_nested_sve_trap() local
64 kvm_inject_nested_sync(vcpu, esr); in kvm_inject_nested_sve_trap()
281 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_vcpu_get_condition() local
283 if (esr & ESR_ELx_CV) in kvm_vcpu_get_condition()
284 return (esr & ESR_ELx_COND_MASK) >> ESR_ELx_COND_SHIFT; in kvm_vcpu_get_condition()
396 unsigned long esr = kvm_vcpu_get_esr(vcpu); in kvm_vcpu_trap_get_perm_fault_granule() local
398 BUG_ON(!esr_fsc_is_permission_fault(esr)); in kvm_vcpu_trap_get_perm_fault_granule()
399 return BIT(ARM64_HW_PGTABLE_LEVEL_SHIFT(esr & ESR_ELx_FSC_LEVEL)); in kvm_vcpu_trap_get_perm_fault_granule()
417 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_vcpu_sys_get_rt() local
418 return ESR_ELx_SYS64_ISS_RT(esr); in kvm_vcpu_sys_get_rt()
Ddebug-monitors.h67 int (*fn)(struct pt_regs *regs, unsigned long esr);
78 int (*fn)(struct pt_regs *regs, unsigned long esr);
/linux-6.12.1/arch/arm64/kvm/
Dinject_fault.c61 u64 esr = 0; in inject_abt64() local
70 esr |= ESR_ELx_IL; in inject_abt64()
77 esr |= (ESR_ELx_EC_IABT_LOW << ESR_ELx_EC_SHIFT); in inject_abt64()
79 esr |= (ESR_ELx_EC_IABT_CUR << ESR_ELx_EC_SHIFT); in inject_abt64()
82 esr |= ESR_ELx_EC_DABT_LOW << ESR_ELx_EC_SHIFT; in inject_abt64()
84 esr |= ESR_ELx_FSC_EXTABT; in inject_abt64()
88 vcpu_write_sys_reg(vcpu, esr, ESR_EL1); in inject_abt64()
91 vcpu_write_sys_reg(vcpu, esr, ESR_EL2); in inject_abt64()
97 u64 esr = (ESR_ELx_EC_UNKNOWN << ESR_ELx_EC_SHIFT); in inject_undef64() local
106 esr |= ESR_ELx_IL; in inject_undef64()
[all …]
Dhandle_exit.c31 static void kvm_handle_guest_serror(struct kvm_vcpu *vcpu, u64 esr) in kvm_handle_guest_serror() argument
33 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(NULL, esr)) in kvm_handle_guest_serror()
131 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_wfx() local
133 if (esr & ESR_ELx_WFx_ISS_WFE) { in kvm_handle_wfx()
141 if (esr & ESR_ELx_WFx_ISS_WFxT) { in kvm_handle_wfx()
142 if (esr & ESR_ELx_WFx_ISS_RV) { in kvm_handle_wfx()
152 esr &= ~ESR_ELx_WFx_ISS_WFxT; in kvm_handle_wfx()
156 if (esr & ESR_ELx_WFx_ISS_WFE) { in kvm_handle_wfx()
159 if (esr & ESR_ELx_WFx_ISS_WFxT) in kvm_handle_wfx()
184 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_guest_debug() local
[all …]
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) >> 10) & 0xf, \
[all …]
Dtrace_arm.h140 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;
159 __entry->ipa, __entry->esr,
Dnested.c112 u32 esr; in esr_s2_fault() local
114 esr = kvm_vcpu_get_esr(vcpu) & ~ESR_ELx_FSC; in esr_s2_fault()
115 esr |= compute_fsc(level, fsc); in esr_s2_fault()
116 return esr; in esr_s2_fault()
214 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
243 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
253 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
265 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
271 out->esr = compute_fsc(level, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
277 out->esr = compute_fsc(level, ESR_ELx_FSC_ACCESS); in walk_nested_s2_pgd()
[all …]
/linux-6.12.1/arch/sh/boards/mach-dreamcast/
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-6.12.1/drivers/net/can/
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()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dfault.h47 static inline bool __get_fault_info(u64 esr, struct kvm_vcpu_fault_info *fault) in __get_fault_info() argument
64 if (!(esr & ESR_ELx_S1PTW) && in __get_fault_info()
66 esr_fsc_is_permission_fault(esr))) { in __get_fault_info()
/linux-6.12.1/arch/powerpc/platforms/44x/
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-6.12.1/drivers/net/ethernet/ibm/emac/
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 & MAL_ESR_EVB) { in mal_int()
[all …]
/linux-6.12.1/sound/soc/fsl/
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 & ESAI_ESR_RLS_MASK) in esai_isr()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dswitch.c261 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_hyp_handle_eret() local
297 if (esr_iss_is_eretax(esr)) { in kvm_hyp_handle_eret()
363 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_hyp_handle_cpacr_el1() local
366 if (!is_hyp_ctxt(vcpu) || esr_sys64_to_sysreg(esr) != SYS_CPACR_EL1) in kvm_hyp_handle_cpacr_el1()
371 if ((esr & ESR_ELx_SYS64_ISS_DIR_MASK) == ESR_ELx_SYS64_ISS_DIR_READ) { in kvm_hyp_handle_cpacr_el1()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dsys_regs.c37 u64 esr = (ESR_ELx_EC_UNKNOWN << ESR_ELx_EC_SHIFT); in inject_undef64() local
46 write_sysreg_el1(esr, SYS_ESR); in inject_undef64()
478 unsigned long esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_pvm_sysreg() local
481 params = esr_sys64_to_params(esr); in kvm_handle_pvm_sysreg()
/linux-6.12.1/arch/mips/include/asm/octeon/
Dcvmx-sli-defs.h107 __BITFIELD_FIELD(uint64_t esr:2,
119 __BITFIELD_FIELD(uint64_t esr:2,

1234