Searched refs:old_stats (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_mirror.c | 108 struct flow_stats *old_stats; in lan966x_mirror_port_stats() local 110 old_stats = &port->tc.mirror_stat; in lan966x_mirror_port_stats() 115 new_stats.rx_bytes - old_stats->bytes, in lan966x_mirror_port_stats() 116 new_stats.rx_packets - old_stats->pkts, in lan966x_mirror_port_stats() 117 new_stats.rx_dropped - old_stats->drops, in lan966x_mirror_port_stats() 118 old_stats->lastused, in lan966x_mirror_port_stats() 121 old_stats->bytes = new_stats.rx_bytes; in lan966x_mirror_port_stats() 122 old_stats->pkts = new_stats.rx_packets; in lan966x_mirror_port_stats() 123 old_stats->drops = new_stats.rx_dropped; in lan966x_mirror_port_stats() 124 old_stats->lastused = jiffies; in lan966x_mirror_port_stats() [all …]
|
| H A D | lan966x_police.c | 142 struct flow_stats *old_stats; in lan966x_police_port_add() local 171 old_stats = &port->tc.police_stat; 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() 176 old_stats->lastused = jiffies; in lan966x_police_port_add() 210 struct flow_stats *old_stats; in lan966x_police_port_stats() local 212 old_stats = &port->tc.police_stat; 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() [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_mirror.c | 210 struct flow_stats *old_stats; in sparx5_mirror_stats() local 212 old_stats = &entry->port->mirror_stats; in sparx5_mirror_stats() 217 new_stats.rx_bytes - old_stats->bytes, in sparx5_mirror_stats() 218 new_stats.rx_packets - old_stats->pkts, in sparx5_mirror_stats() 219 new_stats.rx_dropped - old_stats->drops, in sparx5_mirror_stats() 220 old_stats->lastused, in sparx5_mirror_stats() 223 old_stats->bytes = new_stats.rx_bytes; in sparx5_mirror_stats() 224 old_stats->pkts = new_stats.rx_packets; in sparx5_mirror_stats() 225 old_stats->drops = new_stats.rx_dropped; in sparx5_mirror_stats() 226 old_stats->lastused = jiffies; in sparx5_mirror_stats() [all …]
|
| /linux/drivers/mtd/nand/spi/ |
| H A D | core.c | 795 struct mtd_ecc_stats old_stats; in spinand_mtd_regular_page_read() local 802 old_stats = mtd->ecc_stats; in spinand_mtd_regular_page_read() 829 mtd->ecc_stats = old_stats; in spinand_mtd_regular_page_read() 991 struct mtd_ecc_stats old_stats; in spinand_mtd_read() local 997 old_stats = mtd->ecc_stats; in spinand_mtd_read() 1015 mtd->ecc_stats.failed - old_stats.failed; in spinand_mtd_read() 1017 mtd->ecc_stats.corrected - old_stats.corrected; in spinand_mtd_read()
|
| /linux/drivers/mtd/devices/ |
| H A D | docg3.c | 874 struct mtd_ecc_stats old_stats; in doc_read_oob() local 899 old_stats = mtd->ecc_stats; in doc_read_oob() 973 mtd->ecc_stats.failed - old_stats.failed; in doc_read_oob() 975 mtd->ecc_stats.corrected - old_stats.corrected; in doc_read_oob()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_hw.c | 1289 struct ocrdma_rdma_stats_resp *old_stats; in ocrdma_mbx_rdma_stats() local 1292 old_stats = kmalloc_obj(*old_stats); in ocrdma_mbx_rdma_stats() 1293 if (old_stats == NULL) in ocrdma_mbx_rdma_stats() 1306 memcpy(old_stats, req, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats() 1319 memcpy(req, old_stats, sizeof(struct ocrdma_rdma_stats_resp)); in ocrdma_mbx_rdma_stats() 1323 kfree(old_stats); in ocrdma_mbx_rdma_stats()
|
| /linux/drivers/mtd/nand/onenand/ |
| H A D | onenand_base.c | 1443 struct mtd_ecc_stats old_stats; in onenand_read_oob() local 1458 old_stats = mtd->ecc_stats; in onenand_read_oob() 1469 mtd->ecc_stats.failed - old_stats.failed; in onenand_read_oob() 1471 mtd->ecc_stats.corrected - old_stats.corrected; in onenand_read_oob()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 11999 struct rtnl_link_stats64 *old_stats = &tp->net_stats_prev; in tg3_get_nstats() local 12005 stats->rx_packets = old_stats->rx_packets + in tg3_get_nstats() 12010 stats->tx_packets = old_stats->tx_packets + in tg3_get_nstats() 12015 stats->rx_bytes = old_stats->rx_bytes + in tg3_get_nstats() 12017 stats->tx_bytes = old_stats->tx_bytes + in tg3_get_nstats() 12020 stats->rx_errors = old_stats->rx_errors + in tg3_get_nstats() 12022 stats->tx_errors = old_stats->tx_errors + in tg3_get_nstats() 12028 stats->multicast = old_stats->multicast + in tg3_get_nstats() 12030 stats->collisions = old_stats->collisions + in tg3_get_nstats() 12033 stats->rx_length_errors = old_stats->rx_length_errors + in tg3_get_nstats() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 3871 struct mtd_ecc_stats old_stats; in nand_read_oob() local 3883 old_stats = mtd->ecc_stats; in nand_read_oob() 3892 mtd->ecc_stats.failed - old_stats.failed; in nand_read_oob() 3894 mtd->ecc_stats.corrected - old_stats.corrected; in nand_read_oob()
|