Lines Matching +refs:link +refs:stats +refs:attrs

277 static void gfar_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)  in gfar_get_stats64()  argument
283 stats->rx_packets += priv->rx_queue[i]->stats.rx_packets; in gfar_get_stats64()
284 stats->rx_bytes += priv->rx_queue[i]->stats.rx_bytes; in gfar_get_stats64()
285 stats->rx_dropped += priv->rx_queue[i]->stats.rx_dropped; in gfar_get_stats64()
289 stats->tx_bytes += priv->tx_queue[i]->stats.tx_bytes; in gfar_get_stats64()
290 stats->tx_packets += priv->tx_queue[i]->stats.tx_packets; in gfar_get_stats64()
313 stats->rx_missed_errors = rdrp + (rdrp_offset << 16); in gfar_get_stats64()
1497 if (phydev->link) { in gfar_update_link_state()
1534 netif_warn(priv, link, priv->ndev, in gfar_update_link_state()
1590 if (unlikely(phydev->link != priv->oldlink || in adjust_link()
1591 (phydev->link && (phydev->duplex != priv->oldduplex || in adjust_link()
1797 dev->stats.tx_errors++; in gfar_start_xmit()
1816 dev->stats.tx_fifo_errors++; in gfar_start_xmit()
1822 tx_queue->stats.tx_bytes += bytes_sent; in gfar_start_xmit()
1825 tx_queue->stats.tx_packets++; in gfar_start_xmit()
1974 dev->stats.tx_fifo_errors++; in gfar_start_xmit()
2060 dev->stats.tx_errors++; in gfar_timeout()
2254 struct net_device_stats *stats = &ndev->stats; in count_errors() local
2259 stats->rx_length_errors++; in count_errors()
2267 stats->rx_length_errors++; in count_errors()
2275 stats->rx_frame_errors++; in count_errors()
2280 stats->rx_crc_errors++; in count_errors()
2284 stats->rx_over_errors++; in count_errors()
2527 rx_queue->stats.rx_dropped++; in gfar_clean_rx_ring()
2558 rx_queue->stats.rx_dropped++; in gfar_clean_rx_ring()
2581 rx_queue->stats.rx_packets += total_pkts; in gfar_clean_rx_ring()
2582 rx_queue->stats.rx_bytes += total_bytes; in gfar_clean_rx_ring()
2683 dev->stats.tx_errors++; in gfar_error()
2686 dev->stats.tx_window_errors++; in gfar_error()
2688 dev->stats.tx_aborted_errors++; in gfar_error()
2692 dev->stats.tx_dropped++; in gfar_error()
2712 dev->stats.rx_over_errors++; in gfar_error()
2719 dev->stats.rx_errors++; in gfar_error()
3116 u32 attrs; in gfar_hw_init() local
3141 attrs = ATTRELI_EL(priv->rx_stash_size) | in gfar_hw_init()
3144 gfar_write(&regs->attreli, attrs); in gfar_hw_init()
3149 attrs = ATTR_INIT_SETTINGS; in gfar_hw_init()
3152 attrs |= ATTR_BDSTASH; in gfar_hw_init()
3155 attrs |= ATTR_BUFSTASH; in gfar_hw_init()
3157 gfar_write(&regs->attr, attrs); in gfar_hw_init()