Lines Matching refs:txp

1258 xnb_txbuf_recycle(xnb_txbuf_t *txp)
1260 xnb_t *xnbp = txp->xt_xnbp;
1262 kmem_cache_free(xnbp->xnb_tx_buf_cache, txp);
1271 xnb_txbuf_t *txp = buf;
1277 txp->xt_free_rtn.free_func = xnb_txbuf_recycle;
1278 txp->xt_free_rtn.free_arg = (caddr_t)txp;
1279 txp->xt_xnbp = xnbp;
1280 txp->xt_next = NULL;
1283 0, 0, &txp->xt_dma_handle) != DDI_SUCCESS)
1286 if (ddi_dma_mem_alloc(txp->xt_dma_handle, PAGESIZE, &data_accattr,
1287 DDI_DMA_STREAMING, 0, 0, &txp->xt_buf, &len,
1288 &txp->xt_acc_handle) != DDI_SUCCESS)
1291 if (ddi_dma_addr_bind_handle(txp->xt_dma_handle, NULL, txp->xt_buf,
1298 txp->xt_mfn = xnb_btop(dma_cookie.dmac_laddress);
1299 txp->xt_buflen = dma_cookie.dmac_size;
1309 ddi_dma_mem_free(&txp->xt_acc_handle);
1312 ddi_dma_free_handle(&txp->xt_dma_handle);
1322 xnb_txbuf_t *txp = buf;
1325 (void) ddi_dma_unbind_handle(txp->xt_dma_handle);
1326 ddi_dma_mem_free(&txp->xt_acc_handle);
1327 ddi_dma_free_handle(&txp->xt_dma_handle);
1463 xnb_txbuf_t *txp;
1465 txp = kmem_cache_alloc(xnbp->xnb_tx_buf_cache,
1467 if (txp == NULL)
1470 txp->xt_mblk = desballoc((unsigned char *)txp->xt_buf,
1471 txp->xt_buflen, 0, &txp->xt_free_rtn);
1472 if (txp->xt_mblk == NULL) {
1473 kmem_cache_free(xnbp->xnb_tx_buf_cache, txp);
1477 txp->xt_idx = loop;
1478 txp->xt_id = txreq->id;
1484 cop->dest.u.gmfn = txp->xt_mfn;
1492 *txpp = txp;
1530 xnb_txbuf_t *txp = *txpp;
1532 txreq = RING_GET_REQUEST(&xnbp->xnb_tx_ring, txp->xt_idx);
1540 xnb_tx_mark_complete(xnbp, txp->xt_id, NETIF_RSP_ERROR);
1541 freemsg(txp->xt_mblk);
1545 mp = txp->xt_mblk;
1546 mp->b_rptr = mp->b_wptr = (unsigned char *)txp->xt_buf;
1561 txp->xt_mblk = mp;
1576 xnb_tx_mark_complete(xnbp, txp->xt_id, NETIF_RSP_OKAY);