Lines Matching defs:bp
80 gxemul_disk_start(struct bio *bp)
88 sc = bp->bio_to->geom->softc;
91 if ((bp->bio_length % GXEMUL_DISK_DEV_BLOCKSIZE) != 0) {
92 g_io_deliver(bp, EINVAL);
96 buf = bp->bio_data;
97 offset = bp->bio_offset;
98 bp->bio_resid = bp->bio_length;
99 while (bp->bio_resid != 0) {
100 switch (bp->bio_cmd) {
112 g_io_deliver(bp, EOPNOTSUPP);
116 g_io_deliver(bp, error);
122 bp->bio_completed += GXEMUL_DISK_DEV_BLOCKSIZE;
123 bp->bio_resid -= GXEMUL_DISK_DEV_BLOCKSIZE;
126 g_io_deliver(bp, 0);