Lines Matching refs:fsm
68 #include "fsm.h"
225 fsm_instance *fsm;
252 fsm_instance *fsm;
540 fsm_event(conn->fsm, CONN_EVENT_RX, &ev);
551 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev);
558 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn);
580 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev);
591 fsm_event(conn->fsm, CONN_EVENT_CONN_REJ, conn);
598 fsm_event(conn->fsm, CONN_EVENT_CONN_SUS, conn);
605 fsm_event(conn->fsm, CONN_EVENT_CONN_RES, conn);
826 fsm_event(privptr->fsm, DEV_EVENT_CONUP, netdev);
848 fsm_event(privptr->fsm, DEV_EVENT_CONUP, netdev);
876 fsm_event(privptr->fsm, DEV_EVENT_CONDOWN, netdev);
980 fsm_event(privptr->fsm, DEV_EVENT_CONDOWN, netdev);
1047 fsm_event(privptr->conn->fsm, CONN_EVENT_START, privptr->conn);
1069 fsm_event(privptr->conn->fsm, CONN_EVENT_STOP, &ev);
1163 if (fsm_getstate(conn->fsm) != CONN_STATE_IDLE) {
1210 fsm_newstate(conn->fsm, CONN_STATE_TX);
1224 fsm_newstate(conn->fsm, CONN_STATE_IDLE);
1267 fsm_event(priv->fsm, DEV_EVENT_START, dev);
1283 fsm_event(priv->fsm, DEV_EVENT_STOP, dev);
1317 priv->pm_state = fsm_getstate(priv->fsm);
1390 if (fsm_getstate(privptr->fsm) != DEV_STATE_RUNNING) {
1579 return sprintf(buf, "%s\n", fsm_getstate_str(priv->fsm));
1590 return sprintf(buf, "%s\n", fsm_getstate_str(priv->conn->fsm));
1886 conn->fsm = init_fsm("netiucvconn", conn_state_names,
1890 if (!conn->fsm)
1893 fsm_settimer(conn->fsm, &conn->timer);
1894 fsm_newstate(conn->fsm, CONN_STATE_INVALID);
1898 fsm_newstate(conn->fsm, CONN_STATE_STOPPED);
1934 kfree_fsm(conn->fsm);
1954 if (privptr->fsm)
1955 kfree_fsm(privptr->fsm);
1956 privptr->conn = NULL; privptr->fsm = NULL;
2001 privptr->fsm = init_fsm("netiucvdev", dev_state_names,
2004 if (!privptr->fsm)
2012 fsm_newstate(privptr->fsm, DEV_STATE_STOPPED);
2016 kfree_fsm(privptr->fsm);