Home
last modified time | relevance | path

Searched refs:tx_head (Results 1 – 25 of 31) sorted by relevance

12

/linux-3.4.99/drivers/net/ethernet/amd/
Dsun3lance.c141 struct lance_tx_head tx_head[TX_RING_SIZE]; member
398 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe()
400 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe()
404 (dvma_vtob(MEM->tx_head)))); in lance_probe()
465 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring()
466 MEM->tx_head[i].flag = 0; in lance_init_ring()
467 MEM->tx_head[i].base_hi = in lance_init_ring()
469 MEM->tx_head[i].length = 0; in lance_init_ring()
470 MEM->tx_head[i].misc = 0; in lance_init_ring()
496 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring()
[all …]
Datarilance.c157 struct lance_tx_head tx_head[TX_RING_SIZE]; member
623 MEM->init.tx_ring.adr_lo = offsetof( struct lance_memory, tx_head ); in lance_probe1()
710 MEM->tx_head[i].base = offset; in lance_init_ring()
711 MEM->tx_head[i].flag = TMD1_OWN_HOST; in lance_init_ring()
712 MEM->tx_head[i].base_hi = 0; in lance_init_ring()
713 MEM->tx_head[i].length = 0; in lance_init_ring()
714 MEM->tx_head[i].misc = 0; in lance_init_ring()
761 i, MEM->tx_head[i].base, in lance_tx_timeout()
762 -MEM->tx_head[i].length, in lance_tx_timeout()
763 MEM->tx_head[i].misc )); in lance_tx_timeout()
[all …]
Dau1000_eth.h96 u32 tx_head; member
Dau1000_eth.c643 aup->tx_head = (aup->tx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init()
644 aup->tx_tail = aup->tx_head; in au1000_init()
912 skb->data, aup->tx_head); in au1000_tx()
914 ptxd = aup->tx_dma_ring[aup->tx_head]; in au1000_tx()
931 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx()
947 aup->tx_head = (aup->tx_head + 1) & (NUM_TX_DMA - 1); in au1000_tx()
/linux-3.4.99/drivers/net/ethernet/i825xx/
Dether1.c504 priv(dev)->tx_head = NOP_ADDR + NOP_SIZE; in ether1_init_for_open()
621 if (priv(dev)->tx_head + size > TX_AREA_END) { in ether1_txalloc()
622 if (tail > priv(dev)->tx_head) in ether1_txalloc()
627 priv(dev)->tx_head = start + size; in ether1_txalloc()
629 if (priv(dev)->tx_head < tail && (priv(dev)->tx_head + size) > tail) in ether1_txalloc()
631 start = priv(dev)->tx_head; in ether1_txalloc()
632 priv(dev)->tx_head += size; in ether1_txalloc()
737 tmp = priv(dev)->tx_head; in ether1_sendpacket()
739 priv(dev)->tx_head = tmp; in ether1_sendpacket()
842 caddr = priv(dev)->tx_head; in ether1_xmit_done()
[all …]
Deexpress.c141 unsigned short tx_head; /* next free tx buf */ member
1004 outw(lp->tx_head, ioaddr + WRITE_PTR); in eexp_hw_tx_pio()
1008 outw(lp->tx_head+0x08, ioaddr + DATAPORT); in eexp_hw_tx_pio()
1009 outw(lp->tx_head+0x0e, ioaddr + DATAPORT); in eexp_hw_tx_pio()
1013 outw(lp->tx_head+0x08, ioaddr + DATAPORT); in eexp_hw_tx_pio()
1017 outw(lp->tx_head+0x16, ioaddr + DATAPORT); in eexp_hw_tx_pio()
1023 outw(lp->tx_head, ioaddr + DATAPORT); in eexp_hw_tx_pio()
1026 lp->tx_tail = lp->tx_head; in eexp_hw_tx_pio()
1027 if (lp->tx_head==TX_BUF_START+((lp->num_tx_bufs-1)*TX_BUF_SIZE)) in eexp_hw_tx_pio()
1028 lp->tx_head = TX_BUF_START; in eexp_hw_tx_pio()
[all …]
D3c507.c123 ushort tx_head; member
737 lp->tx_head = lp->tx_reap = TX_BUF_START; in init_82586_mem()
771 ushort tx_block = lp->tx_head; in hardware_send_packet()
802 lp->tx_head = tx_block + TX_BUF_SIZE; in hardware_send_packet()
803 if (lp->tx_head > RX_BUF_START - TX_BUF_SIZE) in hardware_send_packet()
804 lp->tx_head = TX_BUF_START; in hardware_send_packet()
808 dev->name, ioaddr, length, tx_block, lp->tx_head); in hardware_send_packet()
Dether1.h42 unsigned int tx_head; member
/linux-3.4.99/drivers/net/irda/
Dau1k_ir.c159 u32 tx_head; member
312 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed()
425 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) { in au1k_tx_ack()
440 if (aup->tx_tail == aup->tx_head) { in au1k_tx_ack()
525 aup->tx_head = 0; in au1k_init()
641 if (aup->tx_tail == aup->tx_head) { in au1k_irda_hard_xmit()
649 ptxd = aup->tx_ring[aup->tx_head]; in au1k_irda_hard_xmit()
657 } else if (((aup->tx_head + 1) & (NUM_IR_DESC - 1)) == aup->tx_tail) { in au1k_irda_hard_xmit()
664 pDB = aup->tx_db_inuse[aup->tx_head]; in au1k_irda_hard_xmit()
693 aup->tx_head = (aup->tx_head + 1) & (NUM_IR_DESC - 1); in au1k_irda_hard_xmit()
/linux-3.4.99/drivers/net/can/
Dti_hecc.c222 u32 tx_head; member
230 return priv->tx_head & HECC_TX_MB_MASK; in get_tx_head_mb()
240 return (priv->tx_head >> HECC_TX_PRIO_SHIFT) & MAX_TX_PRIO; in get_tx_head_prio()
401 priv->tx_head = priv->tx_tail = HECC_TX_MASK; in ti_hecc_start()
512 priv->tx_head, priv->tx_tail); in ti_hecc_xmit()
538 --priv->tx_head; in ti_hecc_xmit()
540 (priv->tx_head & HECC_TX_MASK) == HECC_TX_MASK) { in ti_hecc_xmit()
786 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
804 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt()
805 ((priv->tx_head & HECC_TX_MASK) != HECC_TX_MASK)) || in ti_hecc_interrupt()
[all …]
/linux-3.4.99/drivers/net/ethernet/seeq/
Dether3.c337 priv(dev)->tx_head = 0; in ether3_init_for_open()
474 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
482 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
510 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
519 ptr = 0x600 * priv(dev)->tx_head; in ether3_sendpacket()
520 priv(dev)->tx_head = next_ptr; in ether3_sendpacket()
542 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
Dether3.h164 unsigned char tx_head; /* buffer nr to insert next packet */ member
/linux-3.4.99/drivers/net/ethernet/cadence/
Dmacb.c46 (((bp)->tx_tail <= (bp)->tx_head) ? \
47 (bp)->tx_tail + (bp)->tx_pending - (bp)->tx_head : \
48 (bp)->tx_tail - (bp)->tx_head - TX_RING_GAP(bp))
318 head = bp->tx_head; in macb_tx()
342 bp->tx_head = bp->tx_tail = 0; in macb_tx()
357 head = bp->tx_head; in macb_tx()
647 bp->tx_head, bp->tx_tail); in macb_start_xmit()
651 entry = bp->tx_head; in macb_start_xmit()
670 bp->tx_head = entry; in macb_start_xmit()
770 bp->rx_tail = bp->tx_head = bp->tx_tail = 0; in macb_init_rings()
/linux-3.4.99/drivers/net/ethernet/dec/tulip/
Dde2104x.c102 (((CP)->tx_tail <= (CP)->tx_head) ? \
103 (CP)->tx_tail + (DE_TX_RING_SIZE - 1) - (CP)->tx_head : \
104 (CP)->tx_tail - (CP)->tx_head - 1)
298 unsigned tx_head; member
509 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt()
544 unsigned tx_head = de->tx_head; in de_tx() local
547 while (tx_tail != tx_head) { in de_tx()
623 entry = de->tx_head; in de_start_xmit()
644 de->tx_head = NEXT_TX(entry); in de_start_xmit()
756 entry = de->tx_head; in __de_set_rx_mode()
[all …]
/linux-3.4.99/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c579 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)]; in ipoib_send()
599 rc = post_send(priv, priv->tx_head & (ipoib_sendq_size - 1), in ipoib_send()
612 address->last_send = priv->tx_head; in ipoib_send()
613 ++priv->tx_head; in ipoib_send()
834 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop()
837 priv->tx_head - priv->tx_tail, recvs_pending(dev)); in ipoib_ib_dev_stop()
843 while ((int) priv->tx_tail - (int) priv->tx_head < 0) { in ipoib_ib_dev_stop()
Dipoib_cm.c724 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send()
733 tx_req = &tx->tx_ring[tx->tx_head & (ipoib_sendq_size - 1)]; in ipoib_cm_send()
744 rc = post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), in ipoib_cm_send()
753 ++tx->tx_head; in ipoib_cm_send()
1162 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
1170 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1173 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy()
1183 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
Dipoib.h222 unsigned tx_head; member
316 unsigned tx_head; member
/linux-3.4.99/drivers/net/ethernet/silan/
Dsc92031.c282 unsigned tx_head; member
413 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
417 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
660 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
958 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit()
960 entry = priv->tx_head++ % NUM_TX_DESC; in sc92031_start_xmit()
985 if (priv->tx_head - priv->tx_tail >= NUM_TX_DESC) in sc92031_start_xmit()
1016 priv->tx_head = priv->tx_tail = 0; in sc92031_open()
/linux-3.4.99/drivers/usb/musb/
Dcppi_dma.h25 u32 tx_head; /* "DMA packet" head descriptor */ member
/linux-3.4.99/drivers/net/ethernet/realtek/
D8139cp.c116 (((CP)->tx_tail <= (CP)->tx_head) ? \
117 (CP)->tx_tail + (CP_TX_RING_SIZE - 1) - (CP)->tx_head : \
118 (CP)->tx_tail - (CP)->tx_head - 1)
340 unsigned tx_head ____cacheline_aligned;
653 unsigned tx_head = cp->tx_head; in cp_tx() local
656 while (tx_tail != tx_head) { in cp_tx()
750 entry = cp->tx_head; in cp_start_xmit()
876 cp->tx_head = entry; in cp_start_xmit()
975 cp->tx_head = cp->tx_tail = 0; in cp_stop_hw()
1088 cp->tx_head = cp->tx_tail = 0; in cp_init_rings_index()
/linux-3.4.99/drivers/net/ethernet/calxeda/
Dxgmac.c374 unsigned int tx_head; member
759 priv->tx_head = 0; in xgmac_dma_desc_rings_init()
862 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete()
876 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
910 if (dma_ring_space(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ) > in xgmac_tx_complete()
939 priv->tx_head = 0; in xgmac_tx_err()
1089 if (dma_ring_space(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ) < in xgmac_xmit()
1099 entry = priv->tx_head; in xgmac_xmit()
1144 priv->tx_head = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()
/linux-3.4.99/drivers/net/ethernet/ti/
Dtlan.c1042 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1341 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1342 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1364 CIRC_INC(priv->tx_head, TLAN_NUM_TX_LISTS); in tlan_handle_tx_eof()
1365 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1375 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1376 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1378 + sizeof(struct tlan_list)*priv->tx_head; in tlan_handle_tx_eof()
1620 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc()
1621 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eoc()
[all …]
/linux-3.4.99/drivers/net/can/mscan/
Dmscan.c147 INIT_LIST_HEAD(&priv->tx_head); in mscan_start()
282 list_add_tail(&priv->tx_queue[buf_id].list, &priv->tx_head); in mscan_start_xmit()
472 list_for_each_safe(pos, tmp, &priv->tx_head) { in mscan_isr()
488 if (list_empty(&priv->tx_head)) { in mscan_isr()
Dmscan.h293 struct list_head tx_head; member
/linux-3.4.99/arch/sparc/kernel/
Dldc.c118 unsigned long tx_head; member
229 if (t == lp->tx_head) in handshake_get_tx_packet()
249 return lp->tx_head; in head_for_data()
530 &lp->tx_head, in ldc_abort()
922 &lp->tx_head, in ldc_tx()
927 orig_state, lp->chan_state, lp->tx_head, lp->tx_tail); in ldc_tx()
1295 &lp->tx_head, in ldc_bind()
1302 lp->tx_acked = lp->tx_head; in ldc_bind()
1485 hv_err = sun4v_ldc_tx_get_state(lp->id, &lp->tx_head, &lp->tx_tail, in write_nonraw()

12