Lines Matching refs:fsm
30 mISDN_FsmNew(struct Fsm *fsm, in mISDN_FsmNew() argument
35 fsm->jumpmatrix = kzalloc(sizeof(FSMFNPTR) * fsm->state_count * in mISDN_FsmNew()
36 fsm->event_count, GFP_KERNEL); in mISDN_FsmNew()
39 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew()
40 (fnlist[i].event >= fsm->event_count)) { in mISDN_FsmNew()
43 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew()
44 (long)fnlist[i].event, (long)fsm->event_count); in mISDN_FsmNew()
46 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
52 mISDN_FsmFree(struct Fsm *fsm) in mISDN_FsmFree() argument
54 kfree((void *) fsm->jumpmatrix); in mISDN_FsmFree()
63 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent()
64 (event >= fi->fsm->event_count)) { in mISDN_FsmEvent()
67 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent()
68 (long)fi->fsm->event_count); in mISDN_FsmEvent()
71 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
75 fi->fsm->strState[fi->state], in mISDN_FsmEvent()
76 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
82 fi->fsm->strState[fi->state], in mISDN_FsmEvent()
83 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
95 fi->fsm->strState[newstate]); in mISDN_FsmChangeState()