Home
last modified time | relevance | path

Searched refs:cmcnt (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/arch/sh/lib/
H A Dtime_sh2.c51 static vu_long cmcnt = 0; variable
56 if (data >= cmcnt) in get_usec()
57 cmcnt = data - cmcnt; in get_usec()
59 cmcnt = (CMT_TIMER_RESET - cmcnt) + data; in get_usec()
61 if ((cmt0_timer + cmcnt) > CMT_MAX_COUNTER) in get_usec()
62 cmt0_timer = ((cmt0_timer + cmcnt) - CMT_MAX_COUNTER); in get_usec()
64 cmt0_timer += cmcnt; in get_usec()
66 cmcnt = data; in get_usec()
/openbmc/qemu/hw/timer/
H A Drenesas_cmt.c62 next_time = cmt->cmcor[ch] - cmt->cmcnt[ch]; in update_events()
87 return cmt->cmcnt[ch] + delta; in read_cmcnt()
89 return cmt->cmcnt[ch]; in read_cmcnt()
160 cmt->cmcnt[ch] = val; in cmt_write()
193 cmt->cmcnt[ch] = 0; in timer_events()
220 cmt->cmcnt[0] = cmt->cmcnt[1] = 0; in rcmt_reset()
248 VMSTATE_UINT16_ARRAY(cmcnt, RCMTState, CMT_CH),
/openbmc/qemu/include/hw/timer/
H A Drenesas_cmt.h36 uint16_t cmcnt[CMT_CH]; member