Lines Matching refs:bp
846 int S, bp, trig_bits = 0, rw_bits = 0; in stub_is_stopped() local
861 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
864 int bitpos_trig = 1 + bp * 2; in stub_is_stopped()
866 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
881 trig_mask |= (1 << bp); in stub_is_stopped()
883 if (reg.eda >= bp_d_regs[bp * 2] && in stub_is_stopped()
884 reg.eda <= bp_d_regs[bp * 2 + 1]) { in stub_is_stopped()
892 if (bp < 6) { in stub_is_stopped()
896 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
898 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
903 if (trig_mask & (1 << bp)) { in stub_is_stopped()
905 if (reg.eda + 31 >= bp_d_regs[bp * 2]) { in stub_is_stopped()
908 stopped_data_address = bp_d_regs[bp * 2]; in stub_is_stopped()
919 BUG_ON(bp >= 6); in stub_is_stopped()
1112 int bp; in insert_watchpoint() local
1123 for (bp = 0; bp < 6; bp++) { in insert_watchpoint()
1127 if (!(sreg.s0_3 & (0x3 << (2 + (bp * 4))))) { in insert_watchpoint()
1132 if (bp > 5) { in insert_watchpoint()
1141 sreg.s0_3 |= (1 << (2 + bp * 4)); in insert_watchpoint()
1145 sreg.s0_3 |= (2 << (2 + bp * 4)); in insert_watchpoint()
1149 bp_d_regs[bp * 2] = addr; in insert_watchpoint()
1150 bp_d_regs[bp * 2 + 1] = (addr + len - 1); in insert_watchpoint()
1190 int bp; in remove_watchpoint() local
1199 for (bp = 0; bp < 6; bp++) { in remove_watchpoint()
1200 if (bp_d_regs[bp * 2] == addr && in remove_watchpoint()
1201 bp_d_regs[bp * 2 + 1] == (addr + len - 1)) { in remove_watchpoint()
1203 int bitpos = 2 + bp * 4; in remove_watchpoint()
1218 if (bp > 5) { in remove_watchpoint()
1227 sreg.s0_3 &= ~(3 << (2 + (bp * 4))); in remove_watchpoint()
1228 bp_d_regs[bp * 2] = 0; in remove_watchpoint()
1229 bp_d_regs[bp * 2 + 1] = 0; in remove_watchpoint()