Lines Matching refs:cb
137 buf_t *cb, /* buffer for writing to master */
145 cb->b_iodone = trans_done_shadow;
544 trans_wait_panic(struct buf *cb)
546 while ((cb->b_flags & B_DONE) == 0) {
591 trans_done(struct buf *cb)
597 ps = (md_tps_t *)cb->b_chain;
601 if (cb->b_flags & B_ERROR) {
603 pb->b_error = cb->b_error;
611 if (cb->b_flags & B_REMAPPED)
612 bp_mapout(cb);
614 cb->b_flags |= B_DONE;
616 kmem_cache_free(trans_child_cache, cb);
622 if (cb->b_flags & B_REMAPPED)
623 bp_mapout(cb);
626 cb->b_flags |= B_DONE;
628 kmem_cache_free(trans_child_cache, cb);
641 buf_t *cb; /* child buf pointer */
682 cb = kmem_cache_alloc(trans_child_cache, MD_ALLOCFLAGS);
683 trans_child_init(cb);
685 cb = bioclone(pb, 0, pb->b_bcount, md_dev64_to_dev(un->un_m_dev),
686 pb->b_blkno, trans_done, cb, KM_NOSLEEP);
688 cb->b_chain = (void *)ps;
697 shadow_debug(un, pb, ps, cb, flag, private);
701 (void) md_call_strategy(cb, flag | MD_STR_MAPPED | MD_NOBLOCK, private);
707 trans_wait_panic(cb);
708 kmem_cache_free(trans_child_cache, cb);