Lines Matching defs:cbp
259 struct bio *bp, *cbp, *cbp2;
289 cbp = bp->bio_driver1;
291 g_destroy_bio(cbp);
297 cbp = bp->bio_driver1;
299 cbp->bio_to = cp->provider;
300 cbp->bio_done = g_eli_write_done;
307 cbp->bio_length = cp->provider->sectorsize * nsec;
308 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
309 cbp->bio_data = bp->bio_driver2;
316 if (cbp->bio_length > MAXPHYS) {
318 cbp2->bio_length = cbp->bio_length - MAXPHYS;
319 cbp2->bio_data = cbp->bio_data + MAXPHYS;
320 cbp2->bio_offset = cbp->bio_offset + MAXPHYS;
323 cbp->bio_length = MAXPHYS;
328 G_ELI_LOGREQ(2, cbp, "Sending request.");
331 g_io_request(cbp, cp);
343 struct bio *cbp, *cbp2;
350 cbp = bp->bio_driver1;
352 cbp->bio_to = cp->provider;
353 cbp->bio_done = g_eli_read_done;
360 cbp->bio_length = cp->provider->sectorsize * nsec;
361 size = cbp->bio_length;
368 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
370 cbp->bio_data = bp->bio_driver2;
377 if (cbp->bio_length > MAXPHYS) {
379 cbp2->bio_length = cbp->bio_length - MAXPHYS;
380 cbp2->bio_data = cbp->bio_data + MAXPHYS;
381 cbp2->bio_offset = cbp->bio_offset + MAXPHYS;
384 cbp->bio_length = MAXPHYS;
389 G_ELI_LOGREQ(2, cbp, "Sending request.");
390 g_io_request(cbp, cp);