Home
last modified time | relevance | path

Searched refs:tx_free (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/
Dlantiq_xrx200.c56 int tx_free; member
249 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->tx_free]; in xrx200_tx_housekeeping()
252 struct sk_buff *skb = ch->skb[ch->tx_free]; in xrx200_tx_housekeeping()
256 ch->skb[ch->tx_free] = NULL; in xrx200_tx_housekeeping()
258 memset(&ch->dma.desc_base[ch->tx_free], 0, in xrx200_tx_housekeeping()
260 ch->tx_free++; in xrx200_tx_housekeeping()
261 ch->tx_free %= LTQ_DESC_NUM; in xrx200_tx_housekeeping()
318 if (ch->dma.desc == ch->tx_free) in xrx200_start_xmit()
391 goto tx_free; in xrx200_dma_init()
396 tx_free: in xrx200_dma_init()
Dlantiq_etop.c81 int tx_free; member
97 int tx_free[MAX_DMA_CHAN >> 1]; member
179 while ((ch->dma.desc_base[ch->tx_free].ctl & in ltq_etop_poll_tx()
181 dev_kfree_skb_any(ch->skb[ch->tx_free]); in ltq_etop_poll_tx()
182 ch->skb[ch->tx_free] = NULL; in ltq_etop_poll_tx()
183 memset(&ch->dma.desc_base[ch->tx_free], 0, in ltq_etop_poll_tx()
185 ch->tx_free++; in ltq_etop_poll_tx()
186 ch->tx_free %= LTQ_DESC_NUM; in ltq_etop_poll_tx()
/Linux-v5.4/drivers/net/fddi/skfp/
Dhwmtm.c370 queue->tx_free = HWM_ASYNC_TXD_COUNT ; in init_txd_ring()
383 queue->tx_free = HWM_SYNC_TXD_COUNT ; in init_txd_ring()
594 for (i = tx_used+queue->tx_free-1 ; i ; i-- ) { in repair_txd_ring()
1578 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1581 if (frag_count > smc->os.hwm.tx_p->tx_free) { in hwm_tx_init()
1593 NDD_TRACE("THiE",frame_status,smc->os.hwm.tx_p->tx_free,0) ; in hwm_tx_init()
1665 queue->tx_free-- ; in hwm_tx_frag()
1723 NDD_TRACE("THfE",t,queue->tx_free,0) ; in hwm_tx_frag()
1859 if (!smc->hw.mac_ring_is_up || frag_count > queue->tx_free) { in smt_send_mbuf()
1903 queue->tx_free-- ; in smt_send_mbuf()
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c109 if (fep->tx_free == fep->tx_ring) in fs_enet_napi()
178 if (++fep->tx_free == MAX_SKB_FRAGS) in fs_enet_napi()
371 fep->tx_free = fep->tx_ring; in fs_init_bds()
532 if (fep->tx_free <= nr_frags || (CBDR_SC(bdp) & BD_ENET_TX_READY)) { in fs_enet_start_xmit()
550 fep->tx_free -= nr_frags + 1; in fs_enet_start_xmit()
605 if (fep->tx_free < MAX_SKB_FRAGS) in fs_enet_start_xmit()
636 wake = fep->tx_free >= MAX_SKB_FRAGS && in fs_timeout_work()
Dfs_enet.h141 int tx_free; member
/Linux-v5.4/drivers/net/ethernet/aeroflex/
Dgreth.c185 while (greth->tx_free < GRETH_TXBD_NUM) { in greth_clean_rings()
208 greth->tx_free += nr_frags+1; in greth_clean_rings()
325 greth->tx_free = GRETH_TXBD_NUM; in greth_init_rings()
404 if (unlikely(greth->tx_free <= 0)) { in greth_start_xmit()
440 greth->tx_free--; in greth_start_xmit()
634 if (greth->tx_free == GRETH_TXBD_NUM) in greth_clean_tx()
648 greth->tx_free++; in greth_clean_tx()
651 if (greth->tx_free > 0) { in greth_clean_tx()
Dgreth.h111 u16 tx_free; /* only used on 10/100Mbit */ member
/Linux-v5.4/drivers/net/fddi/skfp/h/
Dfplustm.h94 u_short tx_free ; /* count of free TxD's */ member
/Linux-v5.4/drivers/net/ethernet/aurora/
Dnb8800.h269 atomic_t tx_free; member
Dnb8800.c399 if (atomic_read(&priv->tx_free) <= NB8800_DESC_LOW) { in nb8800_xmit()
418 if (atomic_dec_return(&priv->tx_free) <= NB8800_DESC_LOW) { in nb8800_xmit()
530 atomic_add(packets, &priv->tx_free); in nb8800_tx_done()
818 atomic_set(&priv->tx_free, TX_DESC_COUNT); in nb8800_dma_reset()
/Linux-v5.4/drivers/net/ethernet/dec/tulip/
Dde2104x.c607 unsigned int entry, tx_free; in de_start_xmit() local
613 tx_free = TX_BUFFS_AVAIL(de); in de_start_xmit()
614 if (tx_free == 0) { in de_start_xmit()
619 tx_free--; in de_start_xmit()
629 if (!tx_free || (tx_free == (DE_TX_RING_SIZE / 2))) in de_start_xmit()
646 if (tx_free == 0) in de_start_xmit()
/Linux-v5.4/drivers/spi/
Dspi-lantiq-ssc.c482 unsigned int tx_free = tx_fifo_free(spi); in tx_fifo_write() local
484 while (spi->tx_todo && tx_free) { in tx_fifo_write()
511 tx_free--; in tx_fifo_write()
Dspi-rockchip.c269 u32 tx_free = rs->fifo_len - readl_relaxed(rs->regs + ROCKCHIP_SPI_TXFLR); in rockchip_spi_pio_writer() local
270 u32 words = min(rs->tx_left, tx_free); in rockchip_spi_pio_writer()
/Linux-v5.4/drivers/net/usb/
Dr8152.c727 struct list_head rx_done, tx_free; member
1420 list_add_tail(&agg->list, &tp->tx_free); in write_bulk_callback()
1607 INIT_LIST_HEAD(&tp->tx_free); in alloc_all_mem()
1646 list_add_tail(&tp->tx_info[i].list, &tp->tx_free); in alloc_all_mem()
1674 if (list_empty(&tp->tx_free)) in r8152_get_tx_agg()
1678 if (!list_empty(&tp->tx_free)) { in r8152_get_tx_agg()
1681 cursor = tp->tx_free.next; in r8152_get_tx_agg()
2206 list_add_tail(&agg->list, &tp->tx_free); in tx_bottom()
2398 if (!list_empty(&tp->tx_free)) { in rtl8152_start_xmit()
/Linux-v5.4/drivers/net/ethernet/alteon/
Dacenic.h709 #define tx_free(ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap) macro