Lines Matching refs:mac_stats
52 efsys_mem_t *esmp = &(port->mac_stats.dma_buf);
65 if ((unsigned int)(now - port->mac_stats.update_time) < (unsigned int)hz) {
70 port->mac_stats.update_time = now;
79 port->mac_stats.decode_buf, NULL)) != EAGAIN)
94 uint64_t *mac_stats;
102 mac_stats = (uint64_t *)sc->port.mac_stats.decode_buf;
106 val = mac_stats[EFX_MAC_RX_PKTS];
109 val = mac_stats[EFX_MAC_RX_ERRORS];
112 val = mac_stats[EFX_MAC_TX_PKTS];
115 val = mac_stats[EFX_MAC_TX_ERRORS];
118 val = mac_stats[EFX_MAC_TX_SGL_COL_PKTS] +
119 mac_stats[EFX_MAC_TX_MULT_COL_PKTS] +
120 mac_stats[EFX_MAC_TX_EX_COL_PKTS] +
121 mac_stats[EFX_MAC_TX_LATE_COL_PKTS];
124 val = mac_stats[EFX_MAC_RX_OCTETS];
127 val = mac_stats[EFX_MAC_TX_OCTETS];
130 val = mac_stats[EFX_MAC_TX_MULTICST_PKTS] +
131 mac_stats[EFX_MAC_TX_BRDCST_PKTS];
162 val = ((uint64_t *)sc->port.mac_stats.decode_buf)[id];
451 port->mac_stats.update_time = 0;
456 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE);
515 if ((rc = efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf,
541 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE);
652 esmp = &port->mac_stats.dma_buf;
666 free(port->mac_stats.decode_buf, M_SFXGE);
683 mac_stats_buf = &port->mac_stats.dma_buf;
717 port->mac_stats.decode_buf = malloc(EFX_MAC_NSTATS * sizeof(uint64_t),
729 free(port->mac_stats.decode_buf, M_SFXGE);