Lines Matching full:smc
28 #include "h/smc.h"
47 * struct s_smc *smc,
50 * smc - A pointer to the SMT Context structure.
59 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
66 smc->hw.t_start = time ; in hwt_start()
67 smc->hw.t_stop = 0L ; in hwt_start()
80 smc->hw.timer_activ = TRUE ; in hwt_start()
90 * struct s_smc *smc) ;
92 * smc - A pointer to the SMT Context structure.
97 void hwt_stop(struct s_smc *smc) in hwt_stop() argument
102 smc->hw.timer_activ = FALSE ; in hwt_stop()
112 * struct s_smc *smc) ;
114 * smc - A pointer to the SMT Context structure.
119 void hwt_init(struct s_smc *smc) in hwt_init() argument
121 smc->hw.t_start = 0 ; in hwt_init()
122 smc->hw.t_stop = 0 ; in hwt_init()
123 smc->hw.timer_activ = FALSE ; in hwt_init()
125 hwt_restart(smc) ; in hwt_init()
135 * struct s_smc *smc) ;
137 * smc - A pointer to the SMT Context structure.
142 void hwt_restart(struct s_smc *smc) in hwt_restart() argument
144 hwt_stop(smc) ; in hwt_restart()
153 * u_long hwt_read(smc) ;
155 * smc - A pointer to the SMT Context structure.
160 u_long hwt_read(struct s_smc *smc) in hwt_read() argument
165 if (smc->hw.timer_activ) { in hwt_read()
166 hwt_stop(smc) ; in hwt_read()
171 if ((tr > smc->hw.t_start) || (is & IS_TIMINT)) { in hwt_read()
172 hwt_restart(smc) ; in hwt_read()
173 smc->hw.t_stop = smc->hw.t_start ; in hwt_read()
176 smc->hw.t_stop = smc->hw.t_start - tr ; in hwt_read()
178 return smc->hw.t_stop; in hwt_read()
188 * u_long hwt_read(smc) ;
190 * smc - A pointer to the SMT Context structure.
195 u_long hwt_quick_read(struct s_smc *smc) in hwt_quick_read() argument
212 * hwt_wait_time(smc,start,duration)
223 void hwt_wait_time(struct s_smc *smc, u_long start, long int duration) in hwt_wait_time() argument
232 if (smc->hw.timer_activ == FALSE || in hwt_wait_time()
233 hwt_quick_read(smc) == hwt_quick_read(smc)) { in hwt_wait_time()
240 diff = (long)(start - hwt_quick_read(smc)) ; in hwt_wait_time()
251 if (hwt_quick_read(smc) >= start) { in hwt_wait_time()
257 if (hwt_quick_read(smc) < start) { in hwt_wait_time()