Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/moxa/
H A Dmoxart_ether.c132 priv->tx_tail = 0; in moxart_mac_setup_desc_ring()
282 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
289 unsigned int tx_tail = priv->tx_tail; in moxart_tx_finished() local
291 while (tx_tail != tx_head) { in moxart_tx_finished()
292 dma_unmap_single(&priv->pdev->dev, priv->tx_mapping[tx_tail], in moxart_tx_finished()
293 priv->tx_len[tx_tail], DMA_TO_DEVICE); in moxart_tx_finished()
296 ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len; in moxart_tx_finished()
298 dev_consume_skb_irq(priv->tx_skb[tx_tail]); in moxart_tx_finished()
299 priv->tx_skb[tx_tail] = NULL; in moxart_tx_finished()
301 tx_tail = TX_NEXT(tx_tail); in moxart_tx_finished()
[all …]
/openbmc/linux/drivers/net/ethernet/seeq/
H A Dether3.c336 priv(dev)->tx_tail = 0; in ether3_init_for_open()
466 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
467 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail); in ether3_timeout()
474 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
506 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket()
539 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket()
687 unsigned int tx_tail = priv(dev)->tx_tail; in ether3_tx() local
696 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600); in ether3_tx()
719 tx_tail = (tx_tail + 1) & 15; in ether3_tx()
722 if (priv(dev)->tx_tail != tx_tail) { in ether3_tx()
[all …]
H A Dether3.h162 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
/openbmc/linux/drivers/net/ethernet/hisilicon/
H A Dhip04_eth.c450 unsigned tx_tail = priv->tx_tail; in hip04_tx_reclaim() local
461 desc = &priv->tx_desc[tx_tail]; in hip04_tx_reclaim()
469 if (priv->tx_phys[tx_tail]) { in hip04_tx_reclaim()
471 priv->tx_skb[tx_tail]->len, in hip04_tx_reclaim()
473 priv->tx_phys[tx_tail] = 0; in hip04_tx_reclaim()
476 bytes_compl += priv->tx_skb[tx_tail]->len; in hip04_tx_reclaim()
477 dev_kfree_skb(priv->tx_skb[tx_tail]); in hip04_tx_reclaim()
478 priv->tx_skb[tx_tail] = NULL; in hip04_tx_reclaim()
479 tx_tail = TX_NEXT(tx_tail); in hip04_tx_reclaim()
483 priv->tx_tail = tx_tail; in hip04_tx_reclaim()
[all …]
/openbmc/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c303 priv->tx_tail++; in es58x_can_free_echo_skb_tail()
332 priv->tx_head - priv->tx_tail, in es58x_can_get_echo_skb_recovery()
335 if ((s32)(rcv_packet_idx - priv->tx_tail) < 0) { in es58x_can_get_echo_skb_recovery()
349 rcv_packet_idx - priv->tx_tail, in es58x_can_get_echo_skb_recovery()
350 priv->tx_tail, rcv_packet_idx - 1); in es58x_can_get_echo_skb_recovery()
351 while (priv->tx_tail != rcv_packet_idx) { in es58x_can_get_echo_skb_recovery()
352 if (priv->tx_tail == priv->tx_head) in es58x_can_get_echo_skb_recovery()
417 if (priv->tx_tail != rcv_packet_idx) { in es58x_can_get_echo_skb()
449 priv->tx_tail++; in es58x_can_get_echo_skb()
475 priv->tx_tail = 0; in es58x_can_reset_echo_fifo()
[all …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dde2104x.c98 (CP)->tx_tail - (CP)->tx_head - 1)
293 unsigned tx_tail; member
542 unsigned tx_tail = de->tx_tail; in de_tx() local
544 while (tx_tail != tx_head) { in de_tx()
553 skb = de->tx_skb[tx_tail].skb; in de_tx()
560 de->tx_skb[tx_tail].mapping, in de_tx()
593 de->tx_skb[tx_tail].skb = NULL; in de_tx()
595 tx_tail = NEXT_TX(tx_tail); in de_tx()
598 de->tx_tail = tx_tail; in de_tx()
895 de->tx_head = de->tx_tail = 0; in de_stop_hw()
[all …]
/openbmc/linux/drivers/net/ethernet/silan/
H A Dsc92031.c282 unsigned tx_tail; member
410 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
411 priv->tx_tail++; in _sc92031_tx_clear()
414 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
656 old_tx_tail = priv->tx_tail; in _sc92031_tx_tasklet()
657 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
658 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet()
664 priv->tx_tail++; in _sc92031_tx_tasklet()
690 if (priv->tx_tail != old_tx_tail) in _sc92031_tx_tasklet()
979 if (priv->tx_head - priv->tx_tail >= NUM_TX_DESC) in sc92031_start_xmit()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dldc.c124 unsigned long tx_tail; member
226 t = tx_advance(lp, lp->tx_tail); in handshake_get_tx_packet()
256 tail = lp->tx_tail; in tx_has_space_for()
297 lp->tx_tail = tail; in set_tx_tail()
306 lp->tx_tail = orig_tail; in set_tx_tail()
312 lp->tx_tail = orig_tail; in set_tx_tail()
530 &lp->tx_tail, in ldc_abort()
772 if (head == lp->tx_tail) in process_data_ack()
927 &lp->tx_tail, in ldc_tx()
1340 &lp->tx_tail, in ldc_bind()
[all …]
/openbmc/linux/drivers/net/ethernet/realtek/
H A D8139cp.c118 (CP)->tx_tail - (CP)->tx_head - 1)
342 unsigned tx_tail; member
651 unsigned tx_tail = cp->tx_tail; in cp_tx() local
654 while (tx_tail != tx_head) { in cp_tx()
664 skb = cp->tx_skb[tx_tail]; in cp_tx()
668 cp->tx_opts[tx_tail] & 0xffff, in cp_tx()
697 cp->tx_skb[tx_tail] = NULL; in cp_tx()
699 tx_tail = NEXT_TX(tx_tail); in cp_tx()
702 cp->tx_tail = tx_tail; in cp_tx()
966 cp->tx_head = cp->tx_tail = 0; in cp_stop_hw()
[all …]
/openbmc/linux/drivers/net/hamradio/
H A Dbaycom_epp.c186 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state; enumerator
343 bc->ch_params.tx_tail = data[1]; in do_kiss_params()
344 PKP("TX tail = %ums", bc->ch_params.tx_tail); in do_kiss_params()
426 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit()
471 bc->hdlctx.state = tx_tail; in transmit()
472 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); in transmit()
484 case tx_tail: in transmit()
1019 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_siocdevprivate()
1029 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_siocdevprivate()
H A Dhdlcdrv.c238 s->ch_params.tx_tail = data[1]; in do_kiss_params()
239 PKP("TX tail = %ums", s->ch_params.tx_tail); in do_kiss_params()
292 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail); in hdlcdrv_transmitter()
510 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_siocdevprivate()
520 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_siocdevprivate()
/openbmc/linux/drivers/net/can/
H A Dbxcan.c179 unsigned int tx_tail; member
268 return priv->tx_tail % BXCAN_TX_MB_NUM; in bxcan_get_tx_tail()
273 return BXCAN_TX_MB_NUM - (priv->tx_head - priv->tx_tail); in bxcan_get_tx_free()
289 priv->tx_head, priv->tx_tail, in bxcan_tx_busy()
290 priv->tx_head - priv->tx_tail); in bxcan_tx_busy()
442 while (priv->tx_head - priv->tx_tail > 0) { in bxcan_tx_isr()
450 priv->tx_tail++; in bxcan_tx_isr()
692 priv->tx_tail = 0; in bxcan_chip_start()
1004 priv->tx_tail = 0; in bxcan_probe()
H A Dti_hecc.c188 u32 tx_tail; member
199 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb()
361 priv->tx_tail = HECC_TX_MASK; in ti_hecc_start()
483 priv->tx_head, priv->tx_tail); in ti_hecc_xmit()
739 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
753 --priv->tx_tail; in ti_hecc_interrupt()
757 if ((priv->tx_head == priv->tx_tail && in ti_hecc_interrupt()
759 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
H A Dxilinx_can.c210 unsigned int tx_tail; member
409 priv->tx_tail = 0; in set_reset_mode()
699 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit_fifo()
1287 frames_in_fifo = priv->tx_head - priv->tx_tail; in xcan_tx_interrupt()
1329 stats->tx_bytes += can_get_echo_skb(ndev, priv->tx_tail % in xcan_tx_interrupt()
1331 priv->tx_tail++; in xcan_tx_interrupt()
/openbmc/linux/include/uapi/linux/
H A Dhdlcdrv.h28 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member
/openbmc/linux/drivers/net/ethernet/amd/
H A Dau1000_eth.h79 u32 tx_tail; member
/openbmc/linux/drivers/net/ethernet/actions/
H A Dowl-emac.c637 unsigned int tx_tail; in owl_emac_tx_complete_tail() local
640 tx_tail = ring->tail; in owl_emac_tx_complete_tail()
641 desc = &ring->descs[tx_tail]; in owl_emac_tx_complete_tail()
673 netdev->stats.tx_bytes += ring->skbs[tx_tail]->len; in owl_emac_tx_complete_tail()
680 skb = ring->skbs[tx_tail]; in owl_emac_tx_complete_tail()
681 owl_emac_dma_unmap_tx(priv, skb, ring->skbs_dma[tx_tail]); in owl_emac_tx_complete_tail()
684 ring->skbs[tx_tail] = NULL; in owl_emac_tx_complete_tail()
685 ring->skbs_dma[tx_tail] = 0; in owl_emac_tx_complete_tail()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_tx.h370 __field(u16, tx_tail)
377 __entry->tx_tail = sde->tx_tail;
392 __entry->tx_tail
406 __field(u16, tx_tail)
413 __entry->tx_tail = sde->tx_tail;
426 __entry->tx_tail
/openbmc/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_ib.c409 ++priv->tx_tail; in ipoib_ib_handle_tx_wc()
682 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in ipoib_reap_dead_ahs()
796 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop_default()
800 priv->tx_head - priv->tx_tail, in ipoib_ib_dev_stop_default()
807 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { in ipoib_ib_dev_stop_default()
808 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop_default()
812 ++priv->tx_tail; in ipoib_ib_dev_stop_default()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_cmd.h95 __le16 tx_tail; member
/openbmc/linux/drivers/net/can/rcar/
H A Drcar_can.c98 u32 tx_tail; member
379 if (priv->tx_head - priv->tx_tail <= unsent) in rcar_can_tx_done()
384 priv->tx_tail % RCAR_CAN_FIFO_DEPTH, in rcar_can_tx_done()
387 priv->tx_tail++; in rcar_can_tx_done()
621 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH) in rcar_can_start_xmit()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dtlan.c1054 tail_list = priv->tx_list + priv->tx_tail; in tlan_start_tx()
1061 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1085 priv->tx_tail); in tlan_start_tx()
1091 priv->tx_tail); in tlan_start_tx()
1092 if (priv->tx_tail == 0) { in tlan_start_tx()
1096 (priv->tx_list + (priv->tx_tail - 1))->forward in tlan_start_tx()
1102 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS); in tlan_start_tx()
1357 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1391 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1633 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc()
[all …]
/openbmc/linux/drivers/net/ethernet/i825xx/
H A Dether1.c503 priv(dev)->tx_tail = TDR_ADDR; in ether1_init_for_open()
617 tail = priv(dev)->tx_tail; in ether1_txalloc()
747 caddr = priv(dev)->tx_tail; in ether1_xmit_done()
761 priv(dev)->tx_tail = NOP_ADDR; in ether1_xmit_done()
832 priv(dev)->tx_tail = caddr; in ether1_xmit_done()
H A Dether1.h40 volatile unsigned int tx_tail; member
/openbmc/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c363 unsigned int tx_tail; member
401 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ)
769 priv->tx_tail = 0; in xgmac_dma_desc_rings_init()
868 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete()
869 unsigned int entry = priv->tx_tail; in xgmac_tx_complete()
878 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
894 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete()
924 priv->tx_tail = 0; in xgmac_tx_timeout_work()

12