Searched refs:clks_to_intr (Results 1 – 1 of 1) sorted by relevance
129 uint64_t clks_to_intr = 0.001 * interval * HPET_freq; in HPET_measure_freq() local131 if (clks_to_intr <= 0 || clks_to_intr > (HPET_freq * 8)) in HPET_measure_freq()133 kBUG("HPET0: Numof clocks to generate interrupt is INVALID! value=%lld", clks_to_intr); in HPET_measure_freq()141 __write8b(HPET_REG_BASE + TIM0_COMP, clks_to_intr); in HPET_measure_freq()190 uint64_t clks_to_intr = 0.000001 * HPET0_INTERVAL * HPET_freq; in HPET_enable() local192 if (clks_to_intr <= 0 || clks_to_intr > (HPET_freq * 8)) in HPET_enable()194 kBUG("HPET0: Numof clocks to generate interrupt is INVALID! value=%lld", clks_to_intr); in HPET_enable()203 __write8b(HPET_REG_BASE + TIM0_COMP, clks_to_intr); in HPET_enable()