Lines Matching defs:cbp
195 struct bio *cbp;
230 cbp = g_clone_bio(bp);
231 if (cbp == NULL)
233 cbp->bio_offset = offset + start;
234 cbp->bio_length = length;
237 cbp->bio_ma_offset += (uintptr_t)addr;
238 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
239 cbp->bio_ma_offset %= PAGE_SIZE;
240 cbp->bio_ma_n = round_page(cbp->bio_ma_offset +
241 cbp->bio_length) / PAGE_SIZE;
243 cbp->bio_data = addr;
244 cbp->bio_caller1 = &vol->v_subdisks[no];
245 bioq_insert_tail(&queue, cbp);
255 while ((cbp = bioq_takefirst(&queue)) != NULL) {
256 sd = cbp->bio_caller1;
257 cbp->bio_caller1 = NULL;
258 g_raid_subdisk_iostart(sd, cbp);
262 while ((cbp = bioq_takefirst(&queue)) != NULL)
263 g_destroy_bio(cbp);