Lines Matching refs:bp2
756 g_dev_done(struct bio *bp2) in g_dev_done() argument
763 cp = bp2->bio_from; in g_dev_done()
765 bp = bp2->bio_parent; in g_dev_done()
766 bp->bio_error = bp2->bio_error; in g_dev_done()
767 bp->bio_completed = bp2->bio_completed; in g_dev_done()
768 bp->bio_resid = bp->bio_length - bp2->bio_completed; in g_dev_done()
769 if (bp2->bio_cmd == BIO_ZONE) in g_dev_done()
770 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone)); in g_dev_done()
772 if (bp2->bio_error != 0) { in g_dev_done()
774 bp2, bp2->bio_error); in g_dev_done()
778 bp2, bp, bp2->bio_resid, (intmax_t)bp2->bio_completed); in g_dev_done()
780 g_destroy_bio(bp2); in g_dev_done()
795 struct bio *bp2; in g_dev_strategy() local
827 bp2 = g_clone_bio(bp); in g_dev_strategy()
828 if (bp2 != NULL) in g_dev_strategy()
832 KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place")); in g_dev_strategy()
833 bp2->bio_done = g_dev_done; in g_dev_strategy()
836 bp, bp2, (intmax_t)bp->bio_offset, (intmax_t)bp2->bio_length, in g_dev_strategy()
837 bp2->bio_data, bp2->bio_cmd); in g_dev_strategy()
838 g_io_request(bp2, cp); in g_dev_strategy()