Lines Matching refs:Adapter

50 e1000_tbi_adjust_stats(struct e1000g *Adapter,
56 e1000g_ksp = (p_e1000g_stat_t)Adapter->e1000g_ksp->ks_data;
67 Adapter->fcs_errors--;
97 Adapter->brdcstrcv++;
102 Adapter->multircv++;
105 if (frame_len == Adapter->max_frame_size) {
110 if (Adapter->toolong_errors > 0)
111 Adapter->toolong_errors--;
151 struct e1000g *Adapter;
165 Adapter = (struct e1000g *)ksp->ks_private;
166 ASSERT(Adapter != NULL);
169 hw = &Adapter->shared;
171 tx_ring = Adapter->tx_ring;
172 rx_ring = Adapter->rx_ring;
177 rw_enter(&Adapter->chip_lock, RW_WRITER);
179 e1000g_ksp->reset_count.value.ul = Adapter->reset_count;
269 Adapter->opackets += hw->mac.tx_packet_delta;
294 Adapter->rbytes +=
299 Adapter->obytes +=
302 rw_exit(&Adapter->chip_lock);
304 if (e1000g_check_acc_handle(Adapter->osdep.reg_handle) != DDI_FM_OK) {
305 ddi_fm_service_impact(Adapter->dip, DDI_SERVICE_UNAFFECTED);
315 struct e1000g *Adapter = (struct e1000g *)arg;
316 struct e1000_hw *hw = &Adapter->shared;
320 e1000g_ksp = (p_e1000g_stat_t)Adapter->e1000g_ksp->ks_data;
322 rw_enter(&Adapter->chip_lock, RW_READER);
324 if (Adapter->e1000g_state & E1000G_SUSPENDED) {
325 rw_exit(&Adapter->chip_lock);
331 *val = Adapter->link_speed * 1000000ull;
335 Adapter->multircv +=
337 *val = Adapter->multircv;
341 Adapter->brdcstrcv +=
343 *val = Adapter->brdcstrcv;
347 Adapter->multixmt +=
349 *val = Adapter->multixmt;
353 Adapter->brdcstxmt +=
355 *val = Adapter->brdcstxmt;
359 Adapter->norcvbuf +=
361 *val = Adapter->norcvbuf;
365 Adapter->macrcv_errors +=
367 Adapter->align_errors +=
371 Adapter->fcs_errors +=
373 Adapter->carrier_errors +=
375 *val = Adapter->macrcv_errors +
376 Adapter->align_errors +
378 Adapter->fcs_errors +
379 Adapter->carrier_errors;
383 *val = Adapter->tx_ring->stat_no_desc;
387 Adapter->oerrors +=
389 *val = Adapter->oerrors;
393 Adapter->collisions +=
395 *val = Adapter->collisions;
406 Adapter->rbytes +=
408 *val = Adapter->rbytes;
412 Adapter->ipackets +=
414 *val = Adapter->ipackets;
425 Adapter->obytes +=
427 *val = Adapter->obytes;
431 Adapter->opackets +=
433 *val = Adapter->opackets;
437 Adapter->align_errors +=
439 *val = Adapter->align_errors;
443 Adapter->fcs_errors +=
445 *val = Adapter->fcs_errors;
449 Adapter->sqe_errors +=
451 *val = Adapter->sqe_errors;
455 Adapter->carrier_errors +=
457 *val = Adapter->carrier_errors;
461 Adapter->ex_collisions +=
463 *val = Adapter->ex_collisions;
467 Adapter->tx_late_collisions +=
469 *val = Adapter->tx_late_collisions;
473 Adapter->defer_xmts +=
475 *val = Adapter->defer_xmts;
479 Adapter->first_collisions +=
481 *val = Adapter->first_collisions;
485 Adapter->multi_collisions +=
487 *val = Adapter->multi_collisions;
491 Adapter->macrcv_errors +=
493 *val = Adapter->macrcv_errors;
497 Adapter->macxmt_errors +=
499 *val = Adapter->macxmt_errors;
503 Adapter->toolong_errors +=
505 *val = Adapter->toolong_errors;
509 Adapter->tooshort_errors +=
511 *val = Adapter->tooshort_errors;
515 Adapter->jabber_errors +=
517 *val = Adapter->jabber_errors;
530 switch (Adapter->link_speed) {
539 (Adapter->phy_status & MII_SR_100T4_CAPS) ?
552 *val = Adapter->param_1000fdx_cap;
556 *val = Adapter->param_1000hdx_cap;
560 *val = Adapter->param_100fdx_cap;
564 *val = Adapter->param_100hdx_cap;
568 *val = Adapter->param_10fdx_cap;
572 *val = Adapter->param_10hdx_cap;
576 *val = Adapter->param_asym_pause_cap;
580 *val = Adapter->param_pause_cap;
584 *val = Adapter->param_autoneg_cap;
588 *val = Adapter->param_adv_1000fdx;
592 *val = Adapter->param_adv_1000hdx;
596 *val = Adapter->param_adv_100fdx;
600 *val = Adapter->param_adv_100hdx;
604 *val = Adapter->param_adv_10fdx;
608 *val = Adapter->param_adv_10hdx;
612 *val = Adapter->param_adv_asym_pause;
616 *val = Adapter->param_adv_pause;
624 *val = Adapter->param_lp_1000fdx;
628 *val = Adapter->param_lp_1000hdx;
632 *val = Adapter->param_lp_100fdx;
636 *val = Adapter->param_lp_100hdx;
640 *val = Adapter->param_lp_10fdx;
644 *val = Adapter->param_lp_10hdx;
648 *val = Adapter->param_lp_asym_pause;
652 *val = Adapter->param_lp_pause;
656 *val = Adapter->param_lp_autoneg;
660 *val = Adapter->param_asym_pause_cap;
664 *val = Adapter->param_pause_cap;
672 *val = (Adapter->link_duplex == FULL_DUPLEX) ?
677 *val = Adapter->param_100t4_cap;
681 *val = Adapter->param_adv_100t4;
685 *val = Adapter->param_lp_100t4;
689 rw_exit(&Adapter->chip_lock);
693 rw_exit(&Adapter->chip_lock);
695 if (e1000g_check_acc_handle(Adapter->osdep.reg_handle) != DDI_FM_OK) {
696 ddi_fm_service_impact(Adapter->dip, DDI_SERVICE_UNAFFECTED);
710 e1000g_init_stats(struct e1000g *Adapter)
718 ksp = kstat_create(WSNAME, ddi_get_instance(Adapter->dip),
723 e1000g_log(Adapter, CE_WARN,
728 Adapter->e1000g_ksp = ksp; /* Fill in the Adapters ksp */
865 ksp->ks_private = (void *)Adapter;
958 struct e1000g *Adapter = rx_ring->adapter;
959 struct e1000_hw *hw = &Adapter->shared;
962 rw_enter(&Adapter->chip_lock, RW_READER);
964 if (Adapter->e1000g_state & E1000G_SUSPENDED) {
965 rw_exit(&Adapter->chip_lock);
978 Adapter->rbytes +=
980 *val = Adapter->rbytes;
984 Adapter->ipackets +=
986 *val = Adapter->ipackets;
991 rw_exit(&Adapter->chip_lock);
995 rw_exit(&Adapter->chip_lock);
997 if (e1000g_check_acc_handle(Adapter->osdep.reg_handle) != DDI_FM_OK)
998 ddi_fm_service_impact(Adapter->dip, DDI_SERVICE_UNAFFECTED);