Lines Matching defs:rxb
1839 mxfe_rxbuf_t *rxb = mxfep->mxfe_rxbufs[i];
1847 PUTRXDESC(mxfep, rmdp->desc_buffer1, rxb->rxb_paddr);
1945 mxfe_rxbuf_t *rxb;
1950 rxb = kmem_zalloc(sizeof (*rxb), KM_SLEEP);
1953 DDI_DMA_SLEEP, NULL, &rxb->rxb_dmah) != DDI_SUCCESS) {
1954 kmem_free(rxb, sizeof (*rxb));
1957 if (ddi_dma_mem_alloc(rxb->rxb_dmah, MXFE_BUFSZ, &mxfe_bufattr,
1959 &rxb->rxb_buf, &len, &rxb->rxb_acch) != DDI_SUCCESS) {
1960 ddi_dma_free_handle(&rxb->rxb_dmah);
1961 kmem_free(rxb, sizeof (*rxb));
1964 if (ddi_dma_addr_bind_handle(rxb->rxb_dmah, NULL, rxb->rxb_buf, len,
1967 ddi_dma_mem_free(&rxb->rxb_acch);
1968 ddi_dma_free_handle(&rxb->rxb_dmah);
1969 kmem_free(rxb, sizeof (*rxb));
1972 rxb->rxb_paddr = dmac.dmac_address;
1974 return (rxb);
1978 mxfe_destroyrxbuf(mxfe_rxbuf_t *rxb)
1980 if (rxb != NULL) {
1981 (void) ddi_dma_unbind_handle(rxb->rxb_dmah);
1982 ddi_dma_mem_free(&rxb->rxb_acch);
1983 ddi_dma_free_handle(&rxb->rxb_dmah);
1984 kmem_free(rxb, sizeof (*rxb));
2043 mxfe_rxbuf_t *rxb = mxfe_allocrxbuf(mxfep);
2044 if (rxb == NULL)
2046 mxfep->mxfe_rxbufs[i] = rxb;
2531 mxfe_rxbuf_t *rxb;
2548 rxb = mxfep->mxfe_rxbufs[head];
2619 SYNCRXBUF(rxb, len, DDI_DMA_SYNC_FORKERNEL);
2622 bcopy((char *)rxb->rxb_buf, mp->b_rptr, len);