Lines Matching refs:cbp
236 struct bio *cbp;
254 cbp = g_clone_bio(bp);
255 if (cbp == NULL) {
259 cbp->bio_done = g_std_done;
260 g_io_request(cbp, disk->d_consumer);
294 struct bio *cbp;
301 cbp = g_clone_bio(bp);
302 if (cbp == NULL) {
303 while ((cbp = bioq_takefirst(&queue)) != NULL)
304 g_destroy_bio(cbp);
310 bioq_insert_tail(&queue, cbp);
311 cbp->bio_done = g_concat_done;
312 cbp->bio_caller1 = disk->d_consumer;
313 cbp->bio_to = disk->d_consumer->provider;
315 while ((cbp = bioq_takefirst(&queue)) != NULL) {
316 G_CONCAT_LOGREQ(cbp, "Sending request.");
317 cp = cbp->bio_caller1;
318 cbp->bio_caller1 = NULL;
319 g_io_request(cbp, cp);
331 struct bio *cbp;
391 cbp = g_clone_bio(bp);
392 if (cbp == NULL) {
393 while ((cbp = bioq_takefirst(&queue)) != NULL)
394 g_destroy_bio(cbp);
400 bioq_insert_tail(&queue, cbp);
405 cbp->bio_done = g_std_done;
407 cbp->bio_done = g_concat_done;
408 cbp->bio_offset = off;
409 cbp->bio_length = len;
411 cbp->bio_ma_offset += (uintptr_t)addr;
412 cbp->bio_ma += cbp->bio_ma_offset / PAGE_SIZE;
413 cbp->bio_ma_offset %= PAGE_SIZE;
414 cbp->bio_ma_n = round_page(cbp->bio_ma_offset +
415 cbp->bio_length) / PAGE_SIZE;
417 cbp->bio_data = addr;
419 cbp->bio_to = disk->d_consumer->provider;
420 cbp->bio_caller1 = disk;
428 while ((cbp = bioq_takefirst(&queue)) != NULL) {
429 G_CONCAT_LOGREQ(cbp, "Sending request.");
430 disk = cbp->bio_caller1;
431 cbp->bio_caller1 = NULL;
432 g_io_request(cbp, disk->d_consumer);