Lines Matching refs:fi

55 mISDN_FsmEvent(struct FsmInst *fi, int event, void *arg)  in mISDN_FsmEvent()  argument
59 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent()
60 (event >= fi->fsm->event_count)) { in mISDN_FsmEvent()
63 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent()
64 (long)fi->fsm->event_count); in mISDN_FsmEvent()
67 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
69 if (fi->debug) in mISDN_FsmEvent()
70 fi->printdebug(fi, "State %s Event %s", in mISDN_FsmEvent()
71 fi->fsm->strState[fi->state], in mISDN_FsmEvent()
72 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
73 r(fi, event, arg); in mISDN_FsmEvent()
76 if (fi->debug) in mISDN_FsmEvent()
77 fi->printdebug(fi, "State %s Event %s no action", in mISDN_FsmEvent()
78 fi->fsm->strState[fi->state], in mISDN_FsmEvent()
79 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
86 mISDN_FsmChangeState(struct FsmInst *fi, int newstate) in mISDN_FsmChangeState() argument
88 fi->state = newstate; in mISDN_FsmChangeState()
89 if (fi->debug) in mISDN_FsmChangeState()
90 fi->printdebug(fi, "ChangeState %s", in mISDN_FsmChangeState()
91 fi->fsm->strState[newstate]); in mISDN_FsmChangeState()
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()
122 if (ft->fi->debug) in mISDN_FsmDelTimer()
123 ft->fi->printdebug(ft->fi, "mISDN_FsmDelTimer %lx %d", in mISDN_FsmDelTimer()
136 if (ft->fi->debug) in mISDN_FsmAddTimer()
137 ft->fi->printdebug(ft->fi, "mISDN_FsmAddTimer %lx %d %d", in mISDN_FsmAddTimer()
142 if (ft->fi->debug) { in mISDN_FsmAddTimer()
145 ft->fi->printdebug(ft->fi, in mISDN_FsmAddTimer()
164 if (ft->fi->debug) in mISDN_FsmRestartTimer()
165 ft->fi->printdebug(ft->fi, "mISDN_FsmRestartTimer %lx %d %d", in mISDN_FsmRestartTimer()