Home
last modified time | relevance | path

Searched refs:NUM_RX_DESC (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/sis/
Dsis900.h324 #define NUM_RX_DESC 16 /* Number of Rx descriptor registers. */ macro
326 #define RX_TOTAL_SIZE NUM_RX_DESC*sizeof(BufferDesc)
Dsis190.c51 #define NUM_RX_DESC 64 /* [8..8192] */ macro
53 #define RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
279 struct sk_buff *Rx_skbuff[NUM_RX_DESC];
518 unsigned int i = cur % NUM_RX_DESC; in sis190_rx_fill()
581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt()
585 unsigned int entry = cur_rx % NUM_RX_DESC; in sis190_rx_interrupt()
646 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt()
802 for (i = 0; i < NUM_RX_DESC; i++) { in sis190_rx_clear()
821 memset(tp->Rx_skbuff, 0x0, NUM_RX_DESC * sizeof(struct sk_buff *)); in sis190_init_ring()
823 if (sis190_rx_fill(tp, dev, 0, NUM_RX_DESC) != NUM_RX_DESC) in sis190_init_ring()
[all …]
Dsis900.c184 struct sk_buff *rx_skbuff[NUM_RX_DESC];
1168 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1172 ((i+1)%NUM_RX_DESC)*sizeof(BufferDesc); in sis900_init_rx_ring()
1178 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1201 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring()
1737 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1745 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1843 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1852 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
1984 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_close()
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Dde4x5.c753 #define NUM_RX_DESC 8 /* Number of RX descriptors */ macro
793 struct sk_buff *rx_skb[NUM_RX_DESC]; /* RX skb's */
1168 lp->dma_size = (NUM_RX_DESC + NUM_TX_DESC) * sizeof(struct de4x5_desc); in de4x5_hw_init()
1170 lp->dma_size += RX_BUFF_SZ * NUM_RX_DESC + DE4X5_ALIGN; in de4x5_hw_init()
1178 lp->tx_ring = lp->rx_ring + NUM_RX_DESC; in de4x5_hw_init()
1185 for (i=0; i<NUM_RX_DESC; i++) { in de4x5_hw_init()
1197 dma_rx_bufs = lp->dma_rings + (NUM_RX_DESC + NUM_TX_DESC) in de4x5_hw_init()
1200 lp->rx_bufs = (char *)(((long)(lp->rx_ring + NUM_RX_DESC in de4x5_hw_init()
1202 for (i=0; i<NUM_RX_DESC; i++) { in de4x5_hw_init()
1216 lp->rxRingSize = NUM_RX_DESC; in de4x5_hw_init()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
Dr8169_main.c71 #define NUM_RX_DESC 256U /* Number of Rx descriptor registers */ macro
73 #define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
610 struct page *Rx_databuff[NUM_RX_DESC]; /* Rx data buffers */
3898 for (i = 0; i < NUM_RX_DESC && tp->Rx_databuff[i]; i++) { in rtl8169_rx_clear()
3913 for (i = 0; i < NUM_RX_DESC; i++) { in rtl8169_rx_fill()
3925 tp->RxDescArray[NUM_RX_DESC - 1].opts1 |= cpu_to_le32(RingEnd); in rtl8169_rx_fill()
4026 for (i = 0; i < NUM_RX_DESC; i++) in rtl_reset_work()
4541 for (rx_left = min(budget, NUM_RX_DESC); rx_left > 0; rx_left--, cur_rx++) { in rtl_rx()
4542 unsigned int pkt_size, entry = cur_rx % NUM_RX_DESC; in rtl_rx()