Home
last modified time | relevance | path

Searched refs:esr (Results 1 - 25 of 140) sorted by relevance

123456

/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dentry-common.c14 #include <asm/esr.h>
112 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort() argument
119 do_mem_abort(far, esr, regs); in el1_abort()
124 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc() argument
130 do_sp_pc_abort(far, esr, regs); in el1_pc()
135 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) in el1_undef() argument
139 do_el1_undef(regs, esr); in el1_undef()
144 static void noinstr el1_bti(struct pt_regs *regs, unsigned long esr) in el1_bti() argument
148 do_el1_bti(regs, esr); in el1_bti()
153 static void noinstr el1_inv(struct pt_regs *regs, unsigned long esr) in el1_inv() argument
186 el1_dbg(struct pt_regs *regs, unsigned long esr) el1_dbg() argument
195 el1_fpac(struct pt_regs *regs, unsigned long esr) el1_fpac() argument
206 unsigned long esr = read_sysreg(esr_el1); el1_sync_handler() local
257 el0_da(struct pt_regs *regs, unsigned long esr) el0_da() argument
267 el0_ia(struct pt_regs *regs, unsigned long esr) el0_ia() argument
284 el0_fpsimd_acc(struct pt_regs *regs, unsigned long esr) el0_fpsimd_acc() argument
291 el0_sve_acc(struct pt_regs *regs, unsigned long esr) el0_sve_acc() argument
298 el0_fpsimd_exc(struct pt_regs *regs, unsigned long esr) el0_fpsimd_exc() argument
305 el0_sys(struct pt_regs *regs, unsigned long esr) el0_sys() argument
312 el0_pc(struct pt_regs *regs, unsigned long esr) el0_pc() argument
324 el0_sp(struct pt_regs *regs, unsigned long esr) el0_sp() argument
331 el0_undef(struct pt_regs *regs, unsigned long esr) el0_undef() argument
345 el0_inv(struct pt_regs *regs, unsigned long esr) el0_inv() argument
352 el0_dbg(struct pt_regs *regs, unsigned long esr) el0_dbg() argument
368 el0_fpac(struct pt_regs *regs, unsigned long esr) el0_fpac() argument
377 unsigned long esr = read_sysreg(esr_el1); el0_sync_handler() local
429 el0_cp15(struct pt_regs *regs, unsigned long esr) el0_cp15() argument
444 unsigned long esr = read_sysreg(esr_el1); el0_sync_compat_handler() local
[all...]
H A Dtraps.c36 #include <asm/esr.h>
155 unsigned int esr = tsk->thread.fault_code; in arm64_show_signal() local
165 if (esr) in arm64_show_signal()
166 pr_cont("%s, ESR 0x%08x, ", esr_get_class_string(esr), esr); in arm64_show_signal()
362 void do_el0_undef(struct pt_regs *regs, unsigned long esr) in do_el0_undef() argument
383 void do_el1_undef(struct pt_regs *regs, unsigned long esr) in do_el1_undef() argument
394 die("Oops - Undefined instruction", regs, esr); in do_el1_undef()
402 void do_el1_bti(struct pt_regs *regs, unsigned long esr) in do_el1_bti() argument
404 die("Oops - BTI", regs, esr); in do_el1_bti()
407 do_el0_fpac(struct pt_regs *regs, unsigned long esr) do_el0_fpac() argument
412 do_el1_fpac(struct pt_regs *regs, unsigned long esr) do_el1_fpac() argument
441 user_cache_maint_handler(unsigned int esr, struct pt_regs *regs) user_cache_maint_handler() argument
480 ctr_read_handler(unsigned int esr, struct pt_regs *regs) ctr_read_handler() argument
499 cntvct_read_handler(unsigned int esr, struct pt_regs *regs) cntvct_read_handler() argument
507 cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) cntfrq_read_handler() argument
515 mrs_handler(unsigned int esr, struct pt_regs *regs) mrs_handler() argument
526 wfi_handler(unsigned int esr, struct pt_regs *regs) wfi_handler() argument
577 cp15_cond_valid(unsigned int esr, struct pt_regs *regs) cp15_cond_valid() argument
597 compat_cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) compat_cntfrq_read_handler() argument
614 compat_cntvct_read_handler(unsigned int esr, struct pt_regs *regs) compat_cntvct_read_handler() argument
634 do_el0_cp15(unsigned long esr, struct pt_regs *regs) do_el0_cp15() argument
674 do_el0_sys(unsigned long esr, struct pt_regs *regs) do_el0_sys() argument
737 esr_get_class_string(u32 esr) esr_get_class_string() argument
746 bad_mode(struct pt_regs *regs, int reason, unsigned int esr) bad_mode() argument
765 bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr) bad_el0_sync() argument
786 unsigned int esr = read_sysreg(esr_el1); handle_bad_stack() local
815 arm64_serror_panic(struct pt_regs *regs, u32 esr) arm64_serror_panic() argument
830 arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned int esr) arm64_is_fatal_ras_serror() argument
862 do_serror(struct pt_regs *regs, unsigned int esr) do_serror() argument
887 bug_handler(struct pt_regs *regs, unsigned int esr) bug_handler() argument
912 reserved_fault_handler(struct pt_regs *regs, unsigned int esr) reserved_fault_handler() argument
934 kasan_handler(struct pt_regs *regs, unsigned int esr) kasan_handler() argument
977 early_brk64(unsigned long addr, unsigned int esr, struct pt_regs *regs) early_brk64() argument
[all...]
H A Ddebug-monitors.c205 static int call_step_hook(struct pt_regs *regs, unsigned int esr) in call_step_hook() argument
218 retval = hook->fn(regs, esr); in call_step_hook()
242 static int single_step_handler(unsigned long unused, unsigned int esr, in single_step_handler() argument
254 if (!handler_found && call_step_hook(regs, esr) == DBG_HOOK_HANDLED) in single_step_handler()
303 static int call_break_hook(struct pt_regs *regs, unsigned int esr) in call_break_hook() argument
307 int (*fn)(struct pt_regs *regs, unsigned int esr) = NULL; in call_break_hook()
316 unsigned int comment = esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in call_break_hook()
322 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; in call_break_hook()
326 static int brk_handler(unsigned long unused, unsigned int esr, in brk_handler() argument
329 if (call_break_hook(regs, esr) in brk_handler()
[all...]
/kernel/linux/linux-5.10/arch/arm64/mm/
H A Dfault.c34 #include <asm/esr.h>
43 int (*fn)(unsigned long addr, unsigned int esr,
53 static inline const struct fault_info *esr_to_fault_info(unsigned int esr) in esr_to_fault_info() argument
55 return fault_info + (esr & ESR_ELx_FSC); in esr_to_fault_info()
58 static inline const struct fault_info *esr_to_debug_fault_info(unsigned int esr) in esr_to_debug_fault_info() argument
60 return debug_fault_info + DBG_ESR_EVT(esr); in esr_to_debug_fault_info()
63 static void data_abort_decode(unsigned int esr) in data_abort_decode() argument
67 if (esr & ESR_ELx_ISV) { in data_abort_decode()
69 1U << ((esr & ESR_ELx_SAS) >> ESR_ELx_SAS_SHIFT)); in data_abort_decode()
71 (esr in data_abort_decode()
85 mem_abort_decode(unsigned int esr) mem_abort_decode() argument
227 is_el1_instruction_abort(unsigned int esr) is_el1_instruction_abort() argument
232 is_el1_permission_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) is_el1_permission_fault() argument
251 is_spurious_el1_translation_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) is_spurious_el1_translation_fault() argument
283 die_kernel_fault(const char *msg, unsigned long addr, unsigned int esr, struct pt_regs *regs) die_kernel_fault() argument
299 __do_kernel_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) __do_kernel_fault() argument
331 set_thread_esr(unsigned long address, unsigned int esr) set_thread_esr() argument
388 do_bad_area(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_bad_area() argument
437 is_el0_instruction_abort(unsigned int esr) is_el0_instruction_abort() argument
446 is_write_abort(unsigned int esr) is_write_abort() argument
451 do_page_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_page_fault() argument
599 do_translation_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_translation_fault() argument
610 do_alignment_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_alignment_fault() argument
617 do_bad(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_bad() argument
622 do_sea(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_sea() argument
646 do_tag_check_fault(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_tag_check_fault() argument
720 do_mem_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_mem_abort() argument
745 do_sp_pc_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs) do_sp_pc_abort() argument
834 do_debug_exception(unsigned long addr_if_watchpoint, unsigned int esr, struct pt_regs *regs) do_debug_exception() argument
[all...]
/kernel/linux/linux-6.6/arch/arm64/mm/
H A Dfault.c37 #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) in esr_to_fault_info() argument
59 return fault_info + (esr & ESR_ELx_FSC); in esr_to_fault_info()
62 static inline const struct fault_info *esr_to_debug_fault_info(unsigned long esr) in esr_to_debug_fault_info() argument
64 return debug_fault_info + DBG_ESR_EVT(esr); in esr_to_debug_fault_info()
67 static void data_abort_decode(unsigned long esr) in data_abort_decode() argument
69 unsigned long iss2 = ESR_ELx_ISS2(esr); in data_abort_decode()
73 if (esr & ESR_ELx_ISV) { in data_abort_decode()
75 1U << ((esr in data_abort_decode()
100 mem_abort_decode(unsigned long esr) mem_abort_decode() argument
247 is_el1_instruction_abort(unsigned long esr) is_el1_instruction_abort() argument
252 is_el1_data_abort(unsigned long esr) is_el1_data_abort() argument
257 is_el1_permission_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) is_el1_permission_fault() argument
275 is_spurious_el1_translation_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) is_spurious_el1_translation_fault() argument
307 die_kernel_fault(const char *msg, unsigned long addr, unsigned long esr, struct pt_regs *regs) die_kernel_fault() argument
326 report_tag_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) report_tag_fault() argument
338 report_tag_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) report_tag_fault() argument
342 do_tag_recovery(unsigned long addr, unsigned long esr, struct pt_regs *regs) do_tag_recovery() argument
358 is_el1_mte_sync_tag_check_fault(unsigned long esr) is_el1_mte_sync_tag_check_fault() argument
371 is_translation_fault(unsigned long esr) is_translation_fault() argument
376 __do_kernel_fault(unsigned long addr, unsigned long esr, struct pt_regs *regs) __do_kernel_fault() argument
421 set_thread_esr(unsigned long address, unsigned long esr) set_thread_esr() argument
478 do_bad_area(unsigned long far, unsigned long esr, struct pt_regs *regs) do_bad_area() argument
516 is_el0_instruction_abort(unsigned long esr) is_el0_instruction_abort() argument
525 is_write_abort(unsigned long esr) is_write_abort() argument
530 do_page_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) do_page_fault() argument
703 do_translation_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) do_translation_fault() argument
716 do_alignment_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) do_alignment_fault() argument
726 do_bad(unsigned long far, unsigned long esr, struct pt_regs *regs) do_bad() argument
731 do_sea(unsigned long far, unsigned long esr, struct pt_regs *regs) do_sea() argument
761 do_tag_check_fault(unsigned long far, unsigned long esr, struct pt_regs *regs) do_tag_check_fault() argument
841 do_mem_abort(unsigned long far, unsigned long esr, struct pt_regs *regs) do_mem_abort() argument
861 do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs) do_sp_pc_abort() argument
918 do_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr, struct pt_regs *regs) do_debug_exception() argument
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dentry-common.c19 #include <asm/esr.h>
287 unsigned long esr) in __panic_unhandled()
294 vector, smp_processor_id(), esr, in __panic_unhandled()
295 esr_get_class_string(esr)); in __panic_unhandled()
392 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort() argument
398 do_mem_abort(far, esr, regs); in el1_abort()
403 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc() argument
409 do_sp_pc_abort(far, esr, regs); in el1_pc()
414 static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr) in el1_undef() argument
418 do_el1_undef(regs, esr); in el1_undef()
286 __panic_unhandled(struct pt_regs *regs, const char *vector, unsigned long esr) __panic_unhandled() argument
423 el1_bti(struct pt_regs *regs, unsigned long esr) el1_bti() argument
432 el1_dbg(struct pt_regs *regs, unsigned long esr) el1_dbg() argument
442 el1_fpac(struct pt_regs *regs, unsigned long esr) el1_fpac() argument
453 unsigned long esr = read_sysreg(esr_el1); el1h_64_sync_handler() local
532 unsigned long esr = read_sysreg(esr_el1); el1h_64_error_handler() local
540 el0_da(struct pt_regs *regs, unsigned long esr) el0_da() argument
550 el0_ia(struct pt_regs *regs, unsigned long esr) el0_ia() argument
568 el0_fpsimd_acc(struct pt_regs *regs, unsigned long esr) el0_fpsimd_acc() argument
576 el0_sve_acc(struct pt_regs *regs, unsigned long esr) el0_sve_acc() argument
584 el0_sme_acc(struct pt_regs *regs, unsigned long esr) el0_sme_acc() argument
592 el0_fpsimd_exc(struct pt_regs *regs, unsigned long esr) el0_fpsimd_exc() argument
600 el0_sys(struct pt_regs *regs, unsigned long esr) el0_sys() argument
608 el0_pc(struct pt_regs *regs, unsigned long esr) el0_pc() argument
621 el0_sp(struct pt_regs *regs, unsigned long esr) el0_sp() argument
629 el0_undef(struct pt_regs *regs, unsigned long esr) el0_undef() argument
645 el0_mops(struct pt_regs *regs, unsigned long esr) el0_mops() argument
653 el0_inv(struct pt_regs *regs, unsigned long esr) el0_inv() argument
661 el0_dbg(struct pt_regs *regs, unsigned long esr) el0_dbg() argument
682 el0_fpac(struct pt_regs *regs, unsigned long esr) el0_fpac() argument
692 unsigned long esr = read_sysreg(esr_el1); el0t_64_sync_handler() local
788 unsigned long esr = read_sysreg(esr_el1); __el0_error_handler_common() local
805 el0_cp15(struct pt_regs *regs, unsigned long esr) el0_cp15() argument
824 unsigned long esr = read_sysreg(esr_el1); el0t_32_sync_handler() local
890 unsigned long esr = read_sysreg(esr_el1); handle_bad_stack() local
[all...]
H A Dtraps.c39 #include <asm/esr.h>
247 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()
454 void do_el0_undef(struct pt_regs *regs, unsigned long esr) in do_el0_undef() argument
475 void do_el1_undef(struct pt_regs *regs, unsigned long esr) in do_el1_undef() argument
486 die("Oops - Undefined instruction", regs, esr); in do_el1_undef()
494 void do_el1_bti(struct pt_regs *regs, unsigned long esr) in do_el1_bti() argument
500 die("Oops - BTI", regs, esr); in do_el1_bti()
503 do_el0_fpac(struct pt_regs *regs, unsigned long esr) do_el0_fpac() argument
508 do_el1_fpac(struct pt_regs *regs, unsigned long esr) do_el1_fpac() argument
517 do_el0_mops(struct pt_regs *regs, unsigned long esr) do_el0_mops() argument
589 user_cache_maint_handler(unsigned long esr, struct pt_regs *regs) user_cache_maint_handler() argument
629 ctr_read_handler(unsigned long esr, struct pt_regs *regs) ctr_read_handler() argument
648 cntvct_read_handler(unsigned long esr, struct pt_regs *regs) cntvct_read_handler() argument
656 cntfrq_read_handler(unsigned long esr, struct pt_regs *regs) cntfrq_read_handler() argument
664 mrs_handler(unsigned long esr, struct pt_regs *regs) mrs_handler() argument
675 wfi_handler(unsigned long esr, struct pt_regs *regs) wfi_handler() argument
732 cp15_cond_valid(unsigned long esr, struct pt_regs *regs) cp15_cond_valid() argument
752 compat_cntfrq_read_handler(unsigned long esr, struct pt_regs *regs) compat_cntfrq_read_handler() argument
769 compat_cntvct_read_handler(unsigned long esr, struct pt_regs *regs) compat_cntvct_read_handler() argument
794 do_el0_cp15(unsigned long esr, struct pt_regs *regs) do_el0_cp15() argument
834 do_el0_sys(unsigned long esr, struct pt_regs *regs) do_el0_sys() argument
899 esr_get_class_string(unsigned long esr) esr_get_class_string() argument
908 bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr) bad_el0_sync() argument
924 panic_bad_stack(struct pt_regs *regs, unsigned long esr, unsigned long far) panic_bad_stack() argument
954 arm64_serror_panic(struct pt_regs *regs, unsigned long esr) arm64_serror_panic() argument
968 arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned long esr) arm64_is_fatal_ras_serror() argument
1000 do_serror(struct pt_regs *regs, unsigned long esr) do_serror() argument
1022 bug_handler(struct pt_regs *regs, unsigned long esr) bug_handler() argument
1048 cfi_handler(struct pt_regs *regs, unsigned long esr) cfi_handler() argument
1079 reserved_fault_handler(struct pt_regs *regs, unsigned long esr) reserved_fault_handler() argument
1101 kasan_handler(struct pt_regs *regs, unsigned long esr) kasan_handler() argument
1141 ubsan_handler(struct pt_regs *regs, unsigned long esr) ubsan_handler() argument
1143 die(report_ubsan_failure(regs, esr & UBSAN_BRK_MASK), regs, esr); ubsan_handler() local
1160 early_brk64(unsigned long addr, unsigned long esr, struct pt_regs *regs) early_brk64() argument
[all...]
H A 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 unsigned long comment = esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in call_break_hook()
321 return fn ? fn(regs, esr) : DBG_HOOK_ERROR; in call_break_hook()
325 static int brk_handler(unsigned long unused, unsigned long esr, in brk_handler() argument
328 if (call_break_hook(regs, esr) in brk_handler()
[all...]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dexception.h10 #include <asm/esr.h>
19 unsigned int 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()
35 void do_mem_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs);
36 void do_el0_undef(struct pt_regs *regs, unsigned long esr);
37 void do_el1_undef(struct pt_regs *regs, unsigned long esr);
39 void do_el1_bti(struct pt_regs *regs, unsigned long esr);
40 asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr);
[all...]
H A Dtraps.h11 #include <asm/esr.h>
59 static inline bool arm64_is_ras_serror(u32 esr) in arm64_is_ras_serror() argument
63 if (esr & ESR_ELx_IDS) in arm64_is_ras_serror()
79 static inline u32 arm64_ras_serror_get_severity(u32 esr) in arm64_ras_serror_get_severity() argument
81 u32 aet = esr & ESR_ELx_AET; in arm64_ras_serror_get_severity()
83 if (!arm64_is_ras_serror(esr)) { in arm64_ras_serror_get_severity()
92 if ((esr & ESR_ELx_FSC) != ESR_ELx_FSC_SERROR) { in arm64_ras_serror_get_severity()
100 bool arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned int esr);
101 void __noreturn arm64_serror_panic(struct pt_regs *regs, u32 esr);
/kernel/linux/linux-6.6/arch/arm64/include/asm/
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_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr,
[all...]
H A Dtraps.h11 #include <asm/esr.h>
32 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);
[all...]
H A Desr.h74 #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)
221 #define ESR_ELx_SYS64_ISS_RT(esr) \
222 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
381 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr)
388 esr_is_data_abort(unsigned long esr) esr_is_data_abort() argument
[all...]
/kernel/linux/linux-6.6/arch/arm64/kvm/
H A Dinject_fault.c16 #include <asm/esr.h>
61 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 in inject_undef64() local
192 unsigned long addr, esr; kvm_inject_size_fault() local
233 kvm_set_sei_esr(struct kvm_vcpu *vcpu, u64 esr) kvm_set_sei_esr() argument
[all...]
H A Dhandle_exit.c14 #include <asm/esr.h>
31 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()
116 u64 esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_wfx() local
118 if (esr & ESR_ELx_WFx_ISS_WFE) { in kvm_handle_wfx()
126 if (esr & ESR_ELx_WFx_ISS_WFxT) { in kvm_handle_wfx()
127 if (esr & ESR_ELx_WFx_ISS_RV) { in kvm_handle_wfx()
137 esr &= ~ESR_ELx_WFx_ISS_WFxT; in kvm_handle_wfx()
141 if (esr in kvm_handle_wfx()
169 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_guest_debug() local
190 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_handle_unknown_ec() local
285 u64 esr = kvm_vcpu_get_esr(vcpu); kvm_get_exit_handler() 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) nvhe_hyp_panic_handler() argument
[all...]
H A Dsys_regs.h37 #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...]
/kernel/linux/linux-5.10/arch/arm64/kvm/
H A Dinject_fault.c15 #include <asm/esr.h>
127 u32 esr = 0; in inject_abt64() local
138 esr |= ESR_ELx_IL; in inject_abt64()
145 esr |= (ESR_ELx_EC_IABT_LOW << ESR_ELx_EC_SHIFT); in inject_abt64()
147 esr |= (ESR_ELx_EC_IABT_CUR << ESR_ELx_EC_SHIFT); in inject_abt64()
150 esr |= ESR_ELx_EC_DABT_LOW << ESR_ELx_EC_SHIFT; in inject_abt64()
152 vcpu_write_sys_reg(vcpu, esr | ESR_ELx_FSC_EXTABT, ESR_EL1); in inject_abt64()
157 u32 esr = (ESR_ELx_EC_UNKNOWN << ESR_ELx_EC_SHIFT); in inject_undef64() local
166 esr |= ESR_ELx_IL; in inject_undef64()
168 vcpu_write_sys_reg(vcpu, esr, ESR_EL in inject_undef64()
218 kvm_set_sei_esr(struct kvm_vcpu *vcpu, u64 esr) kvm_set_sei_esr() argument
[all...]
H A Dhandle_exit.c14 #include <asm/esr.h>
30 static void kvm_handle_guest_serror(struct kvm_vcpu *vcpu, u32 esr) in kvm_handle_guest_serror() argument
32 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(NULL, esr)) in kvm_handle_guest_serror()
122 u32 esr = kvm_vcpu_get_esr(vcpu); in kvm_handle_guest_debug() local
126 run->debug.arch.hsr = esr; in kvm_handle_guest_debug()
128 switch (ESR_ELx_EC(esr)) { in kvm_handle_guest_debug()
138 kvm_err("%s: un-handled case esr: %#08x\n", in kvm_handle_guest_debug()
139 __func__, (unsigned int) esr); in kvm_handle_guest_debug()
149 u32 esr in kvm_handle_unknown_ec() local
203 u32 esr = kvm_vcpu_get_esr(vcpu); kvm_get_exit_handler() local
[all...]
/kernel/linux/linux-5.10/arch/alpha/kernel/
H A Dcore_lca.c340 mem_error(unsigned long esr, unsigned long ear) in mem_error()
343 ((esr & ESR_CEE) ? "Correctable" : in mem_error()
344 (esr & ESR_UEE) ? "Uncorrectable" : "A"), in mem_error()
345 (esr & ESR_WRE) ? "write" : "read", in mem_error()
346 (esr & ESR_SOR) ? "memory" : "b-cache", in mem_error()
348 if (esr & ESR_CTE) { in mem_error()
351 if (esr & ESR_MSE) { in mem_error()
354 if (esr & ESR_MHE) { in mem_error()
357 if (esr & ESR_NXM) { in mem_error()
437 if (el.s->esr in lca_machine_check()
338 mem_error(unsigned long esr, unsigned long ear) mem_error() argument
[all...]
/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dcore_lca.c340 mem_error(unsigned long esr, unsigned long ear) in mem_error()
343 ((esr & ESR_CEE) ? "Correctable" : in mem_error()
344 (esr & ESR_UEE) ? "Uncorrectable" : "A"), in mem_error()
345 (esr & ESR_WRE) ? "write" : "read", in mem_error()
346 (esr & ESR_SOR) ? "memory" : "b-cache", in mem_error()
348 if (esr & ESR_CTE) { in mem_error()
351 if (esr & ESR_MSE) { in mem_error()
354 if (esr & ESR_MHE) { in mem_error()
357 if (esr & ESR_NXM) { in mem_error()
437 if (el.s->esr in lca_machine_check()
338 mem_error(unsigned long esr, unsigned long ear) mem_error() argument
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/
H A Dswitch.h161 u64 esr; in __populate_fault_info() local
164 esr = vcpu->arch.fault.esr_el2; in __populate_fault_info()
165 ec = ESR_ELx_EC(esr); in __populate_fault_info()
183 if (!(esr & ESR_ELx_S1PTW) && in __populate_fault_info()
185 (esr & ESR_ELx_FSC_TYPE) == FSC_PERM)) { in __populate_fault_info()
339 static inline bool esr_is_ptrauth_trap(u32 esr) in esr_is_ptrauth_trap() argument
341 u32 ec = ESR_ELx_EC(esr); in esr_is_ptrauth_trap()
349 switch (esr_sys64_to_sysreg(esr)) { in esr_is_ptrauth_trap()
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/include/hyp/
H A Dfault.h44 static inline bool __get_fault_info(u64 esr, struct kvm_vcpu_fault_info *fault) in __get_fault_info() argument
61 if (!(esr & ESR_ELx_S1PTW) && in __get_fault_info()
63 (esr & ESR_ELx_FSC_TYPE) == ESR_ELx_FSC_PERM)) { in __get_fault_info()
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/
H A Dmal.c220 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_serr() local
223 set_mal_dcrn(mal, MAL_ESR, esr); in mal_serr()
225 MAL_DBG(mal, "SERR %08x" NL, esr); in mal_serr()
227 if (esr & MAL_ESR_EVB) { in mal_serr()
228 if (esr & MAL_ESR_DE) { in mal_serr()
235 if (esr & MAL_ESR_PEIN) { in mal_serr()
243 mal->index, esr); in mal_serr()
253 mal->index, esr); in mal_serr()
353 u32 esr = get_mal_dcrn(mal, MAL_ESR); in mal_int() local
355 if (esr in mal_int()
[all...]

Completed in 15 milliseconds

123456