Lines Matching defs:ixgbe_ks
40 ixgbe_stat_t *ixgbe_ks;
47 ixgbe_ks = (ixgbe_stat_t *)ks->ks_data;
55 ixgbe_ks->link_speed.value.ui64 = ixgbe->link_speed;
56 ixgbe_ks->reset_count.value.ui64 = ixgbe->reset_count;
57 ixgbe_ks->lroc.value.ui64 = ixgbe->lro_pkt_count;
60 ixgbe_ks->rx_frame_error.value.ui64 = 0;
61 ixgbe_ks->rx_cksum_error.value.ui64 = 0;
62 ixgbe_ks->rx_exceed_pkt.value.ui64 = 0;
64 ixgbe_ks->rx_frame_error.value.ui64 +=
66 ixgbe_ks->rx_cksum_error.value.ui64 +=
68 ixgbe_ks->rx_exceed_pkt.value.ui64 +=
72 ixgbe_ks->tx_overload.value.ui64 = 0;
73 ixgbe_ks->tx_fail_no_tbd.value.ui64 = 0;
74 ixgbe_ks->tx_fail_no_tcb.value.ui64 = 0;
75 ixgbe_ks->tx_fail_dma_bind.value.ui64 = 0;
76 ixgbe_ks->tx_reschedule.value.ui64 = 0;
78 ixgbe_ks->tx_overload.value.ui64 +=
80 ixgbe_ks->tx_fail_no_tbd.value.ui64 +=
82 ixgbe_ks->tx_fail_no_tcb.value.ui64 +=
84 ixgbe_ks->tx_fail_dma_bind.value.ui64 +=
86 ixgbe_ks->tx_reschedule.value.ui64 +=
94 ixgbe_ks->gprc.value.ui64 = 0;
95 ixgbe_ks->gptc.value.ui64 = 0;
96 ixgbe_ks->tor.value.ui64 = 0;
97 ixgbe_ks->tot.value.ui64 = 0;
99 ixgbe_ks->qprc[i].value.ui64 +=
101 ixgbe_ks->gprc.value.ui64 += ixgbe_ks->qprc[i].value.ui64;
102 ixgbe_ks->qptc[i].value.ui64 +=
104 ixgbe_ks->gptc.value.ui64 += ixgbe_ks->qptc[i].value.ui64;
105 ixgbe_ks->qbrc[i].value.ui64 +=
107 ixgbe_ks->tor.value.ui64 += ixgbe_ks->qbrc[i].value.ui64;
110 ixgbe_ks->qbtc[i].value.ui64 +=
115 ixgbe_ks->qbtc[i].value.ui64 +=
117 ixgbe_ks->qbtc[i].value.ui64 +=
125 ixgbe_ks->tot.value.ui64 += ixgbe_ks->qbtc[i].value.ui64;
138 ixgbe_ks->gor.value.ui64 = ixgbe_ks->tor.value.ui64;
139 ixgbe_ks->got.value.ui64 = ixgbe_ks->tot.value.ui64;
141 ixgbe_ks->prc64.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC64);
142 ixgbe_ks->prc127.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC127);
143 ixgbe_ks->prc255.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC255);
144 ixgbe_ks->prc511.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC511);
145 ixgbe_ks->prc1023.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC1023);
146 ixgbe_ks->prc1522.value.ul += IXGBE_READ_REG(hw, IXGBE_PRC1522);
147 ixgbe_ks->ptc64.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC64);
148 ixgbe_ks->ptc127.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC127);
149 ixgbe_ks->ptc255.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC255);
150 ixgbe_ks->ptc511.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC511);
151 ixgbe_ks->ptc1023.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC1023);
152 ixgbe_ks->ptc1522.value.ul += IXGBE_READ_REG(hw, IXGBE_PTC1522);
154 ixgbe_ks->mspdc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_MSPDC);
156 ixgbe_ks->mpc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_MPC(i));
157 ixgbe_ks->mlfc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_MLFC);
158 ixgbe_ks->mrfc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_MRFC);
159 ixgbe_ks->rlec.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RLEC);
160 ixgbe_ks->lxontxc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_LXONTXC);
163 ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
168 ixgbe_ks->lxonrxc.value.ui64 += IXGBE_READ_REG(hw,
175 ixgbe_ks->lxofftxc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_LXOFFTXC);
178 ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
183 ixgbe_ks->lxoffrxc.value.ui64 += IXGBE_READ_REG(hw,
190 ixgbe_ks->ruc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RUC);
191 ixgbe_ks->rfc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RFC);
192 ixgbe_ks->roc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_ROC);
193 ixgbe_ks->rjc.value.ui64 += IXGBE_READ_REG(hw, IXGBE_RJC);
210 ixgbe_stat_t *ixgbe_ks;
225 ixgbe->ixgbe_ks = ks;
227 ixgbe_ks = (ixgbe_stat_t *)ks->ks_data;
232 kstat_named_init(&ixgbe_ks->link_speed, "link_speed",
234 kstat_named_init(&ixgbe_ks->reset_count, "reset_count",
238 kstat_named_init(&ixgbe_ks->rx_frame_error, "rx_frame_error",
240 kstat_named_init(&ixgbe_ks->rx_cksum_error, "rx_cksum_error",
242 kstat_named_init(&ixgbe_ks->rx_exceed_pkt, "rx_exceed_pkt",
244 kstat_named_init(&ixgbe_ks->tx_overload, "tx_overload",
246 kstat_named_init(&ixgbe_ks->tx_fail_no_tbd, "tx_fail_no_tbd",
248 kstat_named_init(&ixgbe_ks->tx_fail_no_tcb, "tx_fail_no_tcb",
250 kstat_named_init(&ixgbe_ks->tx_fail_dma_bind, "tx_fail_dma_bind",
252 kstat_named_init(&ixgbe_ks->tx_reschedule, "tx_reschedule",
256 kstat_named_init(&ixgbe_ks->gprc, "good_pkts_recvd",
258 kstat_named_init(&ixgbe_ks->gptc, "good_pkts_xmitd",
260 kstat_named_init(&ixgbe_ks->gor, "good_octets_recvd",
262 kstat_named_init(&ixgbe_ks->got, "good_octets_xmitd",
264 kstat_named_init(&ixgbe_ks->prc64, "pkts_recvd_( 64b)",
266 kstat_named_init(&ixgbe_ks->prc127, "pkts_recvd_( 65- 127b)",
268 kstat_named_init(&ixgbe_ks->prc255, "pkts_recvd_( 127- 255b)",
270 kstat_named_init(&ixgbe_ks->prc511, "pkts_recvd_( 256- 511b)",
272 kstat_named_init(&ixgbe_ks->prc1023, "pkts_recvd_( 511-1023b)",
274 kstat_named_init(&ixgbe_ks->prc1522, "pkts_recvd_(1024-1522b)",
276 kstat_named_init(&ixgbe_ks->ptc64, "pkts_xmitd_( 64b)",
278 kstat_named_init(&ixgbe_ks->ptc127, "pkts_xmitd_( 65- 127b)",
280 kstat_named_init(&ixgbe_ks->ptc255, "pkts_xmitd_( 128- 255b)",
282 kstat_named_init(&ixgbe_ks->ptc511, "pkts_xmitd_( 255- 511b)",
284 kstat_named_init(&ixgbe_ks->ptc1023, "pkts_xmitd_( 512-1023b)",
286 kstat_named_init(&ixgbe_ks->ptc1522, "pkts_xmitd_(1024-1522b)",
289 kstat_named_init(&ixgbe_ks->qprc[0], "queue_pkts_recvd [ 0]",
291 kstat_named_init(&ixgbe_ks->qprc[1], "queue_pkts_recvd [ 1]",
293 kstat_named_init(&ixgbe_ks->qprc[2], "queue_pkts_recvd [ 2]",
295 kstat_named_init(&ixgbe_ks->qprc[3], "queue_pkts_recvd [ 3]",
297 kstat_named_init(&ixgbe_ks->qprc[4], "queue_pkts_recvd [ 4]",
299 kstat_named_init(&ixgbe_ks->qprc[5], "queue_pkts_recvd [ 5]",
301 kstat_named_init(&ixgbe_ks->qprc[6], "queue_pkts_recvd [ 6]",
303 kstat_named_init(&ixgbe_ks->qprc[7], "queue_pkts_recvd [ 7]",
305 kstat_named_init(&ixgbe_ks->qprc[8], "queue_pkts_recvd [ 8]",
307 kstat_named_init(&ixgbe_ks->qprc[9], "queue_pkts_recvd [ 9]",
309 kstat_named_init(&ixgbe_ks->qprc[10], "queue_pkts_recvd [10]",
311 kstat_named_init(&ixgbe_ks->qprc[11], "queue_pkts_recvd [11]",
313 kstat_named_init(&ixgbe_ks->qprc[12], "queue_pkts_recvd [12]",
315 kstat_named_init(&ixgbe_ks->qprc[13], "queue_pkts_recvd [13]",
317 kstat_named_init(&ixgbe_ks->qprc[14], "queue_pkts_recvd [14]",
319 kstat_named_init(&ixgbe_ks->qprc[15], "queue_pkts_recvd [15]",
322 kstat_named_init(&ixgbe_ks->qptc[0], "queue_pkts_xmitd [ 0]",
324 kstat_named_init(&ixgbe_ks->qptc[1], "queue_pkts_xmitd [ 1]",
326 kstat_named_init(&ixgbe_ks->qptc[2], "queue_pkts_xmitd [ 2]",
328 kstat_named_init(&ixgbe_ks->qptc[3], "queue_pkts_xmitd [ 3]",
330 kstat_named_init(&ixgbe_ks->qptc[4], "queue_pkts_xmitd [ 4]",
332 kstat_named_init(&ixgbe_ks->qptc[5], "queue_pkts_xmitd [ 5]",
334 kstat_named_init(&ixgbe_ks->qptc[6], "queue_pkts_xmitd [ 6]",
336 kstat_named_init(&ixgbe_ks->qptc[7], "queue_pkts_xmitd [ 7]",
338 kstat_named_init(&ixgbe_ks->qptc[8], "queue_pkts_xmitd [ 8]",
340 kstat_named_init(&ixgbe_ks->qptc[9], "queue_pkts_xmitd [ 9]",
342 kstat_named_init(&ixgbe_ks->qptc[10], "queue_pkts_xmitd [10]",
344 kstat_named_init(&ixgbe_ks->qptc[11], "queue_pkts_xmitd [11]",
346 kstat_named_init(&ixgbe_ks->qptc[12], "queue_pkts_xmitd [12]",
348 kstat_named_init(&ixgbe_ks->qptc[13], "queue_pkts_xmitd [13]",
350 kstat_named_init(&ixgbe_ks->qptc[14], "queue_pkts_xmitd [14]",
352 kstat_named_init(&ixgbe_ks->qptc[15], "queue_pkts_xmitd [15]",
355 kstat_named_init(&ixgbe_ks->qbrc[0], "queue_bytes_recvd [ 0]",
357 kstat_named_init(&ixgbe_ks->qbrc[1], "queue_bytes_recvd [ 1]",
359 kstat_named_init(&ixgbe_ks->qbrc[2], "queue_bytes_recvd [ 2]",
361 kstat_named_init(&ixgbe_ks->qbrc[3], "queue_bytes_recvd [ 3]",
363 kstat_named_init(&ixgbe_ks->qbrc[4], "queue_bytes_recvd [ 4]",
365 kstat_named_init(&ixgbe_ks->qbrc[5], "queue_bytes_recvd [ 5]",
367 kstat_named_init(&ixgbe_ks->qbrc[6], "queue_bytes_recvd [ 6]",
369 kstat_named_init(&ixgbe_ks->qbrc[7], "queue_bytes_recvd [ 7]",
371 kstat_named_init(&ixgbe_ks->qbrc[8], "queue_bytes_recvd [ 8]",
373 kstat_named_init(&ixgbe_ks->qbrc[9], "queue_bytes_recvd [ 9]",
375 kstat_named_init(&ixgbe_ks->qbrc[10], "queue_bytes_recvd [10]",
377 kstat_named_init(&ixgbe_ks->qbrc[11], "queue_bytes_recvd [11]",
379 kstat_named_init(&ixgbe_ks->qbrc[12], "queue_bytes_recvd [12]",
381 kstat_named_init(&ixgbe_ks->qbrc[13], "queue_bytes_recvd [13]",
383 kstat_named_init(&ixgbe_ks->qbrc[14], "queue_bytes_recvd [14]",
385 kstat_named_init(&ixgbe_ks->qbrc[15], "queue_bytes_recvd [15]",
388 kstat_named_init(&ixgbe_ks->qbtc[0], "queue_bytes_xmitd [ 0]",
390 kstat_named_init(&ixgbe_ks->qbtc[1], "queue_bytes_xmitd [ 1]",
392 kstat_named_init(&ixgbe_ks->qbtc[2], "queue_bytes_xmitd [ 2]",
394 kstat_named_init(&ixgbe_ks->qbtc[3], "queue_bytes_xmitd [ 3]",
396 kstat_named_init(&ixgbe_ks->qbtc[4], "queue_bytes_xmitd [ 4]",
398 kstat_named_init(&ixgbe_ks->qbtc[5], "queue_bytes_xmitd [ 5]",
400 kstat_named_init(&ixgbe_ks->qbtc[6], "queue_bytes_xmitd [ 6]",
402 kstat_named_init(&ixgbe_ks->qbtc[7], "queue_bytes_xmitd [ 7]",
404 kstat_named_init(&ixgbe_ks->qbtc[8], "queue_bytes_xmitd [ 8]",
406 kstat_named_init(&ixgbe_ks->qbtc[9], "queue_bytes_xmitd [ 9]",
408 kstat_named_init(&ixgbe_ks->qbtc[10], "queue_bytes_xmitd [10]",
410 kstat_named_init(&ixgbe_ks->qbtc[11], "queue_bytes_xmitd [11]",
412 kstat_named_init(&ixgbe_ks->qbtc[12], "queue_bytes_xmitd [12]",
414 kstat_named_init(&ixgbe_ks->qbtc[13], "queue_bytes_xmitd [13]",
416 kstat_named_init(&ixgbe_ks->qbtc[14], "queue_bytes_xmitd [14]",
418 kstat_named_init(&ixgbe_ks->qbtc[15], "queue_bytes_xmitd [15]",
421 kstat_named_init(&ixgbe_ks->mspdc, "mac_short_packet_discard",
423 kstat_named_init(&ixgbe_ks->mpc, "missed_packets",
425 kstat_named_init(&ixgbe_ks->mlfc, "mac_local_fault",
427 kstat_named_init(&ixgbe_ks->mrfc, "mac_remote_fault",
429 kstat_named_init(&ixgbe_ks->rlec, "recv_length_err",
431 kstat_named_init(&ixgbe_ks->lxontxc, "link_xon_xmitd",
433 kstat_named_init(&ixgbe_ks->lxonrxc, "link_xon_recvd",
435 kstat_named_init(&ixgbe_ks->lxofftxc, "link_xoff_xmitd",
437 kstat_named_init(&ixgbe_ks->lxoffrxc, "link_xoff_recvd",
439 kstat_named_init(&ixgbe_ks->ruc, "recv_undersize",
441 kstat_named_init(&ixgbe_ks->rfc, "recv_fragment",
443 kstat_named_init(&ixgbe_ks->roc, "recv_oversize",
445 kstat_named_init(&ixgbe_ks->rjc, "recv_jabber",
447 kstat_named_init(&ixgbe_ks->rnbc, "recv_no_buffer",
449 kstat_named_init(&ixgbe_ks->lroc, "lro_pkt_count",
474 ixgbe_stat_t *ixgbe_ks;
477 ixgbe_ks = (ixgbe_stat_t *)ixgbe->ixgbe_ks->ks_data;
492 ixgbe_ks->mprc.value.ui64 +=
494 *val = ixgbe_ks->mprc.value.ui64;
498 ixgbe_ks->bprc.value.ui64 +=
500 *val = ixgbe_ks->bprc.value.ui64;
504 ixgbe_ks->mptc.value.ui64 +=
506 *val = ixgbe_ks->mptc.value.ui64;
510 ixgbe_ks->bptc.value.ui64 +=
512 *val = ixgbe_ks->bptc.value.ui64;
517 ixgbe_ks->rnbc.value.ui64 +=
520 *val = ixgbe_ks->rnbc.value.ui64;
524 ixgbe_ks->crcerrs.value.ui64 +=
526 ixgbe_ks->illerrc.value.ui64 +=
528 ixgbe_ks->errbc.value.ui64 +=
530 ixgbe_ks->rlec.value.ui64 +=
532 *val = ixgbe_ks->crcerrs.value.ui64 +
533 ixgbe_ks->illerrc.value.ui64 +
534 ixgbe_ks->errbc.value.ui64 +
535 ixgbe_ks->rlec.value.ui64;
539 ixgbe_ks->tor.value.ui64 = 0;
541 ixgbe_ks->qbrc[i].value.ui64 +=
543 ixgbe_ks->tor.value.ui64 +=
544 ixgbe_ks->qbrc[i].value.ui64;
546 *val = ixgbe_ks->tor.value.ui64;
550 ixgbe_ks->tot.value.ui64 = 0;
554 ixgbe_ks->qbtc[i].value.ui64 +=
559 ixgbe_ks->qbtc[i].value.ui64 +=
561 ixgbe_ks->qbtc[i].value.ui64 +=
569 ixgbe_ks->tot.value.ui64 +=
570 ixgbe_ks->qbtc[i].value.ui64;
572 *val = ixgbe_ks->tot.value.ui64;
576 ixgbe_ks->tpr.value.ui64 +=
578 *val = ixgbe_ks->tpr.value.ui64;
582 ixgbe_ks->tpt.value.ui64 +=
584 *val = ixgbe_ks->tpt.value.ui64;
589 ixgbe_ks->crcerrs.value.ui64 +=
591 *val = ixgbe_ks->crcerrs.value.ui64;
595 ixgbe_ks->roc.value.ui64 +=
597 *val = ixgbe_ks->roc.value.ui64;
601 ixgbe_ks->crcerrs.value.ui64 +=
603 ixgbe_ks->illerrc.value.ui64 +=
605 ixgbe_ks->errbc.value.ui64 +=
607 ixgbe_ks->rlec.value.ui64 +=
609 *val = ixgbe_ks->crcerrs.value.ui64 +
610 ixgbe_ks->illerrc.value.ui64 +
611 ixgbe_ks->errbc.value.ui64 +
612 ixgbe_ks->rlec.value.ui64;
731 ixgbe_ks->ruc.value.ui64 +=
733 *val = ixgbe_ks->ruc.value.ui64;
749 ixgbe_ks->rjc.value.ui64 +=
751 *val = ixgbe_ks->rjc.value.ui64;