Lines Matching refs:txp
428 struct fxp_tx *txp; in fxp_attach() local
749 txp = sc->fxp_desc.tx_list; in fxp_attach()
752 txp[i].tx_cb = tcbp + i; in fxp_attach()
753 error = bus_dmamap_create(sc->fxp_txmtag, 0, &txp[i].tx_map); in fxp_attach()
929 struct fxp_tx *txp; in fxp_release() local
967 txp = &sc->fxp_desc.tx_list[i]; in fxp_release()
968 if (txp->tx_mbuf != NULL) { in fxp_release()
969 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, in fxp_release()
971 bus_dmamap_unload(sc->fxp_txmtag, txp->tx_map); in fxp_release()
972 m_freem(txp->tx_mbuf); in fxp_release()
974 bus_dmamap_destroy(sc->fxp_txmtag, txp->tx_map); in fxp_release()
1383 struct fxp_tx *txp; in fxp_encap() local
1396 txp = sc->fxp_desc.tx_last->tx_next; in fxp_encap()
1412 txp->tx_cb->ipcb_ip_activation_high = in fxp_encap()
1495 txp->tx_cb->ipcb_ip_schedule = FXP_IPCB_TCPUDP_CHECKSUM_ENABLE; in fxp_encap()
1497 txp->tx_cb->ipcb_ip_schedule |= FXP_IPCB_TCP_PACKET; in fxp_encap()
1531 txp->tx_cb->ipcb_ip_activation_high = in fxp_encap()
1533 txp->tx_cb->ipcb_ip_schedule |= in fxp_encap()
1540 error = bus_dmamap_load_mbuf_sg(sc->fxp_txmtag, txp->tx_map, *m_head, in fxp_encap()
1550 error = bus_dmamap_load_mbuf_sg(sc->fxp_txmtag, txp->tx_map, in fxp_encap()
1566 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, BUS_DMASYNC_PREWRITE); in fxp_encap()
1568 cbp = txp->tx_cb; in fxp_encap()
1609 txp->tx_cb->ipcb_ip_activation_high |= in fxp_encap()
1613 txp->tx_mbuf = m; in fxp_encap()
1614 txp->tx_cb->cb_status = 0; in fxp_encap()
1615 txp->tx_cb->byte_count = 0; in fxp_encap()
1617 txp->tx_cb->cb_command = in fxp_encap()
1621 txp->tx_cb->cb_command = in fxp_encap()
1625 txp->tx_cb->tx_threshold = tx_threshold; in fxp_encap()
1631 sc->fxp_desc.tx_last = txp; in fxp_encap()
1639 sc->fxp_desc.tx_first = txp; in fxp_encap()
1732 struct fxp_tx *txp; in fxp_txeof() local
1737 for (txp = sc->fxp_desc.tx_first; sc->tx_queued && in fxp_txeof()
1738 (le16toh(txp->tx_cb->cb_status) & FXP_CB_STATUS_C) != 0; in fxp_txeof()
1739 txp = txp->tx_next) { in fxp_txeof()
1740 if (txp->tx_mbuf != NULL) { in fxp_txeof()
1741 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, in fxp_txeof()
1743 bus_dmamap_unload(sc->fxp_txmtag, txp->tx_map); in fxp_txeof()
1744 m_freem(txp->tx_mbuf); in fxp_txeof()
1745 txp->tx_mbuf = NULL; in fxp_txeof()
1747 txp->tx_cb->tbd[0].tb_addr = 0; in fxp_txeof()
1752 sc->fxp_desc.tx_first = txp; in fxp_txeof()
2162 struct fxp_tx *txp; in fxp_stop() local
2187 txp = sc->fxp_desc.tx_list; in fxp_stop()
2189 if (txp[i].tx_mbuf != NULL) { in fxp_stop()
2190 bus_dmamap_sync(sc->fxp_txmtag, txp[i].tx_map, in fxp_stop()
2192 bus_dmamap_unload(sc->fxp_txmtag, txp[i].tx_map); in fxp_stop()
2193 m_freem(txp[i].tx_mbuf); in fxp_stop()
2194 txp[i].tx_mbuf = NULL; in fxp_stop()
2196 txp[i].tx_cb->tbd[0].tb_addr = 0; in fxp_stop()
2254 struct fxp_tx *txp; in fxp_init_body() local
2487 txp = sc->fxp_desc.tx_list; in fxp_init_body()
2491 txp[i].tx_mbuf = NULL; in fxp_init_body()
2502 txp[i].tx_next = &txp[(i + 1) & FXP_TXCB_MASK]; in fxp_init_body()
2511 sc->fxp_desc.tx_first = sc->fxp_desc.tx_last = txp; in fxp_init_body()