Lines Matching refs:txb
1557 afe_txbuf_t *txb; in afe_alloctxbuf() local
1560 txb = kmem_zalloc(sizeof (*txb), KM_SLEEP); in afe_alloctxbuf()
1563 DDI_DMA_SLEEP, NULL, &txb->txb_dmah) != DDI_SUCCESS) { in afe_alloctxbuf()
1567 if (ddi_dma_mem_alloc(txb->txb_dmah, AFE_BUFSZ, &afe_bufattr, in afe_alloctxbuf()
1568 DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &txb->txb_buf, &len, in afe_alloctxbuf()
1569 &txb->txb_acch) != DDI_SUCCESS) { in afe_alloctxbuf()
1572 if (ddi_dma_addr_bind_handle(txb->txb_dmah, NULL, txb->txb_buf, in afe_alloctxbuf()
1577 txb->txb_paddr = dmac.dmac_address; in afe_alloctxbuf()
1579 return (txb); in afe_alloctxbuf()
1583 afe_destroytxbuf(afe_txbuf_t *txb) in afe_destroytxbuf() argument
1585 if (txb != NULL) { in afe_destroytxbuf()
1586 if (txb->txb_paddr) in afe_destroytxbuf()
1587 (void) ddi_dma_unbind_handle(txb->txb_dmah); in afe_destroytxbuf()
1588 if (txb->txb_acch) in afe_destroytxbuf()
1589 ddi_dma_mem_free(&txb->txb_acch); in afe_destroytxbuf()
1590 if (txb->txb_dmah) in afe_destroytxbuf()
1591 ddi_dma_free_handle(&txb->txb_dmah); in afe_destroytxbuf()
1592 kmem_free(txb, sizeof (*txb)); in afe_destroytxbuf()
1761 afe_txbuf_t *txb = afe_alloctxbuf(afep); in afe_alloctxring() local
1762 if (txb == NULL) in afe_alloctxring()
1764 afep->afe_txbufs[i] = txb; in afe_alloctxring()
1957 afe_txbuf_t *txb; in afe_send() local
1990 txb = afep->afe_txbufs[txsend]; in afe_send()
1991 mcopymsg(mp, txb->txb_buf); /* frees mp! */ in afe_send()
1998 if (txb->txb_buf[0] & 0x1) { in afe_send()
1999 if (bcmp(txb->txb_buf, afe_broadcast, ETHERADDRL) != 0) in afe_send()
2013 SYNCTXBUF(txb, len, DDI_DMA_SYNC_FORDEV); in afe_send()
2015 PUTTXDESC(afep, tmd->desc_buffer1, txb->txb_paddr); in afe_send()