Lines Matching refs:td
21 static void qemu_s390_tod_get(const S390TODState *td, S390TOD *tod, in qemu_s390_tod_get() argument
24 *tod = td->base; in qemu_s390_tod_get()
27 if (tod->low < td->base.low) { in qemu_s390_tod_get()
32 static void qemu_s390_tod_set(S390TODState *td, const S390TOD *tod, in qemu_s390_tod_set() argument
37 td->base = *tod; in qemu_s390_tod_set()
39 td->base.low -= time2tod(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in qemu_s390_tod_set()
40 if (td->base.low > tod->low) { in qemu_s390_tod_set()
41 td->base.high--; in qemu_s390_tod_set()
65 S390TODState *td = S390_TOD(obj); in qemu_s390_tod_init() local
69 td->base.high = 0; in qemu_s390_tod_init()
70 td->base.low = TOD_UNIX_EPOCH + (time2tod(mktimegm(&tm)) * 1000000000ULL); in qemu_s390_tod_init()
71 if (td->base.low < TOD_UNIX_EPOCH) { in qemu_s390_tod_init()
72 td->base.high += 1; in qemu_s390_tod_init()