Lines Matching defs:bp2
716 g_dev_done(struct bio *bp2)
723 cp = bp2->bio_from;
725 bp = bp2->bio_parent;
726 bp->bio_error = bp2->bio_error;
727 bp->bio_completed = bp2->bio_completed;
728 bp->bio_resid = bp->bio_length - bp2->bio_completed;
729 if (bp2->bio_cmd == BIO_ZONE)
730 bcopy(&bp2->bio_zone, &bp->bio_zone, sizeof(bp->bio_zone));
732 if (bp2->bio_error != 0) {
734 bp2, bp2->bio_error);
742 bp2, bp, bp2->bio_resid, (intmax_t)bp2->bio_completed);
744 g_destroy_bio(bp2);
759 struct bio *bp2;
791 bp2 = g_clone_bio(bp);
792 if (bp2 != NULL)
796 KASSERT(bp2 != NULL, ("XXX: ENOMEM in a bad place"));
797 bp2->bio_done = g_dev_done;
800 bp, bp2, (intmax_t)bp->bio_offset, (intmax_t)bp2->bio_length,
801 bp2->bio_data, bp2->bio_cmd);
802 g_io_request(bp2, cp);