Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/ethernet/moxa/
Dmoxart_ether.c140 priv->tx_tail = 0; in moxart_mac_setup_desc_ring()
287 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
294 unsigned int tx_tail = priv->tx_tail; in moxart_tx_finished() local
296 while (tx_tail != tx_head) { in moxart_tx_finished()
297 dma_unmap_single(&ndev->dev, priv->tx_mapping[tx_tail], in moxart_tx_finished()
298 priv->tx_len[tx_tail], DMA_TO_DEVICE); in moxart_tx_finished()
301 ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len; in moxart_tx_finished()
303 dev_consume_skb_irq(priv->tx_skb[tx_tail]); in moxart_tx_finished()
304 priv->tx_skb[tx_tail] = NULL; in moxart_tx_finished()
306 tx_tail = TX_NEXT(tx_tail); in moxart_tx_finished()
[all …]
/Linux-v5.4/drivers/net/ethernet/seeq/
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()
690 unsigned int tx_tail = priv(dev)->tx_tail; in ether3_tx() local
699 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600); in ether3_tx()
722 tx_tail = (tx_tail + 1) & 15; in ether3_tx()
725 if (priv(dev)->tx_tail != tx_tail) { in ether3_tx()
[all …]
Dether3.h162 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
/Linux-v5.4/drivers/net/ethernet/hisilicon/
Dhip04_eth.c248 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-v5.4/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
507 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt()
543 unsigned tx_tail = de->tx_tail; in de_tx() local
545 while (tx_tail != tx_head) { in de_tx()
550 status = le32_to_cpu(de->tx_ring[tx_tail].opts1); in de_tx()
554 skb = de->tx_skb[tx_tail].skb; in de_tx()
560 pci_unmap_single(de->pdev, de->tx_skb[tx_tail].mapping, in de_tx()
[all …]
/Linux-v5.4/drivers/net/ethernet/silan/
Dsc92031.c282 unsigned tx_tail; member
409 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
410 priv->tx_tail++; in _sc92031_tx_clear()
413 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
655 old_tx_tail = priv->tx_tail; in _sc92031_tx_tasklet()
656 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
657 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet()
663 priv->tx_tail++; in _sc92031_tx_tasklet()
689 if (priv->tx_tail != old_tx_tail) in _sc92031_tx_tasklet()
952 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit()
[all …]
/Linux-v5.4/arch/sparc/kernel/
Dldc.c124 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-v5.4/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)
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-v5.4/drivers/net/hamradio/
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()
1024 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_ioctl()
1034 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_ioctl()
Dhdlcdrv.c237 s->ch_params.tx_tail = data[1]; in do_kiss_params()
238 PKP("TX tail = %ums", s->ch_params.tx_tail); in do_kiss_params()
291 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail); in hdlcdrv_transmitter()
507 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_ioctl()
517 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_ioctl()
Ddmascc.c200 int tx_head, tx_tail, tx_count; member
745 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
978 (int) priv->tx_buf[priv->tx_tail] + n); in tx_on()
980 priv->tx_len[priv->tx_tail] - n); in tx_on()
997 priv->tx_buf[priv->tx_tail][i], 1); in tx_on()
1287 int i = priv->tx_tail, p = priv->tx_ptr; in tx_isr()
1324 i = priv->tx_tail; in es_isr()
1351 priv->tx_tail = (i + 1) % NUM_TX_BUF; in es_isr()
/Linux-v5.4/drivers/net/can/
Dti_hecc.c198 u32 tx_tail; member
209 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb()
371 priv->tx_tail = HECC_TX_MASK; in ti_hecc_start()
493 priv->tx_head, priv->tx_tail); in ti_hecc_xmit()
734 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
749 --priv->tx_tail; in ti_hecc_interrupt()
753 if ((priv->tx_head == priv->tx_tail && in ti_hecc_interrupt()
755 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
Dxilinx_can.c199 unsigned int tx_tail; member
376 priv->tx_tail = 0; in set_reset_mode()
649 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit_fifo()
1243 frames_in_fifo = priv->tx_head - priv->tx_tail; in xcan_tx_interrupt()
1285 stats->tx_bytes += can_get_echo_skb(ndev, priv->tx_tail % in xcan_tx_interrupt()
1287 priv->tx_tail++; in xcan_tx_interrupt()
/Linux-v5.4/drivers/net/can/rcar/
Drcar_can.c99 u32 tx_tail; member
383 if (priv->tx_head - priv->tx_tail <= unsent) in rcar_can_tx_done()
386 stats->tx_bytes += priv->tx_dlc[priv->tx_tail % in rcar_can_tx_done()
388 priv->tx_dlc[priv->tx_tail % RCAR_CAN_FIFO_DEPTH] = 0; in rcar_can_tx_done()
389 can_get_echo_skb(ndev, priv->tx_tail % RCAR_CAN_FIFO_DEPTH); in rcar_can_tx_done()
390 priv->tx_tail++; in rcar_can_tx_done()
628 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH) in rcar_can_start_xmit()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dtrace_tx.h410 __field(u16, tx_tail)
417 __entry->tx_tail = sde->tx_tail;
432 __entry->tx_tail
446 __field(u16, tx_tail)
453 __entry->tx_tail = sde->tx_tail;
466 __entry->tx_tail
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c409 ++priv->tx_tail; in ipoib_ib_handle_tx_wc()
412 ((priv->tx_head - priv->tx_tail) <= ipoib_sendq_size >> 1) && in ipoib_ib_handle_tx_wc()
637 if (priv->tx_head - priv->tx_tail == ipoib_sendq_size - 1) { in ipoib_send()
679 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in __ipoib_reap_ah()
793 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop_default()
797 priv->tx_head - priv->tx_tail, in ipoib_ib_dev_stop_default()
804 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { in ipoib_ib_dev_stop_default()
805 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop_default()
809 ++priv->tx_tail; in ipoib_ib_dev_stop_default()
Dipoib_cm.c759 if ((priv->tx_head - priv->tx_tail) == ipoib_sendq_size - 1) { in ipoib_cm_send()
822 ++tx->tx_tail; in ipoib_cm_handle_tx_wc()
823 ++priv->tx_tail; in ipoib_cm_handle_tx_wc()
826 (priv->tx_head - priv->tx_tail) <= ipoib_sendq_size >> 1 && in ipoib_cm_handle_tx_wc()
1208 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
1216 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1219 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy()
1229 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1230 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; in ipoib_cm_tx_destroy()
1234 ++p->tx_tail; in ipoib_cm_tx_destroy()
[all …]
/Linux-v5.4/include/uapi/linux/
Dhdlcdrv.h28 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member
/Linux-v5.4/drivers/net/ethernet/amd/
Dau1000_eth.h79 u32 tx_tail; member
Dau1000_eth.c711 aup->tx_tail = aup->tx_head; in au1000_init()
873 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
881 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); in au1000_tx_ack()
882 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
/Linux-v5.4/drivers/net/ethernet/i825xx/
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()
Dether1.h40 volatile unsigned int tx_tail; member
/Linux-v5.4/drivers/net/ethernet/ti/
Dtlan.c1076 tail_list = priv->tx_list + priv->tx_tail; in tlan_start_tx()
1078 priv->tx_list_dma + sizeof(struct tlan_list)*priv->tx_tail; in tlan_start_tx()
1083 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1107 priv->tx_tail); in tlan_start_tx()
1113 priv->tx_tail); in tlan_start_tx()
1114 if (priv->tx_tail == 0) { in tlan_start_tx()
1118 (priv->tx_list + (priv->tx_tail - 1))->forward in tlan_start_tx()
1124 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS); in tlan_start_tx()
1379 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1413 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
[all …]
/Linux-v5.4/drivers/slimbus/
Dqcom-ngd-ctrl.c165 int tx_tail; member
525 if ((ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM == ctrl->tx_head) { in qcom_slim_ngd_tx_msg_get()
529 desc = &ctrl->txdesc[ctrl->tx_tail]; in qcom_slim_ngd_tx_msg_get()
530 desc->base = ctrl->tx_base + ctrl->tx_tail * SLIM_MSGQ_BUF_LEN; in qcom_slim_ngd_tx_msg_get()
532 ctrl->tx_tail = (ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM; in qcom_slim_ngd_tx_msg_get()
722 ctrl->tx_tail = 0; in qcom_slim_ngd_init_tx_msgq()
/Linux-v5.4/drivers/net/ethernet/calxeda/
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