Lines Matching refs:ngep

70 	nge_t *ngep;  in nge_statistics_update()  local
79 ngep = ksp->ks_private; in nge_statistics_update()
80 istp = &ngep->statistics; in nge_statistics_update()
89 hw_stp->a[ksip->index] += nge_reg_get32(ngep, regno); in nge_statistics_update()
141 nge_t *ngep; in nge_chipinfo_update() local
148 ngep = ksp->ks_private; in nge_chipinfo_update()
149 infop = &ngep->chipinfo; in nge_chipinfo_update()
161 (knp++)->value.ui64 = ngep->phy_mode; in nge_chipinfo_update()
162 (knp++)->value.ui64 = ngep->phy_id; in nge_chipinfo_update()
170 nge_t *ngep; in nge_debuginfo_update() local
177 ngep = ksp->ks_private; in nge_debuginfo_update()
178 sw_stp = &ngep->statistics.sw_statistics; in nge_debuginfo_update()
189 (knp++)->value.ui64 = ngep->send->tc_next; in nge_debuginfo_update()
190 (knp++)->value.ui64 = ngep->send->tx_next; in nge_debuginfo_update()
191 (knp++)->value.ui64 = ngep->send->tx_free; in nge_debuginfo_update()
192 (knp++)->value.ui64 = ngep->send->tx_flow; in nge_debuginfo_update()
193 (knp++)->value.ui64 = ngep->recv->prod_index; in nge_debuginfo_update()
194 (knp++)->value.ui64 = ngep->buff->rx_hold; in nge_debuginfo_update()
203 nge_setup_named_kstat(nge_t *ngep, int instance, char *name, in nge_setup_named_kstat() argument
217 ksp->ks_private = ngep; in nge_setup_named_kstat()
246 nge_init_kstats(nge_t *ngep, int instance) in nge_init_kstats() argument
248 NGE_TRACE(("nge_init_kstats($%p, %d)", (void *)ngep, instance)); in nge_init_kstats()
250 ngep->nge_kstats[NGE_KSTAT_STATS] = nge_setup_named_kstat(ngep, in nge_init_kstats()
254 ngep->nge_kstats[NGE_KSTAT_CHIPID] = nge_setup_named_kstat(ngep, in nge_init_kstats()
258 ngep->nge_kstats[NGE_KSTAT_DEBUG] = nge_setup_named_kstat(ngep, in nge_init_kstats()
265 nge_fini_kstats(nge_t *ngep) in nge_fini_kstats() argument
269 NGE_TRACE(("nge_fini_kstats($%p)", (void *)ngep)); in nge_fini_kstats()
271 if (ngep->nge_kstats[i] != NULL) in nge_fini_kstats()
272 kstat_delete(ngep->nge_kstats[i]); in nge_fini_kstats()
278 nge_t *ngep = arg; in nge_m_stat() local
280 nge_statistics_t *nstp = &ngep->statistics; in nge_m_stat()
286 *val = ngep->param_link_speed * 1000000ull; in nge_m_stat()
291 hw_stp->s.InMulPksCount += nge_reg_get32(ngep, regno); in nge_m_stat()
297 hw_stp->s.InBroadPksCount += nge_reg_get32(ngep, regno); in nge_m_stat()
307 hw_stp->s.InFrameErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
309 hw_stp->s.InExtraOctErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
311 hw_stp->s.InLColErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
313 hw_stp->s.InOversizeErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
315 hw_stp->s.InFovErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
317 hw_stp->s.InFCSErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
319 hw_stp->s.InAlignErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
321 hw_stp->s.InLenErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
334 hw_stp->s.OutFifoovCount += nge_reg_get32(ngep, regno); in nge_m_stat()
336 hw_stp->s.OutLOCCount += nge_reg_get32(ngep, regno); in nge_m_stat()
338 hw_stp->s.OutExDecCount += nge_reg_get32(ngep, regno); in nge_m_stat()
340 hw_stp->s.OutRetryCount += nge_reg_get32(ngep, regno); in nge_m_stat()
349 hw_stp->s.OutColCount += nge_reg_get32(ngep, regno); in nge_m_stat()
371 hw_stp->s.InAlignErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
377 hw_stp->s.InFCSErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
383 hw_stp->s.OutOneRetranCount += nge_reg_get32(ngep, regno); in nge_m_stat()
389 hw_stp->s.OutMoreRetranCount += nge_reg_get32(ngep, regno); in nge_m_stat()
395 hw_stp->s.OutExDecCount += nge_reg_get32(ngep, regno); in nge_m_stat()
401 hw_stp->s.OutColCount += nge_reg_get32(ngep, regno); in nge_m_stat()
407 hw_stp->s.OutOneRetranCount += nge_reg_get32(ngep, regno); in nge_m_stat()
413 hw_stp->s.OutLOCCount += nge_reg_get32(ngep, regno); in nge_m_stat()
419 hw_stp->s.InOversizeErrCount += nge_reg_get32(ngep, regno); in nge_m_stat()
424 *val = ngep->phy_xmii_addr; in nge_m_stat()
428 *val = ngep->phy_id; in nge_m_stat()
472 *val = ngep->param_adv_1000fdx; in nge_m_stat()
476 *val = ngep->param_adv_1000hdx; in nge_m_stat()
480 *val = ngep->param_adv_100fdx; in nge_m_stat()
484 *val = ngep->param_adv_100hdx; in nge_m_stat()
488 *val = ngep->param_adv_10fdx; in nge_m_stat()
492 *val = ngep->param_adv_10hdx; in nge_m_stat()
496 *val = ngep->param_adv_asym_pause; in nge_m_stat()
500 *val = ngep->param_adv_pause; in nge_m_stat()
504 *val = ngep->param_adv_autoneg; in nge_m_stat()
508 *val = ngep->param_lp_1000fdx; in nge_m_stat()
512 *val = ngep->param_lp_1000hdx; in nge_m_stat()
516 *val = ngep->param_lp_100fdx; in nge_m_stat()
520 *val = ngep->param_lp_100hdx; in nge_m_stat()
524 *val = ngep->param_lp_10fdx; in nge_m_stat()
528 *val = ngep->param_lp_10hdx; in nge_m_stat()
532 *val = ngep->param_lp_asym_pause; in nge_m_stat()
536 *val = ngep->param_lp_pause; in nge_m_stat()
540 *val = ngep->param_lp_autoneg; in nge_m_stat()
544 *val = ngep->param_adv_asym_pause && in nge_m_stat()
545 ngep->param_lp_asym_pause && in nge_m_stat()
546 ngep->param_adv_pause != ngep->param_lp_pause; in nge_m_stat()
550 *val = ngep->param_link_rx_pause; in nge_m_stat()
554 *val = ngep->param_link_autoneg; in nge_m_stat()
558 *val = ngep->param_link_duplex; in nge_m_stat()