Home
last modified time | relevance | path

Searched refs:tx_tail (Results 1 – 25 of 27) sorted by relevance

12

/linux-3.4.99/drivers/net/ethernet/seeq/
Dether3.c338 priv(dev)->tx_tail = 0; in ether3_init_for_open()
474 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
475 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail); in ether3_timeout()
482 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
514 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket()
547 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket()
710 unsigned int tx_tail = priv(dev)->tx_tail; in ether3_tx() local
719 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600); in ether3_tx()
742 tx_tail = (tx_tail + 1) & 15; in ether3_tx()
745 if (priv(dev)->tx_tail != tx_tail) { in ether3_tx()
[all …]
Dether3.h165 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
/linux-3.4.99/drivers/net/irda/
Dau1k_ir.c160 u32 tx_tail; member
312 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed()
424 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack()
425 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) { in au1k_tx_ack()
431 aup->tx_tail = (aup->tx_tail + 1) & (NUM_IR_DESC - 1); in au1k_tx_ack()
432 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack()
440 if (aup->tx_tail == aup->tx_head) { in au1k_tx_ack()
526 aup->tx_tail = 0; in au1k_init()
641 if (aup->tx_tail == 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()
/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)
299 unsigned tx_tail; member
509 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt()
545 unsigned tx_tail = de->tx_tail; in de_tx() local
547 while (tx_tail != tx_head) { in de_tx()
552 status = le32_to_cpu(de->tx_ring[tx_tail].opts1); in de_tx()
556 skb = de->tx_skb[tx_tail].skb; in de_tx()
562 pci_unmap_single(de->pdev, de->tx_skb[tx_tail].mapping, in de_tx()
[all …]
/linux-3.4.99/drivers/net/hamradio/
Dbaycom_epp.c201 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state; enumerator
354 bc->ch_params.tx_tail = data[1]; in do_kiss_params()
355 PKP("TX tail = %ums", bc->ch_params.tx_tail); in do_kiss_params()
437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit()
482 bc->hdlctx.state = tx_tail; in transmit()
483 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); in transmit()
495 case tx_tail: in transmit()
1016 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_ioctl()
1026 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_ioctl()
Dhdlcdrv.c250 s->ch_params.tx_tail = data[1]; in do_kiss_params()
251 PKP("TX tail = %ums", s->ch_params.tx_tail); in do_kiss_params()
304 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail); in hdlcdrv_transmitter()
516 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_ioctl()
526 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_ioctl()
Ddmascc.c213 int tx_head, tx_tail, tx_count; member
756 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
986 (int) priv->tx_buf[priv->tx_tail] + n); in tx_on()
988 priv->tx_len[priv->tx_tail] - n); in tx_on()
1005 priv->tx_buf[priv->tx_tail][i], 1); in tx_on()
1295 int i = priv->tx_tail, p = priv->tx_ptr; in tx_isr()
1332 i = priv->tx_tail; in es_isr()
1359 priv->tx_tail = (i + 1) % NUM_TX_BUF; in es_isr()
/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)
341 unsigned tx_tail; member
654 unsigned tx_tail = cp->tx_tail; in cp_tx() local
656 while (tx_tail != tx_head) { in cp_tx()
657 struct cp_desc *txd = cp->tx_ring + tx_tail; in cp_tx()
666 skb = cp->tx_skb[tx_tail]; in cp_tx()
692 "tx done, slot %d\n", tx_tail); in cp_tx()
697 cp->tx_skb[tx_tail] = NULL; in cp_tx()
[all …]
/linux-3.4.99/drivers/net/ethernet/silan/
Dsc92031.c284 unsigned tx_tail; member
413 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
414 priv->tx_tail++; in _sc92031_tx_clear()
417 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
659 old_tx_tail = priv->tx_tail; in _sc92031_tx_tasklet()
660 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
661 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet()
667 priv->tx_tail++; in _sc92031_tx_tasklet()
693 if (priv->tx_tail != old_tx_tail) in _sc92031_tx_tasklet()
958 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit()
[all …]
/linux-3.4.99/arch/sparc/kernel/
Dldc.c119 unsigned long tx_tail; member
228 t = tx_advance(lp, lp->tx_tail); in handshake_get_tx_packet()
235 return p + (lp->tx_tail / LDC_PACKET_SIZE); in handshake_get_tx_packet()
258 tail = lp->tx_tail; in tx_has_space_for()
284 t = tx_advance(lp, lp->tx_tail); in data_get_tx_packet()
291 return p + (lp->tx_tail / LDC_PACKET_SIZE); in data_get_tx_packet()
296 unsigned long orig_tail = lp->tx_tail; in set_tx_tail()
299 lp->tx_tail = tail; in set_tx_tail()
308 lp->tx_tail = orig_tail; in set_tx_tail()
314 lp->tx_tail = orig_tail; in set_tx_tail()
[all …]
/linux-3.4.99/drivers/net/can/
Dti_hecc.c223 u32 tx_tail; member
235 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb()
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()
786 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
800 --priv->tx_tail; in ti_hecc_interrupt()
804 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt()
806 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
/linux-3.4.99/drivers/net/ethernet/calxeda/
Dxgmac.c375 unsigned int tx_tail; member
758 priv->tx_tail = 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()
863 unsigned int entry = priv->tx_tail; in xgmac_tx_complete()
876 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
882 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete()
889 entry = priv->tx_tail = dma_ring_incr(priv->tx_tail, in xgmac_tx_complete()
891 p = priv->dma_tx + 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()
938 priv->tx_tail = 0; in xgmac_tx_err()
[all …]
/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))
328 for (tail = bp->tx_tail; tail != head; tail = NEXT_TX(tail)) { in macb_tx()
342 bp->tx_head = bp->tx_tail = 0; in macb_tx()
358 for (tail = bp->tx_tail; tail != head; tail = NEXT_TX(tail)) { in macb_tx()
381 bp->tx_tail = tail; in macb_tx()
647 bp->tx_head, bp->tx_tail); in macb_start_xmit()
770 bp->rx_tail = bp->tx_head = bp->tx_tail = 0; in macb_init_rings()
Dmacb.h508 unsigned int tx_head, tx_tail; member
/linux-3.4.99/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c399 ++priv->tx_tail; in ipoib_ib_handle_tx_wc()
634 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in __ipoib_reap_ah()
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()
844 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop()
848 ++priv->tx_tail; in ipoib_ib_dev_stop()
Dipoib_cm.c798 ++tx->tx_tail; in ipoib_cm_handle_tx_wc()
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()
1184 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; in ipoib_cm_tx_destroy()
1188 ++p->tx_tail; in ipoib_cm_tx_destroy()
Dipoib.h223 unsigned tx_tail; member
317 unsigned tx_tail; member
/linux-3.4.99/drivers/net/ethernet/amd/
Dau1000_eth.h97 u32 tx_tail; member
Dau1000_eth.c644 aup->tx_tail = aup->tx_head; in au1000_init()
808 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
816 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); in au1000_tx_ack()
817 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
/linux-3.4.99/drivers/net/ethernet/ti/
Dtlan.c1035 tail_list = priv->tx_list + priv->tx_tail; in tlan_start_tx()
1037 priv->tx_list_dma + sizeof(struct tlan_list)*priv->tx_tail; in tlan_start_tx()
1042 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1066 priv->tx_tail); in tlan_start_tx()
1072 priv->tx_tail); in tlan_start_tx()
1073 if (priv->tx_tail == 0) { in tlan_start_tx()
1077 (priv->tx_list + (priv->tx_tail - 1))->forward in tlan_start_tx()
1083 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS); in tlan_start_tx()
1341 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1375 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
[all …]
Dtlan.h192 u32 tx_tail; member
/linux-3.4.99/drivers/net/ethernet/i825xx/
Dether1.c505 priv(dev)->tx_tail = TDR_ADDR; in ether1_init_for_open()
619 tail = priv(dev)->tx_tail; in ether1_txalloc()
755 caddr = priv(dev)->tx_tail; in ether1_xmit_done()
769 priv(dev)->tx_tail = NOP_ADDR; in ether1_xmit_done()
840 priv(dev)->tx_tail = caddr; in ether1_xmit_done()
Deexpress.c143 unsigned short tx_tail; /* previous tx buf to tx_head */ member
1022 outw(lp->tx_tail+0xc, ioaddr + WRITE_PTR); in eexp_hw_tx_pio()
1026 lp->tx_tail = lp->tx_head; in eexp_hw_tx_pio()
1295 lp->tx_link = lp->tx_tail + 0x08; in eexp_hw_lasttxstat()
1380 lp->tx_tail = tx_block - TX_BUF_SIZE; in eexp_hw_txinit()
1381 lp->tx_link = lp->tx_tail + 0x08; in eexp_hw_txinit()
Dether1.h43 volatile unsigned int tx_tail; member
/linux-3.4.99/include/linux/
Dhdlcdrv.h27 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member

12