Lines Matching refs:cbp
212 struct bio *cbp;
248 cbp = g_clone_bio(bp);
249 if (cbp == NULL)
251 cbp->bio_offset = offset;
252 cbp->bio_length = length;
255 cbp->bio_ma_offset += (uintptr_t)addr;
256 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
257 cbp->bio_ma_offset %= PAGE_SIZE;
258 cbp->bio_ma_n = round_page(cbp->bio_ma_offset +
259 cbp->bio_length) / PAGE_SIZE;
261 cbp->bio_data = addr;
262 cbp->bio_caller1 = sd;
263 bioq_insert_tail(&queue, cbp);
271 while ((cbp = bioq_takefirst(&queue)) != NULL) {
272 sd = cbp->bio_caller1;
273 cbp->bio_caller1 = NULL;
274 g_raid_subdisk_iostart(sd, cbp);
278 while ((cbp = bioq_takefirst(&queue)) != NULL)
279 g_destroy_bio(cbp);