Lines Matching refs:mac_stats
60 efsys_mem_t *esmp = &(port->mac_stats.dma_buf); in sfxge_mac_stat_update()
76 if ((unsigned int)(now - port->mac_stats.update_time) < min_ticks) { in sfxge_mac_stat_update()
81 port->mac_stats.update_time = now; in sfxge_mac_stat_update()
90 port->mac_stats.decode_buf, NULL)) != EAGAIN) in sfxge_mac_stat_update()
105 uint64_t *mac_stats; in sfxge_get_counter() local
113 mac_stats = (uint64_t *)sc->port.mac_stats.decode_buf; in sfxge_get_counter()
117 val = mac_stats[EFX_MAC_RX_PKTS]; in sfxge_get_counter()
120 val = mac_stats[EFX_MAC_RX_ERRORS]; in sfxge_get_counter()
123 val = mac_stats[EFX_MAC_TX_PKTS]; in sfxge_get_counter()
126 val = mac_stats[EFX_MAC_TX_ERRORS]; in sfxge_get_counter()
129 val = mac_stats[EFX_MAC_TX_SGL_COL_PKTS] + in sfxge_get_counter()
130 mac_stats[EFX_MAC_TX_MULT_COL_PKTS] + in sfxge_get_counter()
131 mac_stats[EFX_MAC_TX_EX_COL_PKTS] + in sfxge_get_counter()
132 mac_stats[EFX_MAC_TX_LATE_COL_PKTS]; in sfxge_get_counter()
135 val = mac_stats[EFX_MAC_RX_OCTETS]; in sfxge_get_counter()
138 val = mac_stats[EFX_MAC_TX_OCTETS]; in sfxge_get_counter()
141 val = mac_stats[EFX_MAC_TX_MULTICST_PKTS] + in sfxge_get_counter()
142 mac_stats[EFX_MAC_TX_BRDCST_PKTS]; in sfxge_get_counter()
173 val = ((uint64_t *)sc->port.mac_stats.decode_buf)[id]; in sfxge_mac_stat_handler()
461 port->mac_stats.update_time = 0; in sfxge_port_stop()
466 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_stop()
525 if ((rc = efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, in sfxge_port_start()
552 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_start()
661 esmp = &port->mac_stats.dma_buf; in sfxge_port_fini()
675 free(port->mac_stats.decode_buf, M_SFXGE); in sfxge_port_fini()
726 &port->mac_stats.dma_buf, in sfxge_port_stats_update_period_ms_handler()
756 mac_stats_buf = &port->mac_stats.dma_buf; in sfxge_port_init()
790 port->mac_stats.decode_buf = malloc(EFX_MAC_NSTATS * sizeof(uint64_t), in sfxge_port_init()
812 free(port->mac_stats.decode_buf, M_SFXGE); in sfxge_port_init()