Lines Matching refs:new_stats
143 struct rtnl_link_stats64 new_stats; in lan966x_police_port_add() local
175 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_add()
176 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_add()
177 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_add()
178 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_add()
218 struct rtnl_link_stats64 new_stats; in lan966x_police_port_stats() local
222 lan966x_stats_get(port->dev, &new_stats); in lan966x_police_port_stats()
225 new_stats.rx_bytes - old_stats->bytes, in lan966x_police_port_stats()
226 new_stats.rx_packets - old_stats->pkts, in lan966x_police_port_stats()
227 new_stats.rx_dropped - old_stats->drops, in lan966x_police_port_stats()
231 old_stats->bytes = new_stats.rx_bytes; in lan966x_police_port_stats()
232 old_stats->pkts = new_stats.rx_packets; in lan966x_police_port_stats()
233 old_stats->drops = new_stats.rx_dropped; in lan966x_police_port_stats()