Lines Matching refs:presc_count
77 unsigned short presc_count; in get_ns_in_jiffie() local
84 presc_count = *R_TIM_PRESC_STATUS; in get_ns_in_jiffie()
90 presc_count = *R_TIM_PRESC_STATUS; in get_ns_in_jiffie()
94 if (presc_count >= PRESCALE_VALUE/2 ){ in get_ns_in_jiffie()
95 presc_count = PRESCALE_VALUE - presc_count + PRESCALE_VALUE/2; in get_ns_in_jiffie()
97 presc_count = PRESCALE_VALUE - presc_count - PRESCALE_VALUE/2; in get_ns_in_jiffie()
101 ( (presc_count) * (1000000000/PRESCALE_FREQ)); in get_ns_in_jiffie()
198 unsigned short presc_count; in do_slow_gettimeoffset() local
216 presc_count = *R_TIM_PRESC_STATUS; in do_slow_gettimeoffset()
221 presc_count = *R_TIM_PRESC_STATUS; in do_slow_gettimeoffset()
226 presc_count = 0; in do_slow_gettimeoffset()
246 if (presc_count >= PRESCALE_VALUE/2 ){ in do_slow_gettimeoffset()
247 presc_count = PRESCALE_VALUE - presc_count + PRESCALE_VALUE/2; in do_slow_gettimeoffset()
249 presc_count = PRESCALE_VALUE - presc_count - PRESCALE_VALUE/2; in do_slow_gettimeoffset()
253 (( (presc_count) * (1000000000/PRESCALE_FREQ))/1000); in do_slow_gettimeoffset()