Lines Matching defs:bio
33 #include <sys/bio.h>
259 mfi_disk_strategy(struct bio *bio)
264 sc = bio->bio_disk->d_drv1;
267 bio->bio_error = EINVAL;
268 bio->bio_flags |= BIO_ERROR;
269 bio->bio_resid = bio->bio_bcount;
270 biodone(bio);
276 bio->bio_error = EBUSY;
281 bio->bio_error = EBUSY;
286 bio->bio_error = EBUSY;
290 bio->bio_driver1 = (void *)(uintptr_t)sc->ld_id;
292 bio->bio_driver2 = (void *)MFI_LD_IO;
294 mfi_enqueue_bio(controller, bio);
301 mfi_disk_complete(struct bio *bio)
304 if (bio->bio_flags & BIO_ERROR) {
305 bio->bio_resid = bio->bio_bcount;
306 if (bio->bio_error == 0)
307 bio->bio_error = EIO;
308 disk_err(bio, "hard error", -1, 1);
310 bio->bio_resid = 0;
312 biodone(bio);