Lines Matching refs:bufp
650 dma_area_t *bufp;
662 if (bsbdp->bufp) {
663 if (bsbdp->bufp->mp)
664 freemsg(bsbdp->bufp->mp);
665 nge_free_dma_mem(bsbdp->bufp);
666 kmem_free(bsbdp->bufp, sizeof (dma_area_t));
667 bsbdp->bufp = NULL;
671 bufp = brp->free_list;
672 brp->free_list = bufp->next;
673 bufp->next = NULL;
674 if (bufp->mp)
675 freemsg(bufp->mp);
676 nge_free_dma_mem(bufp);
677 kmem_free(bufp, sizeof (dma_area_t));
680 bufp = brp->recycle_list;
681 brp->recycle_list = bufp->next;
682 bufp->next = NULL;
683 if (bufp->mp)
684 freemsg(bufp->mp);
685 nge_free_dma_mem(bufp);
686 kmem_free(bufp, sizeof (dma_area_t));
707 dma_area_t *bufp;
728 bufp = kmem_zalloc(sizeof (dma_area_t), KM_SLEEP);
731 &nge_data_accattr, DDI_DMA_READ | NGE_DMA_MODE, bufp);
733 kmem_free(bufp, sizeof (dma_area_t));
737 bufp->alength -= NGE_HEADROOM;
738 bufp->offset += NGE_HEADROOM;
739 bufp->private = (caddr_t)ngep;
740 bufp->rx_recycle.free_func = nge_recv_recycle;
741 bufp->rx_recycle.free_arg = (caddr_t)bufp;
742 bufp->signature = brp->buf_sign;
743 bufp->rx_delivered = B_FALSE;
744 bufp->mp = desballoc(DMA_VPTR(*bufp),
746 0, &bufp->rx_recycle);
748 if (bufp->mp == NULL) {
751 bufp->next = brp->free_list;
752 brp->free_list = bufp;
762 bufp = brp->free_list;
763 brp->free_list = bufp->next;
764 bsbdp->bufp = bufp;
766 bufp->next = NULL;
800 * At this point, if we reinitialize the driver, the bufp
804 if (bsbdp->bufp == NULL)
807 ngep->desc_attr.rxd_fill(hw_bd_p, &bsbdp->bufp->cookie,
808 bsbdp->bufp->alength);