Lines Matching refs:p_dcb
137 void mca_dcb_event(tMCA_DCB *p_dcb, UINT8 event, tMCA_DCB_EVT *p_data) in mca_dcb_event() argument
142 if (p_dcb == NULL) in mca_dcb_event()
145 …NT("DCB dcb=%d event=%s state=%s", mca_dcb_to_hdl(p_dcb), mca_dcb_evt_str[event], mca_dcb_st_str[p… in mca_dcb_event()
147 MCA_TRACE_EVENT("DCB dcb=%d event=%d state=%d", mca_dcb_to_hdl(p_dcb), event, p_dcb->state); in mca_dcb_event()
151 state_table = mca_dcb_st_tbl[p_dcb->state - 1]; in mca_dcb_event()
154 p_dcb->state = state_table[event][MCA_DCB_NEXT_STATE]; in mca_dcb_event()
159 (*mca_dcb_action[action])(p_dcb, p_data); in mca_dcb_event()
175 tMCA_DCB *p_dcb = NULL, *p_dcb_tmp; in mca_dcb_alloc() local
195 p_dcb = p_dcb_tmp; in mca_dcb_alloc()
200 return p_dcb; in mca_dcb_alloc()
215 tMCA_DCB *p_dcb; in mca_dep_free_mdl() local
226 p_dcb = &mca_cb.dcb[i * MCA_NUM_MDLS]; in mca_dep_free_mdl()
229 for (i=0; i<max; i++, p_dcb++) in mca_dep_free_mdl()
231 if ((p_dcb->state != MCA_DCB_NULL_ST) && (p_dcb->p_cs == p_cs)) in mca_dep_free_mdl()
256 void mca_dcb_dealloc(tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data) in mca_dcb_dealloc() argument
258 tMCA_CCB *p_ccb = p_dcb->p_ccb; in mca_dcb_dealloc()
263 osi_free_and_reset((void **)&p_dcb->p_data); in mca_dcb_dealloc()
267 evt_data.close_cfm.mdl = mca_dcb_to_hdl(p_dcb); in mca_dcb_dealloc()
269 evt_data.close_cfm.mdl_id = p_dcb->mdl_id; in mca_dcb_dealloc()
275 mca_free_tc_tbl_by_lcid (p_dcb->lcid); in mca_dcb_dealloc()
276 memset (p_dcb, 0, sizeof (tMCA_DCB)); in mca_dcb_dealloc()
289 tMCA_DL mca_dcb_to_hdl(tMCA_DCB *p_dcb) in mca_dcb_to_hdl() argument
291 return (UINT8) (p_dcb - mca_cb.dcb + 1); in mca_dcb_to_hdl()
307 tMCA_DCB * p_dcb = NULL; in mca_dcb_by_hdl() local
309 p_dcb = &mca_cb.dcb[hdl-1]; in mca_dcb_by_hdl()
310 return p_dcb; in mca_dcb_by_hdl()
325 tMCA_DCB *p_dcb; in mca_dcb_close_by_mdl_id() local
330 p_dcb = &mca_cb.dcb[i*MCA_NUM_MDLS]; in mca_dcb_close_by_mdl_id()
331 for (i=0; i<MCA_NUM_MDLS; i++, p_dcb++) in mca_dcb_close_by_mdl_id()
333 if (p_dcb->state) in mca_dcb_close_by_mdl_id()
335 if (p_dcb->mdl_id == mdl_id) in mca_dcb_close_by_mdl_id()
337 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in mca_dcb_close_by_mdl_id()
342 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in mca_dcb_close_by_mdl_id()