Lines Matching full:p_ccb
50 tMCA_CCB* p_ccb = (tMCA_CCB*)data;
52 mca_ccb_event(p_ccb, MCA_CCB_RSP_TOUT_EVT, NULL);
308 tMCA_CCB* p_ccb;
312 p_ccb = mca_ccb_by_bd(handle, bd_addr);
313 if (p_ccb == NULL)
314 p_ccb = mca_ccb_alloc(handle, bd_addr);
320 if (p_ccb) {
321 p_ccb->ctrl_vpsm =
324 if (p_ccb->ctrl_vpsm) {
326 p_ccb->ctrl_vpsm, BTM_SEC_PROTO_MCA, MCA_CTRL_TCID);
327 p_ccb->lcid = mca_l2c_open_req(bd_addr, p_ccb->ctrl_vpsm, NULL);
328 if (p_ccb->lcid) {
329 p_tbl = mca_tc_tbl_calloc(p_ccb);
332 p_ccb->sec_mask = sec_mask;
337 if (result != MCA_SUCCESS) mca_ccb_dealloc(p_ccb, NULL);
358 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
361 if (p_ccb) {
363 mca_ccb_event(p_ccb, MCA_CCB_API_DISCONNECT_EVT, NULL);
390 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
395 if (p_ccb) {
396 if (p_ccb->p_tx_req || p_ccb->p_rx_msg || p_ccb->cong) {
407 if (mca_ccb_uses_mdl_id(p_ccb, mdl_id)) {
412 p_dcb = mca_dcb_alloc(p_ccb, dep);
418 if (!p_ccb->data_vpsm)
419 p_ccb->data_vpsm =
421 if (p_ccb->data_vpsm) {
432 mca_ccb_event(p_ccb, MCA_CCB_API_REQ_EVT, mca_ccb_evt);
461 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
466 if (p_ccb) {
467 if (p_ccb->cong) {
471 if (p_ccb->p_rx_msg && (p_ccb->p_rx_msg->mdep_id == dep) &&
472 (p_ccb->p_rx_msg->mdl_id == mdl_id) &&
473 (p_ccb->p_rx_msg->op_code == MCA_OP_MDL_CREATE_REQ)) {
478 tMCA_DCB* p_dcb = mca_dcb_alloc(p_ccb, dep);
496 mca_ccb_event(p_ccb, MCA_CCB_API_RSP_EVT, &mca_ccb_evt);
549 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
554 if (p_ccb) {
555 if (p_ccb->p_tx_req || p_ccb->p_rx_msg || p_ccb->cong) {
565 if (mca_ccb_uses_mdl_id(p_ccb, mdl_id)) {
570 p_dcb = mca_dcb_alloc(p_ccb, dep);
579 if (!p_ccb->data_vpsm)
580 p_ccb->data_vpsm =
586 mca_ccb_event(p_ccb, MCA_CCB_API_REQ_EVT, mca_ccb_evt);
610 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
615 if (p_ccb) {
616 if (p_ccb->cong) {
620 if (p_ccb->p_rx_msg && (p_ccb->p_rx_msg->mdl_id == mdl_id) &&
621 (p_ccb->p_rx_msg->op_code == MCA_OP_MDL_RECONNECT_REQ)) {
626 p_dcb = mca_dcb_alloc(p_ccb, dep);
643 mca_ccb_event(p_ccb, MCA_CCB_API_RSP_EVT, &mca_ccb_evt);
669 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
675 if (p_ccb) {
677 if ((p_ccb->p_tx_req == NULL) || (p_ccb->status != MCA_CCB_STAT_PENDING) ||
678 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) == NULL)) {
680 p_ccb->status);
685 BTM_SetSecurityLevel(true, "", BTM_SEC_SERVICE_MCAP_DATA, p_ccb->sec_mask,
686 p_ccb->data_vpsm, BTM_SEC_PROTO_MCA,
687 p_ccb->p_tx_req->dcb_idx);
689 mca_l2c_open_req(p_ccb->peer_addr, p_ccb->data_vpsm, p_dcb->p_chnl_cfg);
714 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
718 if (p_ccb) {
722 if ((p_ccb->p_tx_req == NULL) || (p_ccb->status != MCA_CCB_STAT_PENDING) ||
723 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) == NULL)) {
725 p_ccb->status);
729 if (p_ccb->cong) {
739 mca_ccb_event(p_ccb, MCA_CCB_API_REQ_EVT, mca_ccb_evt);
757 tMCA_CCB* p_ccb = mca_ccb_by_hdl(mcl);
760 if (p_ccb) {
761 if (p_ccb->cong) {
776 mca_ccb_event(p_ccb, MCA_CCB_API_REQ_EVT, mca_ccb_evt);