Home | History | Annotate | Download | only in mcap

Lines Matching full:state

21  *  This is the implementation file for the MCAP Data chahnel state machine.
32 ** data channel state machine constants and types
58 /* state table information */
61 #define MCA_DCB_NEXT_STATE 1 /* position of next state */
62 #define MCA_DCB_NUM_COLS 2 /* number of columns in state tables */
64 /* state table for opening state */
66 /* Event Action Next State */
75 /* state table for open state */
77 /* Event Action Next State */
86 /* state table for closing state */
88 /* Event Action Next State */
97 /* type for state table */
100 /* state table */
117 /* verbose state strings for trace */
130 ** Description This function is the DCB state machine main function.
131 ** It uses the state and action function tables to execute
145 MCA_TRACE_EVENT3("DCB dcb=%d event=%s state=%s", mca_dcb_to_hdl(p_dcb), mca_dcb_evt_str[event], mca_dcb_st_str[p_dcb->state]);
147 MCA_TRACE_EVENT3("DCB dcb=%d event=%d state=%d", mca_dcb_to_hdl(p_dcb), event, p_dcb->state);
150 /* look up the state table for the current state */
151 state_table = mca_dcb_st_tbl[p_dcb->state - 1];
153 /* set next state */
154 p_dcb->state = state_table[event][MCA_DCB_NEXT_STATE];
189 if (p_dcb_tmp->state == MCA_DCB_NULL_ST)
192 p_dcb_tmp->state = MCA_DCB_OPENING_ST;
231 if ((p_dcb->state != MCA_DCB_NULL_ST) && (p_dcb->p_cs == p_cs))
308 if (hdl && hdl <= MCA_NUM_DCBS && mca_cb.dcb[hdl-1].state)
333 if (p_dcb->state)