Searched refs:rxIdx (Results 1 – 6 of 6) sorted by relevance
101 static uint rxIdx; /* index of the current RX buffer */ variable177 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()[all …]
200 if (info->rxbd[info->rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { in fec_recv()205 length = info->rxbd[info->rxIdx].cbd_datlen; in fec_recv()207 if (info->rxbd[info->rxIdx].cbd_sc & 0x003f) { in fec_recv()210 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()214 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()220 net_process_received_packet(net_rx_packets[info->rxIdx], in fec_recv()227 info->rxbd[info->rxIdx].cbd_datlen = 0; in fec_recv()230 if (info->rxIdx == LAST_PKTBUFSRX) { in fec_recv()232 info->rxIdx = 0; in fec_recv()234 info->rxbd[info->rxIdx].cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()[all …]
94 static uint rxIdx; /* index of the current RX buffer */ variable225 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()[all …]
245 cbd_t *prbd = &info->rxbd[info->rxIdx]; in fec_recv()292 if ((info->rxIdx) == (PKTBUFSRX - 1)) in fec_recv()303 info->rxIdx = (info->rxIdx + 1) % PKTBUFSRX; in fec_recv()393 info->rxIdx = 0; in fec_init()
75 uint rxIdx; member
98 uint rxIdx; member