Home
last modified time | relevance | path

Searched refs:RX_RING_SIZE (Results 1 - 25 of 102) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
H A Dsungem.h884 #define RX_RING_SIZE 128 macro
908 #if RX_RING_SIZE == 32
910 #elif RX_RING_SIZE == 64
912 #elif RX_RING_SIZE == 128
914 #elif RX_RING_SIZE == 256
916 #elif RX_RING_SIZE == 512
918 #elif RX_RING_SIZE == 1024
920 #elif RX_RING_SIZE == 2048
922 #elif RX_RING_SIZE == 4096
924 #elif RX_RING_SIZE
[all...]
H A Dsunhme.h332 #define RX_RING_SIZE 32 /* see ERX_CFG_SIZE* for possible values */ macro
342 #if (RX_RING_SIZE == 32)
345 #if (RX_RING_SIZE == 64)
348 #if (RX_RING_SIZE == 128)
351 #if (RX_RING_SIZE == 256)
354 #error RX_RING_SIZE holds illegal value
360 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1))
362 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1))
417 struct sk_buff *rx_skbs[RX_RING_SIZE];
H A Dsunbmac.h252 #define RX_RING_SIZE 256 macro
254 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1))
256 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1))
299 struct sk_buff *rx_skbs[RX_RING_SIZE];
/kernel/linux/linux-6.6/drivers/net/ethernet/sun/
H A Dsungem.h884 #define RX_RING_SIZE 128 macro
908 #if RX_RING_SIZE == 32
910 #elif RX_RING_SIZE == 64
912 #elif RX_RING_SIZE == 128
914 #elif RX_RING_SIZE == 256
916 #elif RX_RING_SIZE == 512
918 #elif RX_RING_SIZE == 1024
920 #elif RX_RING_SIZE == 2048
922 #elif RX_RING_SIZE == 4096
924 #elif RX_RING_SIZE
[all...]
H A Dsunhme.h332 #define RX_RING_SIZE 32 /* see ERX_CFG_SIZE* for possible values */ macro
342 #if (RX_RING_SIZE == 32)
345 #if (RX_RING_SIZE == 64)
348 #if (RX_RING_SIZE == 128)
351 #if (RX_RING_SIZE == 256)
354 #error RX_RING_SIZE holds illegal value
360 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1))
362 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1))
417 struct sk_buff *rx_skbs[RX_RING_SIZE];
H A Dsunbmac.h252 #define RX_RING_SIZE 256 macro
254 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1))
256 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1))
299 struct sk_buff *rx_skbs[RX_RING_SIZE];
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
H A Dinterrupt.c67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx()
116 int entry = tp->cur_rx % RX_RING_SIZE; in tulip_poll()
127 if (budget >=RX_RING_SIZE) budget--; in tulip_poll()
148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll()
264 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
265 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll()
321 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
343 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll()
344 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
347 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE] in tulip_poll()
[all...]
H A Dwinbond-840.c286 dma_addr_t rx_addr[RX_RING_SIZE];
291 struct sk_buff* rx_skbuff[RX_RING_SIZE];
787 np->tx_ring = (struct w840_tx_desc*)&np->rx_ring[RX_RING_SIZE]; in init_rxtx_rings()
790 for (i = 0; i < RX_RING_SIZE; i++) { in init_rxtx_rings()
799 for (i = 0; i < RX_RING_SIZE; i++) { in init_rxtx_rings()
813 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_rxtx_rings()
824 iowrite32(np->ring_dma_addr+sizeof(struct w840_rx_desc)*RX_RING_SIZE, in init_rxtx_rings()
833 for (i = 0; i < RX_RING_SIZE; i++) { in free_rxtx_rings()
923 for (i = 0; i < RX_RING_SIZE; i++) in tx_timeout()
965 sizeof(struct w840_rx_desc) * RX_RING_SIZE in alloc_ringdesc()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/dec/tulip/
H A Dinterrupt.c67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx()
116 int entry = tp->cur_rx % RX_RING_SIZE; in tulip_poll()
127 if (budget >=RX_RING_SIZE) budget--; in tulip_poll()
148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll()
264 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll()
265 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll()
321 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
343 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll()
344 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll()
347 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE] in tulip_poll()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
H A D7990.h40 #define RX_RING_SIZE (1 << LANCE_LOG_RX_BUFFERS) macro
42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
88 volatile struct lance_rx_desc brx_ring[RX_RING_SIZE];
91 volatile char rx_buf[RX_RING_SIZE][RX_BUFF_SIZE];
H A Dariadne.c81 #define RX_RING_SIZE 16 macro
89 volatile struct RDRE *rx_ring[RX_RING_SIZE];
91 volatile u_short *rx_buff[RX_RING_SIZE];
101 struct RDRE rx_ring[RX_RING_SIZE];
103 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE / sizeof(u_short)];
145 for (i = 0; i < RX_RING_SIZE; i++) { in ariadne_init_ring()
164 int entry = priv->cur_rx % RX_RING_SIZE; in ariadne_rx()
197 for (i = 0; i < RX_RING_SIZE; i++) in ariadne_rx()
198 if (lowb(priv->rx_ring[(entry + i) % RX_RING_SIZE]->RMD1) & RF_OWN) in ariadne_rx()
201 if (i > RX_RING_SIZE in ariadne_rx()
[all...]
H A Ddeclance.c159 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro
160 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
222 struct lance_rx_desc brx_ring[RX_RING_SIZE];
267 char *rx_buf_ptr_cpu[RX_RING_SIZE];
271 uint rx_buf_ptr_lnc[RX_RING_SIZE];
511 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring()
570 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
1087 for (i = 0; i < RX_RING_SIZE; i++) { in dec_lance_probe()
1097 2 * RX_RING_SIZE * RX_BUFF_SIZE + in dec_lance_probe()
1101 RX_RING_SIZE * RX_BUFF_SIZ in dec_lance_probe()
[all...]
H A Da2065.c73 #define RX_RING_SIZE (1 << LANCE_LOG_RX_BUFFERS) macro
76 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
96 struct lance_rx_desc brx_ring[RX_RING_SIZE];
99 char rx_buf[RX_RING_SIZE][RX_BUFF_SIZE];
251 char buf[RX_RING_SIZE + 1]; in lance_rx()
253 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
260 buf[RX_RING_SIZE] = 0; in lance_rx()
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/
H A D7990.h40 #define RX_RING_SIZE (1 << LANCE_LOG_RX_BUFFERS) macro
42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
88 volatile struct lance_rx_desc brx_ring[RX_RING_SIZE];
91 volatile char rx_buf[RX_RING_SIZE][RX_BUFF_SIZE];
H A Dariadne.c81 #define RX_RING_SIZE 16 macro
89 volatile struct RDRE *rx_ring[RX_RING_SIZE];
91 volatile u_short *rx_buff[RX_RING_SIZE];
101 struct RDRE rx_ring[RX_RING_SIZE];
103 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE / sizeof(u_short)];
145 for (i = 0; i < RX_RING_SIZE; i++) { in ariadne_init_ring()
164 int entry = priv->cur_rx % RX_RING_SIZE; in ariadne_rx()
197 for (i = 0; i < RX_RING_SIZE; i++) in ariadne_rx()
198 if (lowb(priv->rx_ring[(entry + i) % RX_RING_SIZE]->RMD1) & RF_OWN) in ariadne_rx()
201 if (i > RX_RING_SIZE in ariadne_rx()
[all...]
H A Ddeclance.c159 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro
160 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
222 struct lance_rx_desc brx_ring[RX_RING_SIZE];
267 char *rx_buf_ptr_cpu[RX_RING_SIZE];
271 uint rx_buf_ptr_lnc[RX_RING_SIZE];
511 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring()
570 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
1088 for (i = 0; i < RX_RING_SIZE; i++) { in dec_lance_probe()
1098 2 * RX_RING_SIZE * RX_BUFF_SIZE + in dec_lance_probe()
1102 RX_RING_SIZE * RX_BUFF_SIZ in dec_lance_probe()
[all...]
H A Da2065.c73 #define RX_RING_SIZE (1 << LANCE_LOG_RX_BUFFERS) macro
76 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
96 struct lance_rx_desc brx_ring[RX_RING_SIZE];
99 char rx_buf[RX_RING_SIZE][RX_BUFF_SIZE];
251 char buf[RX_RING_SIZE + 1]; in lance_rx()
253 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
260 buf[RX_RING_SIZE] = 0; in lance_rx()
/kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.h18 #define RX_RING_SIZE 2048 macro
96 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)])
97 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)])
98 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
H A Dpasemi_mac.c381 ring->size = RX_RING_SIZE; in pasemi_mac_setup_rx_resources()
382 ring->ring_info = kcalloc(RX_RING_SIZE, in pasemi_mac_setup_rx_resources()
390 if (pasemi_dma_alloc_ring(&ring->chan, RX_RING_SIZE)) in pasemi_mac_setup_rx_resources()
394 RX_RING_SIZE * sizeof(u64), in pasemi_mac_setup_rx_resources()
404 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources()
418 PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources()
548 for (i = 0; i < RX_RING_SIZE; i++) { in pasemi_mac_free_rx_buffers()
561 for (i = 0; i < RX_RING_SIZE; i++) in pasemi_mac_free_rx_buffers()
569 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeof(u64), in pasemi_mac_free_rx_resources()
623 (RX_RING_SIZE in pasemi_mac_replenish_rx_ring()
1138 RX_RING_SIZE>>1); pasemi_mac_open() local
1316 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); pasemi_mac_close() local
1620 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); pasemi_mac_change_mtu() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.h18 #define RX_RING_SIZE 2048 macro
96 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)])
97 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)])
98 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
H A Dpasemi_mac.c382 ring->size = RX_RING_SIZE; in pasemi_mac_setup_rx_resources()
383 ring->ring_info = kcalloc(RX_RING_SIZE, in pasemi_mac_setup_rx_resources()
391 if (pasemi_dma_alloc_ring(&ring->chan, RX_RING_SIZE)) in pasemi_mac_setup_rx_resources()
395 RX_RING_SIZE * sizeof(u64), in pasemi_mac_setup_rx_resources()
405 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources()
419 PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources()
549 for (i = 0; i < RX_RING_SIZE; i++) { in pasemi_mac_free_rx_buffers()
560 for (i = 0; i < RX_RING_SIZE; i++) in pasemi_mac_free_rx_buffers()
568 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeof(u64), in pasemi_mac_free_rx_resources()
622 (RX_RING_SIZE in pasemi_mac_replenish_rx_ring()
1138 RX_RING_SIZE>>1); pasemi_mac_open() local
1316 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); pasemi_mac_close() local
1620 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); pasemi_mac_change_mtu() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/
H A Dhamachi.c120 #define RX_RING_SIZE 512 macro
122 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct hamachi_desc)
486 struct sk_buff* rx_skbuff[RX_RING_SIZE];
1058 for (i = 0; i < RX_RING_SIZE; i++) in hamachi_tx_timeout()
1080 for (i = 0; i < RX_RING_SIZE; i++) in hamachi_tx_timeout()
1117 for (i = 0; i < RX_RING_SIZE; i++){ in hamachi_tx_timeout()
1129 for (i = 0; i < RX_RING_SIZE; i++) { in hamachi_tx_timeout()
1144 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_tx_timeout()
1146 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout()
1180 for (i = 0; i < RX_RING_SIZE; in hamachi_init_ring()
[all...]
H A Dyellowfin.c75 #define RX_RING_SIZE 64 macro
78 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct yellowfin_desc)
311 struct sk_buff* rx_skbuff[RX_RING_SIZE];
699 for (i = 0; i < RX_RING_SIZE; i++) in yellowfin_tx_timeout()
735 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring()
739 ((i+1)%RX_RING_SIZE)*sizeof(struct yellowfin_desc)); in yellowfin_init_ring()
742 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring()
753 if (i != RX_RING_SIZE) { in yellowfin_init_ring()
759 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in yellowfin_init_ring()
1046 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/packetengines/
H A Dhamachi.c120 #define RX_RING_SIZE 512 macro
122 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct hamachi_desc)
486 struct sk_buff* rx_skbuff[RX_RING_SIZE];
1062 for (i = 0; i < RX_RING_SIZE; i++) in hamachi_tx_timeout()
1084 for (i = 0; i < RX_RING_SIZE; i++) in hamachi_tx_timeout()
1121 for (i = 0; i < RX_RING_SIZE; i++){ in hamachi_tx_timeout()
1133 for (i = 0; i < RX_RING_SIZE; i++) { in hamachi_tx_timeout()
1148 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_tx_timeout()
1150 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout()
1184 for (i = 0; i < RX_RING_SIZE; in hamachi_init_ring()
[all...]
H A Dyellowfin.c75 #define RX_RING_SIZE 64 macro
78 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct yellowfin_desc)
311 struct sk_buff* rx_skbuff[RX_RING_SIZE];
701 for (i = 0; i < RX_RING_SIZE; i++) in yellowfin_tx_timeout()
737 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring()
741 ((i+1)%RX_RING_SIZE)*sizeof(struct yellowfin_desc)); in yellowfin_init_ring()
744 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring()
755 if (i != RX_RING_SIZE) { in yellowfin_init_ring()
761 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in yellowfin_init_ring()
1048 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx()
[all...]

Completed in 33 milliseconds

12345