Lines Matching refs:cons
2322 uint32_t cons, prod;
2342 cons = sc->ale_cdata.ale_tx_cons;
2347 for (prog = 0; cons != prod; prog++,
2348 ALE_DESC_INC(cons, ALE_TX_RING_CNT)) {
2354 txd = &sc->ale_cdata.ale_txdesc[cons];
2367 sc->ale_cdata.ale_tx_cons = cons;
2385 rx_page->cons += roundup(length + sizeof(struct rx_rs),
2387 if (rx_page->cons >= ALE_RX_PAGE_SZ) {
2392 rx_page->cons = 0;
2497 if (rx_page->cons >= prod)
2499 rs = (struct rx_rs *)(rx_page->page_addr + rx_page->cons);
2993 rx_page->cons = 0;