Home
last modified time | relevance | path

Searched refs:bpt (Results 1 – 6 of 6) sorted by relevance

/arch/arm/kernel/
Dkgdb.c247 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
254 err = probe_kernel_read(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
260 __patch_text((void *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
266 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
269 __patch_text((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr); in kgdb_arch_remove_breakpoint()
/arch/x86/kernel/
Dkgdb.c750 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
755 bpt->type = BP_BREAKPOINT; in kgdb_arch_set_breakpoint()
756 err = probe_kernel_read(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
760 err = probe_kernel_write((char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
770 text_poke((void *)bpt->bpt_addr, arch_kgdb_ops.gdb_bpt_instr, in kgdb_arch_set_breakpoint()
772 err = probe_kernel_read(opc, (char *)bpt->bpt_addr, BREAK_INSTR_SIZE); in kgdb_arch_set_breakpoint()
777 bpt->type = BP_POKE_BREAKPOINT; in kgdb_arch_set_breakpoint()
782 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
787 if (bpt->type != BP_POKE_BREAKPOINT) in kgdb_arch_remove_breakpoint()
795 text_poke((void *)bpt->bpt_addr, bpt->saved_instr, BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()
[all …]
/arch/tile/kernel/
Dkgdb.c460 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
463 unsigned long addr_wr = writable_address(bpt->bpt_addr); in kgdb_arch_set_breakpoint()
468 err = probe_kernel_read(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
476 flush_icache_range((unsigned long)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
477 (unsigned long)bpt->bpt_addr + BREAK_INSTR_SIZE); in kgdb_arch_set_breakpoint()
481 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
484 unsigned long addr_wr = writable_address(bpt->bpt_addr); in kgdb_arch_remove_breakpoint()
489 err = probe_kernel_write((char *)addr_wr, (char *)bpt->saved_instr, in kgdb_arch_remove_breakpoint()
492 flush_icache_range((unsigned long)bpt->bpt_addr, in kgdb_arch_remove_breakpoint()
493 (unsigned long)bpt->bpt_addr + BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()
Dtraps.c214 unsigned long bundle, bcode, bpt; in do_bpt() local
222 bpt = bundle & ~((1ULL << 12) - 1); in do_bpt()
223 if (bpt != TILE_BPT_BUNDLE) in do_bpt()
/arch/powerpc/platforms/512x/
Dmpc512x_lpbfifo.c163 u32 bpt = 32; /* max bytes per LPBFIFO transaction involving DMA */ in mpc512x_lpbfifo_kick() local
194 bpt = lpbfifo.req->portsize; in mpc512x_lpbfifo_kick()
198 while (bpt > 1) { in mpc512x_lpbfifo_kick()
199 if (IS_ALIGNED(lpbfifo.req->dev_phys_addr, min(bpt, 0x8u)) && in mpc512x_lpbfifo_kick()
200 IS_ALIGNED(lpbfifo.req->size, bpt)) { in mpc512x_lpbfifo_kick()
207 bpt >>= 1; in mpc512x_lpbfifo_kick()
209 dma_conf.dst_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
210 dma_conf.src_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
299 bits |= MPC512X_SCLPC_BPT(bpt); in mpc512x_lpbfifo_kick()
/arch/powerpc/xmon/
Dxmon.c89 struct bpt { struct
103 static struct bpt bpts[NBPTS];
104 static struct bpt dabr;
105 static struct bpt *iabr;
144 static struct bpt *at_breakpoint(unsigned long pc);
145 static struct bpt *in_breakpoint_table(unsigned long pc, unsigned long *offp);
406 struct bpt *bp; in xmon_core()
633 struct bpt *bp; in xmon_bpt()
696 struct bpt *bp; in xmon_fault_handler()
713 static struct bpt *at_breakpoint(unsigned long pc) in at_breakpoint()
[all …]