Lines Matching full:txp

428 	struct fxp_tx *txp;  in fxp_attach()  local
750 txp = sc->fxp_desc.tx_list; in fxp_attach()
753 txp[i].tx_cb = tcbp + i; in fxp_attach()
754 error = bus_dmamap_create(sc->fxp_txmtag, 0, &txp[i].tx_map); in fxp_attach()
930 struct fxp_tx *txp; in fxp_release() local
968 txp = &sc->fxp_desc.tx_list[i]; in fxp_release()
969 if (txp->tx_mbuf != NULL) { in fxp_release()
970 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, in fxp_release()
972 bus_dmamap_unload(sc->fxp_txmtag, txp->tx_map); in fxp_release()
973 m_freem(txp->tx_mbuf); in fxp_release()
975 bus_dmamap_destroy(sc->fxp_txmtag, txp->tx_map); in fxp_release()
1397 struct fxp_tx *txp; in fxp_encap() local
1410 txp = sc->fxp_desc.tx_last->tx_next; in fxp_encap()
1426 txp->tx_cb->ipcb_ip_activation_high = in fxp_encap()
1509 txp->tx_cb->ipcb_ip_schedule = FXP_IPCB_TCPUDP_CHECKSUM_ENABLE; in fxp_encap()
1511 txp->tx_cb->ipcb_ip_schedule |= FXP_IPCB_TCP_PACKET; in fxp_encap()
1545 txp->tx_cb->ipcb_ip_activation_high = in fxp_encap()
1547 txp->tx_cb->ipcb_ip_schedule |= in fxp_encap()
1554 error = bus_dmamap_load_mbuf_sg(sc->fxp_txmtag, txp->tx_map, *m_head, in fxp_encap()
1564 error = bus_dmamap_load_mbuf_sg(sc->fxp_txmtag, txp->tx_map, in fxp_encap()
1580 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, BUS_DMASYNC_PREWRITE); in fxp_encap()
1582 cbp = txp->tx_cb; in fxp_encap()
1623 txp->tx_cb->ipcb_ip_activation_high |= in fxp_encap()
1627 txp->tx_mbuf = m; in fxp_encap()
1628 txp->tx_cb->cb_status = 0; in fxp_encap()
1629 txp->tx_cb->byte_count = 0; in fxp_encap()
1631 txp->tx_cb->cb_command = in fxp_encap()
1635 txp->tx_cb->cb_command = in fxp_encap()
1639 txp->tx_cb->tx_threshold = tx_threshold; in fxp_encap()
1645 sc->fxp_desc.tx_last = txp; in fxp_encap()
1653 sc->fxp_desc.tx_first = txp; in fxp_encap()
1746 struct fxp_tx *txp; in fxp_txeof() local
1751 for (txp = sc->fxp_desc.tx_first; sc->tx_queued && in fxp_txeof()
1752 (le16toh(txp->tx_cb->cb_status) & FXP_CB_STATUS_C) != 0; in fxp_txeof()
1753 txp = txp->tx_next) { in fxp_txeof()
1754 if (txp->tx_mbuf != NULL) { in fxp_txeof()
1755 bus_dmamap_sync(sc->fxp_txmtag, txp->tx_map, in fxp_txeof()
1757 bus_dmamap_unload(sc->fxp_txmtag, txp->tx_map); in fxp_txeof()
1758 m_freem(txp->tx_mbuf); in fxp_txeof()
1759 txp->tx_mbuf = NULL; in fxp_txeof()
1761 txp->tx_cb->tbd[0].tb_addr = 0; in fxp_txeof()
1766 sc->fxp_desc.tx_first = txp; in fxp_txeof()
2176 struct fxp_tx *txp; in fxp_stop() local
2201 txp = sc->fxp_desc.tx_list; in fxp_stop()
2203 if (txp[i].tx_mbuf != NULL) { in fxp_stop()
2204 bus_dmamap_sync(sc->fxp_txmtag, txp[i].tx_map, in fxp_stop()
2206 bus_dmamap_unload(sc->fxp_txmtag, txp[i].tx_map); in fxp_stop()
2207 m_freem(txp[i].tx_mbuf); in fxp_stop()
2208 txp[i].tx_mbuf = NULL; in fxp_stop()
2210 txp[i].tx_cb->tbd[0].tb_addr = 0; in fxp_stop()
2268 struct fxp_tx *txp; in fxp_init_body() local
2501 txp = sc->fxp_desc.tx_list; in fxp_init_body()
2505 txp[i].tx_mbuf = NULL; in fxp_init_body()
2516 txp[i].tx_next = &txp[(i + 1) & FXP_TXCB_MASK]; in fxp_init_body()
2525 sc->fxp_desc.tx_first = sc->fxp_desc.tx_last = txp; in fxp_init_body()