Lines Matching refs:txb
1903 mxfe_txbuf_t *txb; in mxfe_alloctxbuf() local
1906 txb = kmem_zalloc(sizeof (*txb), KM_SLEEP); in mxfe_alloctxbuf()
1909 DDI_DMA_SLEEP, NULL, &txb->txb_dmah) != DDI_SUCCESS) { in mxfe_alloctxbuf()
1913 if (ddi_dma_mem_alloc(txb->txb_dmah, MXFE_BUFSZ, &mxfe_bufattr, in mxfe_alloctxbuf()
1914 DDI_DMA_STREAMING, DDI_DMA_SLEEP, NULL, &txb->txb_buf, in mxfe_alloctxbuf()
1915 &len, &txb->txb_acch) != DDI_SUCCESS) { in mxfe_alloctxbuf()
1918 if (ddi_dma_addr_bind_handle(txb->txb_dmah, NULL, txb->txb_buf, in mxfe_alloctxbuf()
1923 txb->txb_paddr = dmac.dmac_address; in mxfe_alloctxbuf()
1925 return (txb); in mxfe_alloctxbuf()
1929 mxfe_destroytxbuf(mxfe_txbuf_t *txb) in mxfe_destroytxbuf() argument
1931 if (txb != NULL) { in mxfe_destroytxbuf()
1932 if (txb->txb_paddr) in mxfe_destroytxbuf()
1933 (void) ddi_dma_unbind_handle(txb->txb_dmah); in mxfe_destroytxbuf()
1934 if (txb->txb_acch) in mxfe_destroytxbuf()
1935 ddi_dma_mem_free(&txb->txb_acch); in mxfe_destroytxbuf()
1936 if (txb->txb_dmah) in mxfe_destroytxbuf()
1937 ddi_dma_free_handle(&txb->txb_dmah); in mxfe_destroytxbuf()
1938 kmem_free(txb, sizeof (*txb)); in mxfe_destroytxbuf()
2107 mxfe_txbuf_t *txb = mxfe_alloctxbuf(mxfep); in mxfe_alloctxring() local
2108 if (txb == NULL) in mxfe_alloctxring()
2111 mxfep->mxfe_txbufs[i] = txb; in mxfe_alloctxring()
2296 mxfe_txbuf_t *txb; in mxfe_send_setup() local
2304 txb = mxfep->mxfe_txbufs[0]; in mxfe_send_setup()
2307 bzero(txb->txb_buf, MXFE_SETUP_LEN); in mxfe_send_setup()
2310 txb->txb_buf[156] = mxfep->mxfe_curraddr[0]; in mxfe_send_setup()
2311 txb->txb_buf[157] = mxfep->mxfe_curraddr[1]; in mxfe_send_setup()
2312 txb->txb_buf[160] = mxfep->mxfe_curraddr[2]; in mxfe_send_setup()
2313 txb->txb_buf[161] = mxfep->mxfe_curraddr[3]; in mxfe_send_setup()
2314 txb->txb_buf[164] = mxfep->mxfe_curraddr[4]; in mxfe_send_setup()
2315 txb->txb_buf[165] = mxfep->mxfe_curraddr[5]; in mxfe_send_setup()
2318 SYNCTXBUF(txb, MXFE_SETUP_LEN, DDI_DMA_SYNC_FORDEV); in mxfe_send_setup()
2324 PUTTXDESC(mxfep, tmdp->desc_buffer1, txb->txb_paddr); in mxfe_send_setup()
2353 mxfe_txbuf_t *txb; in mxfe_send() local
2387 txb = mxfep->mxfe_txbufs[txsend]; in mxfe_send()
2388 mcopymsg(mp, txb->txb_buf); /* frees mp! */ in mxfe_send()
2395 if (txb->txb_buf[0] & 0x1) { in mxfe_send()
2396 if (bcmp(txb->txb_buf, mxfe_broadcast, ETHERADDRL) != 0) in mxfe_send()
2410 SYNCTXBUF(txb, len, DDI_DMA_SYNC_FORDEV); in mxfe_send()
2412 PUTTXDESC(mxfep, tmd->desc_buffer1, txb->txb_paddr); in mxfe_send()