Lines Matching refs:cbp
213 struct bio *cbp;
230 cbp = g_clone_bio(bp);
231 if (cbp == NULL) {
235 cbp->bio_done = g_std_done;
236 g_io_request(cbp, disk->d_consumer);
267 struct bio *cbp;
272 cbp = g_clone_bio(bp);
273 if (cbp == NULL) {
274 while ((cbp = bioq_takefirst(&queue)) != NULL)
275 g_destroy_bio(cbp);
281 bioq_insert_tail(&queue, cbp);
282 cbp->bio_done = g_concat_done;
283 cbp->bio_caller1 = sc->sc_disks[no].d_consumer;
284 cbp->bio_to = sc->sc_disks[no].d_consumer->provider;
286 while ((cbp = bioq_takefirst(&queue)) != NULL) {
287 G_CONCAT_LOGREQ(cbp, "Sending request.");
288 cp = cbp->bio_caller1;
289 cbp->bio_caller1 = NULL;
290 g_io_request(cbp, cp);
302 struct bio *cbp;
359 cbp = g_clone_bio(bp);
360 if (cbp == NULL) {
361 while ((cbp = bioq_takefirst(&queue)) != NULL)
362 g_destroy_bio(cbp);
368 bioq_insert_tail(&queue, cbp);
373 cbp->bio_done = g_std_done;
375 cbp->bio_done = g_concat_done;
376 cbp->bio_offset = off;
377 cbp->bio_length = len;
379 cbp->bio_ma_offset += (uintptr_t)addr;
380 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
381 cbp->bio_ma_offset %= PAGE_SIZE;
382 cbp->bio_ma_n = round_page(cbp->bio_ma_offset +
383 cbp->bio_length) / PAGE_SIZE;
385 cbp->bio_data = addr;
387 cbp->bio_to = disk->d_consumer->provider;
388 cbp->bio_caller1 = disk;
396 while ((cbp = bioq_takefirst(&queue)) != NULL) {
397 G_CONCAT_LOGREQ(cbp, "Sending request.");
398 disk = cbp->bio_caller1;
399 cbp->bio_caller1 = NULL;
400 g_io_request(cbp, disk->d_consumer);