Lines Matching defs:pbp

304 	struct bio *pbp;
306 pbp = bp->bio_parent;
307 if (pbp->bio_error == 0)
308 pbp->bio_error = bp->bio_error;
310 pbp->bio_inbed++;
311 if (pbp->bio_children == pbp->bio_inbed) {
314 pbp->bio_completed = pbp->bio_length;
315 if (pbp->bio_pflags & GV_BIO_SYNCREQ)
316 gv_sync_complete(p, pbp);
317 else if (pbp->bio_pflags & GV_BIO_GROW)
318 gv_grow_complete(p, pbp);
320 g_io_deliver(pbp, pbp->bio_error);
331 struct bio *cbp, *pbp;
362 pbp = bioq_takefirst(p->wqueue);
363 while (pbp != NULL) {
364 gv_post_bio(sc, pbp);
365 pbp = bioq_takefirst(p->wqueue);
406 pbp = bioq_takefirst(p->wqueue);
407 while (pbp != NULL) {
408 gv_post_bio(sc, pbp);
409 pbp = bioq_takefirst(p->wqueue);
418 pbp = bp->bio_parent;
419 if (pbp->bio_error == 0)
420 pbp->bio_error = bp->bio_error;
421 pbp->bio_completed += completed;
424 pbp->bio_inbed++;
425 if (pbp->bio_inbed == pbp->bio_children) {
427 if (pbp->bio_cmd == BIO_WRITE &&
428 (pbp->bio_pflags & GV_BIO_CHECK)) {
429 gv_parity_complete(p, pbp);
430 } else if (pbp->bio_cmd == BIO_WRITE &&
431 (pbp->bio_pflags & GV_BIO_REBUILD)) {
432 gv_rebuild_complete(p, pbp);
433 } else if (pbp->bio_pflags & GV_BIO_INIT) {
434 gv_init_complete(p, pbp);
435 } else if (pbp->bio_pflags & GV_BIO_SYNCREQ) {
436 gv_sync_complete(p, pbp);
437 } else if (pbp->bio_pflags & GV_BIO_GROW) {
438 gv_grow_complete(p, pbp);
440 g_io_deliver(pbp, pbp->bio_error);
453 struct bio *pbp;
461 pbp = wp->waiting;
463 s = pbp->bio_caller1;
464 g_io_request(pbp, s->drive_sc->consumer);
468 pbp = wp->parity;
473 if (bp->bio_data[i] != pbp->bio_data[i]) {
485 s = pbp->bio_caller1;
486 g_io_request(pbp, s->drive_sc->consumer);
497 g_destroy_bio(pbp);
508 struct bio *cbp, *pbp;
515 pbp = wp->waiting;
519 cbp->bio_data[i] ^= pbp->bio_data[i];
520 s = pbp->bio_caller1;
521 g_io_request(pbp, s->drive_sc->consumer);