/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/ |
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 | 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 | 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...] |
H A D | pasemi_mac_ethtool.c | 132 ering->rx_max_pending = RX_RING_SIZE/4;
|
H A D | yellowfin.c | 74 #define RX_RING_SIZE 64 macro 77 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct yellowfin_desc) 310 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 702 for (i = 0; i < RX_RING_SIZE; i++) 738 for (i = 0; i < RX_RING_SIZE; i++) { 742 ((i+1)%RX_RING_SIZE)*sizeof(struct yellowfin_desc)); 745 for (i = 0; i < RX_RING_SIZE; i++) { 755 if (i != RX_RING_SIZE) { 761 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1045 int entry = yp->cur_rx % RX_RING_SIZE; [all...] |
H A D | via-rhine.c | 73 #define RX_RING_SIZE 64 macro 372 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 373 dma_addr_t rx_skbuff_dma[RX_RING_SIZE]; 856 RX_RING_SIZE * sizeof(struct rx_desc) + 869 RX_RING_SIZE * sizeof(struct rx_desc) + 877 rp->tx_ring = ring + RX_RING_SIZE * sizeof(struct rx_desc); 879 rp->tx_ring_dma = ring_dma + RX_RING_SIZE * sizeof(struct rx_desc); 889 RX_RING_SIZE * sizeof(struct rx_desc) + 915 for (i = 0; i < RX_RING_SIZE; i++) { 926 for (i = 0; i < RX_RING_SIZE; [all...] |
H A D | sundance.c | 70 #define RX_RING_SIZE 64 macro 73 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct netdev_desc) 366 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 996 for (i = 0; i < RX_RING_SIZE; i++) { 998 ((i+1)%RX_RING_SIZE)*sizeof(*np->rx_ring)); 1005 for (i = 0; i < RX_RING_SIZE; i++) { 1017 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1284 int entry = np->cur_rx % RX_RING_SIZE; 1359 entry = (entry + 1) % RX_RING_SIZE; 1386 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) [all...] |
H A D | lance.c | 197 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro 198 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 237 struct lance_rx_head rx_ring[RX_RING_SIZE]; 244 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 555 lp->rx_buffs = (unsigned long)kmalloc(PKT_BUF_SZ*RX_RING_SIZE, 844 for (i = 0; i < RX_RING_SIZE; i++) { 870 for (i = 0; i < RX_RING_SIZE; i++) { 934 for (i = 0; i < RX_RING_SIZE; i++) 1190 for (i=0; i < RX_RING_SIZE; i++) 1194 if (i > RX_RING_SIZE [all...] |
H A D | epic100.c | 55 #define RX_RING_SIZE 256 macro 57 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct epic_rx_desc) 262 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 784 epic_rx(dev, RX_RING_SIZE); 819 outl(ep->rx_ring_dma + (ep->cur_rx%RX_RING_SIZE)* 922 for (i = 0; i < RX_RING_SIZE; i++) { 933 for (i = 0; i < RX_RING_SIZE; i++) { 943 ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1154 int entry = ep->cur_rx % RX_RING_SIZE; 1155 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE [all...] |
H A D | sh_eth.c | 453 for (i = 0; i < RX_RING_SIZE; i++) { 479 int rx_ringsize = sizeof(*rxdesc) * RX_RING_SIZE; 488 for (i = 0; i < RX_RING_SIZE; i++) { 516 mdp->dirty_rx = (u32) (i - RX_RING_SIZE); 559 mdp->rx_skbuff = kmalloc(sizeof(*mdp->rx_skbuff) * RX_RING_SIZE, 576 rx_ringsize = sizeof(struct sh_eth_rxdesc) * RX_RING_SIZE; 732 int entry = mdp->cur_rx % RX_RING_SIZE; 733 int boguscnt = (mdp->dirty_rx + RX_RING_SIZE) - mdp->cur_rx; 780 entry = (++mdp->cur_rx) % RX_RING_SIZE; 786 entry = mdp->dirty_rx % RX_RING_SIZE; [all...] |
H A D | atarilance.c | 115 #define RX_RING_SIZE (1 << RX_LOG_RING_SIZE) macro 117 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 158 struct lance_rx_head rx_head[RX_RING_SIZE]; 717 for( i = 0; i < RX_RING_SIZE; i++ ) { 753 for( i = 0 ; i < RX_RING_SIZE; i++ ) 1001 for( i = 0; i < RX_RING_SIZE; i++ ) 1006 if (i > RX_RING_SIZE - 2) {
|
H A D | 3c515.c | 57 #define RX_RING_SIZE 16 macro 305 struct boom_rx_desc rx_ring[RX_RING_SIZE]; 308 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 818 for (i = 0; i < RX_RING_SIZE; i++) { 820 if (i < (RX_RING_SIZE - 1)) 1332 int entry = vp->cur_rx % RX_RING_SIZE; 1397 entry = (++vp->cur_rx) % RX_RING_SIZE; 1402 entry = vp->dirty_rx % RX_RING_SIZE; 1453 for (i = 0; i < RX_RING_SIZE; i++)
|
H A D | dl2k.h | 40 #define RX_RING_SIZE 256 macro 42 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct netdev_desc) 476 struct sk_buff *rx_skbuff[RX_RING_SIZE];
|
H A D | smsc9420.c | 594 for (i = 0; i < RX_RING_SIZE; i++) { 875 pd->rx_ring_tail = (pd->rx_ring_tail + 1) % RX_RING_SIZE; 897 pd->rx_ring_head = (pd->rx_ring_head + 1) % RX_RING_SIZE; 1282 RX_RING_SIZE), GFP_KERNEL); 1289 for (i = 0; i < RX_RING_SIZE; i++) { 1296 pd->rx_ring[RX_RING_SIZE - 1].length = (PKT_BUF_SZ | RDES1_RER_); 1299 for (i = 0; i < RX_RING_SIZE; i++) { 1634 sizeof(struct smsc9420_dma_desc) * RX_RING_SIZE + 1643 (pd->rx_ring + RX_RING_SIZE); 1645 sizeof(struct smsc9420_dma_desc) * RX_RING_SIZE; [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/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...] |
H A D | winbond-840.c | 294 dma_addr_t rx_addr[RX_RING_SIZE]; 299 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 804 np->tx_ring = (struct w840_tx_desc*)&np->rx_ring[RX_RING_SIZE]; 807 for (i = 0; i < RX_RING_SIZE; i++) { 816 for (i = 0; i < RX_RING_SIZE; i++) { 829 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 840 iowrite32(np->ring_dma_addr+sizeof(struct w840_rx_desc)*RX_RING_SIZE, 849 for (i = 0; i < RX_RING_SIZE; i++) { 941 for (i = 0; i < RX_RING_SIZE; i++) 983 sizeof(struct w840_rx_desc)*RX_RING_SIZE [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/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...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rt2860/common/ |
H A D | cmm_mac_pci.c | 245 pAd->RxDescRing.AllocSize = RX_RING_SIZE * RXD_SIZE; 276 for (index = 0; index < RX_RING_SIZE; index++) { 365 pAd->RxRing.RxCpuIdx = RX_RING_SIZE - 1; 516 for (i = 0; i < RX_RING_SIZE; i++) { 525 0) ? (RX_RING_SIZE - 1) : (pAd->RxRing.RxDmaIdx - 1)); 598 for (index = RX_RING_SIZE - 1; index >= 0; index--) { 610 NdisZeroMemory(pAd->RxRing.Cell, RX_RING_SIZE * sizeof(struct rt_rtmp_dmacb)); 1310 if ((RxDmaIdx > RxCpuIdx) && ((RxDmaIdx - RxCpuIdx) > RX_RING_SIZE / 3)) { 1316 && ((RxCpuIdx - RxDmaIdx) < RX_RING_SIZE / 3)) {
|