Home
last modified time | relevance | path

Searched refs:TX_DESC_NUM (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/moxa/
Dmoxart_ether.h57 #define TX_DESC_NUM 64 macro
58 #define TX_DESC_NUM_MASK (TX_DESC_NUM - 1)
310 dma_addr_t tx_mapping[TX_DESC_NUM];
318 unsigned int tx_len[TX_DESC_NUM];
319 struct sk_buff *tx_skb[TX_DESC_NUM];
Dmoxart_ether.c84 dma_free_coherent(NULL, TX_REG_DESC_SIZE * TX_DESC_NUM, in moxart_mac_free_memory()
129 for (i = 0; i < TX_DESC_NUM; i++) { in moxart_mac_setup_desc_ring()
285 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
495 TX_DESC_NUM, &priv->tx_base, in moxart_mac_probe()
510 priv->tx_buf_base = kmalloc_array(priv->tx_buf_size, TX_DESC_NUM, in moxart_mac_probe()
/Linux-v4.19/drivers/net/ethernet/hisilicon/
Dhip04_eth.c115 #define TX_DESC_NUM 256 macro
116 #define TX_NEXT(N) (((N) + 1) & (TX_DESC_NUM-1))
164 struct sk_buff *tx_skb[TX_DESC_NUM];
165 dma_addr_t tx_phys[TX_DESC_NUM];
188 return (head - tail) % (TX_DESC_NUM - 1); in tx_count()
410 if (unlikely(netif_queue_stopped(ndev)) && (count < (TX_DESC_NUM - 1))) in hip04_tx_reclaim()
435 if (count == (TX_DESC_NUM - 1)) { in hip04_mac_start_xmit()
774 TX_DESC_NUM * sizeof(struct tx_desc), in hip04_alloc_ring()
799 for (i = 0; i < TX_DESC_NUM; i++) in hip04_free_ring()
803 dma_free_coherent(d, TX_DESC_NUM * sizeof(struct tx_desc), in hip04_free_ring()
[all …]
Dhix5hd2_gmac.c177 #define TX_DESC_NUM 1024 macro
255 struct sk_buff *tx_skb[TX_DESC_NUM];
407 hix5hd2_set_desc_depth(priv, RX_DESC_NUM, TX_DESC_NUM); in hix5hd2_hw_init()
606 num = CIRC_CNT(end, start, TX_DESC_NUM); in hix5hd2_xmit_reclaim()
629 pos = dma_ring_incr(pos, TX_DESC_NUM); in hix5hd2_xmit_reclaim()
786 pos = dma_ring_incr(pos, TX_DESC_NUM); in hix5hd2_net_xmit()
816 for (i = 0; i < TX_DESC_NUM; i++) { in hix5hd2_free_dma_desc_rings()
1004 priv->tx_bq.count = TX_DESC_NUM; in hix5hd2_init_hw_desc_queue()
1005 priv->tx_rq.count = TX_DESC_NUM; in hix5hd2_init_hw_desc_queue()
1032 TX_DESC_NUM * sizeof(struct sg_desc), in hix5hd2_init_sg_desc_queue()
[all …]