Lines Matching refs:bp2
232 struct bio *bp2;
237 bp2 = bp->bio_parent;
240 if (bp2->bio_error == 0)
241 bp2->bio_error = bp->bio_error;
242 bp2->bio_completed += bp->bio_length - bp->bio_resid;
246 bcopy(&bp->bio_zone, &bp2->bio_zone, sizeof(bp->bio_zone));
257 bp2->bio_inbed++;
258 if (bp2->bio_children == bp2->bio_inbed) {
260 bp2->bio_resid = bp2->bio_bcount - bp2->bio_completed;
261 g_io_deliver(bp2, bp2->bio_error);
427 struct bio *bp2, *bp3;
454 bp2 = g_clone_bio(bp);
455 if (bp2 == NULL) {
460 if (g_disk_limit(dp, bp2)) {
461 off += bp2->bio_length;
471 bp2->bio_done = g_disk_done;
472 bp2->bio_caller1 = sc;
473 bp2->bio_pblkno = bp2->bio_offset / dp->d_sectorsize;
474 bp2->bio_bcount = bp2->bio_length;
475 bp2->bio_disk = dp;
477 devstat_start_transaction_bio(dp->d_devstat, bp2);
479 dp->d_strategy(bp2);
484 bp2 = bp3;
486 g_disk_advance(dp, bp2, off);
552 bp2 = g_clone_bio(bp);
553 if (bp2 == NULL) {
557 bp2->bio_done = g_disk_done;
558 bp2->bio_caller1 = sc;
559 bp2->bio_disk = dp;
561 devstat_start_transaction_bio(dp->d_devstat, bp2);
563 dp->d_strategy(bp2);