Home
last modified time | relevance | path

Searched refs:rx_head (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/ti/
Dcpmac.c190 struct cpmac_desc *rx_head; member
241 struct cpmac_desc *dump = priv->rx_head; in cpmac_dump_all_desc()
246 } while (dump != priv->rx_head); in cpmac_dump_all_desc()
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()
465 (priv->rx_head->prev->dataflags & (CPMAC_OWN|CPMAC_EOQ)) in cpmac_poll()
467 (priv->rx_head->dataflags & CPMAC_OWN) != 0) { in cpmac_poll()
471 priv->rx_head->prev->dataflags &= ~CPMAC_EOQ; in cpmac_poll()
[all …]
Dtlan.c1490 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()
1493 priv->rx_list_dma + sizeof(struct tlan_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()
[all …]
/linux-6.1.9/drivers/net/ethernet/amd/
Dsun3lance.c143 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()
398 dvma_vtob(&(MEM->init)), dvma_vtob(MEM->rx_head), in lance_probe()
469 MEM->rx_head[i].base = dvma_vtob(MEM->rx_data[i]); in lance_init_ring()
470 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring()
471 MEM->rx_head[i].base_hi = in lance_init_ring()
473 MEM->rx_head[i].buf_length = -PKT_BUF_SZ | 0xf000; 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()
[all …]
Datarilance.c158 struct lance_rx_head rx_head[RX_RING_SIZE]; member
616 MEM->init.rx_ring.adr_lo = offsetof( struct lance_memory, rx_head ); in lance_probe1()
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()
[all …]
Dau1000_eth.c705 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()
Dau1000_eth.h77 u32 rx_head; member
/linux-6.1.9/drivers/net/ethernet/realtek/
Datp.c760 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 …]
/linux-6.1.9/drivers/net/ethernet/moxa/
Dmoxart_ether.c156 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()
/linux-6.1.9/drivers/net/ethernet/seeq/
Dether3.c298 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()
Dether3.h163 unsigned int rx_head; /* address to fetch next packet from */ member
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Ddma.c609 if (!q->rx_head) in mt76_dma_rx_reset()
612 dev_kfree_skb(q->rx_head); in mt76_dma_rx_reset()
613 q->rx_head = NULL; in mt76_dma_rx_reset()
620 struct sk_buff *skb = q->rx_head; in mt76_add_fragment()
636 q->rx_head = NULL; in mt76_add_fragment()
673 if (q->rx_head) in mt76_dma_rx_process()
679 dev_kfree_skb(q->rx_head); in mt76_dma_rx_process()
680 q->rx_head = NULL; in mt76_dma_rx_process()
684 if (q->rx_head) { in mt76_dma_rx_process()
705 q->rx_head = skb; in mt76_dma_rx_process()
/linux-6.1.9/drivers/net/wireless/intersil/p54/
Dp54spi.c330 u16 rx_head[2]; in p54spi_rx() local
331 #define READAHEAD_SZ (sizeof(rx_head)-sizeof(u16)) in p54spi_rx()
340 p54spi_spi_read(priv, SPI_ADRS_DMA_DATA, rx_head, sizeof(rx_head)); in p54spi_rx()
341 len = rx_head[0]; in p54spi_rx()
362 skb_put_data(skb, rx_head + 1, len); in p54spi_rx()
364 skb_put_data(skb, rx_head + 1, READAHEAD_SZ); in p54spi_rx()
/linux-6.1.9/arch/sparc/kernel/
Dldc.c131 unsigned long rx_head; member
547 &lp->rx_head, in ldc_abort()
803 &lp->rx_head, in ldc_rx()
808 orig_state, lp->chan_state, lp->rx_head, lp->rx_tail); in ldc_rx()
849 if (lp->rx_head != lp->rx_tail) in ldc_rx()
858 while (lp->rx_head != lp->rx_tail) { in ldc_rx()
863 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in ldc_rx()
889 new = lp->rx_head; in ldc_rx()
893 lp->rx_head = new; in ldc_rx()
1494 lp->rx_head, lp->rx_tail, lp->rx_num_entries, in __ldc_print()
[all …]
/linux-6.1.9/drivers/net/ethernet/hisilicon/
Dhip04_eth.c238 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()
/linux-6.1.9/drivers/net/ethernet/i825xx/
Dether1.c504 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()
Dether1.h41 volatile unsigned int rx_head; member
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-rx.c22 u8 *rx_head, bool *fifo_empty) in mcp251xfd_rx_head_get_from_chip() argument
32 *rx_head = FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK, fifo_sta); in mcp251xfd_rx_head_get_from_chip()
/linux-6.1.9/drivers/staging/r8188eu/include/
Drtw_recv.h236 u8 *rx_head; member
266 return precvframe->rx_head; in get_rxmem()
/linux-6.1.9/drivers/usb/musb/
Dcppi_dma.h31 u32 rx_head; member
/linux-6.1.9/drivers/staging/rtl8712/
Drtl8712_recv.h122 u8 *rx_head; member
Drtl871x_recv.h139 return precvframe->u.hdr.rx_head; in get_rxmem()
/linux-6.1.9/drivers/staging/rtl8723bs/include/
Drtw_recv.h327 u8 *rx_head; member
385 return precvframe->u.hdr.rx_head; in get_rxmem()
/linux-6.1.9/drivers/net/ethernet/calxeda/
Dxgmac.c358 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()
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dsdio.h197 struct sk_buff_head rx_head; member
/linux-6.1.9/drivers/staging/r8188eu/hal/
Dusb_ops_linux.c284 precvframe->rx_head = pkt_copy->data; in recvbuf2recvframe()
299 precvframe->rx_head = precvframe->rx_tail; in recvbuf2recvframe()

12