Lines Matching refs:bsp
824 bridge_stream_t *bsp;
829 bsp = kmem_zalloc(sizeof (*bsp), KM_SLEEP);
830 bsp->bs_minor = mn;
831 return (bsp);
835 stream_free(bridge_stream_t *bsp)
837 mac_minor_rele(bsp->bs_minor);
838 kmem_free(bsp, sizeof (*bsp));
843 stream_ref(bridge_stream_t *bsp)
846 bsp->bs_taskq_cnt++;
851 stream_unref(bridge_stream_t *bsp)
854 if (--bsp->bs_taskq_cnt == 0)
1504 bridge_stream_t *bsp;
1528 if ((bsp = stream_alloc()) == NULL)
1530 rq->q_ptr = WR(rq)->q_ptr = (caddr_t)bsp;
1531 bsp->bs_wq = WR(rq);
1532 *devp = makedevice(getmajor(*devp), bsp->bs_minor);
1545 bridge_stream_t *bsp = rq->q_ptr;
1553 while (bsp->bs_taskq_cnt != 0)
1558 if ((bip = bsp->bs_inst) != NULL)
1561 stream_free(bsp);
2771 bridge_stream_t *bsp;
2787 bsp = (bridge_stream_t *)mp->b_next;
2789 bip = bsp->bs_inst;
2940 miocack(bsp->bs_wq, mp, 0, 0);
2941 stream_unref(bsp);
2951 miocnak(bsp->bs_wq, mp, 0, err);
2952 stream_unref(bsp);
2959 bridge_stream_t *bsp;
2967 bsp = (bridge_stream_t *)mp->b_next;
2969 bip = bsp->bs_inst;
3041 miocack(bsp->bs_wq, mp, 0, 0);
3043 miocnak(bsp->bs_wq, mp, 0, ENOENT);
3044 stream_unref(bsp);
3068 bridge_stream_t *bsp = wq->q_ptr;
3093 if (bsp->bs_inst != NULL ||
3110 bsp->bs_inst = bip; /* stream holds reference */
3111 bip->bi_control = bsp;
3119 if ((bip = bsp->bs_inst) == NULL ||
3127 mp->b_next = (mblk_t *)bsp;
3128 stream_ref(bsp);
3134 if ((bip = bsp->bs_inst) == NULL ||
3142 mp->b_next = (mblk_t *)bsp;
3143 stream_ref(bsp);
3151 if ((bip = bsp->bs_inst) == NULL ||
3169 if ((bip = bsp->bs_inst) == NULL ||
3194 if ((bip = bsp->bs_inst) == NULL ||
3231 if ((bip = bsp->bs_inst) == NULL ||
3290 if ((bip = bsp->bs_inst) == NULL ||