Lines Matching refs:ticks
412 uint64_t ticks; in MXC_TMR_RevB_TO_Start() local
423 ticks = (uint64_t)us * (uint64_t)PeripheralClock / (uint64_t)1000000; in MXC_TMR_RevB_TO_Start()
425 while (ticks > 0xFFFFFFFFUL) { in MXC_TMR_RevB_TO_Start()
426 ticks >>= 1; in MXC_TMR_RevB_TO_Start()
438 cfg.cmp_cnt = ticks; in MXC_TMR_RevB_TO_Start()
452 int MXC_TMR_RevB_GetTime(mxc_tmr_revb_regs_t *tmr, uint32_t ticks, uint32_t *time, in MXC_TMR_RevB_GetTime() argument
470 temp_time = (uint64_t)ticks * 1000 * (1 << (prescale & 0xF)) / (timerClock / 1000000); in MXC_TMR_RevB_GetTime()
478 temp_time = (uint64_t)ticks * 1000 * (1 << (prescale & 0xF)) / (timerClock / 1000); in MXC_TMR_RevB_GetTime()
486 temp_time = (uint64_t)ticks * 1000 * (1 << (prescale & 0xF)) / timerClock; in MXC_TMR_RevB_GetTime()
494 temp_time = (uint64_t)ticks * (1 << (prescale & 0xF)) / timerClock; in MXC_TMR_RevB_GetTime()
506 uint32_t *ticks) in MXC_TMR_RevB_GetTicks() argument
542 *ticks = temp_ticks; in MXC_TMR_RevB_GetTicks()