• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/

Lines Matching refs:N_TX_RINGS

242 	for (i = 0; i < N_TX_RINGS; i++)
271 for (i = N_TX_RINGS; i > 0; i--)
1831 for (ring = 0; ring < N_TX_RINGS; ring++) {
2909 /* must be invoked under cp->stat_lock[N_TX_RINGS] */
3046 spin_lock(&cp->stat_lock[N_TX_RINGS]);
3048 spin_unlock(&cp->stat_lock[N_TX_RINGS]);
3739 spin_lock(&cp->stat_lock[N_TX_RINGS]);
3741 spin_unlock(&cp->stat_lock[N_TX_RINGS]);
3865 memset(cp->tx_old, 0, sizeof(*cp->tx_old)*N_TX_RINGS);
3866 memset(cp->tx_new, 0, sizeof(*cp->tx_new)*N_TX_RINGS);
3867 for (i = 0; i < N_TX_RINGS; i++)
4078 for (i = 0; i < N_TX_RINGS; i++) {
4094 for (i = 0; i < N_TX_RINGS; i++) {
4284 return stats + N_TX_RINGS;
4294 spin_lock_irqsave(&cp->stat_lock[N_TX_RINGS], flags);
4295 stats[N_TX_RINGS].rx_crc_errors +=
4297 stats[N_TX_RINGS].rx_frame_errors +=
4299 stats[N_TX_RINGS].rx_length_errors +=
4303 stats[N_TX_RINGS].tx_aborted_errors += tmp;
4304 stats[N_TX_RINGS].collisions +=
4310 stats[N_TX_RINGS].collisions += stats[0].collisions;
4311 stats[N_TX_RINGS].rx_over_errors += stats[0].rx_over_errors;
4312 stats[N_TX_RINGS].rx_frame_errors += stats[0].rx_frame_errors;
4313 stats[N_TX_RINGS].rx_fifo_errors += stats[0].rx_fifo_errors;
4314 stats[N_TX_RINGS].tx_aborted_errors += stats[0].tx_aborted_errors;
4315 stats[N_TX_RINGS].tx_fifo_errors += stats[0].tx_fifo_errors;
4318 for (i = 0; i < N_TX_RINGS; i++) {
4320 stats[N_TX_RINGS].rx_length_errors +=
4322 stats[N_TX_RINGS].rx_crc_errors += stats[i].rx_crc_errors;
4323 stats[N_TX_RINGS].rx_packets += stats[i].rx_packets;
4324 stats[N_TX_RINGS].tx_packets += stats[i].tx_packets;
4325 stats[N_TX_RINGS].rx_bytes += stats[i].rx_bytes;
4326 stats[N_TX_RINGS].tx_bytes += stats[i].tx_bytes;
4327 stats[N_TX_RINGS].rx_errors += stats[i].rx_errors;
4328 stats[N_TX_RINGS].tx_errors += stats[i].tx_errors;
4329 stats[N_TX_RINGS].rx_dropped += stats[i].rx_dropped;
4330 stats[N_TX_RINGS].tx_dropped += stats[i].tx_dropped;
4334 spin_unlock_irqrestore(&cp->stat_lock[N_TX_RINGS], flags);
4335 return stats + N_TX_RINGS;
4780 for (i = 0; i < N_TX_RINGS; i++) {
4784 spin_lock_init(&cp->stat_lock[N_TX_RINGS]);
4833 for (i = 0; i < N_TX_RINGS; i++)