Lines Matching defs:cbp
488 buf_t cbp;
500 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next) {
505 if ( !(cbp->b_flags & B_DONE)) {
508 (int)cbp_head, (int)cbp, cbp->b_bcount, cbp->b_flags, 0);
512 if (cbp->b_flags & B_EOT)
525 cbp = cbp_head;
526 upl_offset = cbp->b_uploffset;
527 upl = cbp->b_upl;
528 b_flags = cbp->b_flags;
529 real_bp = cbp->b_real_bp;
530 zero_offset= cbp->b_validend;
531 iostate = (struct clios *)cbp->b_iostate;
534 real_bp->b_dev = cbp->b_dev;
536 while (cbp) {
537 if ((cbp->b_flags & B_ERROR) && error == 0)
538 error = cbp->b_error;
540 total_resid += cbp->b_resid;
541 total_size += cbp->b_bcount;
543 cbp_next = cbp->b_trans_next;
552 transaction_size = cbp->b_uploffset + cbp->b_bcount - upl_offset;
554 if (cbp != cbp_head)
555 free_io_buf(cbp);
557 cbp = cbp_next;
692 buf_t cbp;
710 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next)
711 cbp->b_lflags |= BL_WANTED;
715 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next) {
717 buf_biowait_callback(cbp);
719 buf_biowait(cbp);
726 buf_t cbp;
735 for (cbp = *cbp_head; cbp; cbp = cbp->b_trans_next)
736 buf_biowait(cbp);
752 buf_t cbp;
1009 for (last_cbp = cbp = cbp_head; cbp->b_trans_next; cbp = cbp->b_trans_next)
1010 last_cbp = cbp;
1012 cbp->b_bcount &= ~PAGE_MASK;
1014 if (cbp->b_bcount == 0) {
1018 free_io_buf(cbp);
1020 if (cbp == cbp_head) {
1268 cbp = alloc_io_buf(vp, priv);
1279 if (buf_setcallback(cbp, (void *)cluster_iodone, callback_arg))
1282 cbp->b_cliodone = (void *)callback;
1283 cbp->b_flags |= io_flags;
1285 cbp->b_lblkno = lblkno;
1286 cbp->b_blkno = blkno;
1287 cbp->b_bcount = io_size;
1289 if (buf_setupl(cbp, upl, upl_offset))
1292 cbp->b_trans_next = (buf_t)NULL;
1294 if ((cbp->b_iostate = (void *)iostate))
1303 (int)cbp->b_lblkno, (int)cbp->b_blkno, upl_offset, io_size, 0);
1307 (int)cbp->b_lblkno, (int)cbp->b_blkno, upl_offset, io_size, 0);
1311 cbp_tail->b_trans_next = cbp;
1312 cbp_tail = cbp;
1314 cbp_head = cbp;
1315 cbp_tail = cbp;
1322 *(buf_t *)(&cbp->b_trans_head) = cbp_head;
1378 (void) VNOP_STRATEGY(cbp);
1407 for (cbp = cbp_head; cbp;) {
1410 size += cbp->b_bcount;
1411 io_size += cbp->b_bcount;
1413 cbp_next = cbp->b_trans_next;
1414 free_io_buf(cbp);
1415 cbp = cbp_next;