Lines Matching refs:srbdp
38 static void bge_refill(bge_t *bgep, buff_ring_t *brp, sw_rbd_t *srbdp);
42 * Return the specified buffer (srbdp) to the ring it came from (brp).
57 bge_refill(bge_t *bgep, buff_ring_t *brp, sw_rbd_t *srbdp)
61 _NOTE(ARGUNUSED(srbdp))
77 sw_rbd_t *srbdp;
116 srbdp = &brp->sw_rbds[hw_rbd.index];
117 if (hw_rbd.opaque != srbdp->pbuf.token) {
119 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "bad ring token"));
125 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "unterminated packet"));
131 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "errored packet"));
153 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "oversize packet"));
165 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "undersize packet"));
194 DMA_SYNC(srbdp->pbuf, DDI_DMA_SYNC_FORKERNEL);
195 if (bge_check_dma_handle(bgep, srbdp->pbuf.dma_hdl) != DDI_FM_OK) {
208 bcopy(DMA_VPTR(srbdp->pbuf), dp, 2 * ETHERADDRL);
212 bcopy(((uchar_t *)(DMA_VPTR(srbdp->pbuf))) + 2 * ETHERADDRL,
218 bcopy(DMA_VPTR(srbdp->pbuf), dp, len);
235 BGE_PKTDUMP((bgep, &hw_rbd, srbdp, "stuttered packet?"));
253 bge_refill(bgep, brp, srbdp);