Lines Matching refs:prod
1609 int error, i, nsegs, prod, si; in ale_encap() local
1729 si = prod = sc->ale_cdata.ale_tx_prod; in ale_encap()
1730 txd = &sc->ale_cdata.ale_txdesc[prod]; in ale_encap()
1819 desc = &sc->ale_cdata.ale_tx_ring[prod]; in ale_encap()
1824 ALE_DESC_INC(prod, ALE_TX_RING_CNT); in ale_encap()
1827 desc = &sc->ale_cdata.ale_tx_ring[prod]; in ale_encap()
1833 ALE_DESC_INC(prod, ALE_TX_RING_CNT); in ale_encap()
1838 desc = &sc->ale_cdata.ale_tx_ring[prod]; in ale_encap()
1843 ALE_DESC_INC(prod, ALE_TX_RING_CNT); in ale_encap()
1846 sc->ale_cdata.ale_tx_prod = prod; in ale_encap()
1854 prod = (prod + ALE_TX_RING_CNT - 1) % ALE_TX_RING_CNT; in ale_encap()
1855 desc = &sc->ale_cdata.ale_tx_ring[prod]; in ale_encap()
1859 txd = &sc->ale_cdata.ale_txdesc[prod]; in ale_encap()
2307 uint32_t cons, prod; in ale_txeof() local
2324 prod = *sc->ale_cdata.ale_tx_cmb & TPD_CNT_MASK; in ale_txeof()
2326 prod = CSR_READ_2(sc, ALE_TPD_CONS_IDX); in ale_txeof()
2332 for (prog = 0; cons != prod; prog++, in ale_txeof()
2364 uint32_t length, uint32_t *prod) in ale_rx_update_page() argument
2393 *prod = *rx_page->cmb_addr; in ale_rx_update_page()
2461 uint32_t length, prod, seqno, status, vtags; in ale_rxeof() local
2479 prod = *rx_page->cmb_addr; in ale_rxeof()
2481 if (rx_page->cons >= prod) in ale_rxeof()
2522 ale_rx_update_page(sc, &rx_page, length, &prod); in ale_rxeof()
2539 ale_rx_update_page(sc, &rx_page, length, &prod); in ale_rxeof()
2557 ale_rx_update_page(sc, &rx_page, length, &prod); in ale_rxeof()