Lines Matching refs:cbp_head
131 static void cluster_EOT(buf_t cbp_head, buf_t cbp_tail, int zero_offset);
132 static void cluster_wait_IO(buf_t cbp_head, int async);
133 static void cluster_complete_transaction(buf_t *cbp_head, void *callback_arg, int *retval, int flags, int needwait);
489 buf_t cbp_head;
495 cbp_head = (buf_t)(bp->b_trans_head);
498 (int)cbp_head, bp->b_lblkno, bp->b_bcount, bp->b_flags, 0);
500 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next) {
508 (int)cbp_head, (int)cbp, cbp->b_bcount, cbp->b_flags, 0);
517 (int)cbp_head, 0, 0, 0, 0);
525 cbp = cbp_head;
554 if (cbp != cbp_head)
563 int (*cliodone_func)(buf_t, void *) = (int (*)(buf_t, void *))(cbp_head->b_cliodone);
566 cbp_head->b_bcount = transaction_size;
568 error = (*cliodone_func)(cbp_head, callback_arg);
574 free_io_buf(cbp_head);
683 cluster_EOT(buf_t cbp_head, buf_t cbp_tail, int zero_offset)
685 cbp_head->b_validend = zero_offset;
690 cluster_wait_IO(buf_t cbp_head, int async)
710 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next)
715 for (cbp = cbp_head; cbp; cbp = cbp->b_trans_next) {
724 cluster_complete_transaction(buf_t *cbp_head, void *callback_arg, int *retval, int flags, int needwait)
735 for (cbp = *cbp_head; cbp; cbp = cbp->b_trans_next)
738 error = cluster_iodone(*cbp_head, callback_arg);
744 *cbp_head = (buf_t)NULL;
759 buf_t cbp_head = NULL;
991 if (cbp_head) {
1000 cluster_wait_IO(cbp_head, (flags & CL_ASYNC));
1009 for (last_cbp = cbp = cbp_head; cbp->b_trans_next; cbp = cbp->b_trans_next)
1020 if (cbp == cbp_head) {
1025 cbp_head = NULL;
1035 if (cbp_head) {
1042 cluster_EOT(cbp_head, cbp_tail, 0);
1044 cluster_complete_transaction(&cbp_head, callback_arg, &retval, flags, 0);
1130 if (cbp_head) {
1202 if (cbp_head && (complete_transaction_now || size == 0)) {
1203 cluster_wait_IO(cbp_head, (flags & CL_ASYNC));
1205 cluster_EOT(cbp_head, cbp_tail, size == 0 ? zero_offset : 0);
1207 cluster_complete_transaction(&cbp_head, callback_arg, &retval, flags, 0);
1310 if (cbp_head) {
1314 cbp_head = cbp;
1317 if ( (cbp_head->b_real_bp = real_bp) ) {
1318 cbp_head->b_flags |= B_NEED_IODONE;
1322 *(buf_t *)(&cbp->b_trans_head) = cbp_head;
1370 cluster_EOT(cbp_head, cbp_tail, size == 0 ? zero_offset : 0);
1382 cluster_complete_transaction(&cbp_head, callback_arg, &retval, flags, 1);
1386 cbp_head = NULL;
1394 if (cbp_head) {
1399 cluster_wait_IO(cbp_head, (flags & CL_ASYNC));
1405 upl_offset = cbp_head->b_uploffset;
1407 for (cbp = cbp_head; cbp;) {
1458 } else if (cbp_head)
1459 panic("%s(): cbp_head is not NULL.\n", __FUNCTION__);