Home
last modified time | relevance | path

Searched refs:cur_tx (Results 1 - 25 of 104) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
H A Datarilance.c222 int cur_rx, cur_tx; /* The next free ring entry */ member
689 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
747 DPRINTK( 2, ( "Ring data: dirty_tx %d cur_tx %d%s cur_rx %d\n", in lance_tx_timeout()
748 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout()
815 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit()
829 lp->cur_tx++; in lance_start_xmit()
830 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit()
831 lp->cur_tx -= TX_RING_SIZE; in lance_start_xmit()
885 while( dirty_tx < lp->cur_tx) { in lance_interrupt()
921 if (lp->cur_tx in lance_interrupt()
[all...]
H A Dariadne.c92 int cur_tx, cur_rx; /* The next free ring entry */ member
125 priv->cur_rx = priv->cur_tx = 0; in ariadne_init_ring()
308 while (dirty_tx < priv->cur_tx) { in ariadne_interrupt()
345 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) { in ariadne_interrupt()
347 dirty_tx, priv->cur_tx, in ariadne_interrupt()
354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) { in ariadne_interrupt()
576 entry = priv->cur_tx % TX_RING_SIZE; in ariadne_start_xmit()
596 priv->cur_tx++; in ariadne_start_xmit()
597 if ((priv->cur_tx >= TX_RING_SIZE) && in ariadne_start_xmit()
600 netdev_dbg(dev, "*** Subtracting TX_RING_SIZE from cur_tx ( in ariadne_start_xmit()
[all...]
H A Dlance.c248 int cur_rx, cur_tx; /* The next free ring entry */ member
866 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
929 printk (" Ring data dump: dirty_tx %d cur_tx %d%s cur_rx %d.", in lance_tx_timeout()
930 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", in lance_tx_timeout()
970 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit()
1005 lp->cur_tx++; in lance_start_xmit()
1011 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit()
1050 while (dirty_tx < lp->cur_tx) { in lance_interrupt()
1094 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt()
1096 dirty_tx, lp->cur_tx, in lance_interrupt()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/
H A Datarilance.c222 int cur_rx, cur_tx; /* The next free ring entry */ member
688 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
746 DPRINTK( 2, ( "Ring data: dirty_tx %d cur_tx %d%s cur_rx %d\n", in lance_tx_timeout()
747 lp->dirty_tx, lp->cur_tx, in lance_tx_timeout()
814 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit()
828 lp->cur_tx++; in lance_start_xmit()
829 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit()
830 lp->cur_tx -= TX_RING_SIZE; in lance_start_xmit()
884 while( dirty_tx < lp->cur_tx) { in lance_interrupt()
920 if (lp->cur_tx in lance_interrupt()
[all...]
H A Dariadne.c92 int cur_tx, cur_rx; /* The next free ring entry */ member
125 priv->cur_rx = priv->cur_tx = 0; in ariadne_init_ring()
308 while (dirty_tx < priv->cur_tx) { in ariadne_interrupt()
345 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) { in ariadne_interrupt()
347 dirty_tx, priv->cur_tx, in ariadne_interrupt()
354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) { in ariadne_interrupt()
576 entry = priv->cur_tx % TX_RING_SIZE; in ariadne_start_xmit()
596 priv->cur_tx++; in ariadne_start_xmit()
597 if ((priv->cur_tx >= TX_RING_SIZE) && in ariadne_start_xmit()
600 netdev_dbg(dev, "*** Subtracting TX_RING_SIZE from cur_tx ( in ariadne_start_xmit()
[all...]
H A Dlance.c249 int cur_rx, cur_tx; /* The next free ring entry */ member
871 lp->cur_rx = lp->cur_tx = 0; in lance_init_ring()
934 printk (" Ring data dump: dirty_tx %d cur_tx %d%s cur_rx %d.", in lance_tx_timeout()
935 lp->dirty_tx, lp->cur_tx, netif_queue_stopped(dev) ? " (full)" : "", in lance_tx_timeout()
975 entry = lp->cur_tx & TX_RING_MOD_MASK; in lance_start_xmit()
1010 lp->cur_tx++; in lance_start_xmit()
1016 if ((lp->cur_tx - lp->dirty_tx) >= TX_RING_SIZE) in lance_start_xmit()
1055 while (dirty_tx < lp->cur_tx) { in lance_interrupt()
1099 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt()
1101 dirty_tx, lp->cur_tx, in lance_interrupt()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ethtool.c44 layout.cur_tx != priv->tx->obj_num) && in mcp251xfd_ring_set_ringparam()
50 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_ringparam()
112 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_coalesce()
H A Dmcp251xfd-ram.c144 layout->cur_tx = num_tx; in can_ram_get_layout()
149 layout->cur_tx = layout->default_tx; in can_ram_get_layout()
/kernel/linux/linux-5.10/drivers/net/arcnet/
H A Darcnet.c570 lp->cur_tx = lp->next_tx = -1; in arcnet_open()
712 lp->hw.status(dev), lp->cur_tx, lp->next_tx, skb->len, skb->protocol); in arcnet_send_packet()
792 arc_printk(D_DURING, dev, "go_tx: status=%Xh, intmask=%Xh, next_tx=%d, cur_tx=%d\n", in go_tx()
793 lp->hw.status(dev), lp->intmask, lp->next_tx, lp->cur_tx); in go_tx()
795 if (lp->cur_tx != -1 || lp->next_tx == -1) in go_tx()
801 lp->cur_tx = lp->next_tx; in go_tx()
805 lp->hw.command(dev, TXcmd | (lp->cur_tx << 3)); in go_tx()
831 lp->hw.command(dev, NOTXcmd | (lp->cur_tx << 3)); in arcnet_timeout()
848 if (lp->cur_tx == -1) in arcnet_timeout()
968 if (lp->cur_tx ! in arcnet_interrupt()
[all...]
/kernel/linux/linux-6.6/drivers/net/arcnet/
H A Darcnet.c565 lp->cur_tx = lp->next_tx = -1; in arcnet_open()
707 lp->hw.status(dev), lp->cur_tx, lp->next_tx, skb->len, skb->protocol); in arcnet_send_packet()
787 arc_printk(D_DURING, dev, "go_tx: status=%Xh, intmask=%Xh, next_tx=%d, cur_tx=%d\n", in go_tx()
788 lp->hw.status(dev), lp->intmask, lp->next_tx, lp->cur_tx); in go_tx()
790 if (lp->cur_tx != -1 || lp->next_tx == -1) in go_tx()
796 lp->cur_tx = lp->next_tx; in go_tx()
800 lp->hw.command(dev, TXcmd | (lp->cur_tx << 3)); in go_tx()
826 lp->hw.command(dev, NOTXcmd | (lp->cur_tx << 3)); in arcnet_timeout()
843 if (lp->cur_tx == -1) in arcnet_timeout()
963 if (lp->cur_tx ! in arcnet_interrupt()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/
H A Dfealnx.c396 struct fealnx_desc *cur_tx; member
1144 iowrite32(np->tx_ring_dma + ((char*)np->cur_tx - (char*)np->tx_ring), in enable_rxtx()
1269 np->cur_tx = &np->tx_ring[0]; in init_ring()
1377 np->cur_tx = &np->tx_ring[0]; in reset_tx_descriptors()
1486 long tx_status = np->cur_tx->status; in intr_handler()
1487 long tx_control = np->cur_tx->control; in intr_handler()
1492 next = np->cur_tx->next_desc_logical; in intr_handler()
1530 np->cur_tx->buffer, in intr_handler()
1531 np->cur_tx->skbuff->len, in intr_handler()
1533 dev_consume_skb_irq(np->cur_tx in intr_handler()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/
H A Dfealnx.c396 struct fealnx_desc *cur_tx; member
1146 iowrite32(np->tx_ring_dma + ((char*)np->cur_tx - (char*)np->tx_ring), in enable_rxtx()
1271 np->cur_tx = &np->tx_ring[0]; in init_ring()
1379 np->cur_tx = &np->tx_ring[0]; in reset_tx_descriptors()
1488 long tx_status = np->cur_tx->status; in intr_handler()
1489 long tx_control = np->cur_tx->control; in intr_handler()
1494 next = np->cur_tx->next_desc_logical; in intr_handler()
1532 np->cur_tx->buffer, in intr_handler()
1533 np->cur_tx->skbuff->len, in intr_handler()
1535 dev_consume_skb_irq(np->cur_tx in intr_handler()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c301 if (tx_q->dirty_tx > tx_q->cur_tx) in stmmac_tx_avail()
302 avail = tx_q->dirty_tx - tx_q->cur_tx - 1; in stmmac_tx_avail()
304 avail = priv->dma_tx_size - tx_q->cur_tx + tx_q->dirty_tx - 1; in stmmac_tx_avail()
342 if (tx_q->dirty_tx != tx_q->cur_tx) in stmmac_enable_eee_mode()
1553 tx_q->cur_tx = 0; in init_dma_tx_desc_rings()
2056 while ((entry != tx_q->cur_tx) && (count < budget)) { in stmmac_tx_clean()
2145 if (tx_q->dirty_tx != tx_q->cur_tx) in stmmac_tx_clean()
2170 tx_q->cur_tx = 0; in stmmac_tx_err()
3083 p = &tx_q->dma_entx[tx_q->cur_tx].basic; in stmmac_vlan_insert()
3085 p = &tx_q->dma_tx[tx_q->cur_tx]; in stmmac_vlan_insert()
[all...]
H A Dchain_mode.c22 unsigned int entry = tx_q->cur_tx; in jumbo_frm()
81 tx_q->cur_tx = entry; in jumbo_frm()
H A Dring_mode.c22 unsigned int entry = tx_q->cur_tx; in jumbo_frm()
89 tx_q->cur_tx = entry; in jumbo_frm()
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
H A Dtulip_core.c323 tp->cur_rx = tp->cur_tx = 0; in tulip_up()
356 tp->tx_buffers[tp->cur_tx].skb = NULL; in tulip_up()
357 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up()
360 tp->tx_ring[tp->cur_tx].length = cpu_to_le32(0x08000000 | 192); in tulip_up()
361 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); in tulip_up()
362 tp->tx_ring[tp->cur_tx].status = cpu_to_le32(DescOwned); in tulip_up()
364 tp->cur_tx++; in tulip_up()
664 entry = tp->cur_tx % TX_RING_SIZE; in tulip_start_xmit()
672 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit()
674 } else if (tp->cur_tx in tulip_start_xmit()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/dlink/
H A Dsundance.c391 unsigned int cur_tx, dirty_tx; member
987 printk(KERN_DEBUG "cur_tx=%d(%02x) dirty_tx=%d(%02x)\n", in tx_timeout()
988 np->cur_tx, np->cur_tx % TX_RING_SIZE, in tx_timeout()
1003 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout()
1017 np->cur_rx = np->cur_tx = 0; in init_ring()
1064 &np->tx_ring[(np->cur_tx - 1) % TX_RING_SIZE]; in tx_poll()
1067 for (; np->cur_tx - np->cur_task > 0; np->cur_task++) { in tx_poll()
1092 entry = np->cur_tx % TX_RING_SIZE; in start_tx()
1105 /* Increment cur_tx befor in start_tx()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/
H A Dyellowfin.c326 unsigned int cur_tx, dirty_tx; member
691 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout()
716 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout()
730 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring()
821 "ownership" bit last, and only then increment cur_tx. */ in yellowfin_start_xmit()
824 entry = yp->cur_tx % TX_RING_SIZE; in yellowfin_start_xmit()
855 yp->cur_tx++; in yellowfin_start_xmit()
864 yp->cur_tx++; in yellowfin_start_xmit()
866 unsigned next_entry = yp->cur_tx % TX_RING_SIZE; in yellowfin_start_xmit()
881 if (yp->cur_tx in yellowfin_start_xmit()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/dlink/
H A Dsundance.c391 unsigned int cur_tx, dirty_tx; member
989 printk(KERN_DEBUG "cur_tx=%d(%02x) dirty_tx=%d(%02x)\n", in tx_timeout()
990 np->cur_tx, np->cur_tx % TX_RING_SIZE, in tx_timeout()
1005 if (np->cur_tx - np->dirty_tx < TX_QUEUE_LEN - 4) { in tx_timeout()
1019 np->cur_rx = np->cur_tx = 0; in init_ring()
1066 &np->tx_ring[(np->cur_tx - 1) % TX_RING_SIZE]; in tx_poll()
1069 for (; np->cur_tx - np->cur_task > 0; np->cur_task++) { in tx_poll()
1094 entry = np->cur_tx % TX_RING_SIZE; in start_tx()
1107 /* Increment cur_tx befor in start_tx()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/packetengines/
H A Dyellowfin.c326 unsigned int cur_tx, dirty_tx; member
693 yp->cur_tx, yp->dirty_tx, in yellowfin_tx_timeout()
718 if (yp->cur_tx - yp->dirty_tx < TX_QUEUE_SIZE) in yellowfin_tx_timeout()
732 yp->cur_rx = yp->cur_tx = 0; in yellowfin_init_ring()
823 "ownership" bit last, and only then increment cur_tx. */ in yellowfin_start_xmit()
826 entry = yp->cur_tx % TX_RING_SIZE; in yellowfin_start_xmit()
857 yp->cur_tx++; in yellowfin_start_xmit()
866 yp->cur_tx++; in yellowfin_start_xmit()
868 unsigned next_entry = yp->cur_tx % TX_RING_SIZE; in yellowfin_start_xmit()
883 if (yp->cur_tx in yellowfin_start_xmit()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/dec/tulip/
H A Dtulip_core.c323 tp->cur_rx = tp->cur_tx = 0; in tulip_up()
356 tp->tx_buffers[tp->cur_tx].skb = NULL; in tulip_up()
357 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up()
360 tp->tx_ring[tp->cur_tx].length = cpu_to_le32(0x08000000 | 192); in tulip_up()
361 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); in tulip_up()
362 tp->tx_ring[tp->cur_tx].status = cpu_to_le32(DescOwned); in tulip_up()
364 tp->cur_tx++; in tulip_up()
664 entry = tp->cur_tx % TX_RING_SIZE; in tulip_start_xmit()
672 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit()
674 } else if (tp->cur_tx in tulip_start_xmit()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Dchain_mode.c22 unsigned int entry = tx_q->cur_tx; in jumbo_frm()
81 tx_q->cur_tx = entry; in jumbo_frm()
H A Dring_mode.c22 unsigned int entry = tx_q->cur_tx; in jumbo_frm()
89 tx_q->cur_tx = entry; in jumbo_frm()
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
H A Depic100.c267 unsigned int cur_tx, dirty_tx; member
788 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart()
878 netdev_dbg(dev, "Tx indices: dirty_tx %d, cur_tx %d.\n", in epic_tx_timeout()
879 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout()
903 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring()
960 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit()
961 entry = ep->cur_tx % TX_RING_SIZE; in epic_start_xmit()
983 ep->cur_tx++; in epic_start_xmit()
1022 unsigned int dirty_tx, cur_tx; in epic_tx() local
1028 cur_tx in epic_tx()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/smsc/
H A Depic100.c267 unsigned int cur_tx, dirty_tx; member
790 ep->cur_rx, ep->dirty_rx, ep->dirty_tx, ep->cur_tx); in epic_restart()
880 netdev_dbg(dev, "Tx indices: dirty_tx %d, cur_tx %d.\n", in epic_tx_timeout()
881 ep->dirty_tx, ep->cur_tx); in epic_tx_timeout()
905 ep->dirty_tx = ep->cur_tx = 0; in epic_init_ring()
962 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit()
963 entry = ep->cur_tx % TX_RING_SIZE; in epic_start_xmit()
985 ep->cur_tx++; in epic_start_xmit()
1024 unsigned int dirty_tx, cur_tx; in epic_tx() local
1030 cur_tx in epic_tx()
[all...]

Completed in 50 milliseconds

12345