Lines Matching +full:duration +full:- +full:us
24 * 28-Jun-1994 sw Edit v1.6.
25 * MCA: Added support for the SK-NET FDDI-FM2 adapter. The
41 /* 28-Jun-1994 sw - Note: hwt_restart() is also used in module 'drvfbi.c'. */
48 * Start hardware timer (clock ticks are 16us).
54 * smc - A pointer to the SMT Context structure.
56 * time - The time in units of 16us to load the timer with.
70 smc->hw.t_start = time ; in hwt_start()
71 smc->hw.t_stop = 0L ; in hwt_start()
75 * if time < 16 us in hwt_start()
76 * time = 16 us in hwt_start()
84 smc->hw.timer_activ = TRUE ; in hwt_start()
96 * smc - A pointer to the SMT Context structure.
106 smc->hw.timer_activ = FALSE ; in hwt_stop()
118 * smc - A pointer to the SMT Context structure.
125 smc->hw.t_start = 0 ; in hwt_init()
126 smc->hw.t_stop = 0 ; in hwt_init()
127 smc->hw.timer_activ = FALSE ; in hwt_init()
141 * smc - A pointer to the SMT Context structure.
159 * smc - A pointer to the SMT Context structure.
161 * The elapsed time since last start in units of 16us.
169 if (smc->hw.timer_activ) { in hwt_read()
175 if ((tr > smc->hw.t_start) || (is & IS_TIMINT)) { in hwt_read()
177 smc->hw.t_stop = smc->hw.t_start ; in hwt_read()
180 smc->hw.t_stop = smc->hw.t_start - tr ; in hwt_read()
182 return smc->hw.t_stop; in hwt_read()
194 * smc - A pointer to the SMT Context structure.
216 * hwt_wait_time(smc,start,duration)
222 * duration time to wait
227 void hwt_wait_time(struct s_smc *smc, u_long start, long int duration) in hwt_wait_time() argument
236 if (smc->hw.timer_activ == FALSE || in hwt_wait_time()
242 if (interval > duration) { in hwt_wait_time()
244 diff = (long)(start - hwt_quick_read(smc)) ; in hwt_wait_time()
248 } while (diff <= duration) ; in hwt_wait_time()
265 } while (diff <= duration) ; in hwt_wait_time()