• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching refs:counter

1122  * @cnt_ptr:	Current pointer to MIB counter index.
1125 * @mib_start: The starting counter index. Some ports do not start at 0.
1126 * @counter: 64-bit MIB counter value.
1145 u64 counter[TOTAL_PORT_COUNTER_NUM];
1339 * @counter: Port statistics counter.
1352 u64 counter[OID_COUNTER_LAST];
1361 * @cnt: Running timer counter.
1389 * struct ksz_counter_info - OS dependent counter information data structure
1390 * @counter: Wait queue to wakeup after counters are read.
1391 * @time: Next time in jiffies to read counter.
1395 wait_queue_head_t counter;
1414 * @counter: Used for MIB reading.
1442 struct ksz_counter_info counter[TOTAL_PORT_NUM];
1789 * port_r_mib_cnt - read MIB counter
1792 * @addr: The address of the counter.
1793 * @cnt: Buffer to store the counter.
1795 * This routine reads a MIB counter of the port.
1879 * counter overflow. The hardware should be acquired first before calling this
1891 &mib->counter[mib->cnt_ptr]);
1896 &mib->counter[PORT_COUNTER_NUM]);
1902 * port_init_cnt - initialize MIB counter values
1917 &mib->counter[mib->cnt_ptr]);
1922 &mib->counter[PORT_COUNTER_NUM]);
1923 memset((void *) mib->counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM);
4632 u64 *counter)
4639 memset(counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM);
4643 counter[mib] += port_mib->counter[mib];
5186 priv->port.counter[OID_COUNTER_RCV_ERROR]++;
5524 memset((void *) port->counter, 0,
5536 hw_priv->counter[i].time = next_jiffies;
5623 dev->stats.rx_errors = port->counter[OID_COUNTER_RCV_ERROR];
5624 dev->stats.tx_errors = port->counter[OID_COUNTER_XMIT_ERROR];
5638 mib->counter[MIB_COUNTER_RX_MULTICAST];
5641 mib->counter[MIB_COUNTER_TX_TOTAL_COLLISION];
5644 mib->counter[MIB_COUNTER_RX_UNDERSIZE] +
5645 mib->counter[MIB_COUNTER_RX_FRAGMENT] +
5646 mib->counter[MIB_COUNTER_RX_OVERSIZE] +
5647 mib->counter[MIB_COUNTER_RX_JABBER]);
5649 mib->counter[MIB_COUNTER_RX_CRC_ERR];
5651 mib->counter[MIB_COUNTER_RX_ALIGNMENT_ERR] +
5652 mib->counter[MIB_COUNTER_RX_SYMBOL_ERR]);
5655 mib->counter[MIB_COUNTER_TX_LATE_COLLISION];
6536 u64 counter[TOTAL_PORT_COUNTER_NUM];
6542 hw_priv->counter[p].read = 1;
6557 hw_priv->counter[p].counter,
6558 2 == hw_priv->counter[p].read,
6564 hw_priv->counter[p].counter,
6565 2 == hw_priv->counter[p].read,
6569 hw_priv->counter[p].counter,
6570 2 == hw_priv->counter[p].read,
6575 get_mib_counters(hw, port->first_port, port->mib_port_cnt, counter);
6581 *data++ = counter[i];
6695 if (mib->cnt_ptr || 1 == hw_priv->counter[i].read) {
6700 hw_priv->counter[i].read = 0;
6704 hw_priv->counter[i].read = 2;
6706 &hw_priv->counter[i].counter);
6708 } else if (jiffies >= hw_priv->counter[i].time) {
6711 hw_priv->counter[i].read = 1;
6713 hw_priv->counter[i].time = next_jiffies;
6720 hw_priv->counter[i].read = 1;
7077 /* tasklet_enable will decrement the atomic counter. */
7082 init_waitqueue_head(&hw_priv->counter[i].counter);