Lines Matching refs:bbp
113 struct buf *bbp = bp->bio_buf; in g_io_deliver() local
115 bbp->b_flags |= B_ERROR; in g_io_deliver()
116 bbp->b_error = error; in g_io_deliver()
779 struct buf *bbp = bp->bio_buf; in acd_strategy() local
784 if (bbp->b_cmd != BUF_CMD_READ && bbp->b_cmd != BUF_CMD_WRITE) { in acd_strategy()
789 if (bbp->b_cmd == BUF_CMD_READ && cdp->disk_size == -1) { in acd_strategy()
794 KASSERT(bbp->b_bcount != 0, ("acd_strategy: 0-length I/O")); in acd_strategy()
797 bbp->b_resid = bbp->b_bcount; in acd_strategy()
807 struct buf *bbp = bp->bio_buf; in acd_start() local
845 count = bbp->b_bcount / blocksize; in acd_start()
847 bbp->b_bcount, blocksize)); in acd_start()
849 if (bbp->b_cmd == BUF_CMD_READ) { in acd_start()
854 bbp->b_resid = bbp->b_bcount; in acd_start()
896 request->data = bbp->b_data; in acd_start()
905 switch (bbp->b_cmd) { in acd_start()
927 struct buf *bbp = bp->bio_buf; in acd_done() local
930 if ((bbp->b_error = request->result)) in acd_done()
931 bbp->b_flags |= B_ERROR; in acd_done()
932 bbp->b_resid = bbp->b_bcount - request->donecount; in acd_done()
933 devstat_end_transaction_buf(&cdp->stats, bbp); in acd_done()