Lines Matching refs:ft
98 struct FsmTimer *ft = from_timer(ft, t, tl); in FsmExpireTimer() local
100 if (ft->fi->debug) in FsmExpireTimer()
101 ft->fi->printdebug(ft->fi, "FsmExpireTimer %lx", (long) ft); in FsmExpireTimer()
103 mISDN_FsmEvent(ft->fi, ft->event, ft->arg); in FsmExpireTimer()
107 mISDN_FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft) in mISDN_FsmInitTimer() argument
109 ft->fi = fi; in mISDN_FsmInitTimer()
111 if (ft->fi->debug) in mISDN_FsmInitTimer()
112 ft->fi->printdebug(ft->fi, "mISDN_FsmInitTimer %lx", (long) ft); in mISDN_FsmInitTimer()
114 timer_setup(&ft->tl, FsmExpireTimer, 0); in mISDN_FsmInitTimer()
119 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) in mISDN_FsmDelTimer() argument
122 if (ft->fi->debug) in mISDN_FsmDelTimer()
123 ft->fi->printdebug(ft->fi, "mISDN_FsmDelTimer %lx %d", in mISDN_FsmDelTimer()
124 (long) ft, where); in mISDN_FsmDelTimer()
126 del_timer(&ft->tl); in mISDN_FsmDelTimer()
131 mISDN_FsmAddTimer(struct FsmTimer *ft, in mISDN_FsmAddTimer() argument
136 if (ft->fi->debug) in mISDN_FsmAddTimer()
137 ft->fi->printdebug(ft->fi, "mISDN_FsmAddTimer %lx %d %d", in mISDN_FsmAddTimer()
138 (long) ft, millisec, where); in mISDN_FsmAddTimer()
141 if (timer_pending(&ft->tl)) { in mISDN_FsmAddTimer()
142 if (ft->fi->debug) { in mISDN_FsmAddTimer()
145 ft->fi->printdebug(ft->fi, in mISDN_FsmAddTimer()
150 ft->event = event; in mISDN_FsmAddTimer()
151 ft->arg = arg; in mISDN_FsmAddTimer()
152 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in mISDN_FsmAddTimer()
153 add_timer(&ft->tl); in mISDN_FsmAddTimer()
159 mISDN_FsmRestartTimer(struct FsmTimer *ft, in mISDN_FsmRestartTimer() argument
164 if (ft->fi->debug) in mISDN_FsmRestartTimer()
165 ft->fi->printdebug(ft->fi, "mISDN_FsmRestartTimer %lx %d %d", in mISDN_FsmRestartTimer()
166 (long) ft, millisec, where); in mISDN_FsmRestartTimer()
169 if (timer_pending(&ft->tl)) in mISDN_FsmRestartTimer()
170 del_timer(&ft->tl); in mISDN_FsmRestartTimer()
171 ft->event = event; in mISDN_FsmRestartTimer()
172 ft->arg = arg; in mISDN_FsmRestartTimer()
173 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in mISDN_FsmRestartTimer()
174 add_timer(&ft->tl); in mISDN_FsmRestartTimer()