Home
last modified time | relevance | path

Searched refs:cur_rx (Results 1 – 17 of 17) sorted by relevance

/external/syslinux/gpxe/src/drivers/net/
Deepro100.c783 int cur_rx = priv->cur_rx; in ifec_reprime_ru() local
787 if ( priv->rfds[cur_rx] != NULL ) { in ifec_reprime_ru()
788 ifec_scb_cmd ( netdev, virt_to_bus ( priv->rfds[cur_rx] ), in ifec_reprime_ru()
841 int cur_rx = priv->cur_rx; in ifec_rx_process() local
842 struct io_buffer *iob = priv->rx_iobs[cur_rx]; in ifec_rx_process()
843 struct ifec_rfd *rfd = priv->rfds[cur_rx]; in ifec_rx_process()
854 cur_rx ); in ifec_rx_process()
869 priv->rx_iobs[cur_rx] = NULL; in ifec_rx_process()
870 priv->rfds[cur_rx] = NULL; in ifec_rx_process()
873 priv->cur_rx = ( cur_rx + 1 ) % RFD_COUNT; in ifec_rx_process()
[all …]
Dsis190.c251 u32 rx_left, cur_rx = tp->cur_rx; in sis190_process_rx() local
254 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_process_rx()
256 for (; rx_left > 0; rx_left--, cur_rx++) { in sis190_process_rx()
257 unsigned int entry = cur_rx % NUM_RX_DESC; in sis190_process_rx()
288 count = cur_rx - tp->cur_rx; in sis190_process_rx()
289 tp->cur_rx = cur_rx; in sis190_process_rx()
291 delta = sis190_rx_fill(tp, tp->dirty_rx, tp->cur_rx); in sis190_process_rx()
296 if (((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx)) in sis190_process_rx()
379 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes()
620 tp->cur_rx = tp->dirty_rx = 0; in sis190_free()
Dsis900.c66 static unsigned int cur_rx; variable
748 cur_rx = 0; in sis900_init_rxd()
1185 u32 rx_status = rxd[cur_rx].cmdsts; in sis900_poll()
1193 printf("sis900_poll: cur_rx:%d, status:%X\n", cur_rx, in sis900_poll()
1201 cur_rx, (unsigned int) rx_status); in sis900_poll()
1214 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in sis900_poll()
1219 rxd[cur_rx].cmdsts = RX_BUF_SIZE; in sis900_poll()
1220 rxd[cur_rx].bufptr = virt_to_bus(&rxb[cur_rx*RX_BUF_SIZE]); in sis900_poll()
1222 if (++cur_rx == NUM_RX_DESC) in sis900_poll()
1223 cur_rx = 0; in sis900_poll()
Dmtd80x.c336 struct mtd_desc *cur_rx; member
377 mtdx.cur_rx = &mtdx.rx_ring[0]; in init_ring()
464 s32 rx_status = mtdx.cur_rx->status; in mtd_poll()
494 memcpy(nic->packet, mtdx.cur_rx->skbuff, pkt_len); in mtd_poll()
499 while( ( mtdx.cur_rx->status & RXOWN ) == 0 ) in mtd_poll()
501 mtdx.cur_rx->status = RXOWN; in mtd_poll()
502 mtdx.cur_rx = mtdx.cur_rx->next_desc_logical; in mtd_poll()
Dvia-rhine.c672 unsigned int cur_rx, cur_tx; /* The next free and used entries */ member
719 tp->cur_rx = tp->cur_tx = 0; in rhine_init_ring()
1294 if (tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit == 0) in rhine_poll()
1313 rxstatus = tp->rx_ring[tp->cur_rx].rx_status.lw; in rhine_poll()
1327 nic->packetlen = tp->rx_ring[tp->cur_rx].rx_status.bits.frame_length; in rhine_poll()
1328 memcpy (nic->packet, tp->rx_buffs[tp->cur_rx], nic->packetlen); in rhine_poll()
1331 tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit = 1; in rhine_poll()
1332 tp->cur_rx++; in rhine_poll()
1333 tp->cur_rx = tp->cur_rx % RX_RING_SIZE; in rhine_poll()
Dns83820.c326 writel(virt_to_le32desc(&rx_ring[ns->cur_rx]), ns->base + RXDP); \
375 u32 cur_rx; member
499 ns->cur_rx = 0; in ns83820_setup_rx()
669 int entry = ns->cur_rx; in ns83820_poll()
690 ns->cur_rx = ++ns->cur_rx % NR_RX_DESC; in ns83820_poll()
692 if (ns->cur_rx == 0) /* We have wrapped the ring */ in ns83820_poll()
Depic100.c85 static unsigned int cur_rx, cur_tx; /* The next free ring entry */ variable
273 cur_rx = cur_tx = 0; in epic100_init_ring()
383 entry = cur_rx % RX_RING_SIZE; in epic100_poll()
397 cur_rx++; in epic100_poll()
Dw89c840.c236 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member
390 int entry = w840private.cur_rx % RX_RING_SIZE; in w89c840_poll()
412 w840private.cur_rx, (unsigned int) status); in w89c840_poll()
470 entry = (++w840private.cur_rx) % RX_RING_SIZE; in w89c840_poll()
923 w840private.tx_q_bytes = w840private.cur_rx = w840private.cur_tx = 0; in init_ring()
Dtulip.c402 int cur_rx; member
924 tp->cur_rx = 0; in tulip_init_ring()
1159 if (rx_ring[tp->cur_rx].status & 0x80000000) in tulip_poll()
1168 nic->packetlen = (rx_ring[tp->cur_rx].status & 0x3FFF0000) >> 16; in tulip_poll()
1171 if (rx_ring[tp->cur_rx].status & 0x00008000) { in tulip_poll()
1173 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll()
1174 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
1179 memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen); in tulip_poll()
1182 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll()
1183 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
Dsundance.c260 unsigned int cur_rx; /* Producer/consumer ring indicies */ member
325 sdc->cur_rx = 0; in init_ring()
448 int entry = sdc->cur_rx % RX_RING_SIZE; in sundance_poll()
474 (sdc->cur_rx * PKT_BUF_SZ), nic->packetlen); in sundance_poll()
481 sdc->cur_rx = entry % RX_RING_SIZE; in sundance_poll()
Dtlan.c204 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indicies */ member
259 priv->cur_rx = 0; in TLan_ResetLists()
500 int entry = priv->cur_rx % TLAN_NUM_RX_LISTS; in tlan_poll()
523 (priv->cur_rx * TLAN_MAX_FRAME_SIZE), nic->packetlen); in tlan_poll()
530 priv->cur_rx = entry; in tlan_poll()
554 (priv->cur_rx - priv->dirty_rx + in refill_rx()
Dpcnet32.c239 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member
383 lp->cur_rx = lp->cur_tx = 0; in pcnet32_init_ring()
540 entry = lp->cur_rx & RX_RING_MOD_MASK; in pcnet32_poll()
561 lp->cur_rx++; in pcnet32_poll()
Dforcedeth.c419 unsigned int cur_rx, refill_rx; member
711 if (np->cur_rx - refill_rx == RX_RING) in alloc_rx()
874 np->cur_rx = 0; in init_ring()
1084 i = np->cur_rx % RX_RING; in forcedeth_poll()
1110 np->cur_rx++; in forcedeth_poll()
Ddmfe.c173 u8 cur_rx; member
346 int entry = db->cur_rx % RX_DESC_CNT; in dmfe_poll()
379 db->cur_rx++; in dmfe_poll()
517 db->cur_rx = 0; in dmfe_descriptor_init()
Deepro100.h155 int cur_rx; member
Dsis190.h254 u32 cur_rx; member
D3c515.c226 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member
380 vp->cur_rx = vp->dirty_rx = 0; in t515_reset()