Lines Matching refs:cnt
974 for (int cnt = 0; cnt < IGC_GLOBAL_COUNTERS; cnt++) {
975 evcnt_attach_dynamic(&sc->sc_global_evcnts[cnt],
976 igc_global_counters[cnt].type, NULL,
977 device_xname(sc->sc_dev), igc_global_counters[cnt].name);
984 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++) {
985 evcnt_attach_dynamic(&sc->sc_driver_evcnts[cnt],
986 igc_driver_counters[cnt].type, NULL,
987 device_xname(sc->sc_dev), igc_driver_counters[cnt].name);
1009 for (int cnt = 0; cnt < IGC_QUEUE_COUNTERS; cnt++) {
1010 evcnt_attach_dynamic(&q->igcq_queue_evcnts[cnt],
1011 igc_queue_counters[cnt].type, NULL,
1012 q->igcq_queue_evname, igc_queue_counters[cnt].name);
1023 for (int cnt = 0; cnt < IGC_MAC_COUNTERS; cnt++) {
1024 evcnt_attach_dynamic(&sc->sc_mac_evcnts[cnt], EVCNT_TYPE_MISC,
1025 NULL, sc->sc_mac_evname, igc_mac_counters[cnt].name);
1036 for (int cnt = 0; cnt < IGC_GLOBAL_COUNTERS; cnt++)
1037 evcnt_detach(&sc->sc_global_evcnts[cnt]);
1050 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++)
1051 evcnt_detach(&sc->sc_driver_evcnts[cnt]);
1060 for (int cnt = 0; cnt < IGC_QUEUE_COUNTERS; cnt++)
1061 evcnt_detach(&q->igcq_queue_evcnts[cnt]);
1068 for (int cnt = 0; cnt < IGC_MAC_COUNTERS; cnt++)
1069 evcnt_detach(&sc->sc_mac_evcnts[cnt]);
1106 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++) {
1107 sum[cnt] += IGC_QUEUE_DRIVER_COUNTER_VAL(q, cnt);
1108 IGC_QUEUE_DRIVER_COUNTER_STORE(q, cnt, 0);
1112 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++)
1113 IGC_DRIVER_COUNTER_ADD(sc, cnt, sum[cnt]);
1122 for (int cnt = 0; cnt < IGC_MAC_COUNTERS; cnt++) {
1124 bus_size_t regaddr = igc_mac_counters[cnt].reg;
1127 igc_mac_counters[cnt].is64);
1128 IGC_MAC_COUNTER_ADD(sc, cnt, val);
1157 for (int cnt = 0; cnt < IGC_GLOBAL_COUNTERS; cnt++)
1158 IGC_GLOBAL_COUNTER_STORE(sc, cnt, 0);
1164 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++)
1165 IGC_QUEUE_DRIVER_COUNTER_STORE(q, cnt, 0);
1168 for (int cnt = 0; cnt < IGC_DRIVER_COUNTERS; cnt++)
1169 IGC_DRIVER_COUNTER_STORE(sc, cnt, 0);
1175 for (int cnt = 0; cnt < IGC_QUEUE_COUNTERS; cnt++)
1176 IGC_QUEUE_COUNTER_STORE(q, cnt, 0);
1182 for (int cnt = 0; cnt < IGC_MAC_COUNTERS; cnt++) {
1183 (void)igc_read_mac_counter(hw, igc_mac_counters[cnt].reg,
1184 igc_mac_counters[cnt].is64);
1185 IGC_MAC_COUNTER_STORE(sc, cnt, 0);