| /linux/drivers/net/ethernet/sun/ |
| H A D | sunhme.h | 332 #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 D | sunqe.h | 292 #define RX_RING_SIZE 16 macro 328 u8 rx_buf[RX_RING_SIZE][PKT_BUF_SZ];
|
| H A D | sunqe.c | 134 for (i = 0; i < RX_RING_SIZE; i++) { in qe_init_rings() 426 &qbufs->rx_buf[elem & (RX_RING_SIZE - 1)][0]; in qe_rx() 428 qebuf_offset(rx_buf, (elem & (RX_RING_SIZE - 1))); in qe_rx() 430 &rxbase[(elem+RX_RING_SIZE)&(RX_RING_MAXSIZE-1)]; in qe_rx()
|
| H A D | sungem.c | 410 for (i = 0; i < RX_RING_SIZE; i++) { in gem_rxmac_reset() 427 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_rxmac_reset() 761 if (work_done >= RX_RING_SIZE || work_done >= work_to_do) in gem_rx() 1202 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_start_dma() 1554 for (i = 0; i < RX_RING_SIZE; i++) { in gem_clean_rings() 1611 for (i = 0; i < RX_RING_SIZE; i++) { in gem_init_rings() 1744 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_init_dma()
|
| H A D | sunbmac.c | 197 for (i = 0; i < RX_RING_SIZE; i++) { in bigmac_clean_rings() 227 for (i = 0; i < RX_RING_SIZE; i++) { in bigmac_init_rings()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | interrupt.c | 67 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].skb == NULL) in tulip_poll() [all …]
|
| H A D | tulip.h | 327 #define RX_RING_SIZE 128 macro 411 struct ring_info rx_buffers[RX_RING_SIZE];
|
| /linux/drivers/net/ethernet/amd/ |
| H A D | 7990.h | 40 #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 D | sun3lance.c | 99 #define RX_RING_SIZE (1 << RX_LOG_RING_SIZE) macro 101 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 144 struct lance_rx_head rx_head[RX_RING_SIZE]; 145 char rx_data[RX_RING_SIZE][PKT_BUF_SZ]; 469 for( i = 0; i < RX_RING_SIZE; i++ ) { in lance_init_ring() 543 for( i = 0 ; i < RX_RING_SIZE; i++ ) in lance_start_xmit()
|
| 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]; 715 for( i = 0; i < RX_RING_SIZE; i++ ) { in lance_init_ring() 751 for( i = 0 ; i < RX_RING_SIZE; i++ ) in lance_tx_timeout() 1000 for( i = 0; i < RX_RING_SIZE; i++ ) in lance_rx() 1005 if (i > RX_RING_SIZE - 2) { in lance_rx()
|
| H A D | sunlance.c | 181 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro 182 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 222 struct lance_rx_desc brx_ring[RX_RING_SIZE]; 227 u8 rx_buf [RX_RING_SIZE][RX_BUFF_SIZE]; 350 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring_dvma() 408 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring_pio()
|
| H A D | 7990.c | 98 for (t = 0; t < RX_RING_SIZE; t++) { \ 284 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
|
| H A D | pcnet32.c | 170 #define RX_RING_SIZE (1 << (PCNET32_LOG_RX_BUFFERS)) macro 1863 lp->rx_ring_size = RX_RING_SIZE; /* default rx ring size */ in pcnet32_probe1()
|
| /linux/drivers/net/ethernet/pasemi/ |
| H A D | pasemi_mac.h | 18 #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 D | pasemi_mac.c | 383 ring->size = RX_RING_SIZE; in pasemi_mac_setup_rx_resources() 384 ring->ring_info = kzalloc_objs(struct pasemi_mac_buffer, 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() 546 for (i = 0; i < RX_RING_SIZE; i++) { in pasemi_mac_free_rx_buffers() 557 for (i = 0; i < RX_RING_SIZE; i++) in pasemi_mac_free_rx_buffers() 565 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeof(u64), in pasemi_mac_free_rx_resources() 619 (RX_RING_SIZE - 1); in pasemi_mac_replenish_rx_ring() [all …]
|
| H A D | pasemi_mac_ethtool.c | 80 ering->rx_max_pending = RX_RING_SIZE/4; in pasemi_mac_ethtool_get_ringparam()
|
| /linux/drivers/net/ethernet/smsc/ |
| H A D | smsc9420.c | 532 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_free_rx_ring() 813 pd->rx_ring_tail = (pd->rx_ring_tail + 1) % RX_RING_SIZE; in smsc9420_alloc_new_rx_buffers() 835 pd->rx_ring_head = (pd->rx_ring_head + 1) % RX_RING_SIZE; in smsc9420_rx_poll() 1213 pd->rx_buffers = kmalloc_objs(struct smsc9420_ring_info, RX_RING_SIZE); in smsc9420_alloc_rx_ring() 1218 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_alloc_rx_ring() 1225 pd->rx_ring[RX_RING_SIZE - 1].length = (PKT_BUF_SZ | RDES1_RER_); in smsc9420_alloc_rx_ring() 1228 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_alloc_rx_ring() 1546 sizeof(struct smsc9420_dma_desc) * (RX_RING_SIZE + TX_RING_SIZE), in smsc9420_probe() 1553 pd->tx_ring = (pd->rx_ring + RX_RING_SIZE); in smsc9420_probe() 1555 sizeof(struct smsc9420_dma_desc) * RX_RING_SIZE; in smsc9420_probe() [all …]
|
| H A D | smsc9420.h | 13 #define RX_RING_SIZE (128) macro
|
| /linux/drivers/net/ethernet/via/ |
| H A D | via-rhine.c | 79 #define RX_RING_SIZE 64 macro 442 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 443 dma_addr_t rx_skbuff_dma[RX_RING_SIZE]; 1146 RX_RING_SIZE * sizeof(struct rx_desc) + in alloc_ring() 1161 RX_RING_SIZE * sizeof(struct rx_desc) + in alloc_ring() 1169 rp->tx_ring = ring + RX_RING_SIZE * sizeof(struct rx_desc); in alloc_ring() 1171 rp->tx_ring_dma = ring_dma + RX_RING_SIZE * sizeof(struct rx_desc); in alloc_ring() 1182 RX_RING_SIZE * sizeof(struct rx_desc) + in free_ring() 1227 for (i = 0; i < RX_RING_SIZE; i++) in rhine_reset_rbufs() 1253 for (i = 0; i < RX_RING_SIZE; i++) { in alloc_rbufs() [all …]
|
| /linux/drivers/net/ethernet/sgi/ |
| H A D | ioc3-eth.c | 62 #define RX_RING_SIZE (RX_RING_ENTRIES * sizeof(u64)) macro 885 ip->rxr = dma_alloc_coherent(ip->dma_dev, RX_RING_SIZE, &ip->rxr_dma, in ioc3eth_probe() 955 dma_free_coherent(ip->dma_dev, RX_RING_SIZE, ip->rxr, in ioc3eth_probe() 973 dma_free_coherent(ip->dma_dev, RX_RING_SIZE, ip->rxr, ip->rxr_dma); in ioc3eth_remove()
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | 82596.c | 287 #define RX_RING_SIZE 16 macro 331 struct i596_rfd rfds[RX_RING_SIZE]; 332 struct i596_rbd rbds[RX_RING_SIZE]; 369 static int rx_ring_size = RX_RING_SIZE;
|
| H A D | lib82596.c | 271 #define RX_RING_SIZE 16 macro 307 struct i596_rfd rfds[RX_RING_SIZE] __attribute__((aligned(32))); 308 struct i596_rbd rbds[RX_RING_SIZE] __attribute__((aligned(32))); 359 static int rx_ring_size = RX_RING_SIZE;
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | sh_eth.h | 14 #define RX_RING_SIZE 64 /* Rx ring size */ macro
|
| H A D | sh_eth.c | 3280 mdp->num_rx_ring = RX_RING_SIZE; in sh_eth_drv_probe()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_main.c | 1549 .num_elems = RX_RING_SIZE, in qede_alloc_mem_rxq() 1578 size = sizeof(*rxq->sw_rx_ring) * RX_RING_SIZE; in qede_alloc_mem_rxq() 2871 RX_RING_SIZE - 100) in qede_get_eth_tlv_data()
|