• Home
  • Raw
  • Download

Lines Matching refs:fi

52 FsmEvent(struct FsmInst *fi, int event, void *arg)  in FsmEvent()  argument
56 if ((fi->state >= fi->fsm->state_count) || (event >= fi->fsm->event_count)) { in FsmEvent()
58 (long)fi->state, (long)fi->fsm->state_count, event, (long)fi->fsm->event_count); in FsmEvent()
61 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in FsmEvent()
63 if (fi->debug) in FsmEvent()
64 fi->printdebug(fi, "State %s Event %s", in FsmEvent()
65 fi->fsm->strState[fi->state], in FsmEvent()
66 fi->fsm->strEvent[event]); in FsmEvent()
67 r(fi, event, arg); in FsmEvent()
70 if (fi->debug) in FsmEvent()
71 fi->printdebug(fi, "State %s Event %s no routine", in FsmEvent()
72 fi->fsm->strState[fi->state], in FsmEvent()
73 fi->fsm->strEvent[event]); in FsmEvent()
79 FsmChangeState(struct FsmInst *fi, int newstate) in FsmChangeState() argument
81 fi->state = newstate; in FsmChangeState()
82 if (fi->debug) in FsmChangeState()
83 fi->printdebug(fi, "ChangeState %s", in FsmChangeState()
84 fi->fsm->strState[newstate]); in FsmChangeState()
91 if (ft->fi->debug) in FsmExpireTimer()
92 ft->fi->printdebug(ft->fi, "FsmExpireTimer %lx", (long) ft); in FsmExpireTimer()
94 FsmEvent(ft->fi, ft->event, ft->arg); in FsmExpireTimer()
98 FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft) in FsmInitTimer() argument
100 ft->fi = fi; in FsmInitTimer()
104 if (ft->fi->debug) in FsmInitTimer()
105 ft->fi->printdebug(ft->fi, "FsmInitTimer %lx", (long) ft); in FsmInitTimer()
114 if (ft->fi->debug) in FsmDelTimer()
115 ft->fi->printdebug(ft->fi, "FsmDelTimer %lx %d", (long) ft, where); in FsmDelTimer()
126 if (ft->fi->debug) in FsmAddTimer()
127 ft->fi->printdebug(ft->fi, "FsmAddTimer %lx %d %d", in FsmAddTimer()
133 ft->fi->printdebug(ft->fi, "FsmAddTimer already active!"); in FsmAddTimer()
150 if (ft->fi->debug) in FsmRestartTimer()
151 ft->fi->printdebug(ft->fi, "FsmRestartTimer %lx %d %d", in FsmRestartTimer()