Lines Matching refs:bp
192 ptstrategy(struct bio *bp)
197 periph = (struct cam_periph *)bp->bio_dev->si_drv1;
198 bp->bio_resid = bp->bio_bcount;
200 biofinish(bp, NULL, ENXIO);
211 biofinish(bp, NULL, ENXIO);
218 bioq_insert_tail(&softc->bio_queue, bp);
426 struct bio *bp;
435 bp = bioq_first(&softc->bio_queue);
436 if (bp == NULL) {
439 bioq_remove(&softc->bio_queue, bp);
441 devstat_start_transaction_bio(softc->device_stats, bp);
447 bp->bio_cmd == BIO_READ,
449 bp->bio_bcount,
450 bp->bio_data,
463 start_ccb->ccb_h.ccb_bp = bp;
464 bp = bioq_first(&softc->bio_queue);
468 if (bp != NULL) {
490 struct bio *bp;
492 bp = (struct bio *)done_ccb->ccb_h.ccb_bp;
527 bp->bio_error = error;
528 bp->bio_resid = bp->bio_bcount;
529 bp->bio_flags |= BIO_ERROR;
531 bp->bio_resid = csio->resid;
532 bp->bio_error = 0;
533 if (bp->bio_resid != 0) {
535 bp->bio_flags |= BIO_ERROR;
545 bp->bio_resid = csio->resid;
546 if (bp->bio_resid != 0)
547 bp->bio_flags |= BIO_ERROR;
556 biofinish(bp, softc->device_stats, 0);