Home
last modified time | relevance | path

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

/Linux-v5.10/arch/arm/kernel/
Dkgdb.c232 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
239 err = copy_from_kernel_nofault(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
245 __patch_text((void *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
251 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
254 __patch_text((void *)bpt->bpt_addr, *(unsigned int *)bpt->saved_instr); in kgdb_arch_remove_breakpoint()
/Linux-v5.10/arch/parisc/kernel/
Dkgdb.c155 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
157 int ret = copy_from_kernel_nofault(bpt->saved_instr, in kgdb_arch_set_breakpoint()
158 (char *)bpt->bpt_addr, BREAK_INSTR_SIZE); in kgdb_arch_set_breakpoint()
162 __patch_text((void *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
167 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
169 __patch_text((void *)bpt->bpt_addr, *(unsigned int *)&bpt->saved_instr); in kgdb_arch_remove_breakpoint()
/Linux-v5.10/arch/arm64/kernel/
Dkgdb.c337 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
343 err = aarch64_insn_read((void *)bpt->bpt_addr, (u32 *)bpt->saved_instr); in kgdb_arch_set_breakpoint()
347 return aarch64_insn_write((void *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
351 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
353 return aarch64_insn_write((void *)bpt->bpt_addr, in kgdb_arch_remove_breakpoint()
354 *(u32 *)bpt->saved_instr); in kgdb_arch_remove_breakpoint()
/Linux-v5.10/arch/x86/kernel/
Dkgdb.c731 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
735 bpt->type = BP_BREAKPOINT; in kgdb_arch_set_breakpoint()
736 err = copy_from_kernel_nofault(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
740 err = copy_to_kernel_nofault((char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
750 text_poke_kgdb((void *)bpt->bpt_addr, arch_kgdb_ops.gdb_bpt_instr, in kgdb_arch_set_breakpoint()
752 bpt->type = BP_POKE_BREAKPOINT; in kgdb_arch_set_breakpoint()
757 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
759 if (bpt->type != BP_POKE_BREAKPOINT) in kgdb_arch_remove_breakpoint()
767 text_poke_kgdb((void *)bpt->bpt_addr, bpt->saved_instr, in kgdb_arch_remove_breakpoint()
772 return copy_to_kernel_nofault((char *)bpt->bpt_addr, in kgdb_arch_remove_breakpoint()
[all …]
/Linux-v5.10/arch/powerpc/platforms/512x/
Dmpc512x_lpbfifo.c162 u32 bpt = 32; /* max bytes per LPBFIFO transaction involving DMA */ in mpc512x_lpbfifo_kick() local
193 bpt = lpbfifo.req->portsize; in mpc512x_lpbfifo_kick()
197 while (bpt > 1) { in mpc512x_lpbfifo_kick()
198 if (IS_ALIGNED(lpbfifo.req->dev_phys_addr, min(bpt, 0x8u)) && in mpc512x_lpbfifo_kick()
199 IS_ALIGNED(lpbfifo.req->size, bpt)) { in mpc512x_lpbfifo_kick()
206 bpt >>= 1; in mpc512x_lpbfifo_kick()
208 dma_conf.dst_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
209 dma_conf.src_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
298 bits |= MPC512X_SCLPC_BPT(bpt); in mpc512x_lpbfifo_kick()
/Linux-v5.10/arch/powerpc/kernel/
Dkgdb.c418 int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
422 struct ppc_inst *addr = (struct ppc_inst *)bpt->bpt_addr; in kgdb_arch_set_breakpoint()
432 *(unsigned int *)bpt->saved_instr = instr; in kgdb_arch_set_breakpoint()
437 int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
440 unsigned int instr = *(unsigned int *)bpt->saved_instr; in kgdb_arch_remove_breakpoint()
441 struct ppc_inst *addr = (struct ppc_inst *)bpt->bpt_addr; in kgdb_arch_remove_breakpoint()
/Linux-v5.10/kernel/debug/
Ddebug_core.c160 int __weak kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_set_breakpoint() argument
164 err = copy_from_kernel_nofault(bpt->saved_instr, (char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
168 err = copy_to_kernel_nofault((char *)bpt->bpt_addr, in kgdb_arch_set_breakpoint()
174 int __weak kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) in kgdb_arch_remove_breakpoint() argument
176 return copy_to_kernel_nofault((char *)bpt->bpt_addr, in kgdb_arch_remove_breakpoint()
177 (char *)bpt->saved_instr, BREAK_INSTR_SIZE); in kgdb_arch_remove_breakpoint()
/Linux-v5.10/include/linux/
Dkgdb.h228 extern int kgdb_arch_set_breakpoint(struct kgdb_bkpt *bpt);
229 extern int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt);
/Linux-v5.10/arch/powerpc/xmon/
Dxmon.c100 struct bpt { struct
113 static struct bpt bpts[NBPTS];
114 static struct bpt dabr[HBP_NUM_MAX];
115 static struct bpt *iabr;
166 static struct bpt *at_breakpoint(unsigned long pc);
167 static struct bpt *in_breakpoint_table(unsigned long pc, unsigned long *offp);
494 struct bpt *bp; in xmon_core()
759 struct bpt *bp; in xmon_bpt()
829 struct bpt *bp; in xmon_fault_handler()
856 static struct bpt *at_breakpoint(unsigned long pc) in at_breakpoint()
[all …]
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c3039 unsigned int v, tps, cpt, bpt, delta, mindelta = ~0; in t3_config_sched() local
3047 bpt = (kbps + tps / 2) / tps; in t3_config_sched()
3048 if (bpt > 0 && bpt <= 255) { in t3_config_sched()
3049 v = bpt * tps; in t3_config_sched()
3054 selected_bpt = bpt; in t3_config_sched()
Dcxgb3_main.c804 unsigned int v, addr, bpt, cpt; in tm_attr_show() local
813 bpt = (v >> 8) & 0xff; in tm_attr_show()
819 len = sprintf(buf, "%u Kbps\n", (v * bpt) / 125); in tm_attr_show()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c10304 unsigned int v, addr, bpt, cpt; in t4_get_tx_sched() local
10311 bpt = (v >> 8) & 0xff; in t4_get_tx_sched()
10317 *kbps = (v * bpt) / 125; in t4_get_tx_sched()