/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/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 | 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 | 329 #define RX_RING_SIZE 32 /* see ERX_CFG_SIZE* for possible values */ macro 339 #if (RX_RING_SIZE == 32) 342 #if (RX_RING_SIZE == 64) 345 #if (RX_RING_SIZE == 128) 348 #if (RX_RING_SIZE == 256) 351 #error RX_RING_SIZE holds illegal value 357 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 359 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 417 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 | pasemi_mac.c | 53 #define RX_RING_SIZE 512 macro 68 #define RX_DESC(mac, num) ((mac)->rx->desc[(num) & (RX_RING_SIZE-1)]) 69 #define RX_DESC_INFO(mac, num) ((mac)->rx->desc_info[(num) & (RX_RING_SIZE-1)]) 70 #define RX_BUFF(mac, num) ((mac)->rx->buffers[(num) & (RX_RING_SIZE-1)]) 145 RX_RING_SIZE, GFP_KERNEL); 152 RX_RING_SIZE * 159 memset(ring->desc, 0, RX_RING_SIZE * sizeof(struct pas_dma_xct_descr)); 162 RX_RING_SIZE * sizeof(u64), 167 memset(ring->buffers, 0, RX_RING_SIZE * sizeof(u64)); 174 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> [all...] |
H A D | hamachi.c | 120 #define RX_RING_SIZE 512 macro 122 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct hamachi_desc) 490 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 1077 for (i = 0; i < RX_RING_SIZE; i++) 1096 for (i = 0; i < RX_RING_SIZE; i++) 1131 for (i = 0; i < RX_RING_SIZE; i++){ 1142 for (i = 0; i < RX_RING_SIZE; i++) { 1154 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1156 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); 1191 for (i = 0; i < RX_RING_SIZE; [all...] |
H A D | ariadne.c | 85 #define RX_RING_SIZE 16 macro 96 volatile struct RDRE *rx_ring[RX_RING_SIZE]; 98 volatile u_short *rx_buff[RX_RING_SIZE]; 112 struct RDRE rx_ring[RX_RING_SIZE]; 114 u_short rx_buff[RX_RING_SIZE][PKT_BUF_SIZE/sizeof(u_short)]; 301 lance->RDP = swapw(((u_short)-RX_RING_SIZE)); 355 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]; 268 char *rx_buf_ptr_cpu[RX_RING_SIZE]; 272 uint rx_buf_ptr_lnc[RX_RING_SIZE]; 503 for (i = 0; i < RX_RING_SIZE; i++) { 562 for (i = 0; i < RX_RING_SIZE; i++) { 1085 for (i = 0; i < RX_RING_SIZE; i++) { 1095 2 * RX_RING_SIZE * RX_BUFF_SIZE + 1099 RX_RING_SIZE * RX_BUFF_SIZ [all...] |
H A D | via-rhine.c | 69 #define RX_RING_SIZE 64 macro 71 #define RX_RING_SIZE 16 macro 370 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 371 dma_addr_t rx_skbuff_dma[RX_RING_SIZE]; 854 RX_RING_SIZE * sizeof(struct rx_desc) + 867 RX_RING_SIZE * sizeof(struct rx_desc) + 875 rp->tx_ring = ring + RX_RING_SIZE * sizeof(struct rx_desc); 877 rp->tx_ring_dma = ring_dma + RX_RING_SIZE * sizeof(struct rx_desc); 887 RX_RING_SIZE * sizeof(struct rx_desc) + 913 for (i = 0; i < RX_RING_SIZE; [all...] |
H A D | yellowfin.c | 74 #define RX_RING_SIZE 64 macro 77 #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++) 735 for (i = 0; i < RX_RING_SIZE; i++) { 739 ((i+1)%RX_RING_SIZE)*sizeof(struct yellowfin_desc)); 742 for (i = 0; i < RX_RING_SIZE; i++) { 753 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1041 int entry = yp->cur_rx % RX_RING_SIZE; 1042 int boguscnt = yp->dirty_rx + RX_RING_SIZE [all...] |
H A D | eepro100.c | 72 #define RX_RING_SIZE 64 macro 413 struct RxFD *rx_ringp[RX_RING_SIZE]; /* Rx descriptor, used as ring. */ 416 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 420 dma_addr_t rx_ring_dma[RX_RING_SIZE]; 1076 if (sp->rx_ringp[sp->cur_rx % RX_RING_SIZE] == NULL) { 1081 iowrite32(sp->rx_ring_dma[sp->cur_rx % RX_RING_SIZE], 1142 rfd = sp->rx_ringp[sp->cur_rx % RX_RING_SIZE]; 1150 iowrite32(sp->rx_ring_dma[sp->cur_rx % RX_RING_SIZE], 1220 for (i = 0; i < RX_RING_SIZE; i++) 1223 i == sp->dirty_rx % 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]; 971 for (i = 0; i < RX_RING_SIZE; i++) { 973 ((i+1)%RX_RING_SIZE)*sizeof(*np->rx_ring)); 980 for (i = 0; i < RX_RING_SIZE; i++) { 992 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1262 int entry = np->cur_rx % RX_RING_SIZE; 1334 entry = (entry + 1) % RX_RING_SIZE; 1362 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]; 543 lp->rx_buffs = (unsigned long)kmalloc(PKT_BUF_SZ*RX_RING_SIZE, 837 for (i = 0; i < RX_RING_SIZE; i++) { 863 for (i = 0; i < RX_RING_SIZE; i++) { 927 for (i = 0; i < RX_RING_SIZE; i++) 1175 for (i=0; i < RX_RING_SIZE; i++) 1179 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) 257 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 776 epic_rx(dev, RX_RING_SIZE); 811 outl(ep->rx_ring_dma + (ep->cur_rx%RX_RING_SIZE)* 915 for (i = 0; i < RX_RING_SIZE; i++) { 926 for (i = 0; i < RX_RING_SIZE; i++) { 936 ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1149 int entry = ep->cur_rx % RX_RING_SIZE; 1150 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE [all...] |
H A D | atarilance.c | 116 #define RX_RING_SIZE (1 << RX_LOG_RING_SIZE) macro 118 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 159 struct lance_rx_head rx_head[RX_RING_SIZE]; 724 for( i = 0; i < RX_RING_SIZE; i++ ) { 760 for( i = 0 ; i < RX_RING_SIZE; i++ ) 1015 for( i = 0; i < RX_RING_SIZE; i++ ) 1020 if (i > RX_RING_SIZE - 2) {
|
H A D | gt64240eth.c | 911 sizeof(gt64240_rd_t) * RX_RING_SIZE + 919 gp->tx_ring = (gt64240_td_t *) (gp->rx_ring + RX_RING_SIZE); 921 gp->rx_ring_dma + sizeof(gt64240_rd_t) * RX_RING_SIZE; 926 PKT_BUF_SZ * RX_RING_SIZE, &gp->rx_buff_dma, 930 sizeof(gt64240_rd_t) * RX_RING_SIZE + 949 sizeof(gt64240_rd_t) * RX_RING_SIZE + 952 dma_free_noncoherent(NULL, PKT_BUF_SZ * RX_RING_SIZE, 1043 for (i = 0; i < RX_RING_SIZE; i++) { 1476 nextOut = (nextOut + 1) % RX_RING_SIZE) {
|
H A D | sunqe.h | 291 #define RX_RING_SIZE 16 macro 327 u8 rx_buf[RX_RING_SIZE][PKT_BUF_SZ];
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/tulip/ |
H A D | interrupt.c | 71 entry = tp->dirty_rx % RX_RING_SIZE; 112 int entry = tp->cur_rx % RX_RING_SIZE; 127 if (rx_work_limit >=RX_RING_SIZE) rx_work_limit--; 148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) 243 entry = (++tp->cur_rx) % RX_RING_SIZE; 244 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) 305 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) goto oom; 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 | 293 dma_addr_t rx_addr[RX_RING_SIZE]; 298 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 799 np->tx_ring = (struct w840_tx_desc*)&np->rx_ring[RX_RING_SIZE]; 802 for (i = 0; i < RX_RING_SIZE; i++) { 811 for (i = 0; i < RX_RING_SIZE; i++) { 824 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 835 iowrite32(np->ring_dma_addr+sizeof(struct w840_rx_desc)*RX_RING_SIZE, 844 for (i = 0; i < RX_RING_SIZE; i++) { 936 for (i = 0; i < RX_RING_SIZE; i++) 978 sizeof(struct w840_rx_desc)*RX_RING_SIZE [all...] |
H A D | xircom_tulip_cb.c | 42 #define RX_RING_SIZE 32 macro 290 struct xircom_rx_desc rx_ring[RX_RING_SIZE]; 299 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 819 for (i = 0; i < RX_RING_SIZE; i++) { 834 for (i = 0; i < RX_RING_SIZE; i++) 865 for (i = 0; i < RX_RING_SIZE; i++) { 875 for (i = 0; i < RX_RING_SIZE; i++) { 887 tp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 1190 int entry = tp->cur_rx % RX_RING_SIZE; 1191 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE [all...] |
H A D | tulip_core.c | 552 for (i = 0; i < RX_RING_SIZE; i++) { 567 for (i = 0; i < RX_RING_SIZE; i++) 595 for (i = 0; i < RX_RING_SIZE; i++) { 606 for (i = 0; i < RX_RING_SIZE; i++) { 623 tp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); 781 for (i = 0; i < RX_RING_SIZE; i++) { 1365 sizeof(struct tulip_rx_desc) * RX_RING_SIZE + 1370 tp->tx_ring = (struct tulip_tx_desc *)(tp->rx_ring + RX_RING_SIZE); 1371 tp->tx_ring_dma = tp->rx_ring_dma + sizeof(struct tulip_rx_desc) * RX_RING_SIZE; 1708 sizeof (struct tulip_rx_desc) * RX_RING_SIZE [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wan/ |
H A D | dscc4.c | 160 #define RX_RING_SIZE 32 macro 162 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct RxFD) 195 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 434 ((dpriv->rx_dirty - 1)%RX_RING_SIZE)*sizeof(struct RxFD); 500 for (i = 0; i < RX_RING_SIZE; i++) { 514 unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE; 604 struct RxFD *rx_fd = dpriv->rx_fd + dpriv->rx_current%RX_RING_SIZE; 610 skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; 637 while ((dpriv->rx_dirty - dpriv->rx_current) % RX_RING_SIZE) { 1577 (dpriv->rx_current%RX_RING_SIZE)* [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/8xx_io/ |
H A D | enet.c | 99 #define RX_RING_SIZE (CPM_ENET_RX_FRPPG * CPM_ENET_RX_PAGES) macro 106 #define RX_RING_SIZE (CPM_ENET_RX_FRPPG * CPM_ENET_RX_PAGES) macro 142 unsigned char *rx_vaddr[RX_RING_SIZE]; 292 for (i = 0 ; i < RX_RING_SIZE; i++, bdp++) 748 dp_offset = cpm_dpalloc(sizeof(cbd_t) * RX_RING_SIZE, 8);
|
H A D | fec.c | 88 #define RX_RING_SIZE (FEC_ENET_RX_FRPPG * FEC_ENET_RX_PAGES) macro 95 #define RX_RING_SIZE (FEC_ENET_RX_FRPPG * FEC_ENET_RX_PAGES) macro 163 unsigned char *rx_vaddr[RX_RING_SIZE]; 456 printk(" rx: %lu buffers\n", RX_RING_SIZE); 457 for (i = 0 ; i < RX_RING_SIZE; i++) { 1573 if (((RX_RING_SIZE + TX_RING_SIZE) * sizeof(cbd_t)) > PAGE_SIZE) { 1584 fep->tx_bd_base = cbd_base + RX_RING_SIZE; 1796 for (i=0; i<RX_RING_SIZE; i++) {
|