Lines Matching refs:tidp

399 	xnf_txid_t *tidp;  in txid_get()  local
408 tidp = TX_ID_TO_TXID(xnfp, xnfp->xnf_tx_pkt_id_head); in txid_get()
409 xnfp->xnf_tx_pkt_id_head = tidp->next; in txid_get()
410 tidp->next = INVALID_TX_ID; in txid_get()
412 ASSERT(tidp->txbuf == NULL); in txid_get()
414 return (tidp); in txid_get()
421 txid_put(xnf_t *xnfp, xnf_txid_t *tidp) in txid_put() argument
424 ASSERT(TX_ID_VALID(tidp->id)); in txid_put()
425 ASSERT(tidp->next == INVALID_TX_ID); in txid_put()
427 tidp->txbuf = NULL; in txid_put()
428 tidp->next = xnfp->xnf_tx_pkt_id_head; in txid_put()
429 xnfp->xnf_tx_pkt_id_head = tidp->id; in txid_put()
483 xnf_txid_t *tidp; in xnf_setup_rings() local
520 for (i = 0, tidp = &xnfp->xnf_tx_pkt_id[0]; in xnf_setup_rings()
522 i++, tidp++) { in xnf_setup_rings()
525 tidp->id = i; in xnf_setup_rings()
527 txp = tidp->txbuf; in xnf_setup_rings()
529 tidp->next = INVALID_TX_ID; /* Appease txid_put(). */ in xnf_setup_rings()
530 txid_put(xnfp, tidp); in xnf_setup_rings()
553 txid_put(xnfp, tidp); in xnf_setup_rings()
1121 xnf_txid_t *tidp; in xnf_set_multicast() local
1163 tidp = txid_get(xnfp); in xnf_set_multicast()
1164 VERIFY(tidp != NULL); in xnf_set_multicast()
1177 txrp->id = txp->tx_txreq.id = tidp->id; in xnf_set_multicast()
1184 tidp->txbuf = txp; in xnf_set_multicast()
1210 txid_put(xnfp, tidp); in xnf_set_multicast()
1260 xnf_txid_t *tidp; in xnf_tx_clean_ring() local
1266 tidp = TX_ID_TO_TXID(xnfp, trp->id); in xnf_tx_clean_ring()
1267 ASSERT(tidp->id == trp->id); in xnf_tx_clean_ring()
1268 ASSERT(tidp->next == INVALID_TX_ID); in xnf_tx_clean_ring()
1270 txp = tidp->txbuf; in xnf_tx_clean_ring()
1295 txid_put(xnfp, tidp); in xnf_tx_clean_ring()
1463 xnf_txid_t *tidp; in tx_push_packets() local
1466 tidp = txid_get(xnfp); in tx_push_packets()
1467 VERIFY(tidp != NULL); in tx_push_packets()
1472 txp->tx_txreq.id = tidp->id; in tx_push_packets()
1475 tidp->txbuf = txp; in tx_push_packets()
2298 xnf_txid_t *tidp; in xnf_release_mblks() local
2300 for (i = 0, tidp = &xnfp->xnf_tx_pkt_id[0]; in xnf_release_mblks()
2302 i++, tidp++) { in xnf_release_mblks()
2303 xnf_txbuf_t *txp = tidp->txbuf; in xnf_release_mblks()
2309 txid_put(xnfp, tidp); in xnf_release_mblks()