Home
last modified time | relevance | path

Searched refs:rx_ring (Results 1 – 8 of 8) sorted by relevance

/external/grub/netboot/
Depic100.c83 static struct epic_rx_desc rx_ring[RX_RING_SIZE]; variable
240 outl(virt_to_bus(&rx_ring), prcdar); in epic100_open()
261 rx_ring[i].status = RRING_OWN; /* Owned by Epic chip */ in epic100_init_ring()
262 rx_ring[i].buflength = PKT_BUF_SZ; in epic100_init_ring()
263 rx_ring[i].bufaddr = virt_to_bus(p + (PKT_BUF_SZ * i)); in epic100_init_ring()
264 rx_ring[i].control = 0; in epic100_init_ring()
265 rx_ring[i].next = virt_to_bus(&(rx_ring[i + 1]) ); in epic100_init_ring()
268 rx_ring[i-1].next = virt_to_bus(&rx_ring[0]); in epic100_init_ring()
367 if ((status = rx_ring[entry].status & RRING_OWN) == RRING_OWN) in epic100_poll()
386 nic->packetlen = rx_ring[entry].rxlength - 4; in epic100_poll()
[all …]
Dfa311.c108 volatile struct netdev_desc rx_ring[RX_RING_SIZE] __attribute__ ((aligned (4))); member
169 writel(virt_to_bus(dev->rx_ring), dev->ioaddr + RxRingPtr); in fa311_probe()
241 desc_status = dev->rx_ring[entry].cmd_status; in fa311_poll()
254 memcpy(nic->packet, (char*)(dev->rx_ring[entry].addr), nic->packetlen); in fa311_poll()
258 dev->rx_ring[entry].cmd_status = cpu_to_le32(dev->rx_buf_sz); in fa311_poll()
262 dev->rx_head_desc = &dev->rx_ring[dev->cur_rx]; in fa311_poll()
395 dev->rx_head_desc = &dev->rx_ring[0]; in init_ring()
399 dev->rx_ring[i].next_desc = virt_to_le32desc(&dev->rx_ring[i+1]); in init_ring()
400 dev->rx_ring[i].cmd_status = DescOwn; in init_ring()
403 dev->rx_ring[i-1].next_desc = virt_to_le32desc(&dev->rx_ring[0]); in init_ring()
[all …]
Dlance.c58 Address rx_ring; member
85 struct lance_rx_head rx_ring[RX_RING_SIZE]; member
265 lp->rx_ring[i].buf_length = -ETH_FRAME_LEN-4; in lance_reset()
267 lp->rx_ring[i].u.base = virt_to_bus(lp->rbuf[i]) & 0xffffff; in lance_reset()
269 lp->rx_ring[i].u.addr[3] = 0x80; in lance_reset()
306 status = lp->rx_ring[lp->rx_idx].u.base >> 24; in lance_poll()
311 lp->rx_ring[lp->rx_idx].u.base, lp->rx_ring[lp->rx_idx].msg_length, in lance_poll()
315 memcpy(nic->packet, lp->rbuf[lp->rx_idx], nic->packetlen = lp->rx_ring[lp->rx_idx].msg_length); in lance_poll()
318 lp->rx_ring[lp->rx_idx].buf_length = -ETH_FRAME_LEN-4; in lance_poll()
319 lp->rx_ring[lp->rx_idx].u.addr[3] |= 0x80; /* prime for next receive */ in lance_poll()
[all …]
Drtl8139.c169 #define rx_ring ((unsigned char *)(0x10000 - (RX_BUF_LEN + 16))) macro
171 static unsigned char rx_ring[RX_BUF_LEN+16] __attribute__((aligned(4))); variable
317 printf("rx ring address is %X\n",(unsigned long)rx_ring); in rtl_reset()
319 outl((unsigned long)rx_ring, ioaddr + RxBuf); in rtl_reset()
408 rx_status = *(unsigned int*)(rx_ring + ring_offs); in rtl_poll()
424 memcpy(nic->packet, rx_ring + ring_offs + 4, semi_count); in rtl_poll()
425 memcpy(nic->packet+semi_count, rx_ring, rx_size-4-semi_count); in rtl_poll()
430 memcpy(nic->packet, rx_ring + ring_offs + 4, nic->packetlen); in rtl_poll()
437 (unsigned long)(rx_ring+ring_offs+4), in rtl_poll()
Dw89c840.c233 struct w840_rx_desc rx_ring[RX_RING_SIZE]; member
327 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr); in w89c840_reset()
457 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
461 w840private.rx_ring[entry].status = DescOwn; in w89c840_poll()
479 w840private.rx_head_desc = &w840private.rx_ring[entry]; in w89c840_poll()
909 w840private.rx_head_desc = &w840private.rx_ring[0]; in init_ring()
916 w840private.rx_ring[i].length = w840private.rx_buf_sz; in init_ring()
917 w840private.rx_ring[i].status = 0; in init_ring()
918 w840private.rx_ring[i].next_desc = virt_to_le32desc(&w840private.rx_ring[i+1]); in init_ring()
920 w840private.rx_ring[i].buffer1 = virt_to_le32desc(p + (PKT_BUF_SZ * i)); in init_ring()
[all …]
Ddepca.c443 u32 rx_ring; /* Rx ring base pointer & ring length */ member
448 struct depca_rx_desc *rx_ring; member
483 writel((p = lp.dma_buffs + i * RX_BUFF_SZ) | R_OWN, &lp.rx_ring[i].base); in depca_init_ring()
484 writew(-RX_BUFF_SZ, &lp.rx_ring[i].buf_length); in depca_init_ring()
493 lp.init_block.rx_ring = ((u32) ((u32) lp.rx_ring) & LA_MASK) | lp.rx_rlen; in depca_init_ring()
556 lp.rx_ring = (struct depca_rx_desc *) mem_start; in depca_reset()
594 if ((status = readl(&lp.rx_ring[entry].base) & R_OWN)) in depca_poll()
596 memcpy(nic->packet, lp.rx_memcpy[entry], nic->packetlen = lp.rx_ring[entry].msg_length); in depca_poll()
597 lp.rx_ring[entry].base |= R_OWN; in depca_poll()
Dvia-rhine.c630 struct rhine_rx_desc *rx_ring; member
686 tp->rx_ring[i].rx_status.bits.own_bit = 1; in rhine_init_ring()
687 tp->rx_ring[i].rx_ctrl.bits.rx_buf_size = 1536; in rhine_init_ring()
689 tp->rx_ring[i].buf_addr_1 = virt_to_bus (tp->rx_buffs[i]); in rhine_init_ring()
690 tp->rx_ring[i].buf_addr_2 = virt_to_bus (&tp->rx_ring[i + 1]); in rhine_init_ring()
695 tp->rx_ring[i - 1].buf_addr_2 = virt_to_bus (&tp->rx_ring[0]); in rhine_init_ring()
1030 tp->rx_ring = (struct rhine_rx_desc *) bus_to_virt (j); in rhine_reset()
1069 outl (virt_to_bus (tp->rx_ring), dwCurrentRxDescAddr); in rhine_reset()
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()
[all …]
Dtulip.c395 static struct tulip_rx_desc rx_ring[RX_RING_SIZE] __attribute__ ((aligned(4))); variable
913 rx_ring[i].status = cpu_to_le32(0x80000000); in tulip_init_ring()
914 rx_ring[i].length = cpu_to_le32(BUFLEN); in tulip_init_ring()
915 rx_ring[i].buffer1 = virt_to_le32desc(&rxb[i * BUFLEN]); in tulip_init_ring()
916 rx_ring[i].buffer2 = virt_to_le32desc(&rx_ring[i+1]); in tulip_init_ring()
919 rx_ring[i-1].length = cpu_to_le32(DESC_RING_WRAP | BUFLEN); in tulip_init_ring()
920 rx_ring[i-1].buffer2 = virt_to_le32desc(&rx_ring[0]); in tulip_init_ring()
1025 outl((unsigned long)&rx_ring[0], ioaddr + CSR3); in tulip_reset()
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()
[all …]