Searched refs:cur_rx (Results 1 – 8 of 8) sorted by relevance
/external/grub/netboot/ |
D | natsemi.c | 196 static unsigned int cur_rx; variable 534 cur_rx = 0; in natsemi_init_rxd() 679 u32 rx_status = rxd[cur_rx].cmdsts; in natsemi_poll() 683 printf("natsemi_poll: cur_rx:%d, status:%X\n", cur_rx, rx_status); in natsemi_poll() 690 cur_rx, rx_status); in natsemi_poll() 701 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in natsemi_poll() 706 rxd[cur_rx].cmdsts = RX_BUF_SIZE; in natsemi_poll() 707 rxd[cur_rx].bufptr = (u32) &rxb[cur_rx*RX_BUF_SIZE]; in natsemi_poll() 709 if (++cur_rx == NUM_RX_DESC) in natsemi_poll() 710 cur_rx = 0; in natsemi_poll()
|
D | sis900.c | 57 static unsigned int cur_rx; variable 614 cur_rx = 0; in sis900_init_rxd() 976 u32 rx_status = rxd[cur_rx].cmdsts; in sis900_poll() 980 printf("sis900_poll: cur_rx:%d, status:%X\n", cur_rx, rx_status); in sis900_poll() 987 cur_rx, rx_status); in sis900_poll() 998 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in sis900_poll() 1003 rxd[cur_rx].cmdsts = RX_BUF_SIZE; in sis900_poll() 1004 rxd[cur_rx].bufptr = (u32) &rxb[cur_rx*RX_BUF_SIZE]; in sis900_poll() 1006 if (++cur_rx == NUM_RX_DESC) in sis900_poll() 1007 cur_rx = 0; in sis900_poll()
|
D | fa311.c | 104 unsigned int cur_rx; member 237 entry = dev->cur_rx; in fa311_poll() 259 dev->cur_rx++; in fa311_poll() 260 if (dev->cur_rx >= RX_RING_SIZE) in fa311_poll() 261 dev->cur_rx = 0; in fa311_poll() 262 dev->rx_head_desc = &dev->rx_ring[dev->cur_rx]; in fa311_poll() 391 dev->cur_rx = 0; in init_ring()
|
D | rtl8139.c | 159 static unsigned int cur_rx,cur_tx; variable 291 cur_rx = 0; in rtl_reset() 407 ring_offs = cur_rx % RX_BUF_LEN; in rtl_poll() 440 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl_poll() 441 outw(cur_rx - 16, ioaddr + RxBufPtr); in rtl_poll()
|
D | via-rhine.c | 640 unsigned int cur_rx, cur_tx; /* The next free and used entries */ member 680 tp->cur_rx = tp->cur_tx = 0; in rhine_init_ring() 1103 if (tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit == 0) in rhine_poll() 1105 rxstatus = tp->rx_ring[tp->cur_rx].rx_status.lw; in rhine_poll() 1119 nic->packetlen = tp->rx_ring[tp->cur_rx].rx_status.bits.frame_length; in rhine_poll() 1120 memcpy (nic->packet, tp->rx_buffs[tp->cur_rx], nic->packetlen); in rhine_poll() 1123 tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit = 1; in rhine_poll() 1124 tp->cur_rx++; in rhine_poll() 1125 tp->cur_rx = tp->cur_rx % RX_RING_SIZE; in rhine_poll()
|
D | epic100.c | 78 static unsigned int cur_rx, cur_tx; /* The next free ring entry */ variable 257 cur_rx = cur_tx = 0; in epic100_init_ring() 365 entry = cur_rx % RX_RING_SIZE; in epic100_poll() 376 cur_rx++; in epic100_poll()
|
D | tulip.c | 404 int cur_rx; member 910 tp->cur_rx = 0; in tulip_init_ring() 1128 if (rx_ring[tp->cur_rx].status & 0x80000000) in tulip_poll() 1135 nic->packetlen = (rx_ring[tp->cur_rx].status & 0x3FFF0000) >> 16; in tulip_poll() 1138 if (rx_ring[tp->cur_rx].status & 0x00008000) { in tulip_poll() 1140 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll() 1141 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll() 1146 memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen); in tulip_poll() 1149 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll() 1150 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
|
D | w89c840.c | 243 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 403 int entry = w840private.cur_rx % RX_RING_SIZE; in w89c840_poll() 420 w840private.cur_rx, status); in w89c840_poll() 478 entry = (++w840private.cur_rx) % RX_RING_SIZE; in w89c840_poll() 905 w840private.tx_q_bytes = w840private.cur_rx = w840private.cur_tx = 0; in init_ring()
|