Lines Matching refs:cur_tx

1976 	struct xl_chain		*cur_tx;  in xl_txeof()  local
1991 cur_tx = sc->xl_cdata.xl_tx_head; in xl_txeof()
1996 sc->xl_cdata.xl_tx_head = cur_tx->xl_next; in xl_txeof()
1997 bus_dmamap_sync(sc->xl_mtag, cur_tx->xl_map, in xl_txeof()
1999 bus_dmamap_unload(sc->xl_mtag, cur_tx->xl_map); in xl_txeof()
2000 m_freem(cur_tx->xl_mbuf); in xl_txeof()
2001 cur_tx->xl_mbuf = NULL; in xl_txeof()
2005 cur_tx->xl_next = sc->xl_cdata.xl_tx_free; in xl_txeof()
2006 sc->xl_cdata.xl_tx_free = cur_tx; in xl_txeof()
2025 struct xl_chain *cur_tx = NULL; in xl_txeof_90xB() local
2035 cur_tx = &sc->xl_cdata.xl_tx_chain[idx]; in xl_txeof_90xB()
2037 if (!(le32toh(cur_tx->xl_ptr->xl_status) & in xl_txeof_90xB()
2041 if (cur_tx->xl_mbuf != NULL) { in xl_txeof_90xB()
2042 bus_dmamap_sync(sc->xl_mtag, cur_tx->xl_map, in xl_txeof_90xB()
2044 bus_dmamap_unload(sc->xl_mtag, cur_tx->xl_map); in xl_txeof_90xB()
2045 m_freem(cur_tx->xl_mbuf); in xl_txeof_90xB()
2046 cur_tx->xl_mbuf = NULL; in xl_txeof_90xB()
2059 if (cur_tx != NULL) in xl_txeof_90xB()
2437 struct xl_chain *prev = NULL, *cur_tx = NULL, *start_tx; in xl_start_locked() local
2468 prev_tx = cur_tx; in xl_start_locked()
2469 cur_tx = sc->xl_cdata.xl_tx_free; in xl_start_locked()
2472 error = xl_encap(sc, cur_tx, &m_head); in xl_start_locked()
2474 cur_tx = prev_tx; in xl_start_locked()
2482 sc->xl_cdata.xl_tx_free = cur_tx->xl_next; in xl_start_locked()
2483 cur_tx->xl_next = NULL; in xl_start_locked()
2487 prev->xl_next = cur_tx; in xl_start_locked()
2488 prev->xl_ptr->xl_next = htole32(cur_tx->xl_phys); in xl_start_locked()
2490 prev = cur_tx; in xl_start_locked()
2496 BPF_MTAP(ifp, cur_tx->xl_mbuf); in xl_start_locked()
2502 if (cur_tx == NULL) in xl_start_locked()
2512 cur_tx->xl_ptr->xl_status |= htole32(XL_TXSTAT_DL_INTR); in xl_start_locked()
2527 sc->xl_cdata.xl_tx_tail = cur_tx; in xl_start_locked()
2530 sc->xl_cdata.xl_tx_tail = cur_tx; in xl_start_locked()
2569 struct xl_chain *prev = NULL, *cur_tx = NULL, *start_tx; in xl_start_90xB_locked() local
2593 prev_tx = cur_tx; in xl_start_90xB_locked()
2594 cur_tx = &sc->xl_cdata.xl_tx_chain[idx]; in xl_start_90xB_locked()
2597 error = xl_encap(sc, cur_tx, &m_head); in xl_start_90xB_locked()
2599 cur_tx = prev_tx; in xl_start_90xB_locked()
2609 prev->xl_ptr->xl_next = htole32(cur_tx->xl_phys); in xl_start_90xB_locked()
2610 prev = cur_tx; in xl_start_90xB_locked()
2616 BPF_MTAP(ifp, cur_tx->xl_mbuf); in xl_start_90xB_locked()
2625 if (cur_tx == NULL) in xl_start_90xB_locked()
2635 cur_tx->xl_ptr->xl_status |= htole32(XL_TXSTAT_DL_INTR); in xl_start_90xB_locked()