Lines Matching full:fsm

192 	fsm_newstate(ch->fsm, CTC_STATE_IDLE);  in channel_free()
219 kfree_fsm(ch->fsm); in channel_remove()
271 fsm_newstate(ch->fsm, CTC_STATE_STOPPED); in channel_get()
323 fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch); in ccw_unit_check()
331 fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch); in ccw_unit_check()
341 fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch); in ccw_unit_check()
349 fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch); in ccw_unit_check()
359 fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch); in ccw_unit_check()
361 fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch); in ccw_unit_check()
373 fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch); in ccw_unit_check()
378 fsm_event(ch->fsm, CTC_EVENT_UC_UNKNOWN, ch); in ccw_unit_check()
431 fsm_event(priv->fsm, DEV_EVENT_START, dev); in ctcm_open()
449 fsm_event(priv->fsm, DEV_EVENT_STOP, dev); in ctcm_close()
480 if (fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) { in ctcm_transmit_skb()
568 fsm_newstate(ch->fsm, CTC_STATE_TX); in ctcm_transmit_skb()
640 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_send_sweep_req()
663 ch->id, fsm_getstate_str(ch->fsm)); in ctcmpc_transmit_skb()
665 if ((fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) || grp->in_sweep) { in ctcmpc_transmit_skb()
786 fsm_newstate(ch->fsm, CTC_STATE_TX); in ctcmpc_transmit_skb()
819 fsm_event(priv->mpcg->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_transmit_skb()
854 if (fsm_getstate(priv->fsm) != DEV_STATE_RUNNING) { in ctcm_tx()
855 fsm_event(priv->fsm, DEV_EVENT_START, dev); in ctcm_tx()
910 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_tx()
925 if ((fsm_getstate(priv->fsm) != DEV_STATE_RUNNING) || in ctcmpc_tx()
926 (fsm_getstate(grp->fsm) < MPCG_STATE_XID2INITW)) { in ctcmpc_tx()
945 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_tx()
959 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_tx()
1026 if (grp->fsm) in ctcm_free_netdevice()
1027 kfree_fsm(grp->fsm); in ctcm_free_netdevice()
1034 if (priv->fsm) { in ctcm_free_netdevice()
1035 kfree_fsm(priv->fsm); in ctcm_free_netdevice()
1036 priv->fsm = NULL; in ctcm_free_netdevice()
1102 priv->fsm = init_fsm("ctcmdev", dev_state_names, dev_event_names, in ctcm_init_netdevice()
1105 if (priv->fsm == NULL) { in ctcm_init_netdevice()
1110 fsm_newstate(priv->fsm, DEV_STATE_STOPPED); in ctcm_init_netdevice()
1111 fsm_settimer(priv->fsm, &priv->restart_timer); in ctcm_init_netdevice()
1208 fsm_event(ch->fsm, CTC_EVENT_SC_UNKNOWN, ch); in ctcm_irq_handler()
1229 fsm_event(ch->fsm, CTC_EVENT_ATTNBUSY, ch); in ctcm_irq_handler()
1231 fsm_event(ch->fsm, CTC_EVENT_BUSY, ch); in ctcm_irq_handler()
1235 fsm_event(ch->fsm, CTC_EVENT_ATTN, ch); in ctcm_irq_handler()
1242 fsm_event(ch->fsm, CTC_EVENT_FINSTAT, ch); in ctcm_irq_handler()
1244 fsm_event(ch->fsm, CTC_EVENT_IRQ, ch); in ctcm_irq_handler()
1397 ch->fsm = init_fsm(ch->id, ctc_ch_state_names, in add_channel()
1402 ch->fsm = init_fsm(ch->id, ctc_ch_state_names, in add_channel()
1407 if (ch->fsm == NULL) in add_channel()
1410 fsm_newstate(ch->fsm, CTC_STATE_IDLE); in add_channel()
1429 fsm_settimer(ch->fsm, &ch->timer); in add_channel()
1434 fsm_settimer(ch->fsm, &ch->sweep_timer); in add_channel()
1447 kfree_fsm(ch->fsm); in add_channel()
1562 strscpy(priv->fsm->name, dev->name, sizeof(priv->fsm->name)); in ctcm_new_device()
1625 if (priv->fsm) in ctcm_shutdown_device()
1626 kfree_fsm(priv->fsm); in ctcm_shutdown_device()