Lines Matching defs:vpmtmr
38 #include "vpmtmr.h"
49 struct vpmtmr {
55 static MALLOC_DEFINE(M_VPMTMR, "vpmtmr", "bhyve virtual acpi timer");
57 struct vpmtmr *
60 struct vpmtmr *vpmtmr;
63 vpmtmr = malloc(sizeof(struct vpmtmr), M_VPMTMR, M_WAITOK | M_ZERO);
64 vpmtmr->baseuptime = sbinuptime();
65 vpmtmr->baseval = 0;
68 vpmtmr->freq_sbt = bttosbt(bt);
70 return (vpmtmr);
74 vpmtmr_cleanup(struct vpmtmr *vpmtmr)
77 free(vpmtmr, M_VPMTMR);
84 struct vpmtmr *vpmtmr;
90 vpmtmr = vm_pmtmr(vm);
97 delta = now - vpmtmr->baseuptime;
99 "%#lx to %#lx", vpmtmr->baseuptime, now));
100 *val = vpmtmr->baseval + delta / vpmtmr->freq_sbt;