/linux-6.1.9/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 132 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 …]
|
/linux-6.1.9/drivers/net/ethernet/seeq/ |
D | ether3.c | 336 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 …]
|
D | ether3.h | 162 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 248 unsigned int tx_tail ____cacheline_aligned_in_smp; 450 unsigned tx_tail = priv->tx_tail; in hip04_tx_reclaim() local 456 count = tx_count(READ_ONCE(priv->tx_head), tx_tail); in hip04_tx_reclaim() 461 desc = &priv->tx_desc[tx_tail]; in hip04_tx_reclaim() 469 if (priv->tx_phys[tx_tail]) { in hip04_tx_reclaim() 470 dma_unmap_single(priv->dev, 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() [all …]
|
/linux-6.1.9/drivers/net/can/usb/etas_es58x/ |
D | es58x_core.c | 278 u32 num_echo_skb = priv->tx_head - priv->tx_tail; in es58x_is_echo_skb_threshold_reached() 299 can_free_echo_skb(netdev, priv->tx_tail & fifo_mask, &frame_len); in es58x_can_free_echo_skb_tail() 302 priv->tx_tail++; in es58x_can_free_echo_skb_tail() 330 rcv_packet_idx, priv->tx_tail, priv->tx_head, in es58x_can_get_echo_skb_recovery() 331 priv->tx_head - priv->tx_tail, in es58x_can_get_echo_skb_recovery() 334 if ((s32)(rcv_packet_idx - priv->tx_tail) < 0) { in es58x_can_get_echo_skb_recovery() 348 rcv_packet_idx - priv->tx_tail, in es58x_can_get_echo_skb_recovery() 349 priv->tx_tail, rcv_packet_idx - 1); in es58x_can_get_echo_skb_recovery() 350 while (priv->tx_tail != rcv_packet_idx) { in es58x_can_get_echo_skb_recovery() 351 if (priv->tx_tail == priv->tx_head) in es58x_can_get_echo_skb_recovery() [all …]
|
/linux-6.1.9/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 96 (((CP)->tx_tail <= (CP)->tx_head) ? \ 97 (CP)->tx_tail + (DE_TX_RING_SIZE - 1) - (CP)->tx_head : \ 98 (CP)->tx_tail - (CP)->tx_head - 1) 293 unsigned tx_tail; member 506 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt() 542 unsigned tx_tail = de->tx_tail; in de_tx() local 544 while (tx_tail != tx_head) { in de_tx() 549 status = le32_to_cpu(de->tx_ring[tx_tail].opts1); in de_tx() 553 skb = de->tx_skb[tx_tail].skb; in de_tx() 560 de->tx_skb[tx_tail].mapping, in de_tx() [all …]
|
/linux-6.1.9/drivers/net/ethernet/silan/ |
D | sc92031.c | 282 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() 953 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit() [all …]
|
/linux-6.1.9/arch/sparc/kernel/ |
D | ldc.c | 124 unsigned long tx_tail; member 226 t = tx_advance(lp, lp->tx_tail); in handshake_get_tx_packet() 233 return p + (lp->tx_tail / LDC_PACKET_SIZE); in handshake_get_tx_packet() 256 tail = lp->tx_tail; in tx_has_space_for() 282 t = tx_advance(lp, lp->tx_tail); in data_get_tx_packet() 289 return p + (lp->tx_tail / LDC_PACKET_SIZE); in data_get_tx_packet() 294 unsigned long orig_tail = lp->tx_tail; in set_tx_tail() 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() [all …]
|
/linux-6.1.9/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 116 (((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) 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() 655 struct cp_desc *txd = cp->tx_ring + tx_tail; in cp_tx() 664 skb = cp->tx_skb[tx_tail]; in cp_tx() 668 cp->tx_opts[tx_tail] & 0xffff, in cp_tx() 690 "tx done, slot %d\n", tx_tail); in cp_tx() [all …]
|
/linux-6.1.9/drivers/net/hamradio/ |
D | baycom_epp.c | 186 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() 1025 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_siocdevprivate() 1035 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_siocdevprivate()
|
D | hdlcdrv.c | 238 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()
|
/linux-6.1.9/drivers/net/can/ |
D | ti_hecc.c | 189 u32 tx_tail; member 200 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb() 362 priv->tx_tail = HECC_TX_MASK; in ti_hecc_start() 484 priv->tx_head, priv->tx_tail); in ti_hecc_xmit() 740 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt() 754 --priv->tx_tail; in ti_hecc_interrupt() 758 if ((priv->tx_head == priv->tx_tail && in ti_hecc_interrupt() 760 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
|
D | xilinx_can.c | 206 unsigned int tx_tail; member 403 priv->tx_tail = 0; in set_reset_mode() 693 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit_fifo() 1281 frames_in_fifo = priv->tx_head - priv->tx_tail; in xcan_tx_interrupt() 1323 stats->tx_bytes += can_get_echo_skb(ndev, priv->tx_tail % in xcan_tx_interrupt() 1325 priv->tx_tail++; in xcan_tx_interrupt()
|
/linux-6.1.9/include/uapi/linux/ |
D | hdlcdrv.h | 28 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member
|
/linux-6.1.9/drivers/net/ethernet/actions/ |
D | owl-emac.c | 637 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()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | trace_tx.h | 370 __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
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 79 u32 tx_tail; member
|
D | au1000_eth.c | 704 aup->tx_tail = aup->tx_head; in au1000_init() 866 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack() 874 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); in au1000_tx_ack() 875 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
|
/linux-6.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ib.c | 409 ++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()
|
/linux-6.1.9/drivers/net/can/rcar/ |
D | rcar_can.c | 98 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()
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
D | tlan.c | 1054 tail_list = priv->tx_list + priv->tx_tail; in tlan_start_tx() 1056 priv->tx_list_dma + sizeof(struct tlan_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() [all …]
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_cmd.h | 95 __le16 tx_tail; member
|
/linux-6.1.9/drivers/net/ethernet/i825xx/ |
D | ether1.c | 503 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()
|
/linux-6.1.9/drivers/net/ethernet/calxeda/ |
D | xgmac.c | 363 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()
|
/linux-6.1.9/drivers/slimbus/ |
D | qcom-ngd-ctrl.c | 176 int tx_tail; member 536 if ((ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM == ctrl->tx_head) { in qcom_slim_ngd_tx_msg_get() 540 desc = &ctrl->txdesc[ctrl->tx_tail]; in qcom_slim_ngd_tx_msg_get() 541 desc->base = ctrl->tx_base + ctrl->tx_tail * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_tx_msg_get() 543 ctrl->tx_tail = (ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM; in qcom_slim_ngd_tx_msg_get() 735 ctrl->tx_tail = 0; in qcom_slim_ngd_init_tx_msgq()
|