Lines Matching defs:p_ccb
167 void mca_stop_timer(tMCA_CCB *p_ccb)
169 if (p_ccb->timer_entry.event == BTU_TTYPE_MCA_CCB_RSP)
171 btu_stop_timer(&p_ccb->timer_entry);
172 p_ccb->timer_entry.event = 0;
187 void mca_ccb_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CCB_EVT *p_data)
193 MCA_TRACE_EVENT("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_EVENT("CCB ccb=%d event=%d state=%d", mca_ccb_to_hdl(p_ccb), event, p_ccb->state);
199 state_table = mca_ccb_st_tbl[p_ccb->state - 1];
202 p_ccb->state = state_table[event][MCA_CCB_NEXT_STATE];
207 (*mca_ccb_action[action])(p_ccb, p_data);
224 tMCA_CCB *p_ccb = NULL;
237 p_ccb = p_ccb_tmp;
242 return p_ccb;
258 tMCA_CCB *p_ccb = NULL;
276 p_ccb = p_ccb_tmp;
281 return p_ccb;
294 void mca_ccb_dealloc(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data)
298 MCA_TRACE_DEBUG("mca_ccb_dealloc ctrl_vpsm:0x%x", p_ccb->ctrl_vpsm);
299 mca_dcb_close_by_mdl_id (p_ccb, MCA_ALL_MDL_ID);
300 if (p_ccb->ctrl_vpsm)
302 L2CA_Deregister (p_ccb->ctrl_vpsm);
304 if (p_ccb->data_vpsm)
306 L2CA_Deregister (p_ccb->data_vpsm);
308 mca_free_buf ((void **)&p_ccb->p_rx_msg);
309 mca_free_buf ((void **)&p_ccb->p_tx_req);
310 mca_stop_timer(p_ccb);
315 memcpy (evt_data.disconnect_ind.bd_addr, p_ccb->peer_addr, BD_ADDR_LEN);
317 mca_ccb_report_event(p_ccb, MCA_DISCONNECT_IND_EVT, &evt_data);
319 mca_free_tc_tbl_by_lcid (p_ccb->lcid);
320 memset (p_ccb, 0, sizeof (tMCA_CCB));
333 tMCA_CL mca_ccb_to_hdl(tMCA_CCB *p_ccb)
335 return (UINT8) (p_ccb - mca_cb.ccb + 1);
351 tMCA_CCB * p_ccb = NULL;
353 p_ccb = &mca_cb.ccb[mcl-1];
354 return p_ccb;
367 BOOLEAN mca_ccb_uses_mdl_id(tMCA_CCB *p_ccb, UINT16 mdl_id)
373 i = mca_ccb_to_hdl(p_ccb)-1;