/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | traps_32.c | 107 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument 120 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument 130 void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_memaccess_unaligned() argument 134 printk("KERNEL MNA at pc %08lx npc %08lx called by %08lx\n", pc, npc, in do_memaccess_unaligned() 156 void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_fpd_trap() argument 198 void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument 269 regs->pc = regs->npc; 270 regs->npc += 4; 301 void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument 309 handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 321 handle_reg_access(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 331 handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 337 handle_cp_exception(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 347 handle_hw_divzero(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument [all...] |
H A D | entry.h | 16 unsigned long npc, unsigned long psr); 19 unsigned long npc, unsigned long psr); 21 unsigned long npc, unsigned long psr); 23 unsigned long npc, unsigned long psr); 25 unsigned long npc, unsigned long psr); 27 unsigned long npc, unsigned long psr); 29 unsigned long npc, unsigned long psr); 31 unsigned long npc, unsigned long psr); 33 unsigned long npc, unsigned long psr); 35 unsigned long npc, unsigne [all...] |
H A D | signal_32.c | 76 unsigned long up_psr, pc, npc, ufp; in do_sigreturn() local 101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn() 103 if ((pc | npc) & 3) in do_sigreturn() 144 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn() local 162 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn() 163 err |= ((pc | npc) & 0x03); in do_rt_sigreturn() 186 regs->npc = npc; in do_rt_sigreturn() [all...] |
H A D | kgdb_32.c | 42 gdb_regs[GDB_NPC] = regs->npc; in pt_regs_to_gdb_regs() 100 regs->npc = gdb_regs[GDB_NPC]; in gdb_regs_to_pt_regs() 123 linux_regs->npc = addr + 4; in kgdb_arch_handle_exception() 130 linux_regs->pc = linux_regs->npc; in kgdb_arch_handle_exception() 131 linux_regs->npc += 4; in kgdb_arch_handle_exception() 166 regs->npc = regs->pc + 4; in kgdb_arch_set_pc()
|
H A D | signal32.c | 90 unsigned int pc, npc; in do_sigreturn32() local 114 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32() 117 if ((pc | npc) & 3) in do_sigreturn32() 122 npc &= 0xffffffff; in do_sigreturn32() 125 regs->tnpc = npc; in do_sigreturn32() 178 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn32() local 202 __get_user(npc, &sf->regs.npc)) in do_rt_sigreturn32() 205 if ((pc | npc) in do_rt_sigreturn32() [all...] |
H A D | unaligned_32.c | 200 regs->pc = regs->npc; in advance() 201 regs->npc += 4; in advance() 236 regs->npc = regs->pc + 4; in kernel_mna_trap_fault() 283 if ((regs->pc | regs->npc) & 3) in ok_for_user()
|
H A D | sys_sparc_32.c | 152 printk ("TRAP: Entering kernel PC=%x, nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint() 157 printk ("TRAP: Returning to space: PC=%x nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint()
|
H A D | signal_64.c | 47 unsigned long pc, npc, tstate; in sparc64_set_context() local 59 err |= __get_user(npc, &((*grp)[MC_NPC])); in sparc64_set_context() 60 if (err || ((pc | npc) & 3)) in sparc64_set_context() 76 npc &= 0xffffffff; in sparc64_set_context() 79 regs->tnpc = npc; in sparc64_set_context()
|
H A D | syscalls.S | 268 ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc 276 add %l1, 0x4, %l2 ! npc = npc+4 287 ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc
|
H A D | ptrace_32.c | 102 membuf_store(&to, regs->npc); in genregs32_get() 153 ®s->npc, in genregs32_set() 255 membuf_store(&to, regs->npc); in getregs_get() 280 regs->npc = v[2]; in setregs_set()
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | traps_32.c | 107 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_illegal_instruction() argument 120 void do_priv_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_priv_instruction() argument 130 void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_memaccess_unaligned() argument 134 printk("KERNEL MNA at pc %08lx npc %08lx called by %08lx\n", pc, npc, in do_memaccess_unaligned() 156 void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, in do_fpd_trap() argument 198 void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument 269 regs->pc = regs->npc; 270 regs->npc += 4; 301 void handle_tag_overflow(struct pt_regs *regs, unsigned long pc, unsigned long npc, argument 309 handle_watchpoint(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 321 handle_reg_access(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 331 handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 337 handle_cp_exception(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument 347 handle_hw_divzero(struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr) global() argument [all...] |
H A D | entry.h | 16 unsigned long npc, unsigned long psr); 19 unsigned long npc, unsigned long psr); 21 unsigned long npc, unsigned long psr); 23 unsigned long npc, unsigned long psr); 25 unsigned long npc, unsigned long psr); 27 unsigned long npc, unsigned long psr); 29 unsigned long npc, unsigned long psr); 31 unsigned long npc, unsigned long psr); 33 unsigned long npc, unsigned long psr); 35 unsigned long npc, unsigne [all...] |
H A D | signal_32.c | 76 unsigned long up_psr, pc, npc, ufp; in do_sigreturn() local 101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn() 103 if ((pc | npc) & 3) in do_sigreturn() 144 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn() local 162 err |= __get_user(npc, &sf->regs.npc); in do_rt_sigreturn() 163 err |= ((pc | npc) & 0x03); in do_rt_sigreturn() 186 regs->npc = npc; in do_rt_sigreturn() [all...] |
H A D | kgdb_32.c | 42 gdb_regs[GDB_NPC] = regs->npc; in pt_regs_to_gdb_regs() 100 regs->npc = gdb_regs[GDB_NPC]; in gdb_regs_to_pt_regs() 123 linux_regs->npc = addr + 4; in kgdb_arch_handle_exception() 130 linux_regs->pc = linux_regs->npc; in kgdb_arch_handle_exception() 131 linux_regs->npc += 4; in kgdb_arch_handle_exception() 166 regs->npc = regs->pc + 4; in kgdb_arch_set_pc()
|
H A D | signal32.c | 89 unsigned int pc, npc; in do_sigreturn32() local 113 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32() 116 if ((pc | npc) & 3) in do_sigreturn32() 121 npc &= 0xffffffff; in do_sigreturn32() 124 regs->tnpc = npc; in do_sigreturn32() 177 unsigned int psr, pc, npc, ufp; in do_rt_sigreturn32() local 201 __get_user(npc, &sf->regs.npc)) in do_rt_sigreturn32() 204 if ((pc | npc) in do_rt_sigreturn32() [all...] |
H A D | unaligned_32.c | 201 regs->pc = regs->npc; in advance() 202 regs->npc += 4; in advance() 237 regs->npc = regs->pc + 4; in kernel_mna_trap_fault()
|
H A D | sys_sparc_32.c | 152 printk ("TRAP: Entering kernel PC=%x, nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint() 157 printk ("TRAP: Returning to space: PC=%x nPC=%x\n", regs->pc, regs->npc); in sparc_breakpoint()
|
H A D | signal_64.c | 47 unsigned long pc, npc, tstate; in sparc64_set_context() local 59 err |= __get_user(npc, &((*grp)[MC_NPC])); in sparc64_set_context() 60 if (err || ((pc | npc) & 3)) in sparc64_set_context() 76 npc &= 0xffffffff; in sparc64_set_context() 79 regs->tnpc = npc; in sparc64_set_context()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
H A D | run.c | 176 static int spu_run_init(struct spu_context *ctx, u32 *npc) in spu_run_init() argument 222 ctx->ops->npc_write(ctx, *npc); in spu_run_init() 244 static int spu_run_fini(struct spu_context *ctx, u32 *npc, in spu_run_fini() argument 252 *npc = ctx->ops->npc_read(ctx); in spu_run_fini() 274 unsigned int *npc) in spu_handle_restartsys() 286 *npc -= 8; in spu_handle_restartsys() 312 u32 ls_pointer, npc; in spu_process_callback() local 318 npc = ctx->ops->npc_read(ctx) & ~3; in spu_process_callback() 320 ls_pointer = in_be32(ls + npc); in spu_process_callback() 328 npc in spu_process_callback() 273 spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, unsigned int *npc) spu_handle_restartsys() argument 353 spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *event) spufs_run_spu() argument [all...] |
H A D | syscalls.c | 40 u32 npc, status; in do_spu_run() local 43 if (get_user(npc, unpc)) in do_spu_run() 52 ret = spufs_run_spu(i->i_ctx, &npc, &status); in do_spu_run() 54 if (put_user(npc, unpc)) in do_spu_run()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/ |
H A D | run.c | 176 static int spu_run_init(struct spu_context *ctx, u32 *npc) in spu_run_init() argument 222 ctx->ops->npc_write(ctx, *npc); in spu_run_init() 244 static int spu_run_fini(struct spu_context *ctx, u32 *npc, in spu_run_fini() argument 252 *npc = ctx->ops->npc_read(ctx); in spu_run_fini() 274 unsigned int *npc) in spu_handle_restartsys() 286 *npc -= 8; in spu_handle_restartsys() 312 u32 ls_pointer, npc; in spu_process_callback() local 318 npc = ctx->ops->npc_read(ctx) & ~3; in spu_process_callback() 320 ls_pointer = in_be32(ls + npc); in spu_process_callback() 328 npc in spu_process_callback() 273 spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, unsigned int *npc) spu_handle_restartsys() argument 353 spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *event) spufs_run_spu() argument [all...] |
H A D | syscalls.c | 40 u32 npc, status; in do_spu_run() local 43 if (get_user(npc, unpc)) in do_spu_run() 52 ret = spufs_run_spu(i->i_ctx, &npc, &status); in do_spu_run() 54 if (put_user(npc, unpc)) in do_spu_run()
|
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | onboard_usb_hub_pdevs.c | 70 struct device_node *np, *npc; in onboard_hub_create_pdevs() local 88 npc = of_parse_phandle(np, "peer-hub", 0); in onboard_hub_create_pdevs() 89 if (npc) { in onboard_hub_create_pdevs() 91 of_node_put(npc); in onboard_hub_create_pdevs() 95 pdev = of_find_device_by_node(npc); in onboard_hub_create_pdevs() 96 of_node_put(npc); in onboard_hub_create_pdevs()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | unwind.c | 276 unsigned long npc; in unwind_frame_regs() local 331 for (npc = e->region_start; in unwind_frame_regs() 334 npc < info->ip; in unwind_frame_regs() 335 npc += 4) { in unwind_frame_regs() 337 insn = *(unsigned int *)npc; in unwind_frame_regs() 345 insn, npc, frame_size); in unwind_frame_regs() 351 insn, npc, frame_size); in unwind_frame_regs() 357 "-20(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs() 363 "-16(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs() 381 "prev_ip=%lx npc in unwind_frame_regs() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | unwind.c | 277 unsigned long npc; in unwind_frame_regs() local 330 for (npc = e->region_start; in unwind_frame_regs() 333 npc < info->ip; in unwind_frame_regs() 334 npc += 4) { in unwind_frame_regs() 336 insn = *(unsigned int *)npc; in unwind_frame_regs() 344 insn, npc, frame_size); in unwind_frame_regs() 350 insn, npc, frame_size); in unwind_frame_regs() 356 "-20(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs() 362 "-16(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs() 380 "prev_ip=%lx npc in unwind_frame_regs() [all...] |