| /linux/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-tx.c | 15 unsigned int tx_tail; in rkcanfd_tx_tail_is_eff() local 20 tx_tail = rkcanfd_get_tx_tail(priv); in rkcanfd_tx_tail_is_eff() 21 skb = priv->can.echo_skb[tx_tail]; in rkcanfd_tx_tail_is_eff() 25 __func__, tx_tail, in rkcanfd_tx_tail_is_eff() 26 priv->tx_head, priv->tx_tail); in rkcanfd_tx_tail_is_eff() 85 priv->tx_head, priv->tx_tail, in rkcanfd_start_xmit() 147 unsigned int tx_tail; in rkcanfd_handle_tx_done_one() local 150 tx_tail = rkcanfd_get_tx_tail(priv); in rkcanfd_handle_tx_done_one() 151 skb = priv->can.echo_skb[tx_tail]; in rkcanfd_handle_tx_done_one() 164 tx_tail, ts, in rkcanfd_handle_tx_done_one()
|
| H A D | rockchip_canfd-rx.c | 102 unsigned int tx_tail; in rkcanfd_rxstx_filter() local 104 tx_tail = rkcanfd_get_tx_tail(priv); in rkcanfd_rxstx_filter() 105 skb = priv->can.echo_skb[tx_tail]; in rkcanfd_rxstx_filter() 109 __func__, tx_tail, in rkcanfd_rxstx_filter() 110 priv->tx_head, priv->tx_tail); in rkcanfd_rxstx_filter() 125 WRITE_ONCE(priv->tx_tail, priv->tx_tail + 1); in rkcanfd_rxstx_filter()
|
| H A D | rockchip_canfd.h | 467 unsigned int tx_tail; member 521 return READ_ONCE(priv->tx_tail) & (RKCANFD_TXFIFO_DEPTH - 1); in rkcanfd_get_tx_tail() 527 return READ_ONCE(priv->tx_head) - READ_ONCE(priv->tx_tail); in rkcanfd_get_tx_pending()
|
| /linux/drivers/net/ethernet/seeq/ |
| H A 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 …]
|
| H A D | ether3.h | 162 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
|
| /linux/drivers/net/can/usb/etas_es58x/ |
| H A D | es58x_core.c | 279 u32 num_echo_skb = priv->tx_head - priv->tx_tail; in es58x_is_echo_skb_threshold_reached() 300 can_free_echo_skb(netdev, priv->tx_tail & fifo_mask, &frame_len); in es58x_can_free_echo_skb_tail() 303 priv->tx_tail++; in es58x_can_free_echo_skb_tail() 331 rcv_packet_idx, priv->tx_tail, priv->tx_head, in es58x_can_get_echo_skb_recovery() 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() [all …]
|
| H A D | es58x_fd.c | 82 rcv_packet_idx = (priv->tx_tail & mask) | echo_msg[0].packet_idx; in es58x_fd_echo_msg() 95 return es58x_can_get_echo_skb(netdev, priv->tx_tail, tstamps, num_element); in es58x_fd_echo_msg()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A 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/arch/sparc/kernel/ |
| H A 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/drivers/net/ethernet/silan/ |
| H A 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/drivers/net/ethernet/realtek/ |
| H A 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/drivers/net/can/ |
| H A D | bxcan.c | 179 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() 1003 priv->tx_tail = 0; in bxcan_probe()
|
| H A D | at91_can.c | 159 unsigned int tx_tail; member 282 return (priv->tx_tail & get_head_mb_mask(priv)) + get_mb_tx_first(priv); in get_tx_tail_mb() 359 priv->tx_head = priv->tx_tail = 0; in at91_setup_mailboxes() 657 for (/* nix */; (priv->tx_head - priv->tx_tail) > 0; priv->tx_tail++) { in at91_irq_tx() 688 (priv->tx_tail & get_head_mask(priv)) == 0) in at91_irq_tx()
|
| /linux/drivers/net/ethernet/actions/ |
| H A 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/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib_ib.c | 410 ++priv->tx_tail; in ipoib_ib_handle_tx_wc() 707 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in ipoib_reap_dead_ahs() 825 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop_default() 829 priv->tx_head - priv->tx_tail, in ipoib_ib_dev_stop_default() 836 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { in ipoib_ib_dev_stop_default() 837 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop_default() 841 ++priv->tx_tail; in ipoib_ib_dev_stop_default()
|
| H A D | ipoib_cm.c | 823 ++tx->tx_tail; in ipoib_cm_handle_tx_wc() 1206 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy() 1214 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1217 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy() 1227 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1228 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; in ipoib_cm_tx_destroy() 1232 ++p->tx_tail; in ipoib_cm_tx_destroy()
|
| /linux/include/uapi/linux/ |
| H A D | hdlcdrv.h | 28 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member
|
| /linux/drivers/net/ethernet/ti/ |
| H A 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/drivers/net/ethernet/amd/ |
| H A D | au1000_eth.h | 79 u32 tx_tail; member
|
| H A 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/drivers/net/ethernet/calxeda/ |
| H A D | xgmac.c | 363 unsigned int tx_tail; member 401 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ) 767 priv->tx_tail = 0; in xgmac_dma_desc_rings_init() 866 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete() 867 unsigned int entry = priv->tx_tail; in xgmac_tx_complete() 876 priv->tx_head, priv->tx_tail); in xgmac_tx_complete() 892 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete() 922 priv->tx_tail = 0; in xgmac_tx_timeout_work()
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A 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()
|
| H A D | ether1.h | 40 volatile unsigned int tx_tail; member
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_cmd.h | 95 __le16 tx_tail; member
|
| /linux/drivers/slimbus/ |
| H A D | qcom-ngd-ctrl.c | 175 int tx_tail; member 535 if ((ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM == ctrl->tx_head) { in qcom_slim_ngd_tx_msg_get() 539 desc = &ctrl->txdesc[ctrl->tx_tail]; in qcom_slim_ngd_tx_msg_get() 540 desc->base = ctrl->tx_base + ctrl->tx_tail * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_tx_msg_get() 542 ctrl->tx_tail = (ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM; in qcom_slim_ngd_tx_msg_get() 734 ctrl->tx_tail = 0; in qcom_slim_ngd_init_tx_msgq()
|