Home
last modified time | relevance | path

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

123

/linux/arch/arm64/include/asm/
H A Desr.h77 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT)
82 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK)
85 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT)
247 #define ESR_ELx_SYS64_ISS_RT(esr) \
248 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
396 #define ESR_ELx_SME_ISS_SMTC(esr) ((esr)
76 ESR_ELx_EC(esr) global() argument
81 ESR_ELx_ISS(esr) global() argument
84 ESR_ELx_ISS2(esr) global() argument
246 ESR_ELx_SYS64_ISS_RT(esr) global() argument
395 ESR_ELx_SME_ISS_SMTC(esr) global() argument
408 ESR_ELx_MOPS_ISS_DESTREG(esr) global() argument
409 ESR_ELx_MOPS_ISS_SRCREG(esr) global() argument
410 ESR_ELx_MOPS_ISS_SIZEREG(esr) global() argument
440 esr_brk_comment(unsigned long esr) esr_brk_comment() argument
445 esr_is_data_abort(unsigned long esr) esr_is_data_abort() argument
452 esr_is_cfi_brk(unsigned long esr) esr_is_cfi_brk() argument
458 esr_is_ubsan_brk(unsigned long esr) esr_is_ubsan_brk() argument
463 esr_fsc_is_translation_fault(unsigned long esr) esr_fsc_is_translation_fault() argument
474 esr_fsc_is_permission_fault(unsigned long esr) esr_fsc_is_permission_fault() argument
484 esr_fsc_is_access_flag_fault(unsigned long esr) esr_fsc_is_access_flag_fault() argument
494 esr_fsc_is_excl_atomic_fault(unsigned long esr) esr_fsc_is_excl_atomic_fault() argument
501 esr_fsc_is_addr_sz_fault(unsigned long esr) esr_fsc_is_addr_sz_fault() argument
512 esr_fsc_is_sea_ttw(unsigned long esr) esr_fsc_is_sea_ttw() argument
523 esr_fsc_is_secc_ttw(unsigned long esr) esr_fsc_is_secc_ttw() argument
535 esr_iss_is_eretax(unsigned long esr) esr_iss_is_eretax() argument
541 esr_iss_is_eretab(unsigned long esr) esr_iss_is_eretab() argument
[all...]
H A 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_el0_gcs(struct pt_regs *regs, unsigned long esr);
61 void do_el1_gcs(struct pt_regs *regs, unsigned long esr);
[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.h52 unsigned long esr);
54 unsigned long esr);
56 unsigned long esr);
/linux/arch/arm64/mm/
H A Dfault.c40 #include <asm/esr.h>
51 int (*fn)(unsigned long far, unsigned long esr,
60 static inline const struct fault_info *esr_to_fault_info(unsigned long esr) in esr_to_fault_info() argument
62 return fault_info + (esr & ESR_ELx_FSC); in esr_to_fault_info()
65 static void data_abort_decode(unsigned long esr) in data_abort_decode() argument
67 unsigned long iss2 = ESR_ELx_ISS2(esr); in data_abort_decode()
71 if (esr & ESR_ELx_ISV) { in data_abort_decode()
73 1U << ((esr & ESR_ELx_SAS) >> ESR_ELx_SAS_SHIFT)); in data_abort_decode()
75 (esr & ESR_ELx_SSE) >> ESR_ELx_SSE_SHIFT, in data_abort_decode()
76 (esr in data_abort_decode()
99 mem_abort_decode(unsigned long esr) mem_abort_decode() argument
273 is_el1_instruction_abort(unsigned long esr) is_el1_instruction_abort() argument
278 is_el1_data_abort(unsigned long esr) is_el1_data_abort() argument
283 is_el1_permission_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) is_el1_permission_fault() argument
299 is_pkvm_stage2_abort(unsigned int esr) is_pkvm_stage2_abort() argument
309 is_spurious_el1_translation_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) is_spurious_el1_translation_fault() argument
346 die_kernel_fault(const char * msg,unsigned long addr,unsigned long esr,struct pt_regs * regs) die_kernel_fault() argument
364 report_tag_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) report_tag_fault() argument
376 report_tag_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) report_tag_fault() argument
380 do_tag_recovery(unsigned long addr,unsigned long esr,struct pt_regs * regs) do_tag_recovery() argument
396 is_el1_mte_sync_tag_check_fault(unsigned long esr) is_el1_mte_sync_tag_check_fault() argument
409 __do_kernel_fault(unsigned long addr,unsigned long esr,struct pt_regs * regs) __do_kernel_fault() argument
461 set_thread_esr(unsigned long address,unsigned long esr) set_thread_esr() argument
518 do_bad_area(unsigned long far,unsigned long esr,struct pt_regs * regs) do_bad_area() argument
566 is_gcs_fault(unsigned long esr) is_gcs_fault() argument
574 is_el0_instruction_abort(unsigned long esr) is_el0_instruction_abort() argument
583 is_write_abort(unsigned long esr) is_write_abort() argument
588 is_invalid_gcs_access(struct vm_area_struct * vma,u64 esr) is_invalid_gcs_access() argument
605 do_page_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_page_fault() argument
844 do_translation_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_translation_fault() argument
856 do_alignment_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_alignment_fault() argument
866 do_bad(unsigned long far,unsigned long esr,struct pt_regs * regs) do_bad() argument
871 do_sea(unsigned long far,unsigned long esr,struct pt_regs * regs) do_sea() argument
902 do_tag_check_fault(unsigned long far,unsigned long esr,struct pt_regs * regs) do_tag_check_fault() argument
918 do_gpf_ptw(unsigned long far,unsigned long esr,struct pt_regs * regs) do_gpf_ptw() argument
927 do_gpf(unsigned long far,unsigned long esr,struct pt_regs * regs) do_gpf() argument
1008 do_mem_abort(unsigned long far,unsigned long esr,struct pt_regs * regs) do_mem_abort() argument
1028 do_sp_pc_abort(unsigned long addr,unsigned long esr,struct pt_regs * regs) do_sp_pc_abort() argument
[all...]
H A Dextable.c15 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()
90 bool fixup_exception(struct pt_regs *regs, unsigned long esr) in fixup_exception() argument
105 return ex_handler_uaccess_cpy(ex, regs, esr); in fixup_exception()
/linux/arch/arm64/kernel/
H A Dentry-common.c22 #include <asm/esr.h>
228 unsigned long esr) in __panic_unhandled()
235 vector, smp_processor_id(), esr, in __panic_unhandled()
236 esr_get_class_string(esr)); in __panic_unhandled()
374 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort()
381 do_mem_abort(far, esr, regs); in el1_abort()
385 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc()
392 do_sp_pc_abort(far, esr, regs); in el1_pc()
396 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) in el1_undef()
402 do_el1_undef(regs, esr); in el1_undef()
227 __panic_unhandled(struct pt_regs * regs,const char * vector,unsigned long esr) __panic_unhandled() argument
373 el1_abort(struct pt_regs * regs,unsigned long esr) el1_abort() argument
384 el1_pc(struct pt_regs * regs,unsigned long esr) el1_pc() argument
395 el1_undef(struct pt_regs * regs,unsigned long esr) el1_undef() argument
405 el1_bti(struct pt_regs * regs,unsigned long esr) el1_bti() argument
415 el1_gcs(struct pt_regs * regs,unsigned long esr) el1_gcs() argument
425 el1_mops(struct pt_regs * regs,unsigned long esr) el1_mops() argument
435 el1_breakpt(struct pt_regs * regs,unsigned long esr) el1_breakpt() argument
446 el1_softstp(struct pt_regs * regs,unsigned long esr) el1_softstp() argument
466 el1_watchpt(struct pt_regs * regs,unsigned long esr) el1_watchpt() argument
479 el1_brk64(struct pt_regs * regs,unsigned long esr) el1_brk64() argument
490 el1_fpac(struct pt_regs * regs,unsigned long esr) el1_fpac() argument
502 unsigned long esr = read_sysreg(esr_el1); el1h_64_sync_handler() local
596 unsigned long esr = read_sysreg(esr_el1); el1h_64_error_handler() local
606 el0_da(struct pt_regs * regs,unsigned long esr) el0_da() argument
616 el0_ia(struct pt_regs * regs,unsigned long esr) el0_ia() argument
634 el0_fpsimd_acc(struct pt_regs * regs,unsigned long esr) el0_fpsimd_acc() argument
642 el0_sve_acc(struct pt_regs * regs,unsigned long esr) el0_sve_acc() argument
650 el0_sme_acc(struct pt_regs * regs,unsigned long esr) el0_sme_acc() argument
658 el0_fpsimd_exc(struct pt_regs * regs,unsigned long esr) el0_fpsimd_exc() argument
666 el0_sys(struct pt_regs * regs,unsigned long esr) el0_sys() argument
674 el0_pc(struct pt_regs * regs,unsigned long esr) el0_pc() argument
687 el0_sp(struct pt_regs * regs,unsigned long esr) el0_sp() argument
695 el0_undef(struct pt_regs * regs,unsigned long esr) el0_undef() argument
711 el0_mops(struct pt_regs * regs,unsigned long esr) el0_mops() argument
719 el0_gcs(struct pt_regs * regs,unsigned long esr) el0_gcs() argument
727 el0_inv(struct pt_regs * regs,unsigned long esr) el0_inv() argument
735 el0_breakpt(struct pt_regs * regs,unsigned long esr) el0_breakpt() argument
748 el0_softstp(struct pt_regs * regs,unsigned long esr) el0_softstp() argument
769 el0_watchpt(struct pt_regs * regs,unsigned long esr) el0_watchpt() argument
782 el0_brk64(struct pt_regs * regs,unsigned long esr) el0_brk64() argument
801 el0_fpac(struct pt_regs * regs,unsigned long esr) el0_fpac() argument
811 unsigned long esr = read_sysreg(esr_el1); el0t_64_sync_handler() local
916 unsigned long esr = read_sysreg(esr_el1); __el0_error_handler_common() local
934 el0_cp15(struct pt_regs * regs,unsigned long esr) el0_cp15() argument
951 el0_bkpt32(struct pt_regs * regs,unsigned long esr) el0_bkpt32() argument
961 unsigned long esr = read_sysreg(esr_el1); el0t_32_sync_handler() local
1032 unsigned long esr = read_sysreg(esr_el1); handle_bad_stack() local
[all...]
H A Dtraps.c242 unsigned long esr = tsk->thread.fault_code; in arm64_show_signal() local
252 if (esr) in arm64_show_signal()
253 pr_cont("%s, ESR 0x%016lx, ", esr_get_class_string(esr), esr); in arm64_show_signal()
455 void do_el0_undef(struct pt_regs *regs, unsigned long esr) in do_el0_undef() argument
476 void do_el1_undef(struct pt_regs *regs, unsigned long esr) in do_el1_undef() argument
487 die("Oops - Undefined instruction", regs, esr); in do_el1_undef()
495 void do_el1_bti(struct pt_regs *regs, unsigned long esr) in do_el1_bti() argument
501 die("Oops - BTI", regs, esr); in do_el1_bti()
504 void do_el0_gcs(struct pt_regs *regs, unsigned long esr) in do_el0_gcs() argument
509 void do_el1_gcs(struct pt_regs *regs, unsigned long esr) in do_el1_gcs() argument
[all …]
H A Dfpsimd.c1294 void do_sve_acc(unsigned long esr, struct pt_regs *regs) in do_sve_acc() argument
1428 void do_sme_acc(unsigned long esr, struct pt_regs *regs) in do_sme_acc() argument
1440 if (ESR_ELx_SME_ISS_SMTC(esr) != ESR_ELx_SME_ISS_SMTC_SME_DISABLED) { in do_sme_acc()
1473 void do_fpsimd_acc(unsigned long esr, struct pt_regs *regs) in do_fpsimd_acc() argument
1491 void do_fpsimd_exc(unsigned long esr, struct pt_regs *regs) in do_fpsimd_exc() argument
1495 if (esr & ESR_ELx_FP_EXC_TFV) { in do_fpsimd_exc()
1496 if (esr & FPEXC_IOF) in do_fpsimd_exc()
1498 else if (esr & FPEXC_DZF) in do_fpsimd_exc()
1500 else if (esr & FPEXC_OFF) in do_fpsimd_exc()
1502 else if (esr & FPEXC_UFF) in do_fpsimd_exc()
[all …]
H A Dkgdb.c233 int kgdb_brk_handler(struct pt_regs *regs, unsigned long esr) in kgdb_brk_handler() argument
240 int kgdb_compiled_brk_handler(struct pt_regs *regs, unsigned long esr) in NOKPROBE_SYMBOL()
249 int kgdb_single_step_handler(struct pt_regs *regs, unsigned long esr) in kgdb_single_step_handler() argument
/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
226 #define ESR_ELx_SYS64_ISS_RT(esr) \ argument
227 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
386 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr) & (UL(0x1f) << 10)) >> 10) argument
387 #define ESR_ELx_MOPS_ISS_SRCREG(esr) (((esr) & (UL(0x1f) << 5)) >> 5) argument
388 #define ESR_ELx_MOPS_ISS_SIZEREG(esr) (((esr) & (UL(0x1f) << 0)) >> 0) argument
393 static inline unsigned long esr_brk_comment(unsigned long esr) in esr_brk_comment() argument
395 return esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in esr_brk_comment()
[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()
61 static inline bool __hpfar_valid(u64 esr) in __hpfar_valid()
71 esr_fsc_is_translation_fault(esr)) in __hpfar_valid()
74 if (esr_fsc_is_translation_fault(esr) || esr_fsc_is_access_flag_fault(esr)) in __hpfar_valid()
77 if ((esr in __hpfar_valid()
60 __hpfar_valid(u64 esr) __hpfar_valid() argument
82 __get_fault_info(u64 esr,struct kvm_vcpu_fault_info * fault) __get_fault_info() argument
[all...]
/linux/arch/arm64/kvm/
H A Dinject_fault.c16 #include <asm/esr.h>
109 u64 esr = 0, fsc; in inject_abt64() local
144 esr |= ESR_ELx_IL; in inject_abt64()
151 esr |= (ESR_ELx_EC_IABT_LOW << ESR_ELx_EC_SHIFT); in inject_abt64()
153 esr |= (ESR_ELx_EC_IABT_CUR << ESR_ELx_EC_SHIFT); in inject_abt64()
156 esr |= ESR_ELx_EC_DABT_LOW << ESR_ELx_EC_SHIFT; in inject_abt64()
158 esr |= fsc; in inject_abt64()
161 vcpu_write_sys_reg(vcpu, esr, exception_esr_elx(vcpu)); in inject_abt64()
164 void kvm_inject_sync(struct kvm_vcpu *vcpu, u64 esr) in kvm_inject_sync() argument
167 vcpu_write_sys_reg(vcpu, esr, exception_esr_el in kvm_inject_sync()
172 u64 esr = (ESR_ELx_EC_UNKNOWN << ESR_ELx_EC_SHIFT) | ESR_ELx_IL; inject_undef64() local
254 u64 esr = FIELD_PREP(ESR_ELx_EC_MASK, ESR_ELx_EC_DABT_LOW) | kvm_inject_nested_excl_atomic() local
273 u64 esr; kvm_inject_dabt_excl_atomic() local
288 unsigned long addr, esr; kvm_inject_size_fault() local
360 kvm_inject_serror_esr(struct kvm_vcpu * vcpu,u64 esr) kvm_inject_serror_esr() argument
[all...]
H A Dnested.c171 u32 esr; in check_base_s2_limits()
173 esr = kvm_vcpu_get_esr(vcpu) & ~ESR_ELx_FSC; in check_base_s2_limits()
174 esr |= compute_fsc(level, fsc); in check_base_s2_limits()
175 return esr; in check_base_s2_limits()
302 out->esr = compute_fsc(0, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
312 out->esr = compute_fsc(0, ESR_ELx_FSC_ADDRSZ); in walk_nested_s2_pgd()
328 out->esr = ESR_ELx_FSC_SEA_TTW(level); in walk_nested_s2_pgd()
336 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
345 out->esr = compute_fsc(level, ESR_ELx_FSC_FAULT); in walk_nested_s2_pgd()
355 out->esr in walk_nested_s2_pgd()
155 u32 esr; esr_s2_fault() local
1529 u64 esr = kvm_vcpu_get_esr(vcpu); handle_vncr_perm() local
1554 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_vncr_abort() local
[all...]
H A Dmmio.c165 u64 esr; in io_mem_abort()
167 esr = kvm_vcpu_get_esr(vcpu); in io_mem_abort()
177 trace_kvm_mmio_nisv(*vcpu_pc(vcpu), esr, in io_mem_abort()
208 if (FIELD_GET(GENMASK(12, 11), esr)) { in io_mem_abort()
210 run->arm_nisv.esr_iss = esr & ~(u64)ESR_ELx_FSC; in io_mem_abort()
163 u64 esr; io_mem_abort() local
H A 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,
H A Dmmu.c1456 unsigned long esr; in transparent_hugepage_adjust()
1706 return esr_fsc_is_permission_fault(s2fd->esr); in pkvm_mem_abort()
1711 return esr_abt_is_exec_fault(s2fd->esr); in pkvm_mem_abort()
1716 return esr_abt_is_write_fault(s2fd->esr); in pkvm_mem_abort()
1725 level = s2fd->esr & ESR_ELx_FSC_LEVEL; in pkvm_mem_abort()
2104 if (esr_fsc_is_excl_atomic_fault(s2fd->esr)) { in user_mem_abort()
2297 !esr_abt_is_write_fault(s2fd->esr) && in kvm_handle_guest_abort()
2324 static bool host_owns_sea(struct kvm_vcpu *vcpu, u64 esr) in kvm_handle_guest_abort()
2335 if (is_hyp_ctxt(vcpu) && !kvm_vcpu_trap_is_iabt(vcpu) && (esr & ESR_ELx_VNCR)) in kvm_handle_guest_abort()
2345 return (esr_fsc_is_sea_ttw(esr) in kvm_handle_guest_abort()
2138 host_owns_sea(struct kvm_vcpu * vcpu,u64 esr) host_owns_sea() argument
2166 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_guest_sea() local
2227 unsigned long esr; kvm_handle_guest_abort() local
2298 u32 esr; kvm_handle_guest_abort() local
[all...]
/linux/tools/testing/selftests/kvm/arm64/
H A Dsea_to_user.c177 u64 esr = read_sysreg(esr_el1); in vcpu_inject_sea()
182 GUEST_PRINTF("ESR_EL1=%#lx, FAR_EL1=%#lx\n", esr, far); in vcpu_inject_sea()
184 GUEST_ASSERT_EQ(ESR_ELx_EC(esr), ESR_ELx_EC_DABT_CUR);
185 GUEST_ASSERT_EQ(esr & ESR_ELx_FSC_TYPE, ESR_ELx_FSC_EXTABT); in run_vm()
188 GUEST_ASSERT_EQ(esr & ESR_ELx_FnV, ESR_ELx_FnV); in run_vm()
191 GUEST_ASSERT_EQ(esr & ESR_ELx_FnV, 0); in run_vm()
211 u64 esr; in run_vm()
240 ksft_print_msg("kvm_run.arm_sea: esr=%#llx, flags=%#llx\n", in run_vm()
241 run->arm_sea.esr, run->arm_sea.flags); in run_vm()
245 esr in run_vm()
156 u64 esr = read_sysreg(esr_el1); expect_sea_handler() local
190 u64 esr; run_vm() local
[all...]
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()
235 u64 esr = read_sysreg(esr_el1); in test_serror_guest()
237 GUEST_ASSERT_EQ(ESR_ELx_EC(esr), ESR_ELx_EC_SERROR); in test_serror_guest()
239 GUEST_ASSERT_EQ(ESR_ELx_ISS(esr), EXPECTED_SERROR_ISS);
271 u64 esr = read_sysreg(esr_el1); in test_s1ptw_abort_guest()
274 GUEST_ASSERT_EQ(ESR_ELx_EC(esr), ESR_ELx_EC_DABT_CUR); in test_s1ptw_abort_guest()
275 GUEST_ASSERT_EQ((esr & ESR_ELx_FSC), ESR_ELx_FSC_SEA_TTW(3)); in test_s1ptw_abort_guest()
220 u64 esr = read_sysreg(esr_el1); expect_serror_handler() local
255 u64 esr = read_sysreg(esr_el1); expect_sea_s1ptw_handler() local
/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
915 u32 esr; bxcan_get_berr_counter() local
[all...]
/linux/drivers/net/ethernet/ibm/emac/
H A Dmal.c229 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_serr() local
232 set_mal_dcrn(mal, MAL_ESR, esr); in mal_serr()
234 MAL_DBG(mal, "SERR %08x" NL, esr); in mal_serr()
236 if (esr & MAL_ESR_EVB) { in mal_serr()
237 if (esr & MAL_ESR_DE) { in mal_serr()
244 if (esr & MAL_ESR_PEIN) { in mal_serr()
252 mal->index, esr); in mal_serr()
262 mal->index, esr); in mal_serr()
362 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_int() local
364 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/arch/arm64/kvm/hyp/nvhe/
H A Dhyp-main.c109 static bool pvm_sys64_is_write(u64 esr) in flush_hyp_vgic_state()
111 return (esr & ESR_ELx_SYS64_ISS_DIR_MASK) == ESR_ELx_SYS64_ISS_DIR_WRITE; in flush_hyp_vgic_state()
138 u32 esr = (ESR_ELx_EC_UNKNOWN << ESR_ELx_EC_SHIFT) | ESR_ELx_IL; in sync_hyp_vgic_state()
140 __vcpu_assign_sys_reg(vcpu, ESR_EL1, esr); in sync_hyp_vgic_state()
167 u32 esr = ESR_ELx_IL; in __copy_vcpu_state()
174 esr |= (ESR_ELx_EC_IABT_LOW << ESR_ELx_EC_SHIFT); in __copy_vcpu_state()
176 esr |= (ESR_ELx_EC_IABT_CUR << ESR_ELx_EC_SHIFT); in __copy_vcpu_state()
178 esr |= ESR_ELx_FSC_EXTABT; in sync_hyp_vcpu_state()
180 __vcpu_assign_sys_reg(vcpu, ESR_EL1, esr); in sync_hyp_vcpu_state()
225 u32 esr in flush_hyp_vcpu()
1014 u64 esr = read_sysreg_el2(SYS_ESR); handle_host_smc() local
1039 inject_host_exception(u64 esr) inject_host_exception() argument
1087 handle_host_mte(u64 esr) handle_host_mte() argument
1113 u64 esr = read_sysreg_el2(SYS_ESR); handle_trap() local
[all...]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-sli-defs.h107 __BITFIELD_FIELD(uint64_t esr:2,
119 __BITFIELD_FIELD(uint64_t esr:2,

123