Lines Matching refs:bp
134 g_aes_read_done(struct bio *bp)
142 gp = bp->bio_from->geom;
145 b = bp->bio_data;
146 e = bp->bio_data;
147 e += bp->bio_length;
148 o = bp->bio_offset - sc->sectorsize;
158 g_std_done(bp);
162 g_aes_write_done(struct bio *bp)
165 bzero(bp->bio_data, bp->bio_length); /* destroy evidence */
166 g_free(bp->bio_data);
167 g_std_done(bp);
171 g_aes_start(struct bio *bp)
181 gp = bp->bio_to->geom;
184 switch (bp->bio_cmd) {
186 bp2 = g_clone_bio(bp);
188 g_io_deliver(bp, ENOMEM);
196 bp2 = g_clone_bio(bp);
198 g_io_deliver(bp, ENOMEM);
203 bp2->bio_data = g_malloc(bp->bio_length, M_WAITOK);
204 b = bp->bio_data;
205 e = bp->bio_data;
206 e += bp->bio_length;
208 o = bp->bio_offset;
220 bp2 = g_clone_bio(bp);
222 g_io_deliver(bp, ENOMEM);
230 g_io_deliver(bp, EOPNOTSUPP);