Lines Matching refs:fsm
193 fsm_newstate(ch->fsm, CTC_STATE_IDLE);
220 kfree_fsm(ch->fsm);
272 fsm_newstate(ch->fsm, CTC_STATE_STOPPED);
324 fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch);
332 fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch);
342 fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch);
350 fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch);
360 fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch);
362 fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch);
374 fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch);
379 fsm_event(ch->fsm, CTC_EVENT_UC_UNKNOWN, ch);
432 fsm_event(priv->fsm, DEV_EVENT_START, dev);
450 fsm_event(priv->fsm, DEV_EVENT_STOP, dev);
481 if (fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) {
566 fsm_newstate(ch->fsm, CTC_STATE_TX);
654 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev);
678 ch->id, fsm_getstate_str(ch->fsm));
680 if ((fsm_getstate(ch->fsm) != CTC_STATE_TXIDLE) || grp->in_sweep) {
827 fsm_newstate(ch->fsm, CTC_STATE_TX);
861 fsm_event(priv->mpcg->fsm, MPCG_EVENT_INOP, dev);
903 if (fsm_getstate(priv->fsm) != DEV_STATE_RUNNING) {
904 fsm_event(priv->fsm, DEV_EVENT_START, dev);
959 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev);
974 if ((fsm_getstate(priv->fsm) != DEV_STATE_RUNNING) ||
975 (fsm_getstate(grp->fsm) < MPCG_STATE_XID2INITW)) {
994 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev);
1008 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev);
1078 if (grp->fsm)
1079 kfree_fsm(grp->fsm);
1088 if (priv->fsm) {
1089 kfree_fsm(priv->fsm);
1090 priv->fsm = NULL;
1152 priv->fsm = init_fsm("ctcmdev", dev_state_names, dev_event_names,
1155 if (priv->fsm == NULL) {
1160 fsm_newstate(priv->fsm, DEV_STATE_STOPPED);
1161 fsm_settimer(priv->fsm, &priv->restart_timer);
1258 fsm_event(ch->fsm, CTC_EVENT_SC_UNKNOWN, ch);
1279 fsm_event(ch->fsm, CTC_EVENT_ATTNBUSY, ch);
1281 fsm_event(ch->fsm, CTC_EVENT_BUSY, ch);
1285 fsm_event(ch->fsm, CTC_EVENT_ATTN, ch);
1292 fsm_event(ch->fsm, CTC_EVENT_FINSTAT, ch);
1294 fsm_event(ch->fsm, CTC_EVENT_IRQ, ch);
1449 ch->fsm = init_fsm(ch->id, ctc_ch_state_names,
1454 ch->fsm = init_fsm(ch->id, ctc_ch_state_names,
1459 if (ch->fsm == NULL)
1462 fsm_newstate(ch->fsm, CTC_STATE_IDLE);
1481 fsm_settimer(ch->fsm, &ch->timer);
1486 fsm_settimer(ch->fsm, &ch->sweep_timer);
1499 kfree_fsm(ch->fsm);
1618 strlcpy(priv->fsm->name, dev->name, sizeof(priv->fsm->name));
1684 if (priv->fsm)
1685 kfree_fsm(priv->fsm);
1727 if (!wait_event_timeout(priv->fsm->wait_q,
1728 fsm_getstate(priv->fsm) == DEV_STATE_STOPPED, CTCM_TIME_5_SEC)) {