Home
last modified time | relevance | path

Searched refs:tmx (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/timers/
H A Dvalid-adjtimex.c197 struct timex tmx = {}; in set_offset() local
200 tmx.modes = ADJ_SETOFFSET; in set_offset()
202 tmx.modes |= ADJ_NANO; in set_offset()
204 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset()
205 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset()
207 if (offset < 0 && tmx.time.tv_usec) { in set_offset()
208 tmx.time.tv_sec -= 1; in set_offset()
209 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset()
212 tmx.time.tv_sec = offset / USEC_PER_SEC; in set_offset()
213 tmx.time.tv_usec = offset % USEC_PER_SEC; in set_offset()
[all …]
/openbmc/qemu/target/mips/tcg/sysemu/
H A Dcp0_helper.c158 uint32_t tcu, tmx, tasid, tksu; in sync_c0_tcstatus() local
167 tmx = (v >> CP0TCSt_TMX) & 0x1; in sync_c0_tcstatus()
172 status |= tmx << CP0St_MX; in sync_c0_tcstatus()