• Home
  • Raw
  • Download

Lines Matching refs:stats

304 	struct emac_stats *stats = &adpt->stats;  in emac_update_hw_stats()  local
305 u64 *stats_itr = &adpt->stats.rx_ok; in emac_update_hw_stats()
317 stats->rx_crc_align += readl_relaxed(base + EMAC_RXMAC_STATC_REG23); in emac_update_hw_stats()
318 stats->rx_jabbers += readl_relaxed(base + EMAC_RXMAC_STATC_REG24); in emac_update_hw_stats()
322 stats_itr = &stats->tx_ok; in emac_update_hw_stats()
331 stats->tx_col += readl_relaxed(base + EMAC_TXMAC_STATC_REG25); in emac_update_hw_stats()
339 struct emac_stats *stats = &adpt->stats; in emac_get_stats64() local
341 spin_lock(&stats->lock); in emac_get_stats64()
346 net_stats->rx_packets = stats->rx_ok; in emac_get_stats64()
347 net_stats->tx_packets = stats->tx_ok; in emac_get_stats64()
348 net_stats->rx_bytes = stats->rx_byte_cnt; in emac_get_stats64()
349 net_stats->tx_bytes = stats->tx_byte_cnt; in emac_get_stats64()
350 net_stats->multicast = stats->rx_mcast; in emac_get_stats64()
351 net_stats->collisions = stats->tx_1_col + stats->tx_2_col * 2 + in emac_get_stats64()
352 stats->tx_late_col + stats->tx_abort_col; in emac_get_stats64()
354 net_stats->rx_errors = stats->rx_frag + stats->rx_fcs_err + in emac_get_stats64()
355 stats->rx_len_err + stats->rx_sz_ov + in emac_get_stats64()
356 stats->rx_align_err; in emac_get_stats64()
357 net_stats->rx_fifo_errors = stats->rx_rxf_ov; in emac_get_stats64()
358 net_stats->rx_length_errors = stats->rx_len_err; in emac_get_stats64()
359 net_stats->rx_crc_errors = stats->rx_fcs_err; in emac_get_stats64()
360 net_stats->rx_frame_errors = stats->rx_align_err; in emac_get_stats64()
361 net_stats->rx_over_errors = stats->rx_rxf_ov; in emac_get_stats64()
362 net_stats->rx_missed_errors = stats->rx_rxf_ov; in emac_get_stats64()
364 net_stats->tx_errors = stats->tx_late_col + stats->tx_abort_col + in emac_get_stats64()
365 stats->tx_underrun + stats->tx_trunc; in emac_get_stats64()
366 net_stats->tx_fifo_errors = stats->tx_underrun; in emac_get_stats64()
367 net_stats->tx_aborted_errors = stats->tx_abort_col; in emac_get_stats64()
368 net_stats->tx_window_errors = stats->tx_late_col; in emac_get_stats64()
370 spin_unlock(&stats->lock); in emac_get_stats64()
631 spin_lock_init(&adpt->stats.lock); in emac_probe()