/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/ |
H A D | 7990.h | 39 #define RX_RING_SIZE (1<<LANCE_LOG_RX_BUFFERS) macro 41 #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 D | pasemi_mac.h | 30 #define RX_RING_SIZE 2048 macro 113 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)]) 114 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)]) 115 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
|
H A D | sungem.h | 883 #define RX_RING_SIZE 128 macro 907 #if RX_RING_SIZE == 32 909 #elif RX_RING_SIZE == 64 911 #elif RX_RING_SIZE == 128 913 #elif RX_RING_SIZE == 256 915 #elif RX_RING_SIZE == 512 917 #elif RX_RING_SIZE == 1024 919 #elif RX_RING_SIZE == 2048 921 #elif RX_RING_SIZE == 4096 923 #elif RX_RING_SIZE [all...] |
H A D | sunhme.h | 331 #define RX_RING_SIZE 32 /* see ERX_CFG_SIZE* for possible values */ macro 341 #if (RX_RING_SIZE == 32) 344 #if (RX_RING_SIZE == 64) 347 #if (RX_RING_SIZE == 128) 350 #if (RX_RING_SIZE == 256) 353 #error RX_RING_SIZE holds illegal value 359 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 361 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 416 struct sk_buff *rx_skbs[RX_RING_SIZE];
|
H A D | myri_sbus.h | 183 #define RX_RING_SIZE 16 macro 188 if(++num > RX_RING_SIZE) 196 num = RX_RING_SIZE; 280 struct sk_buff *rx_skbs[RX_RING_SIZE+1];/* RX skb's */
|
H A D | hamachi.c | 120 #define RX_RING_SIZE 512 macro 122 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct hamachi_desc) 491 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 1080 for (i = 0; i < RX_RING_SIZE; i++) 1102 for (i = 0; i < RX_RING_SIZE; i++) 1138 for (i = 0; i < RX_RING_SIZE; i++){ 1150 for (i = 0; i < RX_RING_SIZE; i++) { 1163 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1165 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); 1199 for (i = 0; i < RX_RING_SIZE; [all...] |
H A D | ariadne.c | 84 #define RX_RING_SIZE 16 macro 95 volatile struct RDRE *rx_ring[RX_RING_SIZE]; 97 volatile u_short *rx_buff[RX_RING_SIZE]; 110 struct RDRE rx_ring[RX_RING_SIZE]; 112 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE/sizeof(u_short)]; 303 lance->RDP = swapw(((u_short)-RX_RING_SIZE)); 357 for (i = 0; i < RX_RING_SIZE; i++) { 596 int entry = priv->cur_rx % RX_RING_SIZE; 629 for (i = 0; i < RX_RING_SIZE; i++) 630 if (lowb(priv->rx_ring[(entry+i) % RX_RING_SIZE] [all...] |
H A D | sunbmac.h | 268 #define RX_RING_SIZE 256 macro 270 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 272 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 315 struct sk_buff *rx_skbs[RX_RING_SIZE];
|
H A D | declance.c | 159 #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]; 266 char *rx_buf_ptr_cpu[RX_RING_SIZE]; 270 uint rx_buf_ptr_lnc[RX_RING_SIZE]; 501 for (i = 0; i < RX_RING_SIZE; i++) { 560 for (i = 0; i < RX_RING_SIZE; i++) { 1083 for (i = 0; i < RX_RING_SIZE; i++) { 1093 2 * RX_RING_SIZE * RX_BUFF_SIZE + 1097 RX_RING_SIZE * RX_BUFF_SIZ [all...] |
H A D | pasemi_mac.c | 430 ring->size = RX_RING_SIZE; 432 RX_RING_SIZE, GFP_KERNEL); 438 if (pasemi_dma_alloc_ring(&ring->chan, RX_RING_SIZE)) 442 RX_RING_SIZE * sizeof(u64), 447 memset(ring->buffers, 0, RX_RING_SIZE * sizeof(u64)); 454 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 3)); 468 PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); 596 for (i = 0; i < RX_RING_SIZE; i++) { 609 for (i = 0; i < RX_RING_SIZE; i++) 617 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeo 1184 RX_RING_SIZE>>1); local 1365 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); local 1674 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); local [all...] |
H A D | pasemi_mac_ethtool.c | 132 ering->rx_max_pending = RX_RING_SIZE/4;
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/ |
H A D | 7990.h | 39 #define RX_RING_SIZE (1<<LANCE_LOG_RX_BUFFERS) macro 41 #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 D | pasemi_mac.h | 30 #define RX_RING_SIZE 2048 macro 113 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)]) 114 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)]) 115 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
|
H A D | sungem.h | 883 #define RX_RING_SIZE 128 macro 907 #if RX_RING_SIZE == 32 909 #elif RX_RING_SIZE == 64 911 #elif RX_RING_SIZE == 128 913 #elif RX_RING_SIZE == 256 915 #elif RX_RING_SIZE == 512 917 #elif RX_RING_SIZE == 1024 919 #elif RX_RING_SIZE == 2048 921 #elif RX_RING_SIZE == 4096 923 #elif RX_RING_SIZE [all...] |
H A D | sunhme.h | 331 #define RX_RING_SIZE 32 /* see ERX_CFG_SIZE* for possible values */ macro 341 #if (RX_RING_SIZE == 32) 344 #if (RX_RING_SIZE == 64) 347 #if (RX_RING_SIZE == 128) 350 #if (RX_RING_SIZE == 256) 353 #error RX_RING_SIZE holds illegal value 359 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 361 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 416 struct sk_buff *rx_skbs[RX_RING_SIZE];
|
H A D | myri_sbus.h | 183 #define RX_RING_SIZE 16 macro 188 if(++num > RX_RING_SIZE) 196 num = RX_RING_SIZE; 280 struct sk_buff *rx_skbs[RX_RING_SIZE+1];/* RX skb's */
|
H A D | hamachi.c | 120 #define RX_RING_SIZE 512 macro 122 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct hamachi_desc) 491 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 1080 for (i = 0; i < RX_RING_SIZE; i++) 1102 for (i = 0; i < RX_RING_SIZE; i++) 1138 for (i = 0; i < RX_RING_SIZE; i++){ 1150 for (i = 0; i < RX_RING_SIZE; i++) { 1163 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1165 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); 1199 for (i = 0; i < RX_RING_SIZE; [all...] |
H A D | ariadne.c | 84 #define RX_RING_SIZE 16 macro 95 volatile struct RDRE *rx_ring[RX_RING_SIZE]; 97 volatile u_short *rx_buff[RX_RING_SIZE]; 110 struct RDRE rx_ring[RX_RING_SIZE]; 112 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE/sizeof(u_short)]; 303 lance->RDP = swapw(((u_short)-RX_RING_SIZE)); 357 for (i = 0; i < RX_RING_SIZE; i++) { 596 int entry = priv->cur_rx % RX_RING_SIZE; 629 for (i = 0; i < RX_RING_SIZE; i++) 630 if (lowb(priv->rx_ring[(entry+i) % RX_RING_SIZE] [all...] |
H A D | declance.c | 159 #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]; 266 char *rx_buf_ptr_cpu[RX_RING_SIZE]; 270 uint rx_buf_ptr_lnc[RX_RING_SIZE]; 501 for (i = 0; i < RX_RING_SIZE; i++) { 560 for (i = 0; i < RX_RING_SIZE; i++) { 1083 for (i = 0; i < RX_RING_SIZE; i++) { 1093 2 * RX_RING_SIZE * RX_BUFF_SIZE + 1097 RX_RING_SIZE * RX_BUFF_SIZ [all...] |
H A D | sunbmac.h | 268 #define RX_RING_SIZE 256 macro 270 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 272 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 315 struct sk_buff *rx_skbs[RX_RING_SIZE];
|
H A D | pasemi_mac.c | 430 ring->size = RX_RING_SIZE; 432 RX_RING_SIZE, GFP_KERNEL); 438 if (pasemi_dma_alloc_ring(&ring->chan, RX_RING_SIZE)) 442 RX_RING_SIZE * sizeof(u64), 447 memset(ring->buffers, 0, RX_RING_SIZE * sizeof(u64)); 454 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 3)); 468 PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); 596 for (i = 0; i < RX_RING_SIZE; i++) { 609 for (i = 0; i < RX_RING_SIZE; i++) 617 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeo 1184 RX_RING_SIZE>>1); local 1365 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); local 1674 pasemi_mac_clean_rx(rx_ring(mac), RX_RING_SIZE); local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/tulip/ |
H A D | interrupt.c | 70 entry = tp->dirty_rx % RX_RING_SIZE; 113 int entry = tp->cur_rx % RX_RING_SIZE; 124 if (budget >=RX_RING_SIZE) budget--; 145 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) 254 entry = (++tp->cur_rx) % RX_RING_SIZE; 255 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) 311 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) 333 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || 334 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) 337 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE] [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/tulip/ |
H A D | interrupt.c | 70 entry = tp->dirty_rx % RX_RING_SIZE; 113 int entry = tp->cur_rx % RX_RING_SIZE; 124 if (budget >=RX_RING_SIZE) budget--; 145 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) 254 entry = (++tp->cur_rx) % RX_RING_SIZE; 255 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) 311 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) 333 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || 334 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) 337 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE] [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/wan/ |
H A D | dscc4.c | 163 #define RX_RING_SIZE 32 macro 165 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct RxFD) 198 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 438 ((dpriv->rx_dirty - 1)%RX_RING_SIZE)*sizeof(struct RxFD); 504 for (i = 0; i < RX_RING_SIZE; i++) { 518 unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE; 608 struct RxFD *rx_fd = dpriv->rx_fd + dpriv->rx_current%RX_RING_SIZE; 613 skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; 640 while ((dpriv->rx_dirty - dpriv->rx_current) % RX_RING_SIZE) { 1578 (dpriv->rx_current%RX_RING_SIZE)* [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/wan/ |
H A D | dscc4.c | 163 #define RX_RING_SIZE 32 macro 165 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct RxFD) 198 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 438 ((dpriv->rx_dirty - 1)%RX_RING_SIZE)*sizeof(struct RxFD); 504 for (i = 0; i < RX_RING_SIZE; i++) { 518 unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE; 608 struct RxFD *rx_fd = dpriv->rx_fd + dpriv->rx_current%RX_RING_SIZE; 613 skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; 640 while ((dpriv->rx_dirty - dpriv->rx_current) % RX_RING_SIZE) { 1578 (dpriv->rx_current%RX_RING_SIZE)* [all...] |