Searched refs:cur_rx (Results 1 – 6 of 6) sorted by relevance
/external/u-boot/drivers/net/ |
D | rtl8169.c | 328 unsigned long cur_rx; /* Index into the Rx descriptor buffer of next Rx pkt. */ member 522 int cur_rx; in rtl_recv_common() local 530 cur_rx = tpc->cur_rx; in rtl_recv_common() 532 rtl_inval_rx_desc(&tpc->RxDescArray[cur_rx]); in rtl_recv_common() 534 if ((le32_to_cpu(tpc->RxDescArray[cur_rx].status) & OWNbit) == 0) { in rtl_recv_common() 535 if (!(le32_to_cpu(tpc->RxDescArray[cur_rx].status) & RxRES)) { in rtl_recv_common() 536 length = (int) (le32_to_cpu(tpc->RxDescArray[cur_rx]. in rtl_recv_common() 539 rtl_inval_buffer(tpc->RxBufferRing[cur_rx], length); in rtl_recv_common() 540 memcpy(rxdata, tpc->RxBufferRing[cur_rx], length); in rtl_recv_common() 542 if (cur_rx == NUM_RX_DESC - 1) in rtl_recv_common() [all …]
|
D | pcnet.c | 84 int cur_rx; member 361 lp->cur_rx = 0; in pcnet_init() 491 entry = &lp->uc->rx_ring[lp->cur_rx]; in pcnet_recv() 501 printf("%s: Rx%d", dev->name, lp->cur_rx); in pcnet_recv() 518 dev->name, lp->cur_rx, pkt_len); in pcnet_recv() 520 buf = (*lp->rx_buf)[lp->cur_rx]; in pcnet_recv() 525 lp->cur_rx, pkt_len, buf); in pcnet_recv() 532 if (++lp->cur_rx >= RX_RING_SIZE) in pcnet_recv() 533 lp->cur_rx = 0; in pcnet_recv()
|
D | ns8382x.c | 237 static unsigned int cur_rx; variable 644 cur_rx = 0; in ns8382x_init_rxd() 799 vu_long rx_status = le32_to_cpu(rxd[cur_rx].cmdsts); in ns8382x_poll() 805 cur_rx, rx_status); in ns8382x_poll() 816 net_process_received_packet((rxb + cur_rx * RX_BUF_SIZE), in ns8382x_poll() 822 rxd[cur_rx].cmdsts = cpu_to_le32(RX_BUF_SIZE); in ns8382x_poll() 823 rxd[cur_rx].bufptr = cpu_to_le32((u32) & rxb[cur_rx * RX_BUF_SIZE]); in ns8382x_poll() 825 if (++cur_rx == NUM_RX_DESC) in ns8382x_poll() 826 cur_rx = 0; in ns8382x_poll()
|
D | natsemi.c | 211 static unsigned int cur_rx; variable 683 cur_rx = 0; in natsemi_init_rxd() 826 u32 rx_status = le32_to_cpu(rxd[cur_rx].cmdsts); in natsemi_poll() 833 cur_rx, rx_status); in natsemi_poll() 843 net_process_received_packet((rxb + cur_rx * RX_BUF_SIZE), in natsemi_poll() 849 rxd[cur_rx].cmdsts = cpu_to_le32(RX_BUF_SIZE); in natsemi_poll() 850 rxd[cur_rx].bufptr = cpu_to_le32((u32) & rxb[cur_rx * RX_BUF_SIZE]); in natsemi_poll() 852 if (++cur_rx == NUM_RX_DESC) in natsemi_poll() 853 cur_rx = 0; in natsemi_poll()
|
D | rtl8139.c | 175 static unsigned int cur_rx,cur_tx; variable 353 cur_rx = 0; in rtl_reset() 478 ring_offs = cur_rx % RX_BUF_LEN; in rtl_poll() 509 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl_poll() 510 outw(cur_rx - 16, ioaddr + RxBufPtr); in rtl_poll()
|
D | ethoc.c | 181 u32 cur_rx; member 268 priv->cur_rx = 0; in ethoc_init_ring() 398 u32 i = priv->cur_rx % priv->num_rx; in ethoc_rx_common() 406 __func__, priv->cur_rx, bd.stat); in ethoc_rx_common() 520 u32 i = priv->cur_rx % priv->num_rx; in ethoc_free_pkt_common() 536 priv->cur_rx++; in ethoc_free_pkt_common()
|