Home | History | Annotate | Download | only in mcap

Lines Matching full:state

21  *  This is the implementation file for the MCAP Control channel state
34 ** data channel state machine constants and types
68 /* state table information */
71 #define MCA_CCB_NEXT_STATE 1 /* position of next state */
72 #define MCA_CCB_NUM_COLS 2 /* number of columns in state tables */
74 /* state table for opening state */
76 /* Event Action Next State */
90 /* state table for open state */
92 /* Event Action Next State */
106 /* state table for closing state */
108 /* Event Action Next State */
122 /* type for state table */
125 /* state table */
147 /* verbose state strings for trace */
180 ** Description This function is the CCB state machine main function.
181 ** It uses the state and action function tables to execute
193 MCA_TRACE_EVENT3("CCB ccb=%d event=%s state=%s", mca_ccb_to_hdl(p_ccb), mca_ccb_evt_str[event], mca_ccb_st_str[p_ccb->state]);
195 MCA_TRACE_EVENT3("CCB ccb=%d event=%d state=%d", mca_ccb_to_hdl(p_ccb), event, p_ccb->state);
198 /* look up the state table for the current state */
199 state_table = mca_ccb_st_tbl[p_ccb->state - 1];
201 /* set next state */
202 p_ccb->state = state_table[event][MCA_CCB_NEXT_STATE];
235 if (p_ccb_tmp->state != MCA_CCB_NULL_ST && memcmp(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN) == 0)
270 if (p_ccb_tmp->state == MCA_CCB_NULL_ST)
273 p_ccb_tmp->state = MCA_CCB_OPENING_ST;
352 if (mcl && mcl <= MCA_NUM_CCBS && mca_cb.ccb[mcl-1].state)
377 if (p_dcb->state != MCA_DCB_NULL_ST && p_dcb->mdl_id == mdl_id)