Lines Matching refs:txb

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