Lines Matching refs:stat

101 		struct disk_stats *stat)  in part_stat_read_all()  argument
105 memset(stat, 0, sizeof(struct disk_stats)); in part_stat_read_all()
111 stat->nsecs[group] += ptr->nsecs[group]; in part_stat_read_all()
112 stat->sectors[group] += ptr->sectors[group]; in part_stat_read_all()
113 stat->ios[group] += ptr->ios[group]; in part_stat_read_all()
114 stat->merges[group] += ptr->merges[group]; in part_stat_read_all()
117 stat->io_ticks += ptr->io_ticks; in part_stat_read_all()
948 struct disk_stats stat; in part_stat_show() local
961 part_stat_read_all(bdev, &stat); in part_stat_show()
969 stat.ios[STAT_READ], in part_stat_show()
970 stat.merges[STAT_READ], in part_stat_show()
971 (unsigned long long)stat.sectors[STAT_READ], in part_stat_show()
972 (unsigned int)div_u64(stat.nsecs[STAT_READ], NSEC_PER_MSEC), in part_stat_show()
973 stat.ios[STAT_WRITE], in part_stat_show()
974 stat.merges[STAT_WRITE], in part_stat_show()
975 (unsigned long long)stat.sectors[STAT_WRITE], in part_stat_show()
976 (unsigned int)div_u64(stat.nsecs[STAT_WRITE], NSEC_PER_MSEC), in part_stat_show()
978 jiffies_to_msecs(stat.io_ticks), in part_stat_show()
979 (unsigned int)div_u64(stat.nsecs[STAT_READ] + in part_stat_show()
980 stat.nsecs[STAT_WRITE] + in part_stat_show()
981 stat.nsecs[STAT_DISCARD] + in part_stat_show()
982 stat.nsecs[STAT_FLUSH], in part_stat_show()
984 stat.ios[STAT_DISCARD], in part_stat_show()
985 stat.merges[STAT_DISCARD], in part_stat_show()
986 (unsigned long long)stat.sectors[STAT_DISCARD], in part_stat_show()
987 (unsigned int)div_u64(stat.nsecs[STAT_DISCARD], NSEC_PER_MSEC), in part_stat_show()
988 stat.ios[STAT_FLUSH], in part_stat_show()
989 (unsigned int)div_u64(stat.nsecs[STAT_FLUSH], NSEC_PER_MSEC)); in part_stat_show()
1055 static DEVICE_ATTR(stat, 0444, part_stat_show, NULL);
1237 struct disk_stats stat; in diskstats_show() local
1262 part_stat_read_all(hd, &stat); in diskstats_show()
1271 stat.ios[STAT_READ], in diskstats_show()
1272 stat.merges[STAT_READ], in diskstats_show()
1273 stat.sectors[STAT_READ], in diskstats_show()
1274 (unsigned int)div_u64(stat.nsecs[STAT_READ], in diskstats_show()
1276 stat.ios[STAT_WRITE], in diskstats_show()
1277 stat.merges[STAT_WRITE], in diskstats_show()
1278 stat.sectors[STAT_WRITE], in diskstats_show()
1279 (unsigned int)div_u64(stat.nsecs[STAT_WRITE], in diskstats_show()
1282 jiffies_to_msecs(stat.io_ticks), in diskstats_show()
1283 (unsigned int)div_u64(stat.nsecs[STAT_READ] + in diskstats_show()
1284 stat.nsecs[STAT_WRITE] + in diskstats_show()
1285 stat.nsecs[STAT_DISCARD] + in diskstats_show()
1286 stat.nsecs[STAT_FLUSH], in diskstats_show()
1288 stat.ios[STAT_DISCARD], in diskstats_show()
1289 stat.merges[STAT_DISCARD], in diskstats_show()
1290 stat.sectors[STAT_DISCARD], in diskstats_show()
1291 (unsigned int)div_u64(stat.nsecs[STAT_DISCARD], in diskstats_show()
1293 stat.ios[STAT_FLUSH], in diskstats_show()
1294 (unsigned int)div_u64(stat.nsecs[STAT_FLUSH], in diskstats_show()