Lines Matching refs:smc
55 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
62 smc->hw.t_start = time ; in hwt_start()
63 smc->hw.t_stop = 0L ; in hwt_start()
76 smc->hw.timer_activ = TRUE ; in hwt_start()
93 void hwt_stop(struct s_smc *smc) in hwt_stop() argument
98 smc->hw.timer_activ = FALSE ; in hwt_stop()
115 void hwt_init(struct s_smc *smc) in hwt_init() argument
117 smc->hw.t_start = 0 ; in hwt_init()
118 smc->hw.t_stop = 0 ; in hwt_init()
119 smc->hw.timer_activ = FALSE ; in hwt_init()
121 hwt_restart(smc) ; in hwt_init()
138 void hwt_restart(struct s_smc *smc) in hwt_restart() argument
140 hwt_stop(smc) ; in hwt_restart()
156 u_long hwt_read(struct s_smc *smc) in hwt_read() argument
161 if (smc->hw.timer_activ) { in hwt_read()
162 hwt_stop(smc) ; in hwt_read()
167 if ((tr > smc->hw.t_start) || (is & IS_TIMINT)) { in hwt_read()
168 hwt_restart(smc) ; in hwt_read()
169 smc->hw.t_stop = smc->hw.t_start ; in hwt_read()
172 smc->hw.t_stop = smc->hw.t_start - tr ; in hwt_read()
174 return smc->hw.t_stop; in hwt_read()
191 u_long hwt_quick_read(struct s_smc *smc) in hwt_quick_read() argument
219 void hwt_wait_time(struct s_smc *smc, u_long start, long int duration) in hwt_wait_time() argument
228 if (smc->hw.timer_activ == FALSE || in hwt_wait_time()
229 hwt_quick_read(smc) == hwt_quick_read(smc)) { in hwt_wait_time()
236 diff = (long)(start - hwt_quick_read(smc)) ; in hwt_wait_time()
247 if (hwt_quick_read(smc) >= start) { in hwt_wait_time()
253 if (hwt_quick_read(smc) < start) { in hwt_wait_time()