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()
1495 if (phydev->link) { in gfar_update_link_state()
1532 netif_warn(priv, link, priv->ndev, in gfar_update_link_state()
1588 if (unlikely(phydev->link != priv->oldlink || in adjust_link()
1589 (phydev->link && (phydev->duplex != priv->oldduplex || in adjust_link()
1805 dev->stats.tx_errors++; in gfar_start_xmit()
1824 dev->stats.tx_fifo_errors++; in gfar_start_xmit()
1830 tx_queue->stats.tx_bytes += bytes_sent; in gfar_start_xmit()
1833 tx_queue->stats.tx_packets++; in gfar_start_xmit()
1982 dev->stats.tx_fifo_errors++; in gfar_start_xmit()
2068 dev->stats.tx_errors++; in gfar_timeout()
2261 struct net_device_stats *stats = &ndev->stats; in count_errors() local
2266 stats->rx_length_errors++; in count_errors()
2274 stats->rx_length_errors++; in count_errors()
2282 stats->rx_frame_errors++; in count_errors()
2287 stats->rx_crc_errors++; in count_errors()
2291 stats->rx_over_errors++; in count_errors()
2534 rx_queue->stats.rx_dropped++; in gfar_clean_rx_ring()
2565 rx_queue->stats.rx_dropped++; in gfar_clean_rx_ring()
2588 rx_queue->stats.rx_packets += total_pkts; in gfar_clean_rx_ring()
2589 rx_queue->stats.rx_bytes += total_bytes; in gfar_clean_rx_ring()
2690 dev->stats.tx_errors++; in gfar_error()
2693 dev->stats.tx_window_errors++; in gfar_error()
2695 dev->stats.tx_aborted_errors++; in gfar_error()
2699 dev->stats.tx_dropped++; in gfar_error()
2719 dev->stats.rx_over_errors++; in gfar_error()
2726 dev->stats.rx_errors++; in gfar_error()
3123 u32 attrs; in gfar_hw_init() local
3148 attrs = ATTRELI_EL(priv->rx_stash_size) | in gfar_hw_init()
3151 gfar_write(®s->attreli, attrs); in gfar_hw_init()
3156 attrs = ATTR_INIT_SETTINGS; in gfar_hw_init()
3159 attrs |= ATTR_BDSTASH; in gfar_hw_init()
3162 attrs |= ATTR_BUFSTASH; in gfar_hw_init()
3164 gfar_write(®s->attr, attrs); in gfar_hw_init()