Home
last modified time | relevance | path

Searched refs:rxIdx (Results 1 – 6 of 6) sorted by relevance

/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dether_fcc.c101 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()
[all …]
/external/u-boot/drivers/net/
Dmcffec.c200 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 …]
Dmpc8xx_fec.c94 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()
[all …]
Dfsl_mcdmafec.c245 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()
/external/u-boot/arch/m68k/include/asm/
Dfsl_mcdmafec.h75 uint rxIdx; member
Dfec.h98 uint rxIdx; member