• Home
  • Raw
  • Download

Lines Matching refs:fsm

111 static void mpc_action_nop(fsm_instance *fsm, int event, void *arg);
112 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg);
116 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg);
117 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg);
118 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg);
119 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg);
120 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg);
121 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg);
344 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
346 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
367 fsm_event(priv->fsm, DEV_EVENT_START, dev); in ctc_mpc_alloc_channel()
381 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_alloc_channel()
413 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_establish_connectivity()
418 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity()
433 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_establish_connectivity()
455 if ((fsm_getstate(rch->fsm) > CH_XID0_PENDING) || in ctc_mpc_establish_connectivity()
456 (fsm_getstate(wch->fsm) > CH_XID0_PENDING)) { in ctc_mpc_establish_connectivity()
463 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIT); in ctc_mpc_establish_connectivity()
471 (fsm_getstate(rch->fsm) == CH_XID0_PENDING)) in ctc_mpc_establish_connectivity()
472 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, rch); in ctc_mpc_establish_connectivity()
485 (fsm_getstate(wch->fsm) == CH_XID0_PENDING)) in ctc_mpc_establish_connectivity()
486 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, wch); in ctc_mpc_establish_connectivity()
538 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_dealloc_ch()
569 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control()
578 fsm_newstate(grp->fsm, MPCG_STATE_FLOWC); in ctc_mpc_flow_control()
584 fsm_newstate(grp->fsm, MPCG_STATE_READY); in ctc_mpc_flow_control()
684 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_send_sweep_resp()
827 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg) in mpc_action_go_ready() argument
851 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_go_ready()
889 fsm_newstate(grp->fsm, MPCG_STATE_READY); in mpc_group_ready()
897 ctcmpc_chx_rxidle(ch->fsm, CTC_EVENT_START, ch); in mpc_group_ready()
906 ctcm_chx_txidle(ch->fsm, CTC_EVENT_START, ch); in mpc_group_ready()
945 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
964 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
992 fsm_newstate(ch->fsm, CH_XID0_PENDING); in mpc_channel_action()
996 (fsm_getstate(grp->fsm) < MPCG_STATE_XID2INITW)) { in mpc_channel_action()
997 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW); in mpc_channel_action()
1019 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
1025 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
1075 if ((fsm_getstate(grp->fsm) == MPCG_STATE_FLOWC) || in ctcmpc_unpack_skb()
1076 ((fsm_getstate(grp->fsm) == MPCG_STATE_READY) && in ctcmpc_unpack_skb()
1100 if (unlikely(fsm_getstate(grp->fsm) != MPCG_STATE_READY)) in ctcmpc_unpack_skb()
1149 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1199 fsm_event(grp->fsm, MPCG_EVENT_XID2, mpcginfo); in ctcmpc_unpack_skb()
1201 fsm_event(grp->fsm, MPCG_EVENT_DISCONC, mpcginfo); in ctcmpc_unpack_skb()
1220 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1246 while ((fsm_getstate(grp->fsm) != MPCG_STATE_FLOWC) && in ctcmpc_bh()
1254 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_bh()
1279 grp->fsm = init_fsm("mpcg", mpcg_state_names, mpcg_event_names, in ctcmpc_init_mpc_group()
1282 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group()
1287 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in ctcmpc_init_mpc_group()
1288 fsm_settimer(grp->fsm, &grp->timer); in ctcmpc_init_mpc_group()
1293 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1314 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1368 grp->saved_state = fsm_getstate(grp->fsm); in mpc_action_go_inop()
1369 fsm_newstate(grp->fsm, MPCG_STATE_INOP); in mpc_action_go_inop()
1430 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1438 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1467 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout()
1472 if ((fsm_getstate(rch->fsm) == CH_XID0_PENDING) && in mpc_action_timeout()
1473 (fsm_getstate(wch->fsm) == CH_XID0_PENDING)) in mpc_action_timeout()
1476 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_timeout()
1507 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_discontact()
1666 static void mpc_action_side_xid(fsm_instance *fsm, void *arg, int side) in mpc_action_side_xid() argument
1824 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg) in mpc_action_xside_xid() argument
1826 mpc_action_side_xid(fsm, arg, XSIDE); in mpc_action_xside_xid()
1833 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg) in mpc_action_yside_xid() argument
1835 mpc_action_side_xid(fsm, arg, YSIDE); in mpc_action_yside_xid()
1842 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg) in mpc_action_doxid0() argument
1859 fsm_newstate(ch->fsm, CH_XID0_INPROGRESS); in mpc_action_doxid0()
1863 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0()
1874 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid0()
1883 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg) in mpc_action_doxid7() argument
1908 if (fsm_getstate(ch->fsm) == CH_XID7_PENDING1) { in mpc_action_doxid7()
1909 fsm_newstate(ch->fsm, CH_XID7_PENDING2); in mpc_action_doxid7()
1916 } else if (fsm_getstate(ch->fsm) < CH_XID7_PENDING2) { in mpc_action_doxid7()
1917 fsm_newstate(ch->fsm, CH_XID7_PENDING2); in mpc_action_doxid7()
1927 if (fsm_getstate(ch->fsm) < CH_XID7_PENDING4) { in mpc_action_doxid7()
1928 fsm_newstate(ch->fsm, CH_XID7_PENDING4); in mpc_action_doxid7()
1935 } else if (fsm_getstate(ch->fsm) == CH_XID7_PENDING3) { in mpc_action_doxid7()
1936 fsm_newstate(ch->fsm, CH_XID7_PENDING4); in mpc_action_doxid7()
1945 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid7()
1955 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg) in mpc_action_rcvd_xid0() argument
1968 if (fsm_getstate(ch->fsm) < CH_XID7_PENDING) in mpc_action_rcvd_xid0()
1969 fsm_newstate(ch->fsm, CH_XID7_PENDING); in mpc_action_rcvd_xid0()
1977 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid0()
1979 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITX); in mpc_action_rcvd_xid0()
1983 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIX); in mpc_action_rcvd_xid0()
1988 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITW); in mpc_action_rcvd_xid0()
1990 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
1995 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITI); in mpc_action_rcvd_xid0()
1997 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
2008 fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm)); in mpc_action_rcvd_xid0()
2018 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg) in mpc_action_rcvd_xid7() argument
2036 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid7()
2038 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITZ); in mpc_action_rcvd_xid7()
2042 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITX); in mpc_action_rcvd_xid7()
2053 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITF); in mpc_action_rcvd_xid7()
2056 fsm_event(grp->fsm, MPCG_EVENT_XID7DONE, dev); in mpc_action_rcvd_xid7()