Lines Matching defs:bip
95 g_vfs_done(struct bio *bip)
110 bp = bip->bio_caller2;
141 cp = bip->bio_from;
143 if (bip->bio_error != 0 && bip->bio_error != EOPNOTSUPP) {
147 bip->bio_to->name);
150 bip->bio_error = ENXIO;
151 if (bip->bio_error != ENXIO ||
153 g_print_bio("g_vfs_done():", bip, "error = %d%s",
154 bip->bio_error,
155 bip->bio_error != ENXIO ? "" :
159 bp->b_error = bip->bio_error;
160 bp->b_ioflags = bip->bio_flags;
161 if (bip->bio_error)
163 bp->b_resid = bp->b_bcount - bip->bio_completed;
164 g_destroy_bio(bip);
185 struct bio *bip;
204 bip = g_alloc_bio();
205 bip->bio_cmd = bp->b_iocmd;
206 bip->bio_offset = bp->b_iooffset;
207 bip->bio_length = bp->b_bcount;
208 bdata2bio(bp, bip);
210 bip->bio_flags |= BIO_ORDERED;
214 bip->bio_flags |= bp->b_ioflags;
215 bip->bio_done = g_vfs_done;
216 bip->bio_caller2 = bp;
219 bip->bio_track_bp = bp;
221 g_io_request(bip, cp);