Lines Matching refs:devstat
74 static struct devstat *devstat_alloc(void);
75 static void devstat_free(struct devstat *);
76 static void devstat_add_entry(struct devstat *ds, const void *dev_name,
85 struct devstat *
92 struct devstat *ds; in devstat_new_entry()
116 devstat_add_entry(struct devstat *ds, const void *dev_name, in devstat_add_entry()
123 struct devstat *ds_tmp; in devstat_add_entry()
143 struct devstat *ds_next; in devstat_add_entry()
197 devstat_remove_entry(struct devstat *ds) in devstat_remove_entry()
213 STAILQ_REMOVE(devstat_head, ds, devstat, dev_links); in devstat_remove_entry()
227 devstat_start_transaction(struct devstat *ds, const struct bintime *now) in devstat_start_transaction()
251 devstat_start_transaction_bio(struct devstat *ds, struct bio *bp) in devstat_start_transaction_bio()
263 devstat_start_transaction_bio_t0(struct devstat *ds, struct bio *bp) in devstat_start_transaction_bio_t0()
301 devstat_end_transaction(struct devstat *ds, uint32_t bytes, in devstat_end_transaction()
347 devstat_end_transaction_bio(struct devstat *ds, const struct bio *bp) in devstat_end_transaction_bio()
354 devstat_end_transaction_bio_bt(struct devstat *ds, const struct bio *bp, in devstat_end_transaction_bio_bt()
399 struct devstat *nds; in sysctl_devstat()
431 error = SYSCTL_OUT(req, nds, sizeof(struct devstat)); in sysctl_devstat()
450 static SYSCTL_NODE(_kern, OID_AUTO, devstat, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
474 #define statsperpage (PAGE_SIZE / sizeof(struct devstat))
486 struct devstat *stat;
514 static struct devstat *
517 struct devstat *dsp; in devstat_alloc()
580 devstat_free(struct devstat *dsp) in devstat_free()
594 SYSCTL_INT(_debug_sizeof, OID_AUTO, devstat, CTLFLAG_RD,
595 SYSCTL_NULL_INT_PTR, sizeof(struct devstat), "sizeof(struct devstat)");