/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | cpmac.c | 190 struct cpmac_desc *rx_head; member 409 if (unlikely(!priv->rx_head)) { in cpmac_poll() 418 desc = priv->rx_head; in cpmac_poll() 448 if (desc != priv->rx_head) { in cpmac_poll() 453 priv->rx_head->prev->hw_next = priv->rx_head->mapping; in cpmac_poll() 472 restart = priv->rx_head; in cpmac_poll() 492 priv->rx_head = desc; in cpmac_poll() 681 if (unlikely(!priv->rx_head)) in cpmac_clear_rx() 683 desc = priv->rx_head; in cpmac_clear_rx() 983 if (priv->rx_head[i].skb) { in cpmac_open() [all …]
|
H A D | tlan.c | 1490 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eof() 1491 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof() 1531 CIRC_INC(priv->rx_head, TLAN_NUM_RX_LISTS); in tlan_handle_rx_eof() 1533 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof() 1535 + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eof() 1546 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eof() 1547 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof() 1549 + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eof() 1762 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eoc() 1764 + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eoc() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | sun3lance.c | 143 struct lance_rx_head rx_head[RX_RING_SIZE]; member 390 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_probe() 392 (dvma_vtob(MEM->rx_head) >> 16); in lance_probe() 470 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring() 471 MEM->rx_head[i].base_hi = in lance_init_ring() 474 MEM->rx_head[i].msg_length = 0; in lance_init_ring() 488 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_init_ring() 490 (dvma_vtob(MEM->rx_head) >> 16); in lance_init_ring() 544 i, MEM->rx_head[i].base, in lance_start_xmit() 545 -MEM->rx_head[i].buf_length, in lance_start_xmit() [all …]
|
H A D | atarilance.c | 158 struct lance_rx_head rx_head[RX_RING_SIZE]; member 716 MEM->rx_head[i].base = offset; in lance_init_ring() 717 MEM->rx_head[i].flag = TMD1_OWN_CHIP; in lance_init_ring() 718 MEM->rx_head[i].base_hi = 0; in lance_init_ring() 719 MEM->rx_head[i].buf_length = -PKT_BUF_SZ; in lance_init_ring() 720 MEM->rx_head[i].msg_length = 0; in lance_init_ring() 752 i, MEM->rx_head[i].base, in lance_tx_timeout() 753 -MEM->rx_head[i].buf_length, in lance_tx_timeout() 754 MEM->rx_head[i].msg_length )); in lance_tx_timeout() 968 MEM->rx_head[entry].flag )); in lance_rx() [all …]
|
H A D | au1000_eth.h | 77 u32 rx_head; member
|
H A D | au1000_eth.c | 705 aup->rx_head = (aup->rx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init() 775 netif_dbg(aup, rx_status, dev, "au1000_rx head %d\n", aup->rx_head); in au1000_rx() 777 prxd = aup->rx_dma_ring[aup->rx_head]; in au1000_rx() 781 pDB = aup->rx_db_inuse[aup->rx_head]; in au1000_rx() 824 aup->rx_head = (aup->rx_head + 1) & (NUM_RX_DMA - 1); in au1000_rx() 828 prxd = aup->rx_dma_ring[aup->rx_head]; in au1000_rx()
|
/openbmc/linux/drivers/net/ethernet/realtek/ |
H A D | atp.c | 760 struct rx_header rx_head; in net_rx() local 764 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx() 766 printk(KERN_DEBUG " rx_count %04x %04x %04x %04x..", rx_head.pad, in net_rx() 767 rx_head.rx_count, rx_head.rx_status, rx_head.cur_addr); in net_rx() 768 if ((rx_head.rx_status & 0x77) != 0x01) { in net_rx() 770 if (rx_head.rx_status & 0x0004) dev->stats.rx_frame_errors++; in net_rx() 771 else if (rx_head.rx_status & 0x0002) dev->stats.rx_crc_errors++; in net_rx() 774 dev->name, rx_head.rx_status); in net_rx() 775 if (rx_head.rx_status & 0x0020) { in net_rx() 779 } else if (rx_head.rx_status & 0x0050) in net_rx() [all …]
|
/openbmc/linux/drivers/net/ethernet/moxa/ |
H A D | moxart_ether.c | 156 priv->rx_head = 0; in moxart_mac_setup_desc_ring() 214 int rx_head = priv->rx_head; in moxart_rx_poll() local 218 desc = priv->rx_desc_base + (RX_REG_DESC_SIZE * rx_head); in moxart_rx_poll() 239 priv->rx_mapping[rx_head], in moxart_rx_poll() 250 memcpy(skb->data, priv->rx_buf[rx_head], len); in moxart_rx_poll() 265 rx_head = RX_NEXT(rx_head); in moxart_rx_poll() 266 priv->rx_head = rx_head; in moxart_rx_poll()
|
H A D | moxart_ether.h | 307 unsigned int rx_head; member
|
/openbmc/qemu/hw/char/ |
H A D | sh_serial.c | 64 uint8_t rx_head; member 89 s->rx_head = 0; in OBJECT_DEFINE_TYPE() 357 s->rx_fifo[s->rx_head++] = buf[i]; in sh_serial_receive1() 358 if (s->rx_head == SH_RX_FIFO_LENGTH) { in sh_serial_receive1() 359 s->rx_head = 0; in sh_serial_receive1()
|
/openbmc/linux/drivers/net/ethernet/seeq/ |
H A D | ether3.c | 298 ether3_outw(priv(dev)->rx_head, REG_RECVPTR); in ether3_init_2() 300 ether3_outw(priv(dev)->rx_head >> 8, REG_RECVEND); in ether3_init_2() 338 priv(dev)->rx_head = RX_START; in ether3_init_for_open() 342 ether3_outw(priv(dev)->rx_head, REG_RECVPTR); in ether3_init_for_open() 343 ether3_outw(priv(dev)->rx_head >> 8, REG_RECVEND); in ether3_init_for_open() 583 unsigned int next_ptr = priv(dev)->rx_head, received = 0; in ether3_rx() 613 printk("%s: bad next pointer @%04X: ", dev->name, priv(dev)->rx_head); in ether3_rx() 616 next_ptr = priv(dev)->rx_head; in ether3_rx() 668 priv(dev)->rx_head = next_ptr; in ether3_rx()
|
H A D | ether3.h | 163 unsigned int rx_head; /* address to fetch next packet from */ member
|
/openbmc/linux/drivers/net/wireless/intersil/p54/ |
H A D | p54spi.c | 331 u16 rx_head[2]; in p54spi_rx() local 332 #define READAHEAD_SZ (sizeof(rx_head)-sizeof(u16)) in p54spi_rx() 341 p54spi_spi_read(priv, SPI_ADRS_DMA_DATA, rx_head, sizeof(rx_head)); in p54spi_rx() 342 len = rx_head[0]; in p54spi_rx() 363 skb_put_data(skb, rx_head + 1, len); in p54spi_rx() 365 skb_put_data(skb, rx_head + 1, READAHEAD_SZ); in p54spi_rx()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | ldc.c | 131 unsigned long rx_head; member 547 &lp->rx_head, in ldc_abort() 803 &lp->rx_head, in ldc_rx() 889 new = lp->rx_head; in ldc_rx() 893 lp->rx_head = new; in ldc_rx() 1540 &lp->rx_head, in read_raw() 1550 if (lp->rx_head == lp->rx_tail) in read_raw() 1557 lp->rx_head = new; in read_raw() 1713 lp->rx_head = head; in rx_set_head() 1746 &lp->rx_head, in read_nonraw() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | dma.c | 747 if (q->rx_head) { in mt76_dma_rx_cleanup() 748 dev_kfree_skb(q->rx_head); in mt76_dma_rx_cleanup() 749 q->rx_head = NULL; in mt76_dma_rx_cleanup() 781 struct sk_buff *skb = q->rx_head; in mt76_add_fragment() 797 q->rx_head = NULL; in mt76_add_fragment() 840 if (q->rx_head) in mt76_dma_rx_process() 846 dev_kfree_skb(q->rx_head); in mt76_dma_rx_process() 847 q->rx_head = NULL; in mt76_dma_rx_process() 851 if (q->rx_head) { in mt76_dma_rx_process() 874 q->rx_head = skb; in mt76_dma_rx_process()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/ |
H A D | hip04_eth.c | 238 unsigned int rx_head; member 593 buf = priv->rx_buf[priv->rx_head]; in hip04_rx_poll() 600 dma_unmap_single(priv->dev, priv->rx_phys[priv->rx_head], in hip04_rx_poll() 602 priv->rx_phys[priv->rx_head] = 0; in hip04_rx_poll() 633 priv->rx_buf[priv->rx_head] = buf; in hip04_rx_poll() 634 priv->rx_phys[priv->rx_head] = phys; in hip04_rx_poll() 637 priv->rx_head = RX_NEXT(priv->rx_head); in hip04_rx_poll() 728 priv->rx_head = 0; in hip04_mac_open()
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | ether1.c | 504 priv(dev)->rx_head = RX_AREA_START; in ether1_init_for_open() 849 status = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_status, NORMALIRQS); in ether1_recv_done() 853 rbdaddr = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_rbdoffset, NORMALIRQS); in ether1_recv_done() 881 if (nexttail != priv(dev)->rx_head) in ether1_recv_done() 883 dev->name, nexttail, priv(dev)->rx_head); in ether1_recv_done() 890 priv(dev)->rx_head = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_link, NORMALIRQS); in ether1_recv_done()
|
H A D | ether1.h | 41 volatile unsigned int rx_head; member
|
/openbmc/linux/drivers/staging/rtl8712/ |
H A D | rtl8712_recv.h | 122 u8 *rx_head; member
|
H A D | rtl871x_recv.h | 139 return precvframe->u.hdr.rx_head; in get_rxmem()
|
/openbmc/linux/drivers/usb/musb/ |
H A D | cppi_dma.h | 31 u32 rx_head; member
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtw_recv.h | 327 u8 *rx_head; member 385 return precvframe->u.hdr.rx_head; in get_rxmem()
|
/openbmc/linux/drivers/net/ethernet/calxeda/ |
H A D | xgmac.c | 358 unsigned int rx_head; member 683 while (dma_ring_space(priv->rx_head, priv->rx_tail, DMA_RX_RING_SZ) > 1) { in xgmac_rx_refill() 684 int entry = priv->rx_head; in xgmac_rx_refill() 706 priv->rx_head, priv->rx_tail); in xgmac_rx_refill() 708 priv->rx_head = dma_ring_incr(priv->rx_head, DMA_RX_RING_SZ); in xgmac_rx_refill() 764 priv->rx_head = 0; in xgmac_dma_desc_rings_init() 1177 if (!dma_ring_cnt(priv->rx_head, priv->rx_tail, DMA_RX_RING_SZ)) in xgmac_rx()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | sdio.h | 197 struct sk_buff_head rx_head; member
|
/openbmc/u-boot/drivers/net/ |
H A D | pch_gbe.c | 320 struct pch_gbe_rx_desc *rx_head = &priv->rx_desc[0]; in pch_gbe_free_pkt() local 330 writel(dm_pci_virt_to_mem(priv->dev, rx_head + rx_swp), in pch_gbe_free_pkt()
|