Lines Matching refs:bp
875 int S, bp, trig_bits = 0, rw_bits = 0; in stub_is_stopped() local
890 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
893 int bitpos_trig = 1 + bp * 2; in stub_is_stopped()
895 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
910 trig_mask |= (1 << bp); in stub_is_stopped()
912 if (reg.eda >= bp_d_regs[bp * 2] && in stub_is_stopped()
913 reg.eda <= bp_d_regs[bp * 2 + 1]) { in stub_is_stopped()
921 if (bp < 6) { in stub_is_stopped()
925 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
927 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
932 if (trig_mask & (1 << bp)) { in stub_is_stopped()
934 if (reg.eda + 31 >= bp_d_regs[bp * 2]) { in stub_is_stopped()
937 stopped_data_address = bp_d_regs[bp * 2]; in stub_is_stopped()
948 BUG_ON(bp >= 6); in stub_is_stopped()
1141 int bp; in insert_watchpoint() local
1152 for (bp = 0; bp < 6; bp++) { in insert_watchpoint()
1156 if (!(sreg.s0_3 & (0x3 << (2 + (bp * 4))))) { in insert_watchpoint()
1161 if (bp > 5) { in insert_watchpoint()
1170 sreg.s0_3 |= (1 << (2 + bp * 4)); in insert_watchpoint()
1174 sreg.s0_3 |= (2 << (2 + bp * 4)); in insert_watchpoint()
1178 bp_d_regs[bp * 2] = addr; in insert_watchpoint()
1179 bp_d_regs[bp * 2 + 1] = (addr + len - 1); in insert_watchpoint()
1219 int bp; in remove_watchpoint() local
1228 for (bp = 0; bp < 6; bp++) { in remove_watchpoint()
1229 if (bp_d_regs[bp * 2] == addr && in remove_watchpoint()
1230 bp_d_regs[bp * 2 + 1] == (addr + len - 1)) { in remove_watchpoint()
1232 int bitpos = 2 + bp * 4; in remove_watchpoint()
1247 if (bp > 5) { in remove_watchpoint()
1256 sreg.s0_3 &= ~(3 << (2 + (bp * 4))); in remove_watchpoint()
1257 bp_d_regs[bp * 2] = 0; in remove_watchpoint()
1258 bp_d_regs[bp * 2 + 1] = 0; in remove_watchpoint()