Home
last modified time | relevance | path

Searched refs:N_TX_RINGS (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/sun/
Dcassini.h2551 #define N_TX_RINGS MAX_TX_RINGS /* for QoS */ macro
2735 struct cas_tx_desc txds[N_TX_RINGS][INIT_BLOCK_TX];
2753 spinlock_t tx_lock[N_TX_RINGS]; /* tx bits */
2754 spinlock_t stat_lock[N_TX_RINGS + 1]; /* for stat gathering */
2759 int tx_new[N_TX_RINGS], tx_old[N_TX_RINGS];
2779 struct sk_buff *tx_skbs[N_TX_RINGS][TX_DESC_RING_SIZE];
2787 struct cas_tiny_count tx_tiny_use[N_TX_RINGS][TX_DESC_RING_SIZE];
2788 u8 *tx_tiny_bufs[N_TX_RINGS];
2793 struct net_device_stats net_stats[N_TX_RINGS + 1];
2866 dma_addr_t block_dvma, tx_tiny_dvma[N_TX_RINGS];
Dcassini.c248 for (i = 0; i < N_TX_RINGS; i++) in cas_lock_tx()
277 for (i = N_TX_RINGS; i > 0; i--) in cas_unlock_tx()
1937 for (ring = 0; ring < N_TX_RINGS; ring++) { in cas_tx()
3124 spin_lock(&cp->stat_lock[N_TX_RINGS]); in cas_init_mac()
3126 spin_unlock(&cp->stat_lock[N_TX_RINGS]); in cas_init_mac()
3828 spin_lock(&cp->stat_lock[N_TX_RINGS]); in cas_reset()
3830 spin_unlock(&cp->stat_lock[N_TX_RINGS]); in cas_reset()
3969 memset(cp->tx_old, 0, sizeof(*cp->tx_old)*N_TX_RINGS); in cas_clean_rings()
3970 memset(cp->tx_new, 0, sizeof(*cp->tx_new)*N_TX_RINGS); in cas_clean_rings()
3971 for (i = 0; i < N_TX_RINGS; i++) in cas_clean_rings()
[all …]