Lines Matching refs:b_shadow_ref
755 if (bp->b_shadow_ref && bp->b_data_ref == 0 && external_storage == 0)
756 panic("buf_create_shadow: %p is in the private state (%d, %d)", bp, bp->b_shadow_ref, bp->b_data_ref);
791 bp->b_shadow_ref++;
819 KERNEL_DEBUG(0xbbbbc000 | DBG_FUNC_END, bp, bp->b_shadow_ref, 0, io_bp, 0);
833 KERNEL_DEBUG(0xbbbbc004 | DBG_FUNC_START, bp, bp->b_shadow_ref, 0, 0, 0);
835 if (bp->b_shadow_ref == 0 || bp->b_data_ref == 0 || ISSET(bp->b_lflags, BL_SHADOW)) {
837 KERNEL_DEBUG(0xbbbbc004 | DBG_FUNC_END, bp, bp->b_shadow_ref, 0, EINVAL, 0);
857 if (ds_bp && (bp->b_data_ref == 0 || bp->b_shadow_ref == 0))
865 KERNEL_DEBUG(0xbbbbc004 | DBG_FUNC_END, bp, bp->b_shadow_ref, 0, EINVAL, 0);
879 KERNEL_DEBUG(0xbbbbc004 | DBG_FUNC_END, bp, bp->b_shadow_ref, 0, 0, 0);
1780 if (bp->b_shadow_ref == 0)
2439 KERNEL_DEBUG(0xbbbbc008 | DBG_FUNC_START, bp, bp_head, bp_head->b_shadow_ref, 0, 0);
2441 bp_head->b_shadow_ref--;
2465 if (bp_head->b_shadow_ref == 0 && bp_head->b_shadow)
2466 panic("buf_relse_shadow: b_shadow != NULL && b_shadow_ref == 0 bp(%p)", bp);
2467 if (bp_head->b_shadow_ref && bp_head->b_shadow == 0)
2468 panic("buf_relse_shadow: b_shadow == NULL && b_shadow_ref != 0 bp(%p)", bp);
2470 if (bp_head->b_shadow_ref == 0) {
2661 if (bp->b_shadow_ref)
2673 if (bp->b_shadow_ref) {
2723 * put the buf_t back on a free list. b_shadow_ref is protected
2728 if (bp->b_shadow_ref == 0) {
2839 if (bp->b_shadow_ref == 0)