| /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 | 479 unsigned int tx_tail; member 533 return READ_ONCE(priv->tx_tail) & (RKCANFD_TXFIFO_DEPTH - 1); in rkcanfd_get_tx_tail() 539 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/ethernet/hisilicon/ |
| H A 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/tools/testing/selftests/vfio/lib/drivers/igb/ |
| H A D | igb.c | 59 u32 tx_tail; member 372 igb->tx_tail = 0; in igb_hw_init() 450 tx = &igb->tx_ring[igb->tx_tail]; in igb_memcpy_start() 481 igb->tx_tail = (igb->tx_tail + 1) % RING_SIZE; in igb_memcpy_start() 486 igb_write32(igb, E1000_TDT(0), igb->tx_tail); in igb_memcpy_start()
|
| /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/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/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/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()
|
| /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/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_cmd.h | 95 __le16 tx_tail; member
|
| /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/calxeda/ |
| H A D | xgmac.c | 362 unsigned int tx_tail; member 400 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ) 766 priv->tx_tail = 0; in xgmac_dma_desc_rings_init() 865 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete() 866 unsigned int entry = priv->tx_tail; in xgmac_tx_complete() 875 priv->tx_head, priv->tx_tail); in xgmac_tx_complete() 891 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete() 921 priv->tx_tail = 0; in xgmac_tx_timeout_work()
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_main.c | 655 if (READ_ONCE(queue->tx_head) != READ_ONCE(queue->tx_tail)) in macb_tx_all_queues_idle() 813 tail = queue->tx_tail; in gem_shuffle_tx_one_ring() 822 queue->tx_tail = 0; in gem_shuffle_tx_one_ring() 867 queue->tx_tail = 0; in gem_shuffle_tx_one_ring() 1271 __func__, q, queue->tx_tail, queue->tx_head); in macb_tx_error_task() 1298 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { in macb_tx_error_task() 1359 queue->tx_tail = 0; in macb_tx_error_task() 1418 for (tail = queue->tx_tail; tail != head && packets < budget; tail++) { in macb_tx_complete() 1474 queue->tx_tail = tail; in macb_tx_complete() 1476 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_complete() [all …]
|
| /linux/drivers/net/ethernet/moxa/ |
| H A D | moxart_ether.h | 321 unsigned int tx_tail; member
|
| /linux/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-core.c | 1300 u8 chip_tx_tail, tx_tail, offset; in mcp251xfd_handle_eccif_recover() local 1310 tx_tail = mcp251xfd_get_tx_tail(tx_ring); in mcp251xfd_handle_eccif_recover() 1318 if (chip_tx_tail != tx_tail || in mcp251xfd_handle_eccif_recover() 1323 addr, nr, tx_ring->tail, tx_tail, chip_tx_tail, in mcp251xfd_handle_eccif_recover() 1332 addr, nr, tx_ring->tail, tx_tail, offset); in mcp251xfd_handle_eccif_recover()
|