Lines Matching refs:new_stats
140 struct rtnl_link_stats64 new_stats; in lan966x_police_port_add() local
172 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_add()
173 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_add()
174 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_add()
175 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_add()
209 struct rtnl_link_stats64 new_stats; in lan966x_police_port_stats() local
213 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_stats()
216 new_stats.rx_bytes - old_stats->bytes, in lan966x_police_port_stats()
217 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats()
218 new_stats.rx_dropped - old_stats->drops, in lan966x_police_port_stats()
222 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_stats()
223 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_stats()
224 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_stats()