| /linux/drivers/net/ethernet/sun/ |
| H A D | sunhme.h | 331 #define TX_RING_SIZE 32 /* Must be >16 and <255, multiple of 16 */ macro 334 #if (TX_RING_SIZE < 16 || TX_RING_SIZE > 256 || (TX_RING_SIZE % 16) != 0) 335 #error TX_RING_SIZE holds illegal value 361 #define NEXT_TX(num) (((num) + 1) & (TX_RING_SIZE - 1)) 363 #define PREV_TX(num) (((num) - 1) & (TX_RING_SIZE - 1)) 367 (hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \ 418 struct sk_buff *tx_skbs[TX_RING_SIZE];
|
| H A D | sunqe.h | 291 #define TX_RING_SIZE 16 macro 301 (qp)->tx_old + (TX_RING_SIZE - 1) - (qp)->tx_new : \ 326 u8 tx_buf[TX_RING_SIZE][PKT_BUF_SZ];
|
| H A D | sunqe.c | 588 txbuf = &qbufs->tx_buf[entry & (TX_RING_SIZE - 1)][0]; in qe_start_xmit() 590 qebuf_offset(tx_buf, (entry & (TX_RING_SIZE - 1))); in qe_start_xmit()
|
| H A D | sungem.c | 645 last &= (TX_RING_SIZE - 1); in gem_tx() 965 if (!(entry & ((TX_RING_SIZE>>1)-1))) in gem_intme() 1572 for (i = 0; i < TX_RING_SIZE; i++) { in gem_clean_rings() 1581 int ent = i & (TX_RING_SIZE - 1); in gem_clean_rings() 1635 for (i = 0; i < TX_RING_SIZE; i++) { in gem_init_rings()
|
| H A D | sunbmac.c | 204 for (i = 0; i < TX_RING_SIZE; i++) { in bigmac_clean_rings() 249 for (i = 0; i < TX_RING_SIZE; i++) in bigmac_init_rings()
|
| /linux/drivers/net/ethernet/amd/ |
| H A D | 7990.h | 39 #define TX_RING_SIZE (1 << LANCE_LOG_TX_BUFFERS) macro 41 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 87 volatile struct lance_tx_desc btx_ring[TX_RING_SIZE]; 90 volatile char tx_buf[TX_RING_SIZE][TX_BUFF_SIZE];
|
| H A D | atarilance.c | 112 #define TX_RING_SIZE (1 << TX_LOG_RING_SIZE) macro 114 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 158 struct lance_tx_head tx_head[TX_RING_SIZE]; 705 for( i = 0; i < TX_RING_SIZE; i++ ) { in lance_init_ring() 756 for( i = 0 ; i < TX_RING_SIZE; i++ ) in lance_tx_timeout() 830 while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) { in lance_start_xmit() 831 lp->cur_tx -= TX_RING_SIZE; in lance_start_xmit() 832 lp->dirty_tx -= TX_RING_SIZE; in lance_start_xmit() 921 if (lp->cur_tx - dirty_tx >= TX_RING_SIZE) { in lance_interrupt() 925 dirty_tx += TX_RING_SIZE; in lance_interrupt() [all …]
|
| H A D | sun3lance.c | 95 #define TX_RING_SIZE (1 << TX_LOG_RING_SIZE) macro 97 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 143 struct lance_tx_head tx_head[TX_RING_SIZE]; 146 char tx_data[TX_RING_SIZE][PKT_BUF_SZ]; 460 for( i = 0; i < TX_RING_SIZE; i++ ) { in lance_init_ring() 548 for( i = 0 ; i < TX_RING_SIZE; i++ ) in lance_start_xmit()
|
| H A D | sunlance.c | 176 #define TX_RING_SIZE (1 << (LANCE_LOG_TX_BUFFERS)) macro 177 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 223 struct lance_tx_desc btx_ring[TX_RING_SIZE]; 225 u8 tx_buf [TX_RING_SIZE][TX_BUFF_SIZE]; 340 for (i = 0; i < TX_RING_SIZE; i++) { in lance_init_ring_dvma() 396 for (i = 0; i < TX_RING_SIZE; i++) { in lance_init_ring_pio()
|
| H A D | 7990.c | 104 for (t = 0; t < TX_RING_SIZE; t++) { \
|
| H A D | pcnet32.c | 167 #define TX_RING_SIZE (1 << (PCNET32_LOG_TX_BUFFERS)) macro 1862 lp->tx_ring_size = TX_RING_SIZE; /* default tx ring size */ in pcnet32_probe1()
|
| /linux/drivers/net/ethernet/pasemi/ |
| H A D | pasemi_mac.h | 19 #define TX_RING_SIZE 4096 macro 20 #define CS_RING_SIZE (TX_RING_SIZE*2) 94 #define TX_DESC(tx, num) ((tx)->chan.ring_virt[(num) & (TX_RING_SIZE-1)]) 95 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)])
|
| H A D | pasemi_mac.c | 465 ring->size = TX_RING_SIZE; in pasemi_mac_setup_tx_resources() 466 ring->ring_info = kzalloc_objs(struct pasemi_mac_buffer, TX_RING_SIZE); in pasemi_mac_setup_tx_resources() 471 if (pasemi_dma_alloc_ring(&ring->chan, TX_RING_SIZE)) in pasemi_mac_setup_tx_resources() 477 val |= PAS_DMA_TXCHAN_BASEU_SIZ(TX_RING_SIZE >> 3); in pasemi_mac_setup_tx_resources() 519 limit += TX_RING_SIZE; in pasemi_mac_free_tx_resources() 522 info = &txring->ring_info[(i+1) & (TX_RING_SIZE-1)]; in pasemi_mac_free_tx_resources() 527 (TX_RING_SIZE-1)].dma; in pasemi_mac_free_tx_resources() 837 ring_limit += TX_RING_SIZE; in pasemi_mac_clean_tx() 885 txring->next_to_clean = i & (TX_RING_SIZE-1); in pasemi_mac_clean_tx() 1520 txring->next_to_fill = (fill + nfrags + 1) & (TX_RING_SIZE-1); in pasemi_mac_start_tx()
|
| H A D | pasemi_mac_ethtool.c | 78 ering->tx_max_pending = TX_RING_SIZE/2; in pasemi_mac_ethtool_get_ringparam()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | interrupt.c | 533 int maxtx = TX_RING_SIZE; in tulip_interrupt() 534 int maxoi = TX_RING_SIZE; in tulip_interrupt() 597 int entry = dirty_tx % TX_RING_SIZE; in tulip_interrupt() 652 if (tp->cur_tx - dirty_tx > TX_RING_SIZE) { in tulip_interrupt() 656 dirty_tx += TX_RING_SIZE; in tulip_interrupt() 660 if (tp->cur_tx - dirty_tx < TX_RING_SIZE - 2) in tulip_interrupt()
|
| H A D | tulip.h | 326 #define TX_RING_SIZE 32 macro 409 struct ring_info tx_buffers[TX_RING_SIZE];
|
| /linux/drivers/net/ethernet/via/ |
| H A D | via-rhine.c | 77 #define TX_RING_SIZE 64 macro 78 #define TX_QUEUE_LEN (TX_RING_SIZE - 6) /* Limit ring entries actually used. */ 446 struct sk_buff *tx_skbuff[TX_RING_SIZE]; 447 dma_addr_t tx_skbuff_dma[TX_RING_SIZE]; 450 unsigned char *tx_buf[TX_RING_SIZE]; 1147 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring() 1156 PKT_BUF_SZ * TX_RING_SIZE, in alloc_ring() 1162 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring() 1183 TX_RING_SIZE * sizeof(struct tx_desc), in free_ring() 1188 dma_free_coherent(hwdev, PKT_BUF_SZ * TX_RING_SIZE, in free_ring() [all …]
|
| /linux/drivers/net/ethernet/smsc/ |
| H A D | smsc9420.c | 498 for (i = 0; i < TX_RING_SIZE; i++) { in smsc9420_free_tx_ring() 921 pd->tx_ring_tail = (pd->tx_ring_tail + 1) % TX_RING_SIZE; in smsc9420_complete_tx() 933 (((pd->tx_ring_head + 2) % TX_RING_SIZE) == pd->tx_ring_tail); in smsc9420_hard_start_xmit() 960 if (unlikely(index == (TX_RING_SIZE - 1))) in smsc9420_hard_start_xmit() 968 pd->tx_ring_head = (pd->tx_ring_head + 1) % TX_RING_SIZE; in smsc9420_hard_start_xmit() 1182 pd->tx_buffers = kmalloc_objs(struct smsc9420_ring_info, TX_RING_SIZE); in smsc9420_alloc_tx_ring() 1187 for (i = 0; i < TX_RING_SIZE; i++) { in smsc9420_alloc_tx_ring() 1195 pd->tx_ring[TX_RING_SIZE - 1].length = TDES1_TER_; in smsc9420_alloc_tx_ring() 1546 sizeof(struct smsc9420_dma_desc) * (RX_RING_SIZE + TX_RING_SIZE), in smsc9420_probe() 1604 sizeof(struct smsc9420_dma_desc) * (RX_RING_SIZE + TX_RING_SIZE), in smsc9420_probe() [all …]
|
| H A D | smsc9420.h | 12 #define TX_RING_SIZE (32) macro
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | 82596.c | 286 #define TX_RING_SIZE 64 macro 333 struct tx_cmd tx_cmds[TX_RING_SIZE]; 334 struct i596_tbd tbds[TX_RING_SIZE]; 371 static int max_cmd_backlog = TX_RING_SIZE-1; 1076 if (++lp->next_tx_cmd == TX_RING_SIZE) in i596_start_xmit()
|
| H A D | lib82596.c | 270 #define TX_RING_SIZE 32 macro 309 struct tx_cmd tx_cmds[TX_RING_SIZE] __attribute__((aligned(32))); 310 struct i596_tbd tbds[TX_RING_SIZE] __attribute__((aligned(32))); 361 static int max_cmd_backlog = TX_RING_SIZE-1; 1026 if (++lp->next_tx_cmd == TX_RING_SIZE) in i596_start_xmit()
|
| /linux/drivers/net/ethernet/sgi/ |
| H A D | ioc3-eth.c | 67 #define TX_RING_SIZE (TX_RING_ENTRIES * sizeof(struct ioc3_etxd)) macro 894 ip->tx_ring = dma_alloc_coherent(ip->dma_dev, TX_RING_SIZE + SZ_16K - 1, in ioc3eth_probe() 958 dma_free_coherent(ip->dma_dev, TX_RING_SIZE + SZ_16K - 1, ip->tx_ring, in ioc3eth_probe() 974 dma_free_coherent(ip->dma_dev, TX_RING_SIZE + SZ_16K - 1, ip->tx_ring, ip->txr_dma); in ioc3eth_remove()
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | sh_eth.h | 13 #define TX_RING_SIZE 64 /* Tx ring size */ macro
|
| H A D | sh_eth.c | 3279 mdp->num_tx_ring = TX_RING_SIZE; in sh_eth_drv_probe()
|