Lines Matching defs:bio
60 struct bc_io_ops *bio;
62 if ((bio = malloc(sizeof(*bio), M_TEMP, M_WAITOK | M_ZERO)) == NULL) {
67 bio->io.read = bc_read;
68 bio->io.read_n = bc_read_n;
69 bio->io.write = bc_write;
70 bio->io.write_n = bc_write_n;
71 bio->vp = vp;
72 bio->cred = NOCRED; /* sysvbfs layer check cred. */
74 return bfs_init2(bfsp, 0, (struct sector_io_ops *)bio, false);
103 struct bc_io_ops *bio = self;
106 if (bread(bio->vp, block, DEV_BSIZE, 0, &bp) != 0)
139 struct bc_io_ops *bio = self;
145 if ((bp = getblk(bio->vp, block, DEV_BSIZE, 0, 0)) == 0) {