/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | r8169.c | 309 unsigned long cur_rx; /* Index into the Rx descriptor buffer of next Rx pkt. */ member 451 int cur_rx; in r8169_poll() local 453 cur_rx = tpc->cur_rx; in r8169_poll() 454 if ((tpc->RxDescArray[cur_rx].status & OWNbit) == 0) { in r8169_poll() 466 if (!(tpc->RxDescArray[cur_rx].status & RxRES)) { in r8169_poll() 467 nic->packetlen = (int) (tpc->RxDescArray[cur_rx]. in r8169_poll() 469 memcpy(nic->packet, tpc->RxBufferRing[cur_rx], in r8169_poll() 471 if (cur_rx == NUM_RX_DESC - 1) in r8169_poll() 472 tpc->RxDescArray[cur_rx].status = in r8169_poll() 475 tpc->RxDescArray[cur_rx].status = in r8169_poll() [all …]
|
H A D | natsemi.c | 194 static unsigned int cur_rx; variable 532 cur_rx = 0; in natsemi_init_rxd() 678 u32 rx_status = rxd[cur_rx].cmdsts; in natsemi_poll() 682 printf("natsemi_poll: cur_rx:%d, status:%X\n", cur_rx, rx_status); in natsemi_poll() 691 cur_rx, rx_status); in natsemi_poll() 702 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in natsemi_poll() 707 rxd[cur_rx].cmdsts = RX_BUF_SIZE; in natsemi_poll() 708 rxd[cur_rx].bufptr = virt_to_bus(&rxb[cur_rx*RX_BUF_SIZE]); in natsemi_poll() 710 if (++cur_rx == NUM_RX_DESC) in natsemi_poll() 711 cur_rx = 0; in natsemi_poll()
|
H A D | sis900.c | 62 static unsigned int cur_rx; variable 723 cur_rx = 0; in sis900_init_rxd() 1150 u32 rx_status = rxd[cur_rx].cmdsts; in sis900_poll() 1154 printf("sis900_poll: cur_rx:%d, status:%X\n", cur_rx, rx_status); in sis900_poll() 1161 cur_rx, rx_status); in sis900_poll() 1174 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in sis900_poll() 1179 rxd[cur_rx].cmdsts = RX_BUF_SIZE; in sis900_poll() 1180 rxd[cur_rx].bufptr = virt_to_bus(&rxb[cur_rx*RX_BUF_SIZE]); in sis900_poll() 1182 if (++cur_rx == NUM_RX_DESC) in sis900_poll() 1183 cur_rx = 0; in sis900_poll()
|
H A D | rtl8139.c | 169 static unsigned int cur_rx,cur_tx; variable 316 cur_rx = 0; in rtl_reset() 444 ring_offs = cur_rx % RX_BUF_LEN; in rtl_poll() 477 cur_rx = (cur_rx + rx_size + 4 + 3) & ~3; in rtl_poll() 478 outw(cur_rx - 16, nic->ioaddr + RxBufPtr); in rtl_poll()
|
H A D | via-rhine.c | 641 unsigned int cur_rx, cur_tx; /* The next free and used entries */ member 677 tp->cur_rx = tp->cur_tx = 0; in rhine_init_ring() 1199 if (tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit == 0) in rhine_poll() 1218 rxstatus = tp->rx_ring[tp->cur_rx].rx_status.lw; in rhine_poll() 1232 nic->packetlen = tp->rx_ring[tp->cur_rx].rx_status.bits.frame_length; in rhine_poll() 1233 memcpy (nic->packet, tp->rx_buffs[tp->cur_rx], nic->packetlen); in rhine_poll() 1236 tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit = 1; in rhine_poll() 1237 tp->cur_rx++; in rhine_poll() 1238 tp->cur_rx = tp->cur_rx % RX_RING_SIZE; in rhine_poll()
|
H A D | epic100.c | 80 static unsigned int cur_rx, cur_tx; /* The next free ring entry */ variable 266 cur_rx = cur_tx = 0; in epic100_init_ring() 373 entry = cur_rx % RX_RING_SIZE; in epic100_poll() 387 cur_rx++; in epic100_poll()
|
H A D | ns83820.c | 331 writel(virt_to_le32desc(&rx_ring[ns->cur_rx]), ns->base + RXDP); \ 399 u32 cur_rx; member 510 ns->cur_rx = 0; in ns83820_setup_rx() 679 int entry = ns->cur_rx; in ns83820_poll() 700 ns->cur_rx = ++ns->cur_rx % NR_RX_DESC; in ns83820_poll() 702 if (ns->cur_rx == 0) /* We have wrapped the ring */ in ns83820_poll()
|
H A D | w89c840.c | 241 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indices */ member 393 int entry = w840private.cur_rx % RX_RING_SIZE; in w89c840_poll() 415 w840private.cur_rx, status); in w89c840_poll() 473 entry = (++w840private.cur_rx) % RX_RING_SIZE; in w89c840_poll() 911 w840private.tx_q_bytes = w840private.cur_rx = w840private.cur_tx = 0; in init_ring()
|
H A D | tulip.c | 406 int cur_rx; member 905 tp->cur_rx = 0; in tulip_init_ring() 1138 if (rx_ring[tp->cur_rx].status & 0x80000000) in tulip_poll() 1147 nic->packetlen = (rx_ring[tp->cur_rx].status & 0x3FFF0000) >> 16; in tulip_poll() 1150 if (rx_ring[tp->cur_rx].status & 0x00008000) { in tulip_poll() 1152 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll() 1153 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll() 1158 memcpy(nic->packet, rxb + tp->cur_rx * BUFLEN, nic->packetlen); in tulip_poll() 1161 rx_ring[tp->cur_rx].status = 0x80000000; in tulip_poll() 1162 tp->cur_rx = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
|
H A D | sundance.c | 285 unsigned int cur_rx; /* Producer/consumer ring indicies */ member 350 sdc->cur_rx = 0; in init_ring() 473 int entry = sdc->cur_rx % RX_RING_SIZE; in sundance_poll() 499 (sdc->cur_rx * PKT_BUF_SZ), nic->packetlen); in sundance_poll() 506 sdc->cur_rx = entry % RX_RING_SIZE; in sundance_poll()
|
H A D | forcedeth.c | 326 unsigned int cur_rx, refill_rx; member 540 if (np->cur_rx - refill_rx == RX_RING) in alloc_rx() 592 np->cur_rx = 0; in init_ring() 810 i = np->cur_rx % RX_RING; in forcedeth_poll() 827 np->cur_rx++; in forcedeth_poll()
|
H A D | tlan.c | 224 unsigned int cur_rx, dirty_rx; /* Producer/consumer ring indicies */ member 293 priv->cur_rx = 0; in TLan_ResetLists() 538 int entry = priv->cur_rx % TLAN_NUM_RX_LISTS; in tlan_poll() 563 (priv->cur_rx * TLAN_MAX_FRAME_SIZE), nic->packetlen); in tlan_poll() 571 priv->cur_rx = entry; in tlan_poll() 597 (priv->cur_rx - priv->dirty_rx + in refill_rx()
|
H A D | pcnet32.c | 265 unsigned int cur_rx, cur_tx; /* The next free ring entry */ member 409 lp->cur_rx = lp->cur_tx = 0; in pcnet32_init_ring() 551 entry = lp->cur_rx & RX_RING_MOD_MASK; in pcnet32_poll() 569 lp->cur_rx++; in pcnet32_poll()
|
/illumos-gate/usr/src/uts/common/io/rtls/ |
H A D | rtls.c | 1208 uint32_t cur_rx; in rtls_receive() local 1235 cur_rx = rtlsp->cur_rx; in rtls_receive() 1236 rx_ptr = rtlsp->rx_ring + cur_rx; in rtls_receive() 1298 if ((cur_rx + packet_len + RX_HEADER_SIZE) in rtls_receive() 1300 wrap_size = cur_rx + packet_len + RX_HEADER_SIZE in rtls_receive() 1313 cur_rx + RX_HEADER_SIZE, in rtls_receive() 1342 cur_rx = RTLS_RX_ADDR_ALIGNED(wrap_size + ETHERFCSL); in rtls_receive() 1349 cur_rx + RX_HEADER_SIZE, packet_len, in rtls_receive() 1366 cur_rx += packet_len + RX_HEADER_SIZE + ETHERFCSL; in rtls_receive() 1368 cur_rx = RTLS_RX_ADDR_ALIGNED(cur_rx); in rtls_receive() [all …]
|
H A D | rtls.h | 188 uint32_t cur_rx; member
|