Home
last modified time | relevance | path

Searched defs:regs (Results 1 – 25 of 2291) sorted by relevance

12345678910>>...92

/kernel/linux/linux-5.10/arch/arm64/kernel/
Dentry-common.c24 static void noinstr enter_from_kernel_mode(struct pt_regs *regs) in enter_from_kernel_mode()
46 static void noinstr exit_to_kernel_mode(struct pt_regs *regs) in exit_to_kernel_mode()
66 void noinstr arm64_enter_nmi(struct pt_regs *regs) in arm64_enter_nmi()
79 void noinstr arm64_exit_nmi(struct pt_regs *regs) in arm64_exit_nmi()
96 asmlinkage void noinstr enter_el1_irq_or_nmi(struct pt_regs *regs) in enter_el1_irq_or_nmi()
104 asmlinkage void noinstr exit_el1_irq_or_nmi(struct pt_regs *regs) in exit_el1_irq_or_nmi()
112 static void noinstr el1_abort(struct pt_regs *regs, unsigned long esr) in el1_abort()
124 static void noinstr el1_pc(struct pt_regs *regs, unsigned long esr) in el1_pc()
135 static void noinstr el1_undef(struct pt_regs *regs) in el1_undef()
144 static void noinstr el1_inv(struct pt_regs *regs, unsigned long esr) in el1_inv()
[all …]
Dtraps.c58 static void dump_kernel_instr(const char *lvl, struct pt_regs *regs) in dump_kernel_instr()
93 static int __die(const char *str, int err, struct pt_regs *regs) in __die()
119 void die(const char *str, struct pt_regs *regs, int err) in die()
156 struct pt_regs *regs = task_pt_regs(tsk); in arm64_show_signal() local
198 void arm64_notify_die(const char *str, struct pt_regs *regs, in arm64_notify_die()
219 static u32 compat_get_it_state(struct pt_regs *regs) in compat_get_it_state()
229 static void compat_set_it_state(struct pt_regs *regs, u32 it) in compat_set_it_state()
240 static void advance_itstate(struct pt_regs *regs) in advance_itstate()
263 static void advance_itstate(struct pt_regs *regs) in advance_itstate()
268 void arm64_skip_faulting_instruction(struct pt_regs *regs, unsigned long size) in arm64_skip_faulting_instruction()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/s5p-jpeg/
Djpeg-hw-s5p.c17 void s5p_jpeg_reset(void __iomem *regs) in s5p_jpeg_reset()
30 void s5p_jpeg_poweron(void __iomem *regs) in s5p_jpeg_poweron()
35 void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_input_raw_mode()
51 void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_proc_mode()
66 void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) in s5p_jpeg_subsampling_mode()
81 unsigned int s5p_jpeg_get_subsampling_mode(void __iomem *regs) in s5p_jpeg_get_subsampling_mode()
86 void s5p_jpeg_dri(void __iomem *regs, unsigned int dri) in s5p_jpeg_dri()
101 void s5p_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n) in s5p_jpeg_qtbl()
111 void s5p_jpeg_htbl_ac(void __iomem *regs, unsigned int t) in s5p_jpeg_htbl_ac()
122 void s5p_jpeg_htbl_dc(void __iomem *regs, unsigned int t) in s5p_jpeg_htbl_dc()
[all …]
Djpeg-hw-exynos3250.c18 void exynos3250_jpeg_reset(void __iomem *regs) in exynos3250_jpeg_reset()
44 void exynos3250_jpeg_poweron(void __iomem *regs) in exynos3250_jpeg_poweron()
49 void exynos3250_jpeg_set_dma_num(void __iomem *regs) in exynos3250_jpeg_set_dma_num()
69 void exynos3250_jpeg_input_raw_fmt(void __iomem *regs, unsigned int fmt) in exynos3250_jpeg_input_raw_fmt()
120 void exynos3250_jpeg_set_y16(void __iomem *regs, bool y16) in exynos3250_jpeg_set_y16()
132 void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode) in exynos3250_jpeg_proc_mode()
146 void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) in exynos3250_jpeg_subsampling_mode()
168 unsigned int exynos3250_jpeg_get_subsampling_mode(void __iomem *regs) in exynos3250_jpeg_get_subsampling_mode()
174 void exynos3250_jpeg_dri(void __iomem *regs, unsigned int dri) in exynos3250_jpeg_dri()
182 void exynos3250_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n) in exynos3250_jpeg_qtbl()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dtraps.c180 static unsigned long oops_begin(struct pt_regs *regs) in oops_begin()
206 static void oops_end(unsigned long flags, struct pt_regs *regs, in oops_end()
261 static int __die(const char *str, struct pt_regs *regs, long err) in __die()
285 void die(const char *str, struct pt_regs *regs, long err) in die()
304 void user_single_step_report(struct pt_regs *regs) in user_single_step_report()
309 static void show_signal_msg(int signr, struct pt_regs *regs, int code, in show_signal_msg()
335 static bool exception_common(int signr, struct pt_regs *regs, int code, in exception_common()
359 void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key) in _exception_pkey()
367 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr) in _exception()
396 void hv_nmi_check_nonrecoverable(struct pt_regs *regs) in hv_nmi_check_nonrecoverable()
[all …]
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dptrace.h20 struct pt_regs regs; member
27 #define user_mode(regs) \ argument
31 #define thumb_mode(regs) \ argument
34 #define thumb_mode(regs) (0) argument
38 #define isa_mode(regs) \ argument
42 #define isa_mode(regs) 1 /* Thumb */ argument
45 #define processor_mode(regs) \ argument
48 #define interrupts_enabled(regs) \ argument
51 #define fast_interrupts_enabled(regs) \ argument
57 static inline int valid_user_regs(struct pt_regs *regs) in valid_user_regs()
[all …]
/kernel/linux/linux-5.10/kernel/entry/
Dcommon.c21 static __always_inline void enter_from_user_mode(struct pt_regs *regs) in enter_from_user_mode()
34 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit()
44 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter()
75 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work()
86 long syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall) in syscall_enter_from_user_mode_work()
91 noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) in syscall_enter_from_user_mode()
105 noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs) in syscall_enter_from_user_mode_prepare()
138 void __weak arch_do_signal_or_restart(struct pt_regs *regs, bool has_signal) { } in arch_do_signal_or_restart()
140 static void handle_signal_work(struct pt_regs *regs, unsigned long ti_work) in handle_signal_work()
148 static unsigned long exit_to_user_mode_loop(struct pt_regs *regs, in exit_to_user_mode_loop()
[all …]
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dptrace.h22 #define user_stack_pointer(regs) ((regs)->usp) argument
24 #define user_mode(regs) (!((regs)->sr & PS_S)) argument
25 #define instruction_pointer(regs) ((regs)->pc) argument
26 #define profile_pc(regs) instruction_pointer(regs) argument
27 #define trap_no(regs) ((regs->sr >> 16) & 0xff) argument
29 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
41 static inline bool in_syscall(struct pt_regs const *regs) in in_syscall()
46 static inline void forget_syscall(struct pt_regs *regs) in forget_syscall()
51 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value()
56 static inline void regs_set_return_value(struct pt_regs *regs, in regs_set_return_value()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dptrace.h118 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer()
123 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
129 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer()
134 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer()
142 #define profile_pc(regs) instruction_pointer(regs) argument
149 #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1) argument
151 #define user_mode(regs) (((regs)->msr & MSR_PR) != 0) argument
171 #define TRAP(regs) ((regs)->trap & ~TRAP_FLAGS_MASK) argument
172 #define FULL_REGS(regs) true argument
173 #define SET_FULL_REGS(regs) do { } while (0) argument
[all …]
/kernel/linux/linux-5.10/arch/csky/kernel/probes/
Dsimulate-insn.c10 static inline bool csky_insn_reg_get_val(struct pt_regs *regs, in csky_insn_reg_get_val()
39 static inline bool csky_insn_reg_set_val(struct pt_regs *regs, in csky_insn_reg_set_val()
69 simulate_br16(u32 opcode, long addr, struct pt_regs *regs) in simulate_br16()
76 simulate_br32(u32 opcode, long addr, struct pt_regs *regs) in simulate_br32()
83 simulate_bt16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt16()
93 simulate_bt32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt32()
103 simulate_bf16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bf16()
113 simulate_bf32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bf32()
123 simulate_jmp16(u32 opcode, long addr, struct pt_regs *regs) in simulate_jmp16()
133 simulate_jmp32(u32 opcode, long addr, struct pt_regs *regs) in simulate_jmp32()
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dsyscall.h21 struct pt_regs *regs) in syscall_get_nr()
29 struct pt_regs *regs) in syscall_rollback()
41 static inline bool syscall_has_error(struct pt_regs *regs) in syscall_has_error()
45 static inline void syscall_set_error(struct pt_regs *regs) in syscall_set_error()
49 static inline void syscall_clear_error(struct pt_regs *regs) in syscall_clear_error()
54 static inline bool syscall_has_error(struct pt_regs *regs) in syscall_has_error()
58 static inline void syscall_set_error(struct pt_regs *regs) in syscall_set_error()
62 static inline void syscall_clear_error(struct pt_regs *regs) in syscall_clear_error()
69 struct pt_regs *regs) in syscall_get_error()
77 struct pt_regs *regs) in syscall_get_return_value()
[all …]
Dptrace.h14 static inline int pt_regs_trap_type(struct pt_regs *regs) in pt_regs_trap_type()
19 static inline bool pt_regs_is_syscall(struct pt_regs *regs) in pt_regs_is_syscall()
24 static inline bool pt_regs_clear_syscall(struct pt_regs *regs) in pt_regs_clear_syscall()
64 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV)) argument
65 #define instruction_pointer(regs) ((regs)->tpc) argument
66 #define instruction_pointer_set(regs, val) do { \ argument
70 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) argument
71 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
76 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
83 #define profile_pc(regs) instruction_pointer(regs) argument
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dmips-r2-to-r6-emul.c78 static inline int mipsr6_emul(struct pt_regs *regs, u32 ir) in mipsr6_emul()
199 static int movf_func(struct pt_regs *regs, u32 ir) in movf_func()
222 static int movt_func(struct pt_regs *regs, u32 ir) in movt_func()
247 static int jr_func(struct pt_regs *regs, u32 ir) in jr_func()
304 static int movz_func(struct pt_regs *regs, u32 ir) in movz_func()
320 static int movn_func(struct pt_regs *regs, u32 ir) in movn_func()
336 static int mfhi_func(struct pt_regs *regs, u32 ir) in mfhi_func()
353 static int mthi_func(struct pt_regs *regs, u32 ir) in mthi_func()
369 static int mflo_func(struct pt_regs *regs, u32 ir) in mflo_func()
386 static int mtlo_func(struct pt_regs *regs, u32 ir) in mtlo_func()
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dptrace.h35 unsigned long regs[32]; member
54 static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) in kernel_stack_pointer()
59 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
78 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register()
95 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack()
111 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth()
141 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER) argument
143 static inline int is_syscall_success(struct pt_regs *regs) in is_syscall_success()
148 static inline long regs_return_value(struct pt_regs *regs) in regs_return_value()
156 #define instruction_pointer(regs) ((regs)->cp0_epc) argument
[all …]
/kernel/linux/linux-5.10/arch/s390/kernel/
Dtraps.c29 static inline void __user *get_trap_ip(struct pt_regs *regs) in get_trap_ip()
45 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap()
58 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap()
67 void do_per_trap(struct pt_regs *regs) in do_per_trap()
78 void default_trap_handler(struct pt_regs *regs) in default_trap_handler()
120 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap()
140 void translation_exception(struct pt_regs *regs) in translation_exception()
146 void illegal_op(struct pt_regs *regs) in illegal_op()
188 void vector_exception(struct pt_regs *regs) in vector_exception()
222 void data_exception(struct pt_regs *regs) in data_exception()
[all …]
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dfpu.h12 static inline void release_fpu(struct pt_regs *regs) in release_fpu()
17 static inline void grab_fpu(struct pt_regs *regs) in grab_fpu()
29 #define release_fpu(regs) do { } while (0) argument
30 #define grab_fpu(regs) do { } while (0) argument
31 #define fpu_state_restore(regs) do { } while (0) argument
32 #define __fpu_state_restore(regs) do { } while (0) argument
40 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in __unlazy_fpu()
50 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) in unlazy_fpu()
57 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) in clear_fpu()
Dptrace.h16 #define user_mode(regs) (((regs)->sr & 0x40000000)==0) argument
19 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer()
23 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
29 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer()
34 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer()
39 static inline void user_stack_pointer_set(struct pt_regs *regs, in user_stack_pointer_set()
77 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register()
93 static inline int regs_within_kernel_stack(struct pt_regs *regs, in regs_within_kernel_stack()
109 static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, in regs_get_kernel_stack_nth()
129 static inline unsigned long profile_pc(struct pt_regs *regs) in profile_pc()
/kernel/linux/linux-5.10/arch/arm64/kernel/probes/
Dsimulate-insn.c31 static inline void set_x_reg(struct pt_regs *regs, int reg, u64 val) in set_x_reg()
36 static inline void set_w_reg(struct pt_regs *regs, int reg, u64 val) in set_w_reg()
41 static inline u64 get_x_reg(struct pt_regs *regs, int reg) in get_x_reg()
46 static inline u32 get_w_reg(struct pt_regs *regs, int reg) in get_w_reg()
51 static bool __kprobes check_cbz(u32 opcode, struct pt_regs *regs) in check_cbz()
59 static bool __kprobes check_cbnz(u32 opcode, struct pt_regs *regs) in check_cbnz()
67 static bool __kprobes check_tbz(u32 opcode, struct pt_regs *regs) in check_tbz()
75 static bool __kprobes check_tbnz(u32 opcode, struct pt_regs *regs) in check_tbnz()
87 simulate_adr_adrp(u32 opcode, long addr, struct pt_regs *regs) in simulate_adr_adrp()
105 simulate_b_bl(u32 opcode, long addr, struct pt_regs *regs) in simulate_b_bl()
[all …]
/kernel/linux/linux-5.10/arch/hexagon/kernel/
Dtraps.c143 struct pt_regs *regs = (struct pt_regs *) (((void *)fp) in do_show_stack() local
184 int die(const char *str, struct pt_regs *regs, long err) in die()
225 int die_if_kernel(char *str, struct pt_regs *regs, long err) in die_if_kernel()
236 static void misaligned_instruction(struct pt_regs *regs) in misaligned_instruction()
247 static void misaligned_data_load(struct pt_regs *regs) in misaligned_data_load()
253 static void misaligned_data_store(struct pt_regs *regs) in misaligned_data_store()
259 static void illegal_instruction(struct pt_regs *regs) in illegal_instruction()
269 static void precise_bus_error(struct pt_regs *regs) in precise_bus_error()
280 static void cache_error(struct pt_regs *regs) in cache_error()
288 void do_genex(struct pt_regs *regs) in do_genex()
[all …]
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dptrace.h17 #define user_mode(regs) (((regs)->iaoq[0] & 3) ? 1 : 0) argument
18 #define user_space(regs) (((regs)->iasq[1] != 0) ? 1 : 0) argument
19 #define instruction_pointer(regs) ((regs)->iaoq[0] & ~3) argument
20 #define user_stack_pointer(regs) ((regs)->gr[30]) argument
23 static inline unsigned long regs_return_value(struct pt_regs *regs) in regs_return_value()
28 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set()
40 #define kernel_stack_pointer(regs) ((regs)->gr[30]) argument
42 static inline unsigned long regs_get_register(struct pt_regs *regs, in regs_get_register()
/kernel/linux/linux-5.10/arch/arm/probes/kprobes/
Dactions-thumb.c25 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_simulate_table_branch()
45 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_simulate_mrs()
54 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_simulate_cond_branch()
79 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_simulate_branch()
107 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_simulate_ldr_literal()
159 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_emulate_ldrdstrd()
186 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_emulate_ldrstr()
212 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_emulate_rd8rn16rm0_rwflags()
239 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_emulate_rd8pc16_noflags()
259 struct arch_probes_insn *asi, struct pt_regs *regs) in t32_emulate_rd8rn16_noflags()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dirq_stack.h31 __run_sysvec_on_irqstack(void (*func)(struct pt_regs *regs), in __run_sysvec_on_irqstack()
55 static inline void __run_sysvec_on_irqstack(void (*func)(struct pt_regs *regs), in __run_sysvec_on_irqstack()
61 static __always_inline bool irq_needs_irq_stack(struct pt_regs *regs) in irq_needs_irq_stack()
72 struct pt_regs *regs) in run_on_irqstack_cond()
83 run_sysvec_on_irqstack_cond(void (*func)(struct pt_regs *regs), in run_sysvec_on_irqstack_cond()
96 struct pt_regs *regs) in run_irq_on_irqstack_cond()
/kernel/linux/linux-5.10/arch/x86/lib/
Dinsn-eval.c181 static int resolve_default_seg(struct insn *insn, struct pt_regs *regs, int off) in resolve_default_seg()
283 static int resolve_seg_reg(struct insn *insn, struct pt_regs *regs, int regoff) in resolve_seg_reg()
345 static short get_segment_selector(struct pt_regs *regs, int seg_reg_idx) in get_segment_selector()
419 static int get_reg_offset(struct insn *insn, struct pt_regs *regs, in get_reg_offset()
532 static int get_reg_offset_16(struct insn *insn, struct pt_regs *regs, in get_reg_offset_16()
663 unsigned long insn_get_seg_base(struct pt_regs *regs, int seg_reg_idx) in insn_get_seg_base()
730 static unsigned long get_seg_limit(struct pt_regs *regs, int seg_reg_idx) in get_seg_limit()
778 int insn_get_code_seg_params(struct pt_regs *regs) in insn_get_code_seg_params()
837 int insn_get_modrm_rm_off(struct insn *insn, struct pt_regs *regs) in insn_get_modrm_rm_off()
852 int insn_get_modrm_reg_off(struct insn *insn, struct pt_regs *regs) in insn_get_modrm_reg_off()
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dptrace.h177 u64 regs[31]; member
202 static inline bool in_syscall(struct pt_regs const *regs) in in_syscall()
207 static inline void forget_syscall(struct pt_regs *regs) in forget_syscall()
217 #define compat_thumb_mode(regs) \ argument
220 #define compat_thumb_mode(regs) (0) argument
223 #define user_mode(regs) \ argument
226 #define compat_user_mode(regs) \ argument
230 #define processor_mode(regs) \ argument
233 #define irqs_priority_unmasked(regs) \ argument
238 #define interrupts_enabled(regs) \ argument
[all …]
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dsignal.c33 static long restore_fp_state(struct pt_regs *regs, in restore_fp_state()
60 static long save_fp_state(struct pt_regs *regs, in save_fp_state()
82 #define save_fp_state(task, regs) (0) argument
83 #define restore_fp_state(task, regs) (0) argument
86 static long restore_sigcontext(struct pt_regs *regs, in restore_sigcontext()
100 struct pt_regs *regs = current_pt_regs(); in SYSCALL_DEFINE0() local
141 struct pt_regs *regs) in setup_sigcontext()
154 struct pt_regs *regs, size_t framesize) in get_sigframe()
177 struct pt_regs *regs) in setup_rt_frame()
234 static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) in handle_signal()
[all …]

12345678910>>...92