Lines Matching refs:rxIdx
101 static uint rxIdx; /* index of the current RX buffer */ variable
177 if (rtx.rxbd[rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { in fec_recv()
181 length = rtx.rxbd[rxIdx].cbd_datlen; in fec_recv()
183 if (rtx.rxbd[rxIdx].cbd_sc & 0x003f) { in fec_recv()
184 printf("fec: rx error %04x\n", rtx.rxbd[rxIdx].cbd_sc); in fec_recv()
188 net_process_received_packet(net_rx_packets[rxIdx], length - 4); in fec_recv()
193 rtx.rxbd[rxIdx].cbd_datlen = 0; in fec_recv()
196 if ((rxIdx + 1) >= PKTBUFSRX) { in fec_recv()
198 rxIdx = 0; in fec_recv()
201 rtx.rxbd[rxIdx].cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()
202 rxIdx++; in fec_recv()
257 rxIdx = 0; in fec_init()
305 pram_ptr->fen_genfcc.fcc_rbase = (unsigned int)(&rtx.rxbd[rxIdx]); in fec_init()