Lines Matching refs:devstat
75 static struct devstat *devstat_alloc(void);
76 static void devstat_free(struct devstat *);
77 static void devstat_add_entry(struct devstat *ds, const void *dev_name,
86 struct devstat *
93 struct devstat *ds; in devstat_new_entry()
117 devstat_add_entry(struct devstat *ds, const void *dev_name, in devstat_add_entry()
124 struct devstat *ds_tmp; in devstat_add_entry()
144 struct devstat *ds_next; in devstat_add_entry()
198 devstat_remove_entry(struct devstat *ds) in devstat_remove_entry()
214 STAILQ_REMOVE(devstat_head, ds, devstat, dev_links); in devstat_remove_entry()
228 devstat_start_transaction(struct devstat *ds, const struct bintime *now) in devstat_start_transaction()
252 devstat_start_transaction_bio(struct devstat *ds, struct bio *bp) in devstat_start_transaction_bio()
264 devstat_start_transaction_bio_t0(struct devstat *ds, struct bio *bp) in devstat_start_transaction_bio_t0()
302 devstat_end_transaction(struct devstat *ds, uint32_t bytes, in devstat_end_transaction()
348 devstat_end_transaction_bio(struct devstat *ds, const struct bio *bp) in devstat_end_transaction_bio()
355 devstat_end_transaction_bio_bt(struct devstat *ds, const struct bio *bp, in devstat_end_transaction_bio_bt()
400 struct devstat *nds; in sysctl_devstat()
432 error = SYSCTL_OUT(req, nds, sizeof(struct devstat)); in sysctl_devstat()
451 static SYSCTL_NODE(_kern, OID_AUTO, devstat, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
475 #define statsperpage (PAGE_SIZE / sizeof(struct devstat))
489 struct devstat *stat;
534 static struct devstat *
537 struct devstat *dsp; in devstat_alloc()
601 devstat_free(struct devstat *dsp) in devstat_free()
615 SYSCTL_INT(_debug_sizeof, OID_AUTO, devstat, CTLFLAG_RD,
616 SYSCTL_NULL_INT_PTR, sizeof(struct devstat), "sizeof(struct devstat)");