Lines Matching +full:low +full:-
2 * TOD (Time Of Day) clock - TCG implementation
8 * See the COPYING file in the top-level directory.
24 *tod = td->base; in qemu_s390_tod_get()
26 tod->low += time2tod(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); in qemu_s390_tod_get()
27 if (tod->low < td->base.low) { in qemu_s390_tod_get()
28 tod->high++; in qemu_s390_tod_get()
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()
59 tdc->get = qemu_s390_tod_get; in qemu_s390_tod_class_init()
60 tdc->set = qemu_s390_tod_set; in qemu_s390_tod_class_init()
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()