Home
last modified time | relevance | path

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

12

/linux-3.4.99/drivers/net/ethernet/ti/
Dcpmac.c201 struct cpmac_desc *rx_head; member
252 struct cpmac_desc *dump = priv->rx_head; in cpmac_dump_all_desc()
256 } while (dump != priv->rx_head); in cpmac_dump_all_desc()
433 if (unlikely(!priv->rx_head)) { in cpmac_poll()
442 desc = priv->rx_head; in cpmac_poll()
472 if (desc != priv->rx_head) { in cpmac_poll()
476 priv->rx_head->prev->hw_next = priv->rx_head->mapping; in cpmac_poll()
487 (priv->rx_head->prev->dataflags & (CPMAC_OWN|CPMAC_EOQ)) in cpmac_poll()
489 (priv->rx_head->dataflags & CPMAC_OWN) != 0) { in cpmac_poll()
493 priv->rx_head->prev->dataflags &= ~CPMAC_EOQ; in cpmac_poll()
[all …]
Dtlan.c1475 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eof()
1476 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof()
1478 priv->rx_list_dma + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eof()
1516 CIRC_INC(priv->rx_head, TLAN_NUM_RX_LISTS); in tlan_handle_rx_eof()
1518 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof()
1520 + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eof()
1531 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eof()
1532 head_list = priv->rx_list + priv->rx_head; in tlan_handle_rx_eof()
1534 + sizeof(struct tlan_list)*priv->rx_head; in tlan_handle_rx_eof()
1749 priv->rx_head, priv->rx_tail); in tlan_handle_rx_eoc()
[all …]
Dtlan.h183 u32 rx_head; member
/linux-3.4.99/drivers/net/ethernet/amd/
Dsun3lance.c142 struct lance_rx_head rx_head[RX_RING_SIZE]; member
395 MEM->init.rdra = dvma_vtob(MEM->rx_head); in lance_probe()
397 (dvma_vtob(MEM->rx_head) >> 16); in lance_probe()
403 dvma_vtob(&(MEM->init)), dvma_vtob(MEM->rx_head), in lance_probe()
474 MEM->rx_head[i].base = dvma_vtob(MEM->rx_data[i]); in lance_init_ring()
475 MEM->rx_head[i].flag = RMD1_OWN_CHIP; in lance_init_ring()
476 MEM->rx_head[i].base_hi = in lance_init_ring()
478 MEM->rx_head[i].buf_length = -PKT_BUF_SZ | 0xf000; in lance_init_ring()
479 MEM->rx_head[i].msg_length = 0; in lance_init_ring()
493 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
620 MEM->init.rx_ring.adr_lo = offsetof( struct lance_memory, rx_head ); in lance_probe1()
720 MEM->rx_head[i].base = offset; in lance_init_ring()
721 MEM->rx_head[i].flag = TMD1_OWN_CHIP; in lance_init_ring()
722 MEM->rx_head[i].base_hi = 0; in lance_init_ring()
723 MEM->rx_head[i].buf_length = -PKT_BUF_SZ; in lance_init_ring()
724 MEM->rx_head[i].msg_length = 0; in lance_init_ring()
756 i, MEM->rx_head[i].base, in lance_tx_timeout()
757 -MEM->rx_head[i].buf_length, in lance_tx_timeout()
758 MEM->rx_head[i].msg_length )); in lance_tx_timeout()
[all …]
Dau1000_eth.h95 u32 rx_head; member
Dau1000_eth.c645 aup->rx_head = (aup->rx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init()
715 netif_dbg(aup, rx_status, dev, "au1000_rx head %d\n", aup->rx_head); in au1000_rx()
717 prxd = aup->rx_dma_ring[aup->rx_head]; in au1000_rx()
721 pDB = aup->rx_db_inuse[aup->rx_head]; in au1000_rx()
765 aup->rx_head = (aup->rx_head + 1) & (NUM_RX_DMA - 1); in au1000_rx()
769 prxd = aup->rx_dma_ring[aup->rx_head]; in au1000_rx()
/linux-3.4.99/drivers/net/ethernet/i825xx/
D3c507.c121 ushort rx_head; member
606 pr_debug("Received packet, rx_head %04x.\n", lp->rx_head); in el16_interrupt()
675 int cur_rxbuf = lp->rx_head = RX_BUF_START; in init_rx_bufs()
709 writew(lp->rx_head,write_ptr+2); /* Link */ in init_rx_bufs()
820 ushort rx_head = lp->rx_head; in el16_rx() local
825 while ((frame_status = readw(shmem+rx_head)) < 0) { /* Command complete */ in el16_rx()
826 void __iomem *read_frame = lp->base + rx_head; in el16_rx()
833 if (rfd_cmd != 0 || data_buffer_addr != rx_head + 22 || in el16_rx()
838 dev->name, rx_head, frame_status, rfd_cmd, in el16_rx()
878 rx_tail = rx_head; in el16_rx()
[all …]
Dether1.c506 priv(dev)->rx_head = RX_AREA_START; in ether1_init_for_open()
857 status = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_status, NORMALIRQS); in ether1_recv_done()
861 rbdaddr = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_rbdoffset, NORMALIRQS); in ether1_recv_done()
889 if (nexttail != priv(dev)->rx_head) in ether1_recv_done()
891 dev->name, nexttail, priv(dev)->rx_head); in ether1_recv_done()
898 priv(dev)->rx_head = ether1_readw(dev, priv(dev)->rx_head, rfd_t, rfd_link, NORMALIRQS); in ether1_recv_done()
Dether1.h44 volatile unsigned int rx_head; member
/linux-3.4.99/drivers/net/ethernet/realtek/
Datp.c758 struct rx_header rx_head; in net_rx() local
762 read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); in net_rx()
764 printk(KERN_DEBUG " rx_count %04x %04x %04x %04x..", rx_head.pad, in net_rx()
765 rx_head.rx_count, rx_head.rx_status, rx_head.cur_addr); in net_rx()
766 if ((rx_head.rx_status & 0x77) != 0x01) { in net_rx()
768 if (rx_head.rx_status & 0x0004) dev->stats.rx_frame_errors++; in net_rx()
769 else if (rx_head.rx_status & 0x0002) dev->stats.rx_crc_errors++; in net_rx()
772 dev->name, rx_head.rx_status); in net_rx()
773 if (rx_head.rx_status & 0x0020) { in net_rx()
777 } else if (rx_head.rx_status & 0x0050) in net_rx()
[all …]
/linux-3.4.99/drivers/net/wireless/p54/
Dp54spi.c346 u16 rx_head[2]; in p54spi_rx() local
347 #define READAHEAD_SZ (sizeof(rx_head)-sizeof(u16)) in p54spi_rx()
356 p54spi_spi_read(priv, SPI_ADRS_DMA_DATA, rx_head, sizeof(rx_head)); in p54spi_rx()
357 len = rx_head[0]; in p54spi_rx()
377 memcpy(skb_put(skb, len), rx_head + 1, len); in p54spi_rx()
379 memcpy(skb_put(skb, READAHEAD_SZ), rx_head + 1, READAHEAD_SZ); in p54spi_rx()
/linux-3.4.99/drivers/net/ethernet/seeq/
Dether3.c300 ether3_outw(priv(dev)->rx_head, REG_RECVPTR); in ether3_init_2()
302 ether3_outw(priv(dev)->rx_head >> 8, REG_RECVEND); in ether3_init_2()
340 priv(dev)->rx_head = RX_START; in ether3_init_for_open()
344 ether3_outw(priv(dev)->rx_head, REG_RECVPTR); in ether3_init_for_open()
345 ether3_outw(priv(dev)->rx_head >> 8, REG_RECVEND); in ether3_init_for_open()
591 unsigned int next_ptr = priv(dev)->rx_head, received = 0; in ether3_rx()
622 printk("%s: bad next pointer @%04X: ", dev->name, priv(dev)->rx_head); in ether3_rx()
627 next_ptr = priv(dev)->rx_head; in ether3_rx()
676 priv(dev)->rx_head = next_ptr; in ether3_rx()
Dether3.h166 unsigned int rx_head; /* address to fetch next packet from */ member
/linux-3.4.99/arch/sparc/kernel/
Dldc.c126 unsigned long rx_head; member
548 &lp->rx_head, in ldc_abort()
804 &lp->rx_head, in ldc_rx()
809 orig_state, lp->chan_state, lp->rx_head, lp->rx_tail); in ldc_rx()
845 if (lp->rx_head != lp->rx_tail) in ldc_rx()
854 while (lp->rx_head != lp->rx_tail) { in ldc_rx()
859 p = lp->rx_base + (lp->rx_head / LDC_PACKET_SIZE); in ldc_rx()
885 new = lp->rx_head; in ldc_rx()
889 lp->rx_head = new; in ldc_rx()
1444 &lp->rx_head, in read_raw()
[all …]
/linux-3.4.99/drivers/net/irda/
Dau1k_ir.c158 u32 rx_head; member
312 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed()
462 prxd = aup->rx_ring[aup->rx_head]; in au1k_irda_rx()
466 pDB = aup->rx_db_inuse[aup->rx_head]; in au1k_irda_rx()
491 aup->rx_head = (aup->rx_head + 1) & (NUM_IR_DESC - 1); in au1k_irda_rx()
495 prxd = aup->rx_ring[aup->rx_head]; in au1k_irda_rx()
527 aup->rx_head = 0; in au1k_init()
/linux-3.4.99/drivers/staging/media/lirc/
Dlirc_sir.c174 static unsigned int rx_tail, rx_head; variable
248 if (rx_head != rx_tail) in lirc_poll()
266 if (rx_head != rx_tail) { in lirc_read()
268 (void *) (rx_buf + rx_head), in lirc_read()
273 rx_head = (rx_head + 1) & (RBUF_LEN - 1); in lirc_read()
445 if (new_rx_tail == rx_head) { in add_read_queue()
/linux-3.4.99/drivers/staging/rtl8712/
Drtl871x_recv.h150 return precvframe->u.hdr.rx_head; in get_rxmem()
180 if (precvframe->u.hdr.rx_data < precvframe->u.hdr.rx_head) { in recvframe_push()
270 return precv_frame->u.hdr.rx_head; in pkt_to_recvmem()
Drtl8712_recv.h134 u8 *rx_head; member
Drtl8712_recv.c747 struct recv_stat *prxstat = (struct recv_stat *)prframe->u.hdr.rx_head; in query_rx_phy_status()
1091 precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = in recvbuf2recvframe()
1096 precvframe->u.hdr.rx_head = pbuf; in recvbuf2recvframe()
Drtl871x_recv.c678 phead = precvframe->u.hdr.rx_head; in r8712_recv_entry()
/linux-3.4.99/drivers/net/hamradio/
Ddmascc.c208 int rx_head, rx_tail, rx_count; member
754 priv->rx_head = priv->rx_tail = priv->rx_count = 0; in scc_open()
1033 (int) priv->rx_buf[priv->rx_head]); in rx_on()
1177 priv->rx_buf[priv->rx_head][priv-> in rx_isr()
1230 priv->rx_len[priv->rx_head] = cb; in special_condition()
1231 priv->rx_head = in special_condition()
1232 (priv->rx_head + in special_condition()
1246 (int) priv->rx_buf[priv->rx_head]); in special_condition()
/linux-3.4.99/drivers/usb/musb/
Dcppi_dma.h37 u32 rx_head; member
Dcppi_dma.c86 musb_writel(&rx->rx_head, 0, 0); in cppi_reset_rx()
376 musb_readl(&rx->rx_head, 0), in cppi_dump_rx()
923 musb_writel(&rx_ram->rx_head, 0, bd->dma); in cppi_next_rx_segment()
/linux-3.4.99/drivers/net/ethernet/calxeda/
Dxgmac.c370 unsigned int rx_head; member
672 while (dma_ring_space(priv->rx_head, priv->rx_tail, DMA_RX_RING_SZ) > 1) { in xgmac_rx_refill()
673 int entry = priv->rx_head; in xgmac_rx_refill()
693 priv->rx_head, priv->rx_tail); in xgmac_rx_refill()
695 priv->rx_head = dma_ring_incr(priv->rx_head, DMA_RX_RING_SZ); in xgmac_rx_refill()
753 priv->rx_head = 0; in xgmac_dma_desc_rings_init()

12