Lines Matching defs:ngep

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