Lines Matching refs:bp
79 struct bio *bp;
115 bp = TAILQ_FIRST(&sc->queue);
116 if (bp == NULL)
118 TAILQ_REMOVE(&sc->queue, bp, bio_queue);
119 bp->bio_error = ENXIO;
120 g_std_done(bp);
152 bp = TAILQ_FIRST(&sc->queue);
153 if (bp == NULL)
155 TAILQ_REMOVE(&sc->queue, bp, bio_queue);
156 g_io_request(bp, sc->path);
202 g_fox_done(struct bio *bp)
208 if (bp->bio_error == 0) {
209 g_std_done(bp);
212 gp = bp->bio_from->geom;
214 if (bp->bio_from != sc->path) {
215 g_io_request(bp, sc->path);
223 bp->bio_error = ENOMEM;
224 g_std_done(bp);
227 TAILQ_INSERT_TAIL(&sc->queue, bp, bio_queue);
233 g_fox_start(struct bio *bp)
240 gp = bp->bio_to->geom;
243 g_io_deliver(bp, ENXIO);
246 switch(bp->bio_cmd) {
250 bp2 = g_clone_bio(bp);
252 g_io_deliver(bp, ENOMEM);
265 g_io_deliver(bp, error);
279 g_io_deliver(bp, EOPNOTSUPP);