Home
last modified time | relevance | path

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

/Linux-v6.6/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];
1175 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1179 ((i+1)%NUM_RX_DESC)*sizeof(BufferDesc); in sis900_init_rx_ring()
1185 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1208 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring()
1744 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1752 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1850 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1859 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
1991 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_close()
/Linux-v6.6/drivers/net/ethernet/realtek/
Dr8169_main.c69 #define NUM_RX_DESC 256 /* Number of Rx descriptor registers */ macro
71 #define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
607 struct page *Rx_databuff[NUM_RX_DESC]; /* Rx data buffers */
1939 data->rx_max_pending = NUM_RX_DESC; in rtl8169_get_ringparam()
1940 data->rx_pending = NUM_RX_DESC; in rtl8169_get_ringparam()
3838 for (i = 0; i < NUM_RX_DESC && tp->Rx_databuff[i]; i++) { in rtl8169_rx_clear()
3853 for (i = 0; i < NUM_RX_DESC; i++) { in rtl8169_rx_fill()
3865 tp->RxDescArray[NUM_RX_DESC - 1].opts1 |= cpu_to_le32(RingEnd); in rtl8169_rx_fill()
3962 for (i = 0; i < NUM_RX_DESC; i++) in rtl_reset_work()
4423 unsigned int pkt_size, entry = tp->cur_rx % NUM_RX_DESC; in rtl_rx()