Lines Matching refs:counter
1145 u64 counter[TOTAL_PORT_COUNTER_NUM]; member
1351 u64 counter[OID_COUNTER_LAST]; member
1394 wait_queue_head_t counter; member
1441 struct ksz_counter_info counter[TOTAL_PORT_NUM]; member
1890 &mib->counter[mib->cnt_ptr]); in port_r_cnt()
1895 &mib->counter[PORT_COUNTER_NUM]); in port_r_cnt()
1916 &mib->counter[mib->cnt_ptr]); in port_init_cnt()
1921 &mib->counter[PORT_COUNTER_NUM]); in port_init_cnt()
1922 memset((void *) mib->counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM); in port_init_cnt()
4616 u64 *counter) in get_mib_counters() argument
4623 memset(counter, 0, sizeof(u64) * TOTAL_PORT_COUNTER_NUM); in get_mib_counters()
4627 counter[mib] += port_mib->counter[mib]; in get_mib_counters()
5168 priv->port.counter[OID_COUNTER_RCV_ERROR]++; in dev_rcv_special()
5514 memset((void *) port->counter, 0, in netdev_open()
5526 hw_priv->counter[i].time = next_jiffies; in netdev_open()
5613 dev->stats.rx_errors = port->counter[OID_COUNTER_RCV_ERROR]; in netdev_query_statistics()
5614 dev->stats.tx_errors = port->counter[OID_COUNTER_XMIT_ERROR]; in netdev_query_statistics()
5628 mib->counter[MIB_COUNTER_RX_MULTICAST]; in netdev_query_statistics()
5631 mib->counter[MIB_COUNTER_TX_TOTAL_COLLISION]; in netdev_query_statistics()
5634 mib->counter[MIB_COUNTER_RX_UNDERSIZE] + in netdev_query_statistics()
5635 mib->counter[MIB_COUNTER_RX_FRAGMENT] + in netdev_query_statistics()
5636 mib->counter[MIB_COUNTER_RX_OVERSIZE] + in netdev_query_statistics()
5637 mib->counter[MIB_COUNTER_RX_JABBER]); in netdev_query_statistics()
5639 mib->counter[MIB_COUNTER_RX_CRC_ERR]; in netdev_query_statistics()
5641 mib->counter[MIB_COUNTER_RX_ALIGNMENT_ERR] + in netdev_query_statistics()
5642 mib->counter[MIB_COUNTER_RX_SYMBOL_ERR]); in netdev_query_statistics()
5645 mib->counter[MIB_COUNTER_TX_LATE_COLLISION]; in netdev_query_statistics()
6524 u64 counter[TOTAL_PORT_COUNTER_NUM]; in netdev_get_ethtool_stats() local
6530 hw_priv->counter[p].read = 1; in netdev_get_ethtool_stats()
6545 hw_priv->counter[p].counter, in netdev_get_ethtool_stats()
6546 2 == hw_priv->counter[p].read, in netdev_get_ethtool_stats()
6552 hw_priv->counter[p].counter, in netdev_get_ethtool_stats()
6553 2 == hw_priv->counter[p].read, in netdev_get_ethtool_stats()
6557 hw_priv->counter[p].counter, in netdev_get_ethtool_stats()
6558 2 == hw_priv->counter[p].read, in netdev_get_ethtool_stats()
6563 get_mib_counters(hw, port->first_port, port->mib_port_cnt, counter); in netdev_get_ethtool_stats()
6569 *data++ = counter[i]; in netdev_get_ethtool_stats()
6654 if (mib->cnt_ptr || 1 == hw_priv->counter[i].read) { in mib_read_work()
6659 hw_priv->counter[i].read = 0; in mib_read_work()
6663 hw_priv->counter[i].read = 2; in mib_read_work()
6665 &hw_priv->counter[i].counter); in mib_read_work()
6667 } else if (jiffies >= hw_priv->counter[i].time) { in mib_read_work()
6670 hw_priv->counter[i].read = 1; in mib_read_work()
6672 hw_priv->counter[i].time = next_jiffies; in mib_read_work()
6679 hw_priv->counter[i].read = 1; in mib_read_work()
7032 init_waitqueue_head(&hw_priv->counter[i].counter); in pcidev_init()