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()
254 devstat_start_transaction_bio(struct devstat *ds, struct bio *bp) in devstat_start_transaction_bio()
295 devstat_end_transaction(struct devstat *ds, uint32_t bytes, in devstat_end_transaction()
341 devstat_end_transaction_bio(struct devstat *ds, const struct bio *bp) in devstat_end_transaction_bio()
348 devstat_end_transaction_bio_bt(struct devstat *ds, const struct bio *bp, in devstat_end_transaction_bio_bt()
388 struct devstat *nds; in sysctl_devstat()
420 error = SYSCTL_OUT(req, nds, sizeof(struct devstat)); in sysctl_devstat()
439 static SYSCTL_NODE(_kern, OID_AUTO, devstat, CTLFLAG_RD, NULL,
461 #define statsperpage (PAGE_SIZE / sizeof(struct devstat))
473 struct devstat *stat;
501 static struct devstat *
504 struct devstat *dsp; in devstat_alloc()
567 devstat_free(struct devstat *dsp) in devstat_free()
581 SYSCTL_INT(_debug_sizeof, OID_AUTO, devstat, CTLFLAG_RD,
582 SYSCTL_NULL_INT_PTR, sizeof(struct devstat), "sizeof(struct devstat)");