Home
last modified time | relevance | path

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

/drivers/net/ethernet/seeq/
Dether3.c338 priv(dev)->tx_tail = 0; in ether3_init_for_open()
468 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
469 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail); in ether3_timeout()
476 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
508 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket()
541 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket()
692 unsigned int tx_tail = priv(dev)->tx_tail; in ether3_tx() local
701 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600); in ether3_tx()
724 tx_tail = (tx_tail + 1) & 15; in ether3_tx()
727 if (priv(dev)->tx_tail != tx_tail) { in ether3_tx()
[all …]
Dether3.h165 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
/drivers/net/irda/
Dau1k_ir.c161 u32 tx_tail; member
313 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed()
425 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack()
426 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) { in au1k_tx_ack()
432 aup->tx_tail = (aup->tx_tail + 1) & (NUM_IR_DESC - 1); in au1k_tx_ack()
433 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack()
441 if (aup->tx_tail == aup->tx_head) { in au1k_tx_ack()
527 aup->tx_tail = 0; in au1k_init()
642 if (aup->tx_tail == aup->tx_head) { in au1k_irda_hard_xmit()
658 } else if (((aup->tx_head + 1) & (NUM_IR_DESC - 1)) == aup->tx_tail) { in au1k_irda_hard_xmit()
/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 …]
/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
751 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
981 (int) priv->tx_buf[priv->tx_tail] + n); in tx_on()
983 priv->tx_len[priv->tx_tail] - n); in tx_on()
1000 priv->tx_buf[priv->tx_tail][i], 1); in tx_on()
1290 int i = priv->tx_tail, p = priv->tx_ptr; in tx_isr()
1327 i = priv->tx_tail; in es_isr()
1354 priv->tx_tail = (i + 1) % NUM_TX_BUF; in es_isr()
/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
657 while (tx_tail != tx_head) { in cp_tx()
658 struct cp_desc *txd = cp->tx_ring + tx_tail; in cp_tx()
667 skb = cp->tx_skb[tx_tail]; in cp_tx()
696 "tx done, slot %d\n", tx_tail); in cp_tx()
701 cp->tx_skb[tx_tail] = NULL; in cp_tx()
[all …]
/drivers/net/ethernet/silan/
Dsc92031.c282 unsigned tx_tail; member
411 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
412 priv->tx_tail++; in _sc92031_tx_clear()
415 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
657 old_tx_tail = priv->tx_tail; in _sc92031_tx_tasklet()
658 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
659 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet()
665 priv->tx_tail++; in _sc92031_tx_tasklet()
691 if (priv->tx_tail != old_tx_tail) in _sc92031_tx_tasklet()
956 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit()
[all …]
/drivers/net/can/
Dti_hecc.c224 u32 tx_tail; member
236 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb()
402 priv->tx_head = priv->tx_tail = HECC_TX_MASK; in ti_hecc_start()
513 priv->tx_head, priv->tx_tail); in ti_hecc_xmit()
788 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
803 --priv->tx_tail; in ti_hecc_interrupt()
807 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt()
809 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
/drivers/net/ethernet/calxeda/
Dxgmac.c377 unsigned int tx_tail; member
756 priv->tx_tail = 0; in xgmac_dma_desc_rings_init()
857 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete()
858 unsigned int entry = priv->tx_tail; in xgmac_tx_complete()
871 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
877 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete()
884 entry = priv->tx_tail = dma_ring_incr(priv->tx_tail, in xgmac_tx_complete()
886 p = priv->dma_tx + priv->tx_tail; in xgmac_tx_complete()
895 if (dma_ring_space(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ) > in xgmac_tx_complete()
923 priv->tx_tail = 0; in xgmac_tx_err()
[all …]
/drivers/net/ethernet/cadence/
Dmacb.c411 bp->tx_tail, bp->tx_head); in macb_tx_error_task()
430 for (tail = bp->tx_tail; tail != bp->tx_head; tail++) { in macb_tx_error_task()
469 bp->tx_head = bp->tx_tail = 0; in macb_tx_error_task()
495 for (tail = bp->tx_tail; tail != head; tail++) { in macb_tx_interrupt()
524 bp->tx_tail = tail; in macb_tx_interrupt()
526 && CIRC_CNT(bp->tx_head, bp->tx_tail, in macb_tx_interrupt()
828 if (CIRC_SPACE(bp->tx_head, bp->tx_tail, TX_RING_SIZE) < 1) { in macb_start_xmit()
833 bp->tx_head, bp->tx_tail); in macb_start_xmit()
865 if (CIRC_SPACE(bp->tx_head, bp->tx_tail, TX_RING_SIZE) < 1) in macb_start_xmit()
959 bp->rx_tail = bp->tx_head = bp->tx_tail = 0; in macb_init_rings()
[all …]
Dmacb.h555 unsigned int tx_head, tx_tail; member
/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c403 ++priv->tx_tail; in ipoib_ib_handle_tx_wc()
639 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in __ipoib_reap_ah()
839 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop()
842 priv->tx_head - priv->tx_tail, recvs_pending(dev)); in ipoib_ib_dev_stop()
848 while ((int) priv->tx_tail - (int) priv->tx_head < 0) { in ipoib_ib_dev_stop()
849 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop()
853 ++priv->tx_tail; in ipoib_ib_dev_stop()
Dipoib_cm.c801 ++tx->tx_tail; in ipoib_cm_handle_tx_wc()
1163 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
1171 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1174 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy()
1184 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1185 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; in ipoib_cm_tx_destroy()
1189 ++p->tx_tail; in ipoib_cm_tx_destroy()
Dipoib.h231 unsigned tx_tail; member
344 unsigned tx_tail; member
Dipoib_main.c809 priv->tx_head, priv->tx_tail); in ipoib_timeout()
/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
/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()
749 caddr = priv(dev)->tx_tail; in ether1_xmit_done()
763 priv(dev)->tx_tail = NOP_ADDR; in ether1_xmit_done()
834 priv(dev)->tx_tail = caddr; in ether1_xmit_done()
Dether1.h43 volatile unsigned int tx_tail; member
/drivers/net/ethernet/amd/
Dau1000_eth.h97 u32 tx_tail; member
Dau1000_eth.c644 aup->tx_tail = aup->tx_head; in au1000_init()
807 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
815 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); in au1000_tx_ack()
816 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()