Lines Matching defs:presc_count
36 unsigned short presc_count;
42 presc_count = *R_TIM_PRESC_STATUS;
43 /* presc_count might be wrapped */
48 presc_count = *R_TIM_PRESC_STATUS;
52 if (presc_count >= PRESCALE_VALUE/2 ){
53 presc_count = PRESCALE_VALUE - presc_count + PRESCALE_VALUE/2;
55 presc_count = PRESCALE_VALUE - presc_count - PRESCALE_VALUE/2;
59 ( (presc_count) * (1000000000/PRESCALE_FREQ));
67 unsigned short presc_count;
85 presc_count = *R_TIM_PRESC_STATUS;
86 /* presc_count might be wrapped */
90 presc_count = *R_TIM_PRESC_STATUS;
95 presc_count = 0;
115 if (presc_count >= PRESCALE_VALUE/2 ){
116 presc_count = PRESCALE_VALUE - presc_count + PRESCALE_VALUE/2;
118 presc_count = PRESCALE_VALUE - presc_count - PRESCALE_VALUE/2;
122 (( (presc_count) * (1000000000/PRESCALE_FREQ))/1000);