Lines Matching refs:bstat
59 static inline void blkiomon_stat_init(struct blkiomon_stat *bstat) in blkiomon_stat_init() argument
61 memset(bstat, 0, sizeof(*bstat)); in blkiomon_stat_init()
62 minmax_init(&bstat->size_r); in blkiomon_stat_init()
63 minmax_init(&bstat->size_w); in blkiomon_stat_init()
64 minmax_init(&bstat->d2c_r); in blkiomon_stat_init()
65 minmax_init(&bstat->d2c_w); in blkiomon_stat_init()
66 minmax_init(&bstat->thrput_r); in blkiomon_stat_init()
67 minmax_init(&bstat->thrput_w); in blkiomon_stat_init()
70 static inline void blkiomon_stat_to_be(struct blkiomon_stat *bstat) in blkiomon_stat_to_be() argument
72 histlog2_to_be(bstat->size_hist, &size_hist); in blkiomon_stat_to_be()
73 histlog2_to_be(bstat->d2c_hist, &d2c_hist); in blkiomon_stat_to_be()
74 minmax_to_be(&bstat->size_r); in blkiomon_stat_to_be()
75 minmax_to_be(&bstat->size_w); in blkiomon_stat_to_be()
76 minmax_to_be(&bstat->d2c_r); in blkiomon_stat_to_be()
77 minmax_to_be(&bstat->d2c_w); in blkiomon_stat_to_be()
78 minmax_to_be(&bstat->thrput_r); in blkiomon_stat_to_be()
79 minmax_to_be(&bstat->thrput_w); in blkiomon_stat_to_be()
80 bstat->bidir = cpu_to_be64(bstat->bidir); in blkiomon_stat_to_be()
81 bstat->time = cpu_to_be64(bstat->time); in blkiomon_stat_to_be()
82 bstat->device = cpu_to_be32(bstat->device); in blkiomon_stat_to_be()