Lines Matching refs:smc
63 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
70 smc->hw.t_start = time ; in hwt_start()
71 smc->hw.t_stop = 0L ; in hwt_start()
84 smc->hw.timer_activ = TRUE ; in hwt_start()
101 void hwt_stop(struct s_smc *smc) in hwt_stop() argument
106 smc->hw.timer_activ = FALSE ; in hwt_stop()
123 void hwt_init(struct s_smc *smc) in hwt_init() argument
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()
129 hwt_restart(smc) ; in hwt_init()
146 void hwt_restart(struct s_smc *smc) in hwt_restart() argument
148 hwt_stop(smc) ; in hwt_restart()
164 u_long hwt_read(struct s_smc *smc) in hwt_read() argument
169 if (smc->hw.timer_activ) { in hwt_read()
170 hwt_stop(smc) ; in hwt_read()
175 if ((tr > smc->hw.t_start) || (is & IS_TIMINT)) { in hwt_read()
176 hwt_restart(smc) ; 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()
199 u_long hwt_quick_read(struct s_smc *smc) in hwt_quick_read() argument
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()
237 hwt_quick_read(smc) == hwt_quick_read(smc)) { in hwt_wait_time()
244 diff = (long)(start - hwt_quick_read(smc)) ; in hwt_wait_time()
255 if (hwt_quick_read(smc) >= start) { in hwt_wait_time()
261 if (hwt_quick_read(smc) < start) { in hwt_wait_time()