/linux-4.4.14/drivers/net/ethernet/sun/ |
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 == 8192 [all …]
|
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];
|
D | sunbmac.h | 251 #define RX_RING_SIZE 256 macro 253 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1)) 255 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1)) 298 struct sk_buff *rx_skbs[RX_RING_SIZE];
|
D | sunqe.h | 291 #define RX_RING_SIZE 16 macro 327 u8 rx_buf[RX_RING_SIZE][PKT_BUF_SZ];
|
D | sunqe.c | 133 for (i = 0; i < RX_RING_SIZE; i++) { in qe_init_rings() 424 &qbufs->rx_buf[elem & (RX_RING_SIZE - 1)][0]; in qe_rx() 426 qebuf_offset(rx_buf, (elem & (RX_RING_SIZE - 1))); in qe_rx() 428 &rxbase[(elem+RX_RING_SIZE)&(RX_RING_MAXSIZE-1)]; in qe_rx()
|
D | sungem.c | 419 for (i = 0; i < RX_RING_SIZE; i++) { in gem_rxmac_reset() 436 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_rxmac_reset() 782 if (work_done >= RX_RING_SIZE || work_done >= work_to_do) in gem_rx() 1228 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_start_dma() 1574 for (i = 0; i < RX_RING_SIZE; i++) { in gem_clean_rings() 1631 for (i = 0; i < RX_RING_SIZE; i++) { in gem_init_rings() 1764 writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK); in gem_init_dma()
|
D | sunbmac.c | 196 for (i = 0; i < RX_RING_SIZE; i++) { in bigmac_clean_rings() 226 for (i = 0; i < RX_RING_SIZE; i++) { in bigmac_init_rings()
|
D | sunhme.c | 1201 for (i = 0; i < RX_RING_SIZE; i++) { in happy_meal_clean_rings() 1263 for (i = 0; i < RX_RING_SIZE; i++) { in happy_meal_init_rings()
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
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() 260 entry = (++tp->cur_rx) % RX_RING_SIZE; in tulip_poll() 261 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/4) in tulip_poll() 317 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() 339 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll() 340 tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() 343 if (tp->rx_buffers[tp->dirty_rx % RX_RING_SIZE].skb == NULL) in tulip_poll() [all …]
|
D | winbond-840.c | 296 dma_addr_t rx_addr[RX_RING_SIZE]; 301 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 801 np->tx_ring = (struct w840_tx_desc*)&np->rx_ring[RX_RING_SIZE]; in init_rxtx_rings() 804 for (i = 0; i < RX_RING_SIZE; i++) { in init_rxtx_rings() 813 for (i = 0; i < RX_RING_SIZE; i++) { in init_rxtx_rings() 826 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_rxtx_rings() 837 iowrite32(np->ring_dma_addr+sizeof(struct w840_rx_desc)*RX_RING_SIZE, in init_rxtx_rings() 846 for (i = 0; i < RX_RING_SIZE; i++) { in free_rxtx_rings() 939 for (i = 0; i < RX_RING_SIZE; i++) in tx_timeout() 981 sizeof(struct w840_rx_desc)*RX_RING_SIZE + in alloc_ringdesc() [all …]
|
D | tulip_core.c | 580 for (i = 0; i < RX_RING_SIZE; i++) { in tulip_tx_timeout() 597 for (i = 0; i < RX_RING_SIZE; i++) in tulip_tx_timeout() 625 for (i = 0; i < RX_RING_SIZE; i++) { in tulip_init_ring() 636 for (i = 0; i < RX_RING_SIZE; i++) { in tulip_init_ring() 652 tp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in tulip_init_ring() 801 for (i = 0; i < RX_RING_SIZE; i++) { in tulip_free_ring() 1448 sizeof(struct tulip_rx_desc) * RX_RING_SIZE + in tulip_init_one() 1453 tp->tx_ring = (struct tulip_tx_desc *)(tp->rx_ring + RX_RING_SIZE); in tulip_init_one() 1454 tp->tx_ring_dma = tp->rx_ring_dma + sizeof(struct tulip_rx_desc) * RX_RING_SIZE; in tulip_init_one() 1786 sizeof (struct tulip_rx_desc) * RX_RING_SIZE + in tulip_init_one() [all …]
|
D | tulip.h | 327 #define RX_RING_SIZE 128 macro 411 struct ring_info rx_buffers[RX_RING_SIZE];
|
/linux-4.4.14/drivers/net/ethernet/amd/ |
D | 7990.h | 39 #define RX_RING_SIZE (1 << LANCE_LOG_RX_BUFFERS) macro 41 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 87 volatile struct lance_rx_desc brx_ring[RX_RING_SIZE]; 90 volatile char rx_buf[RX_RING_SIZE][RX_BUFF_SIZE];
|
D | ariadne.c | 81 #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 - 2) { in ariadne_rx() [all …]
|
D | declance.c | 158 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro 159 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 221 struct lance_rx_desc brx_ring[RX_RING_SIZE]; 265 char *rx_buf_ptr_cpu[RX_RING_SIZE]; 269 uint rx_buf_ptr_lnc[RX_RING_SIZE]; 509 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring() 568 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx() 1084 for (i = 0; i < RX_RING_SIZE; i++) { in dec_lance_probe() 1094 2 * RX_RING_SIZE * RX_BUFF_SIZE + in dec_lance_probe() 1098 RX_RING_SIZE * RX_BUFF_SIZE + in dec_lance_probe() [all …]
|
D | a2065.c | 73 #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]; 254 char buf[RX_RING_SIZE + 1]; in lance_rx() 256 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx() 263 buf[RX_RING_SIZE] = 0; in lance_rx()
|
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, in lance_probe1() 844 for (i = 0; i < RX_RING_SIZE; i++) { in lance_purge_ring() 870 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring() 933 for (i = 0; i < RX_RING_SIZE; i++) in lance_tx_timeout() 1189 for (i=0; i < RX_RING_SIZE; i++) in lance_rx() 1193 if (i > RX_RING_SIZE -2) in lance_rx()
|
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]; 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() 999 for( i = 0; i < RX_RING_SIZE; i++ ) in lance_rx() 1004 if (i > RX_RING_SIZE - 2) { in lance_rx()
|
D | sun3lance.c | 97 #define RX_RING_SIZE (1 << RX_LOG_RING_SIZE) macro 99 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 142 struct lance_rx_head rx_head[RX_RING_SIZE]; 143 char rx_data[RX_RING_SIZE][PKT_BUF_SZ]; 473 for( i = 0; i < RX_RING_SIZE; i++ ) { in lance_init_ring() 546 for( i = 0 ; i < RX_RING_SIZE; i++ ) in lance_start_xmit()
|
D | sunlance.c | 185 #define RX_RING_SIZE (1 << (LANCE_LOG_RX_BUFFERS)) macro 186 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 226 struct lance_rx_desc brx_ring[RX_RING_SIZE]; 231 u8 rx_buf [RX_RING_SIZE][RX_BUFF_SIZE]; 354 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring_dvma() 412 for (i = 0; i < RX_RING_SIZE; i++) { in lance_init_ring_pio()
|
D | 7990.c | 97 for (t = 0; t < RX_RING_SIZE; t++) { \ 283 for (i = 0; i < RX_RING_SIZE; i++) { in lance_rx()
|
D | pcnet32.c | 174 #define RX_RING_SIZE (1 << (PCNET32_LOG_RX_BUFFERS)) macro 1802 lp->rx_ring_size = RX_RING_SIZE; /* default rx ring size */ in pcnet32_probe1()
|
/linux-4.4.14/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.h | 29 #define RX_RING_SIZE 2048 macro 112 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)]) 113 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)]) 114 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)])
|
D | pasemi_mac.c | 430 ring->size = RX_RING_SIZE; in pasemi_mac_setup_rx_resources() 432 RX_RING_SIZE, GFP_KERNEL); in pasemi_mac_setup_rx_resources() 438 if (pasemi_dma_alloc_ring(&ring->chan, RX_RING_SIZE)) in pasemi_mac_setup_rx_resources() 442 RX_RING_SIZE * sizeof(u64), in pasemi_mac_setup_rx_resources() 452 PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources() 466 PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); in pasemi_mac_setup_rx_resources() 595 for (i = 0; i < RX_RING_SIZE; i++) { in pasemi_mac_free_rx_buffers() 608 for (i = 0; i < RX_RING_SIZE; i++) in pasemi_mac_free_rx_buffers() 616 dma_free_coherent(&mac->dma_pdev->dev, RX_RING_SIZE * sizeof(u64), in pasemi_mac_free_rx_resources() 670 (RX_RING_SIZE - 1); in pasemi_mac_replenish_rx_ring() [all …]
|
D | pasemi_mac_ethtool.c | 116 ering->rx_max_pending = RX_RING_SIZE/4; in pasemi_mac_ethtool_get_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 120 #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]; 1059 for (i = 0; i < RX_RING_SIZE; i++) in hamachi_tx_timeout() 1081 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() 1142 hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in hamachi_tx_timeout() 1144 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout() 1178 for (i = 0; i < RX_RING_SIZE; i++) { in hamachi_init_ring() [all …]
|
D | yellowfin.c | 75 #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]; 697 for (i = 0; i < RX_RING_SIZE; i++) in yellowfin_tx_timeout() 733 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring() 737 ((i+1)%RX_RING_SIZE)*sizeof(struct yellowfin_desc)); in yellowfin_init_ring() 740 for (i = 0; i < RX_RING_SIZE; i++) { in yellowfin_init_ring() 749 if (i != RX_RING_SIZE) { in yellowfin_init_ring() 755 yp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in yellowfin_init_ring() 1039 int entry = yp->cur_rx % RX_RING_SIZE; in yellowfin_rx() [all …]
|
/linux-4.4.14/drivers/net/wan/ |
D | dscc4.c | 165 #define RX_RING_SIZE 32 macro 167 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct RxFD) 200 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 441 ((dpriv->rx_dirty - 1)%RX_RING_SIZE)*sizeof(struct RxFD); in dscc4_rx_update() 507 for (i = 0; i < RX_RING_SIZE; i++) { in dscc4_release_ring() 521 unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE; in try_get_rx_skb() 648 struct RxFD *rx_fd = dpriv->rx_fd + dpriv->rx_current%RX_RING_SIZE; in dscc4_rx_skb() 653 skb = dpriv->rx_skbuff[dpriv->rx_current++%RX_RING_SIZE]; in dscc4_rx_skb() 680 while ((dpriv->rx_dirty - dpriv->rx_current) % RX_RING_SIZE) { in dscc4_rx_skb() 1659 (dpriv->rx_current%RX_RING_SIZE)* in dscc4_tx_irq() [all …]
|
/linux-4.4.14/drivers/net/ethernet/dlink/ |
D | dl2k.h | 40 #define RX_RING_SIZE 256 macro 42 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct netdev_desc) 371 struct sk_buff *rx_skbuff[RX_RING_SIZE];
|
D | sundance.c | 70 #define RX_RING_SIZE 64 macro 73 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct netdev_desc) 373 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 1037 for (i = 0; i < RX_RING_SIZE; i++) { in init_ring() 1039 ((i+1)%RX_RING_SIZE)*sizeof(*np->rx_ring)); in init_ring() 1046 for (i = 0; i < RX_RING_SIZE; i++) { in init_ring() 1064 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring() 1335 int entry = np->cur_rx % RX_RING_SIZE; in rx_poll() 1406 entry = (entry + 1) % RX_RING_SIZE; in rx_poll() 1433 for (;(np->cur_rx - np->dirty_rx + RX_RING_SIZE) % RX_RING_SIZE > 0; in refill_rx() [all …]
|
D | dl2k.c | 543 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer() 548 entry = np->old_rx % RX_RING_SIZE; in rio_timer() 611 for (i = 0; i < RX_RING_SIZE; i++) { in alloc_list() 613 ((i + 1) % RX_RING_SIZE) * in alloc_list() 621 for (i = 0; i < RX_RING_SIZE; i++) { in alloc_list() 868 int entry = np->cur_rx % RX_RING_SIZE; in receive_packet() 933 entry = (entry + 1) % RX_RING_SIZE; in receive_packet() 961 entry = (entry + 1) % RX_RING_SIZE; in receive_packet() 1751 for (i = 0; i < RX_RING_SIZE; i++) { in rio_close()
|
/linux-4.4.14/drivers/net/ethernet/smsc/ |
D | epic100.c | 55 #define RX_RING_SIZE 256 macro 57 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct epic_rx_desc) 258 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 777 epic_rx(dev, RX_RING_SIZE); in epic_pause() 813 (ep->cur_rx % RX_RING_SIZE) * sizeof(struct epic_rx_desc)); in epic_restart() 910 for (i = 0; i < RX_RING_SIZE; i++) { in epic_init_ring() 921 for (i = 0; i < RX_RING_SIZE; i++) { in epic_init_ring() 931 ep->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in epic_init_ring() 1141 int entry = ep->cur_rx % RX_RING_SIZE; in epic_rx() 1142 int rx_work_limit = ep->dirty_rx + RX_RING_SIZE - ep->cur_rx; in epic_rx() [all …]
|
D | smsc9420.c | 586 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_free_rx_ring() 867 pd->rx_ring_tail = (pd->rx_ring_tail + 1) % RX_RING_SIZE; in smsc9420_alloc_new_rx_buffers() 889 pd->rx_ring_head = (pd->rx_ring_head + 1) % RX_RING_SIZE; in smsc9420_rx_poll() 1275 pd->rx_buffers = kmalloc_array(RX_RING_SIZE, in smsc9420_alloc_rx_ring() 1282 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_alloc_rx_ring() 1289 pd->rx_ring[RX_RING_SIZE - 1].length = (PKT_BUF_SZ | RDES1_RER_); in smsc9420_alloc_rx_ring() 1292 for (i = 0; i < RX_RING_SIZE; i++) { in smsc9420_alloc_rx_ring() 1627 sizeof(struct smsc9420_dma_desc) * RX_RING_SIZE + in smsc9420_probe() 1635 pd->tx_ring = (pd->rx_ring + RX_RING_SIZE); in smsc9420_probe() 1637 sizeof(struct smsc9420_dma_desc) * RX_RING_SIZE; in smsc9420_probe() [all …]
|
D | smsc9420.h | 25 #define RX_RING_SIZE (128) macro
|
/linux-4.4.14/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 104 #define RX_RING_SIZE 32 macro 544 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 545 dma_addr_t rx_dma[RX_RING_SIZE]; 1718 writel(np->ring_dma + RX_RING_SIZE * sizeof(struct netdev_desc), in init_registers() 1871 for (i = 0; i < RX_RING_SIZE; i++) { in dump_ring() 1916 sizeof(struct netdev_desc) * (RX_RING_SIZE+TX_RING_SIZE), in alloc_ring() 1920 np->tx_ring = &np->rx_ring[RX_RING_SIZE]; in alloc_ring() 1931 int entry = np->dirty_rx % RX_RING_SIZE; in refill_rx() 1950 if (np->cur_rx - np->dirty_rx == RX_RING_SIZE) { in refill_rx() 1978 *((i+1)%TX_RING_SIZE+RX_RING_SIZE)); in init_ring() [all …]
|
/linux-4.4.14/drivers/net/ethernet/3com/ |
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]; 820 for (i = 0; i < RX_RING_SIZE; i++) { in corkscrew_open() 822 if (i < (RX_RING_SIZE - 1)) in corkscrew_open() 1333 int entry = vp->cur_rx % RX_RING_SIZE; in boomerang_rx() 1395 entry = (++vp->cur_rx) % RX_RING_SIZE; in boomerang_rx() 1400 entry = vp->dirty_rx % RX_RING_SIZE; in boomerang_rx() 1450 for (i = 0; i < RX_RING_SIZE; i++) in corkscrew_close()
|
D | 3c59x.c | 39 #define RX_RING_SIZE 32 macro 602 struct sk_buff* rx_skbuff[RX_RING_SIZE]; 1219 vp->rx_ring = pci_alloc_consistent(pdev, sizeof(struct boom_rx_desc) * RX_RING_SIZE in vortex_probe1() 1226 vp->tx_ring = (struct boom_tx_desc *)(vp->rx_ring + RX_RING_SIZE); in vortex_probe1() 1227 vp->tx_ring_dma = vp->rx_ring_dma + sizeof(struct boom_rx_desc) * RX_RING_SIZE; in vortex_probe1() 1484 sizeof(struct boom_rx_desc) * RX_RING_SIZE in vortex_probe1() 1698 for (i = 0; i < RX_RING_SIZE; i++) /* AKPM: this is done in vortex_open, too */ in vortex_up() 1751 for (i = 0; i < RX_RING_SIZE; i++) { in vortex_open() 1766 if (i != RX_RING_SIZE) { in vortex_open() 1780 for (i = 0; i < RX_RING_SIZE; i++) { in vortex_open() [all …]
|
/linux-4.4.14/drivers/net/ethernet/via/ |
D | via-rhine.c | 81 #define RX_RING_SIZE 64 macro 448 struct sk_buff *rx_skbuff[RX_RING_SIZE]; 449 dma_addr_t rx_skbuff_dma[RX_RING_SIZE]; 1165 RX_RING_SIZE * sizeof(struct rx_desc) + in alloc_ring() 1180 RX_RING_SIZE * sizeof(struct rx_desc) + in alloc_ring() 1188 rp->tx_ring = ring + RX_RING_SIZE * sizeof(struct rx_desc); in alloc_ring() 1190 rp->tx_ring_dma = ring_dma + RX_RING_SIZE * sizeof(struct rx_desc); in alloc_ring() 1201 RX_RING_SIZE * sizeof(struct rx_desc) + in free_ring() 1246 for (i = 0; i < RX_RING_SIZE; i++) in rhine_reset_rbufs() 1272 for (i = 0; i < RX_RING_SIZE; i++) { in alloc_rbufs() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/ |
D | qede.h | 272 #define RX_RING_SIZE BIT(RX_RING_SIZE_POW) macro 273 #define NUM_RX_BDS_MAX (RX_RING_SIZE - 1)
|
/linux-4.4.14/drivers/net/ethernet/adaptec/ |
D | starfire.c | 122 #define RX_RING_SIZE 256 macro 129 #if RX_RING_SIZE > 256 538 struct rx_ring_info rx_info[RX_RING_SIZE]; 903 rx_ring_size = sizeof(struct starfire_rx_desc) * RX_RING_SIZE; in netdev_open() 1150 for (i = 0; i < RX_RING_SIZE; i++) { in init_ring() 1160 np->dirty_rx = (unsigned int)(i - RX_RING_SIZE); in init_ring() 1163 for ( ; i < RX_RING_SIZE; i++) { in init_ring() 1169 np->rx_ring[RX_RING_SIZE - 1].rxaddr |= cpu_to_dma(RxDescEndRing); in init_ring() 1565 entry = np->dirty_rx % RX_RING_SIZE; in refill_rx_ring() 1576 if (entry == RX_RING_SIZE - 1) in refill_rx_ring() [all …]
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | fec.h | 332 #define RX_RING_SIZE (FEC_ENET_RX_FRPPG * FEC_ENET_RX_PAGES) macro 454 struct sk_buff *rx_skbuff[RX_RING_SIZE];
|
D | fec_main.c | 2771 fep->rx_queue[i]->rx_ring_size = RX_RING_SIZE; in fec_enet_alloc_queue()
|
/linux-4.4.14/drivers/net/ethernet/cadence/ |
D | macb.c | 38 #define RX_RING_SIZE 512 /* must be power of 2 */ macro 39 #define RX_RING_BYTES (sizeof(struct macb_dma_desc) * RX_RING_SIZE) 94 return index & (RX_RING_SIZE - 1); in macb_rx_ring_wrap() 731 while (CIRC_SPACE(bp->rx_prepared_head, bp->rx_tail, RX_RING_SIZE) > 0) { in gem_rx_refill() 758 if (entry == RX_RING_SIZE - 1) in gem_rx_refill() 1380 for (i = 0; i < RX_RING_SIZE; i++) { in gem_free_rx_buffers() 1402 RX_RING_SIZE * bp->rx_buffer_size, in macb_free_rx_buffers() 1435 size = RX_RING_SIZE * sizeof(struct sk_buff *); in gem_alloc_rx_buffers() 1442 RX_RING_SIZE, bp->rx_skbuff); in gem_alloc_rx_buffers() 1450 size = RX_RING_SIZE * bp->rx_buffer_size; in macb_alloc_rx_buffers() [all …]
|
/linux-4.4.14/drivers/net/ethernet/ |
D | fealnx.c | 59 #define RX_RING_SIZE 12 macro 61 #define RX_TOTAL_SIZE RX_RING_SIZE*sizeof(struct fealnx_desc) 1067 while (np->really_rx_count != RX_RING_SIZE) { in allocate_rx_buffers() 1212 for (i = 0; i < RX_RING_SIZE; i++) in fealnx_tx_timeout() 1249 for (i = 0; i < RX_RING_SIZE; i++) { in init_ring() 1263 for (i = 0; i < RX_RING_SIZE; i++) { in init_ring() 1420 for (i = 0; i < RX_RING_SIZE; i++) { in reset_rx_descriptors() 1913 for (i = 0; i < RX_RING_SIZE; i++) { in netdev_close()
|
/linux-4.4.14/drivers/net/ethernet/i825xx/ |
D | 82596.c | 288 #define RX_RING_SIZE 16 macro 332 struct i596_rfd rfds[RX_RING_SIZE]; 333 struct i596_rbd rbds[RX_RING_SIZE]; 370 static int rx_ring_size = RX_RING_SIZE;
|
D | lib82596.c | 272 #define RX_RING_SIZE 16 macro 308 struct i596_rfd rfds[RX_RING_SIZE] __attribute__((aligned(32))); 309 struct i596_rbd rbds[RX_RING_SIZE] __attribute__((aligned(32))); 360 static int rx_ring_size = RX_RING_SIZE;
|
/linux-4.4.14/drivers/net/ethernet/renesas/ |
D | sh_eth.h | 25 #define RX_RING_SIZE 64 /* Rx ring size */ macro
|
D | sh_eth.c | 3108 mdp->num_rx_ring = RX_RING_SIZE; in sh_eth_drv_probe()
|
/linux-4.4.14/drivers/net/ethernet/alteon/ |
D | acenic.c | 330 #define RX_RING_SIZE 72 macro 336 #define RX_LOW_STD_THRES (3*RX_RING_SIZE)/4 1487 ace_load_std_rx_ring(dev, RX_RING_SIZE); in ace_init() 1581 ace_load_std_rx_ring(dev, RX_RING_SIZE - cur_size); in ace_tasklet() 2183 RX_RING_SIZE - cur_size); in ace_interrupt()
|