Lines Matching refs:bp2
717 g_dev_done(struct bio *bp2) in g_dev_done() argument
724 cp = bp2->bio_from; in g_dev_done()
726 bp = bp2->bio_parent; in g_dev_done()
727 bp->bio_error = bp2->bio_error; in g_dev_done()
728 bp->bio_completed = bp2->bio_completed; in g_dev_done()
729 bp->bio_resid = bp->bio_length - bp2->bio_completed; in g_dev_done()
730 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
731 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone)); in g_dev_done()
733 if (bp2->bio_error != 0) { in g_dev_done()
735 bp2, bp2->bio_error); in g_dev_done()
743 bp2, bp, bp2->bio_resid, (intmax_t)bp2->bio_completed); in g_dev_done()
745 g_destroy_bio(bp2); in g_dev_done()
760 struct bio *bp2; in g_dev_strategy() local
792 bp2 = g_clone_bio(bp); in g_dev_strategy()
793 if (bp2 != NULL) in g_dev_strategy()
797 KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place")); in g_dev_strategy()
798 bp2->bio_done = g_dev_done; in g_dev_strategy()
801 bp, bp2, (intmax_t)bp->bio_offset, (intmax_t)bp2->bio_length, in g_dev_strategy()
802 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
803 g_io_request(bp2, cp); in g_dev_strategy()