Lines Matching defs:bp2
1223 struct bio *bp1, *bp2;
1248 while ((bp2 = TAILQ_FIRST(&queue)) != NULL) {
1249 TAILQ_REMOVE(&queue, bp2, bio_queue);
1250 bp2->bio_error = error;
1252 bp2->bio_flags |= BIO_ERROR;
1253 bp2->bio_resid = bp1->bio_bcount;
1255 bp2->bio_resid = 0;
1256 if (bp1 != bp2)
1257 cam_iosched_bio_complete(softc->cam_iosched, bp2, NULL);
1258 biodone(bp2);