Lines Matching refs:rxIdx
94 static uint rxIdx; /* index of the current RX buffer */ variable
225 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv()
230 length = in_be16(&rtx->rxbd[rxIdx].cbd_datlen); in fec_recv()
232 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { in fec_recv()
233 uchar *rx = net_rx_packets[rxIdx]; in fec_recv()
251 out_be16(&rtx->rxbd[rxIdx].cbd_datlen, 0); in fec_recv()
254 if ((rxIdx + 1) >= PKTBUFSRX) { in fec_recv()
257 rxIdx = 0; in fec_recv()
259 out_be16(&rtx->rxbd[rxIdx].cbd_sc, BD_ENET_RX_EMPTY); in fec_recv()
260 rxIdx++; in fec_recv()
558 rxIdx = 0; in fec_init()
608 rxIdx = 0; in fec_init()