Lines Matching refs:ft
100 FsmExpireTimer(struct FsmTimer *ft)
103 if (ft->fi->debug)
104 ft->fi->printdebug(ft->fi, "FsmExpireTimer %lx", (long) ft);
106 mISDN_FsmEvent(ft->fi, ft->event, ft->arg);
110 mISDN_FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft)
112 ft->fi = fi;
113 ft->tl.function = (void *) FsmExpireTimer;
114 ft->tl.data = (long) ft;
116 if (ft->fi->debug)
117 ft->fi->printdebug(ft->fi, "mISDN_FsmInitTimer %lx", (long) ft);
119 init_timer(&ft->tl);
124 mISDN_FsmDelTimer(struct FsmTimer *ft, int where)
127 if (ft->fi->debug)
128 ft->fi->printdebug(ft->fi, "mISDN_FsmDelTimer %lx %d",
129 (long) ft, where);
131 del_timer(&ft->tl);
136 mISDN_FsmAddTimer(struct FsmTimer *ft,
141 if (ft->fi->debug)
142 ft->fi->printdebug(ft->fi, "mISDN_FsmAddTimer %lx %d %d",
143 (long) ft, millisec, where);
146 if (timer_pending(&ft->tl)) {
147 if (ft->fi->debug) {
150 ft->fi->printdebug(ft->fi,
155 init_timer(&ft->tl);
156 ft->event = event;
157 ft->arg = arg;
158 ft->tl.expires = jiffies + (millisec * HZ) / 1000;
159 add_timer(&ft->tl);
165 mISDN_FsmRestartTimer(struct FsmTimer *ft,
170 if (ft->fi->debug)
171 ft->fi->printdebug(ft->fi, "mISDN_FsmRestartTimer %lx %d %d",
172 (long) ft, millisec, where);
175 if (timer_pending(&ft->tl))
176 del_timer(&ft->tl);
177 init_timer(&ft->tl);
178 ft->event = event;
179 ft->arg = arg;
180 ft->tl.expires = jiffies + (millisec * HZ) / 1000;
181 add_timer(&ft->tl);