Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 166) sorted by relevance

1234567

/Linux-v5.4/arch/x86/kernel/
Dtraps.c194 struct pt_regs *regs, long error_code) in do_trap_no_signal() argument
203 error_code, trapnr)) in do_trap_no_signal()
207 if (fixup_exception(regs, trapnr, error_code, 0)) in do_trap_no_signal()
210 tsk->thread.error_code = error_code; in do_trap_no_signal()
212 die(str, regs, error_code); in do_trap_no_signal()
224 tsk->thread.error_code = error_code; in do_trap_no_signal()
232 struct pt_regs *regs, long error_code) in show_signal() argument
238 regs->ip, regs->sp, error_code); in show_signal()
246 long error_code, int sicode, void __user *addr) in do_trap() argument
251 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
[all …]
Ddoublefault.c73 void df_debug(struct pt_regs *regs, long error_code) {} in df_debug() argument
77 void df_debug(struct pt_regs *regs, long error_code) in df_debug() argument
79 pr_emerg("PANIC: double fault, error_code: 0x%lx\n", error_code); in df_debug()
/Linux-v5.4/arch/x86/mm/
Dfault.c112 is_prefetch(struct pt_regs *regs, unsigned long error_code, unsigned long addr) in is_prefetch() argument
122 if (error_code & X86_PF_INSTR) in is_prefetch()
586 show_fault_oops(struct pt_regs *regs, unsigned long error_code, unsigned long address) in show_fault_oops() argument
591 if (error_code & X86_PF_INSTR) { in show_fault_oops()
619 (error_code & X86_PF_USER) ? "user" : "supervisor", in show_fault_oops()
620 (error_code & X86_PF_INSTR) ? "instruction fetch" : in show_fault_oops()
621 (error_code & X86_PF_WRITE) ? "write access" : in show_fault_oops()
624 pr_alert("#PF: error_code(0x%04lx) - %s\n", error_code, in show_fault_oops()
625 !(error_code & X86_PF_PROT) ? "not-present page" : in show_fault_oops()
626 (error_code & X86_PF_RSVD) ? "reserved bit violation" : in show_fault_oops()
[all …]
Dextable.c28 unsigned long error_code, in ex_handler_default() argument
38 unsigned long error_code, in ex_handler_fault() argument
53 unsigned long error_code, in ex_handler_refcount() argument
108 unsigned long error_code, in ex_handler_fprestore() argument
123 unsigned long error_code, in ex_handler_uaccess() argument
134 unsigned long error_code, in ex_handler_ext() argument
146 unsigned long error_code, in ex_handler_rdmsr_unsafe() argument
163 unsigned long error_code, in ex_handler_wrmsr_unsafe() argument
179 unsigned long error_code, in ex_handler_clear_fs() argument
185 return ex_handler_default(fixup, regs, trapnr, error_code, fault_addr); in ex_handler_clear_fs()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dtraps.h64 dotraplinkage void do_divide_error(struct pt_regs *regs, long error_code);
65 dotraplinkage void do_debug(struct pt_regs *regs, long error_code);
66 dotraplinkage void do_nmi(struct pt_regs *regs, long error_code);
67 dotraplinkage void do_int3(struct pt_regs *regs, long error_code);
68 dotraplinkage void do_overflow(struct pt_regs *regs, long error_code);
69 dotraplinkage void do_bounds(struct pt_regs *regs, long error_code);
70 dotraplinkage void do_invalid_op(struct pt_regs *regs, long error_code);
71 dotraplinkage void do_device_not_available(struct pt_regs *regs, long error_code);
72 dotraplinkage void do_coprocessor_segment_overrun(struct pt_regs *regs, long error_code);
73 dotraplinkage void do_invalid_TSS(struct pt_regs *regs, long error_code);
[all …]
Dvsyscall.h16 extern bool emulate_vsyscall(unsigned long error_code,
20 static inline bool emulate_vsyscall(unsigned long error_code, in emulate_vsyscall() argument
/Linux-v5.4/arch/sh/mm/
Dfault.c205 no_context(struct pt_regs *regs, unsigned long error_code, in no_context() argument
223 die("Oops", regs, error_code); in no_context()
229 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, in __bad_area_nosemaphore() argument
244 no_context(regs, error_code, address); in __bad_area_nosemaphore()
248 bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, in bad_area_nosemaphore() argument
251 __bad_area_nosemaphore(regs, error_code, address, SEGV_MAPERR); in bad_area_nosemaphore()
255 __bad_area(struct pt_regs *regs, unsigned long error_code, in __bad_area() argument
266 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
270 bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address) in bad_area() argument
272 __bad_area(regs, error_code, address, SEGV_MAPERR); in bad_area()
[all …]
Dtlbex_32.c22 handle_tlbmiss(struct pt_regs *regs, unsigned long error_code, in handle_tlbmiss() argument
55 if (unlikely(error_code && !pte_write(entry))) in handle_tlbmiss()
58 if (error_code) in handle_tlbmiss()
70 if (error_code == FAULT_CODE_INITIAL) in handle_tlbmiss()
74 set_thread_fault_code(error_code); in handle_tlbmiss()
/Linux-v5.4/arch/x86/include/asm/trace/
Dexceptions.h17 unsigned long error_code),
19 TP_ARGS(address, regs, error_code),
24 __field( unsigned long, error_code )
30 __entry->error_code = error_code;
35 __entry->error_code) );
40 unsigned long error_code), \
41 TP_ARGS(address, regs, error_code), \
/Linux-v5.4/arch/nds32/mm/
Dfault.c71 unsigned int error_code, struct pt_regs *regs) in do_page_fault() argument
81 error_code = error_code & (ITYPE_mskINST | ITYPE_mskETYPE); in do_page_fault()
107 && error_code == ETYPE_ALIGNMENT_CHECK) { in do_page_fault()
169 if (error_code & ITYPE_mskINST) in do_page_fault()
175 switch (error_code & ITYPE_mskETYPE) { in do_page_fault()
272 tsk->thread.error_code = error_code; in do_page_fault()
312 die("Oops", regs, error_code); in do_page_fault()
341 tsk->thread.error_code = error_code; in do_page_fault()
/Linux-v5.4/arch/powerpc/mm/
Dfault.c202 static bool bad_kernel_fault(struct pt_regs *regs, unsigned long error_code, in bad_kernel_fault() argument
208 if (is_exec && (error_code & (DSISR_NOEXEC_OR_G | DSISR_KEYFAULT | in bad_kernel_fault()
219 if (!is_exec && address < TASK_SIZE && (error_code & DSISR_PROTFAULT) && in bad_kernel_fault()
351 unsigned long error_code, unsigned long address) in sanity_check_fault() argument
395 WARN_ON_ONCE(error_code & DSISR_PROTFAULT); in sanity_check_fault()
399 unsigned long error_code, unsigned long address) { } in sanity_check_fault() argument
434 unsigned long error_code) in __do_page_fault() argument
441 int is_write = page_fault_is_write(error_code); in __do_page_fault()
449 if (unlikely(page_fault_is_bad(error_code))) { in __do_page_fault()
458 sanity_check_fault(is_write, is_user, error_code, address); in __do_page_fault()
[all …]
/Linux-v5.4/fs/orangefs/
Dorangefs-utils.c474 int orangefs_normalize_to_errno(__s32 error_code) in orangefs_normalize_to_errno() argument
479 if (error_code == 0) { in orangefs_normalize_to_errno()
485 } else if (error_code > 0) { in orangefs_normalize_to_errno()
488 error_code = -error_code; in orangefs_normalize_to_errno()
500 if ((-error_code) & ORANGEFS_NON_ERRNO_ERROR_BIT) { in orangefs_normalize_to_errno()
501 if (((-error_code) & in orangefs_normalize_to_errno()
508 error_code = -ETIMEDOUT; in orangefs_normalize_to_errno()
513 error_code); in orangefs_normalize_to_errno()
514 error_code = -EINVAL; in orangefs_normalize_to_errno()
518 } else if ((-error_code) & ORANGEFS_ERROR_BIT) { in orangefs_normalize_to_errno()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hsi.h28 __le16 error_code; member
82 __le16 error_code; member
376 __le16 error_code; member
402 __le16 error_code; member
442 __le16 error_code; member
938 __le16 error_code; member
961 __le16 error_code; member
985 __le16 error_code; member
1009 __le16 error_code; member
1063 __le16 error_code; member
[all …]
/Linux-v5.4/arch/microblaze/mm/
Dfault.c87 unsigned long error_code) in do_page_fault() argument
92 int is_write = error_code & ESR_S; in do_page_fault()
97 regs->esr = error_code; in do_page_fault()
106 if ((error_code & 0x13) == 0x13 || (error_code & 0x11) == 0x11) in do_page_fault()
207 if (unlikely(error_code & 0x08000000)) in do_page_fault()
/Linux-v5.4/arch/h8300/mm/
Dfault.c37 unsigned long error_code) in do_page_fault() argument
41 regs->sr, regs->pc, address, error_code); in do_page_fault()
54 die("Oops", regs, error_code); in do_page_fault()
/Linux-v5.4/arch/x86/um/shared/sysdep/
Dfaultinfo_32.h19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member
24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
Dfaultinfo_64.h19 int error_code; /* in ptrace_faultinfo misleadingly called is_write */ member
24 #define FAULT_WRITE(fi) ((fi).error_code & 2)
Dmcontext.h16 (fi).error_code = (mc)->gregs[REG_ERR]; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
/Linux-v5.4/drivers/ide/
Dide-cd_verbose.c30 name, sense->error_code, sense->sense_key, in ide_cd_log_error()
262 if (sense->error_code == 0x70) in ide_cd_log_error()
264 else if (sense->error_code == 0x71) in ide_cd_log_error()
266 else if (sense->error_code == 0x7f) in ide_cd_log_error()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vf_error.c34 uint16_t error_code; in amdgpu_vf_error_put() local
39 error_code = AMDGIM_ERROR_CODE(AMDGIM_ERROR_CATEGORY_VF, sub_error_code); in amdgpu_vf_error_put()
43 adev->virt.vf_errors.code [index] = error_code; in amdgpu_vf_error_put()
/Linux-v5.4/arch/sh/kernel/
Dtraps_64.c608 asmlinkage void do_##name(unsigned long error_code, struct pt_regs *regs) \
610 do_unhandled_exception(signr, str, error_code, regs); \
645 void do_reserved_inst(unsigned long error_code, struct pt_regs *regs) in do_reserved_inst() argument
748 do_unhandled_exception(signr, exception_name, error_code, regs); in do_reserved_inst()
779 asmlinkage void do_address_error_load(unsigned long error_code, struct pt_regs *regs) in do_address_error_load() argument
783 error_code, regs); in do_address_error_load()
786 asmlinkage void do_address_error_store(unsigned long error_code, struct pt_regs *regs) in do_address_error_store() argument
790 error_code, regs); in do_address_error_store()
/Linux-v5.4/arch/x86/kvm/
Dmmutrace.h252 TP_PROTO(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code,
254 TP_ARGS(vcpu, gva, error_code, sptep, old_spte, retry),
259 __field(u32, error_code)
269 __entry->error_code = error_code;
278 __entry->gva, __print_flags(__entry->error_code, "|",
/Linux-v5.4/tools/perf/util/
Dbpf-prologue.c319 prologue_relocate(struct bpf_insn_pos *pos, struct bpf_insn *error_code, in prologue_relocate() argument
340 target = error_code; in prologue_relocate()
363 struct bpf_insn *error_code = NULL; in bpf__gen_prologue() local
456 error_code = pos.pos; in bpf__gen_prologue()
488 err = prologue_relocate(&pos, error_code, success_code, in bpf__gen_prologue()
/Linux-v5.4/drivers/tty/
Dn_r3964.c111 static void remove_from_tx_queue(struct r3964_info *pInfo, int error_code);
123 int error_code, struct r3964_block_header *pBlock);
255 static void remove_from_tx_queue(struct r3964_info *pInfo, int error_code) in remove_from_tx_queue() argument
277 if (error_code) { in remove_from_tx_queue()
279 error_code, NULL); in remove_from_tx_queue()
282 error_code, NULL); in remove_from_tx_queue()
845 int error_code, struct r3964_block_header *pBlock) in add_msg() argument
854 error_code ? GFP_ATOMIC : GFP_KERNEL); in add_msg()
864 pMsg->error_code = error_code; in add_msg()
883 && (pClient->last_msg->error_code == R3964_OVERFLOW)) { in add_msg()
[all …]
/Linux-v5.4/arch/x86/entry/vsyscall/
Dvsyscall_64.c109 thread->error_code = X86_PF_USER | X86_PF_WRITE; in write_ok_or_segv()
120 bool emulate_vsyscall(unsigned long error_code, in emulate_vsyscall() argument
131 if ((error_code & (X86_PF_WRITE | X86_PF_USER)) != X86_PF_USER) in emulate_vsyscall()
134 if (!(error_code & X86_PF_INSTR)) { in emulate_vsyscall()

1234567