Lines Matching refs:p_dcb

88     tBTA_HL_MDL_CB      *p_dcb  = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx);  in bta_hl_dch_mca_cong_change()  local
98 p_dcb->cong = p_cong_chg->cong; in bta_hl_dch_mca_cong_change()
99 evt_data.dch_cong_ind.mdl_handle = p_dcb->mdl_handle; in bta_hl_dch_mca_cong_change()
122 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_echo_test() local
129 p_dcb->echo_oper = BTA_HL_ECHO_OP_CI_GET_ECHO_DATA; in bta_hl_dch_echo_test()
130 p_dcb->cout_oper |= BTA_HL_CO_GET_ECHO_DATA_MASK; in bta_hl_dch_echo_test()
133 p_dcb->p_echo_tx_pkt->len, in bta_hl_dch_echo_test()
134 BTA_HL_GET_BUF_PTR(p_dcb->p_echo_tx_pkt), in bta_hl_dch_echo_test()
151 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_sdp_init() local
159 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_OPEN ) in bta_hl_dch_sdp_init()
196 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_close_echo_test() local
202 switch (p_dcb->echo_oper) in bta_hl_dch_close_echo_test()
207 p_dcb->dch_oper = BTA_HL_DCH_OP_LOCAL_CLOSE_ECHO_TEST; in bta_hl_dch_close_echo_test()
216 if (MCA_CloseReq((tMCA_DL) p_dcb->mdl_handle)!= MCA_SUCCESS) in bta_hl_dch_close_echo_test()
237 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_rcv_data() local
243 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_rcv_data()
245 switch ( p_dcb->echo_oper) in bta_hl_dch_mca_rcv_data()
249 … if (MCA_WriteReq((tMCA_DL) p_dcb->mdl_handle, p_data->mca_rcv_data_evt.p_pkt) != MCA_SUCCESS) in bta_hl_dch_mca_rcv_data()
257 p_dcb->p_echo_rx_pkt = p_data->mca_rcv_data_evt.p_pkt; in bta_hl_dch_mca_rcv_data()
258 p_dcb->echo_oper = BTA_HL_ECHO_OP_CI_PUT_ECHO_DATA; in bta_hl_dch_mca_rcv_data()
259 p_dcb->cout_oper |= BTA_HL_CO_PUT_ECHO_DATA_MASK; in bta_hl_dch_mca_rcv_data()
260 p_dcb->ci_put_echo_data_status = BTA_HL_STATUS_FAIL; in bta_hl_dch_mca_rcv_data()
263 p_dcb->p_echo_rx_pkt->len, in bta_hl_dch_mca_rcv_data()
264 BTA_HL_GET_BUF_PTR(p_dcb->p_echo_rx_pkt), in bta_hl_dch_mca_rcv_data()
268 APPL_TRACE_ERROR("Unknonw echo_oper=%d",p_dcb->echo_oper); in bta_hl_dch_mca_rcv_data()
275 p_dcb->cout_oper |= BTA_HL_CO_PUT_RX_DATA_MASK; in bta_hl_dch_mca_rcv_data()
276 p_dcb->p_rx_pkt = p_data->mca_rcv_data_evt.p_pkt; in bta_hl_dch_mca_rcv_data()
278 bta_hl_co_put_rx_data(p_acb->app_id, p_dcb->mdl_handle, in bta_hl_dch_mca_rcv_data()
279 p_dcb->p_rx_pkt->len, in bta_hl_dch_mca_rcv_data()
280 BTA_HL_GET_BUF_PTR(p_dcb->p_rx_pkt), in bta_hl_dch_mca_rcv_data()
301 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_ci_put_echo_data() local
307 p_dcb->cout_oper &= ~BTA_HL_CO_PUT_ECHO_DATA_MASK; in bta_hl_dch_ci_put_echo_data()
308 osi_free_and_reset((void **)&p_dcb->p_echo_rx_pkt); in bta_hl_dch_ci_put_echo_data()
309 p_dcb->ci_put_echo_data_status = p_data->ci_get_put_echo_data.status; in bta_hl_dch_ci_put_echo_data()
311 p_dcb->echo_oper = BTA_HL_ECHO_OP_DCH_CLOSE_CFM; in bta_hl_dch_ci_put_echo_data()
330 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_ci_get_echo_data() local
337 p_dcb->cout_oper &= ~BTA_HL_CO_GET_ECHO_DATA_MASK; in bta_hl_dch_ci_get_echo_data()
339 if (!p_dcb->abort_oper) in bta_hl_dch_ci_get_echo_data()
344 p_dcb->echo_oper = BTA_HL_ECHO_OP_MDL_CREATE_CFM; in bta_hl_dch_ci_get_echo_data()
374 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_ci_put_rx_data() local
381 p_dcb->cout_oper &= ~BTA_HL_CO_PUT_RX_DATA_MASK; in bta_hl_dch_ci_put_rx_data()
382 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); in bta_hl_dch_ci_put_rx_data()
386 p_dcb->mdl_handle); in bta_hl_dch_ci_put_rx_data()
388 if (p_dcb->close_pending) in bta_hl_dch_ci_put_rx_data()
390 if (!p_dcb->cout_oper) in bta_hl_dch_ci_put_rx_data()
415 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_ci_get_tx_data() local
427 p_dcb->cout_oper &= ~BTA_HL_CO_GET_TX_DATA_MASK; in bta_hl_dch_ci_get_tx_data()
429 if (p_dcb->close_pending) in bta_hl_dch_ci_get_tx_data()
434 if (!p_dcb->cout_oper) in bta_hl_dch_ci_get_tx_data()
441 if ((result = MCA_WriteReq((tMCA_DL) p_dcb->mdl_handle, p_dcb->p_tx_pkt)) != MCA_SUCCESS) in bta_hl_dch_ci_get_tx_data()
455 p_dcb->p_tx_pkt = NULL; in bta_hl_dch_ci_get_tx_data()
460 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in bta_hl_dch_ci_get_tx_data()
465 p_dcb->mdl_handle, in bta_hl_dch_ci_get_tx_data()
490 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_send_data() local
498 if (!(p_dcb->cout_oper & BTA_HL_CO_GET_TX_DATA_MASK)) in bta_hl_dch_send_data()
501 BOOLEAN fcs_use = (BOOLEAN) (p_dcb->chnl_cfg.fcs & BTA_HL_MCA_FCS_USE_MASK); in bta_hl_dch_send_data()
502 if ((p_dcb->p_tx_pkt = bta_hl_get_buf(p_data->api_send_data.pkt_size, fcs_use)) != NULL) in bta_hl_dch_send_data()
505 p_dcb->mdl_handle, in bta_hl_dch_send_data()
507 BTA_HL_GET_BUF_PTR(p_dcb->p_tx_pkt), in bta_hl_dch_send_data()
509 p_dcb->cout_oper |= BTA_HL_CO_GET_TX_DATA_MASK; in bta_hl_dch_send_data()
526 p_dcb->mdl_handle, in bta_hl_dch_send_data()
546 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_close_cmpl() local
554 APPL_TRACE_DEBUG("bta_hl_dch_close_cmpl dch oper=%s", bta_hl_dch_oper_code(p_dcb->dch_oper)); in bta_hl_dch_close_cmpl()
556 APPL_TRACE_DEBUG("bta_hl_dch_close_cmpl dch oper=%d", p_dcb->dch_oper); in bta_hl_dch_close_cmpl()
560 switch (p_dcb->dch_oper) in bta_hl_dch_close_cmpl()
565 if (p_dcb->abort_oper & BTA_HL_ABORT_LOCAL_MASK) in bta_hl_dch_close_cmpl()
573 else if (p_dcb->abort_oper & BTA_HL_ABORT_REMOTE_MASK ) in bta_hl_dch_close_cmpl()
588 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_RECONNECT) in bta_hl_dch_close_cmpl()
603 p_dcb->mdl_handle, in bta_hl_dch_close_cmpl()
612 p_dcb->mdl_handle, in bta_hl_dch_close_cmpl()
613 p_dcb->intentional_close); in bta_hl_dch_close_cmpl()
619 if (p_dcb->abort_oper & BTA_HL_ABORT_LOCAL_MASK) in bta_hl_dch_close_cmpl()
627 else if (p_dcb->abort_oper & BTA_HL_ABORT_REMOTE_MASK ) in bta_hl_dch_close_cmpl()
639 p_dcb->mdl_handle, in bta_hl_dch_close_cmpl()
640 p_dcb->intentional_close); in bta_hl_dch_close_cmpl()
655 … APPL_TRACE_ERROR("DCH operation not found oper=%s", bta_hl_dch_oper_code(p_dcb->dch_oper)); in bta_hl_dch_close_cmpl()
657 APPL_TRACE_ERROR("DCH operation not found oper=%d", p_dcb->dch_oper); in bta_hl_dch_close_cmpl()
664 if ( p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID ) in bta_hl_dch_close_cmpl()
669 if ( p_dcb->dch_oper != BTA_HL_DCH_OP_LOCAL_CLOSE_ECHO_TEST) in bta_hl_dch_close_cmpl()
671 switch (p_dcb->echo_oper) in bta_hl_dch_close_cmpl()
686 APPL_TRACE_ERROR("Invalid echo_oper=%d", p_dcb->echo_oper); in bta_hl_dch_close_cmpl()
692 status = p_dcb->ci_put_echo_data_status; in bta_hl_dch_close_cmpl()
737 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_close_ind() local
741 APPL_TRACE_DEBUG("bta_hl_dch_mca_close_ind dch oper=%s", bta_hl_dch_oper_code(p_dcb->dch_oper)); in bta_hl_dch_mca_close_ind()
743 APPL_TRACE_DEBUG("bta_hl_dch_mca_close_ind dch oper=%d", p_dcb->dch_oper); in bta_hl_dch_mca_close_ind()
747 p_dcb->intentional_close = FALSE; in bta_hl_dch_mca_close_ind()
750 p_dcb->intentional_close = TRUE; in bta_hl_dch_mca_close_ind()
753 if (!p_dcb->cout_oper) in bta_hl_dch_mca_close_ind()
755 if ((p_dcb->dch_oper != BTA_HL_DCH_OP_REMOTE_OPEN) && in bta_hl_dch_mca_close_ind()
756 (p_dcb->dch_oper != BTA_HL_DCH_OP_REMOTE_RECONNECT)) in bta_hl_dch_mca_close_ind()
758 p_dcb->dch_oper = BTA_HL_DCH_OP_REMOTE_CLOSE; in bta_hl_dch_mca_close_ind()
764 p_dcb->close_pending = TRUE; in bta_hl_dch_mca_close_ind()
780 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_close_cfm() local
785 … APPL_TRACE_DEBUG("bta_hl_dch_mca_close_cfm dch_oper=%s", bta_hl_dch_oper_code(p_dcb->dch_oper) ); in bta_hl_dch_mca_close_cfm()
787 APPL_TRACE_DEBUG("bta_hl_dch_mca_close_cfm dch_oper=%d", p_dcb->dch_oper); in bta_hl_dch_mca_close_cfm()
791 switch (p_dcb->dch_oper) in bta_hl_dch_mca_close_cfm()
805 … APPL_TRACE_ERROR("Invalid dch_oper=%s for close cfm", bta_hl_dch_oper_code(p_dcb->dch_oper) ); in bta_hl_dch_mca_close_cfm()
807 APPL_TRACE_ERROR("Invalid dch_oper=%d for close cfm", p_dcb->dch_oper); in bta_hl_dch_mca_close_cfm()
829 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_close() local
836 if (!p_dcb->cout_oper) in bta_hl_dch_mca_close()
838 p_dcb->close_pending = FALSE; in bta_hl_dch_mca_close()
839 if (MCA_CloseReq((tMCA_DL)p_dcb->mdl_handle)== MCA_SUCCESS) in bta_hl_dch_mca_close()
841 p_dcb->dch_oper = BTA_HL_DCH_OP_LOCAL_CLOSE; in bta_hl_dch_mca_close()
861 p_dcb->close_pending = TRUE; in bta_hl_dch_mca_close()
880 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_open_ind() local
891 if ((p_dcb->dch_oper == BTA_HL_DCH_OP_REMOTE_OPEN) || in bta_hl_dch_mca_open_ind()
892 (p_dcb->dch_oper == BTA_HL_DCH_OP_REMOTE_RECONNECT) ) in bta_hl_dch_mca_open_ind()
894 p_dcb->mdl_handle = (tBTA_HL_MDL_HANDLE) p_open_ind->mdl; in bta_hl_dch_mca_open_ind()
895 p_dcb->mtu = p_open_ind->mtu; in bta_hl_dch_mca_open_ind()
897 evt_data.dch_open_ind.mdl_handle = p_dcb->mdl_handle; in bta_hl_dch_mca_open_ind()
901 evt_data.dch_open_ind.local_mdep_id = p_dcb->local_mdep_id; in bta_hl_dch_mca_open_ind()
902 evt_data.dch_open_ind.mdl_id = p_dcb->mdl_id; in bta_hl_dch_mca_open_ind()
903 evt_data.dch_open_ind.mtu = p_dcb->mtu; in bta_hl_dch_mca_open_ind()
905 if ( p_dcb->chnl_cfg.fcr_opt.mode == L2CAP_FCR_ERTM_MODE ) in bta_hl_dch_mca_open_ind()
910 p_dcb->is_the_first_reliable = TRUE; in bta_hl_dch_mca_open_ind()
917 evt_data.dch_open_ind.first_reliable = p_dcb->is_the_first_reliable ; in bta_hl_dch_mca_open_ind()
919 old_dch_oper = p_dcb->dch_oper; in bta_hl_dch_mca_open_ind()
920 p_dcb->dch_oper = BTA_HL_DCH_OP_NONE; in bta_hl_dch_mca_open_ind()
929 p_dcb->dch_mode = evt_data.dch_open_ind.dch_mode; in bta_hl_dch_mca_open_ind()
930 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_open_ind()
938 p_dcb->echo_oper = BTA_HL_ECHO_OP_ECHO_PKT; in bta_hl_dch_mca_open_ind()
953 if (MCA_CloseReq((tMCA_DL) p_dcb->mdl_handle) == MCA_SUCCESS) in bta_hl_dch_mca_open_ind()
955 p_dcb->dch_oper = BTA_HL_DCH_OP_LOCAL_CLOSE_RECONNECT; in bta_hl_dch_mca_open_ind()
987 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_open_cfm() local
999 if ((p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_OPEN) || in bta_hl_dch_mca_open_cfm()
1000 (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_RECONNECT)) in bta_hl_dch_mca_open_cfm()
1002 p_dcb->mdl_handle = (tBTA_HL_MDL_HANDLE) p_open_cfm->mdl; in bta_hl_dch_mca_open_cfm()
1003 p_dcb->mtu = p_open_cfm->mtu; in bta_hl_dch_mca_open_cfm()
1006 if ( p_dcb->chnl_cfg.fcr_opt.mode == L2CAP_FCR_ERTM_MODE ) in bta_hl_dch_mca_open_cfm()
1011 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_open_cfm()
1017 p_dcb->is_the_first_reliable = TRUE; in bta_hl_dch_mca_open_cfm()
1024 p_dcb->mdl_handle, in bta_hl_dch_mca_open_cfm()
1025 p_dcb->local_mdep_id, in bta_hl_dch_mca_open_cfm()
1026 p_dcb->mdl_id, dch_mode, in bta_hl_dch_mca_open_cfm()
1027 p_dcb->is_the_first_reliable, in bta_hl_dch_mca_open_cfm()
1028 p_dcb->mtu, in bta_hl_dch_mca_open_cfm()
1031 old_dch_oper = p_dcb->dch_oper; in bta_hl_dch_mca_open_cfm()
1032 p_dcb->dch_oper = BTA_HL_DCH_OP_NONE; in bta_hl_dch_mca_open_cfm()
1036 APPL_TRACE_ERROR("Error dch oper =%d", p_dcb->dch_oper); in bta_hl_dch_mca_open_cfm()
1044 p_dcb->dch_mode = dch_mode; in bta_hl_dch_mca_open_cfm()
1045 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_open_cfm()
1053 p_dcb->echo_oper = BTA_HL_ECHO_OP_LOOP_BACK; in bta_hl_dch_mca_open_cfm()
1054 if (MCA_WriteReq((tMCA_DL) p_dcb->mdl_handle, p_dcb->p_echo_tx_pkt)!= MCA_SUCCESS) in bta_hl_dch_mca_open_cfm()
1060 p_dcb->p_echo_tx_pkt = NULL; in bta_hl_dch_mca_open_cfm()
1075 if (MCA_CloseReq((tMCA_DL) p_dcb->mdl_handle) == MCA_SUCCESS) in bta_hl_dch_mca_open_cfm()
1077 p_dcb->dch_oper = BTA_HL_DCH_OP_LOCAL_CLOSE_RECONNECT; in bta_hl_dch_mca_open_cfm()
1106 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_abort_ind() local
1113 p_dcb->abort_oper |= BTA_HL_ABORT_REMOTE_MASK; in bta_hl_dch_mca_abort_ind()
1131 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_abort_cfm() local
1138 if (p_dcb->abort_oper) in bta_hl_dch_mca_abort_cfm()
1142 if (p_dcb->abort_oper & BTA_HL_ABORT_LOCAL_MASK) in bta_hl_dch_mca_abort_cfm()
1176 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_abort() local
1184 p_dcb->abort_oper |= BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_abort()
1187 else if (p_dcb->echo_oper == BTA_HL_ECHO_OP_CI_GET_ECHO_DATA) in bta_hl_dch_mca_abort()
1189 p_dcb->abort_oper |= BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_abort()
1193 p_dcb->abort_oper &= ~BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_abort()
1199 p_dcb->abort_oper |= BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_abort()
1203 if (p_dcb->abort_oper & BTA_HL_ABORT_LOCAL_MASK) in bta_hl_dch_mca_abort()
1218 APPL_TRACE_DEBUG("bta_hl_dch_mca_abort abort_oper=0x%x", p_dcb->abort_oper); in bta_hl_dch_mca_abort()
1236 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_reconnect_ind() local
1255 p_dcb->in_use = TRUE; in bta_hl_dch_mca_reconnect_ind()
1256 p_dcb->dch_oper = BTA_HL_DCH_OP_REMOTE_RECONNECT; in bta_hl_dch_mca_reconnect_ind()
1257 p_dcb->sec_mask = (BTA_SEC_AUTHENTICATE | BTA_SEC_ENCRYPT); in bta_hl_dch_mca_reconnect_ind()
1258 p_dcb->peer_mdep_id = 0xFF; in bta_hl_dch_mca_reconnect_ind()
1259 p_dcb->local_mdep_id = p_mdl_cfg->local_mdep_id ; in bta_hl_dch_mca_reconnect_ind()
1260 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in bta_hl_dch_mca_reconnect_ind()
1261 p_dcb->local_cfg = BTA_HL_DCH_CFG_UNKNOWN; in bta_hl_dch_mca_reconnect_ind()
1262 p_dcb->mdl_id = p_reconnect_ind->mdl_id; in bta_hl_dch_mca_reconnect_ind()
1263 p_dcb->mdl_cfg_idx_included = TRUE; in bta_hl_dch_mca_reconnect_ind()
1264 p_dcb->mdl_cfg_idx = mdl_cfg_idx; in bta_hl_dch_mca_reconnect_ind()
1265 p_dcb->dch_mode = p_mdl_cfg->dch_mode; in bta_hl_dch_mca_reconnect_ind()
1267 &p_dcb->max_rx_apdu_size, in bta_hl_dch_mca_reconnect_ind()
1268 &p_dcb->max_tx_apdu_size); in bta_hl_dch_mca_reconnect_ind()
1287 p_dcb->local_mdep_id, in bta_hl_dch_mca_reconnect_ind()
1288 p_dcb->mdl_id, in bta_hl_dch_mca_reconnect_ind()
1290 &p_dcb->chnl_cfg)!= MCA_SUCCESS) in bta_hl_dch_mca_reconnect_ind()
1310 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_reconnect_cfm() local
1317 if (p_dcb->abort_oper & BTA_HL_ABORT_PENDING_MASK) in bta_hl_dch_mca_reconnect_cfm()
1319 p_dcb->abort_oper &= ~BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_reconnect_cfm()
1325 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_RECONNECT) in bta_hl_dch_mca_reconnect_cfm()
1332 if (MCA_DataChnlCfg((tMCA_CL) p_mcb->mcl_handle, &p_dcb->chnl_cfg)!= MCA_SUCCESS) in bta_hl_dch_mca_reconnect_cfm()
1359 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_reconnect() local
1370 p_dcb->local_mdep_id, in bta_hl_dch_mca_reconnect()
1372 p_dcb->mdl_id, in bta_hl_dch_mca_reconnect()
1398 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_create_rsp() local
1407 p_dcb->dch_oper = BTA_HL_DCH_OP_REMOTE_OPEN; in bta_hl_dch_create_rsp()
1408 p_dcb->local_cfg = p_create_rsp->cfg_rsp; in bta_hl_dch_create_rsp()
1420 p_dcb->local_mdep_id, in bta_hl_dch_create_rsp()
1421 p_dcb->mdl_id, in bta_hl_dch_create_rsp()
1422 p_dcb->local_cfg, in bta_hl_dch_create_rsp()
1424 &p_dcb->chnl_cfg)!= MCA_SUCCESS) in bta_hl_dch_create_rsp()
1444 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_create_ind() local
1463 p_dcb->in_use = TRUE; in bta_hl_dch_mca_create_ind()
1464 p_dcb->dch_oper = BTA_HL_DCH_OP_REMOTE_OPEN; in bta_hl_dch_mca_create_ind()
1465 p_dcb->local_mdep_id = p_create_ind->dep_id ; in bta_hl_dch_mca_create_ind()
1466 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in bta_hl_dch_mca_create_ind()
1467 p_dcb->local_cfg = cfg_rsp; in bta_hl_dch_mca_create_ind()
1468 p_dcb->remote_cfg = p_create_ind->cfg ; in bta_hl_dch_mca_create_ind()
1469 p_dcb->mdl_id = p_create_ind->mdl_id; in bta_hl_dch_mca_create_ind()
1470 p_dcb->mdl_cfg_idx_included = FALSE; in bta_hl_dch_mca_create_ind()
1472 p_dcb->max_rx_apdu_size = p_echo_cfg->max_rx_apdu_size; in bta_hl_dch_mca_create_ind()
1473 p_dcb->max_tx_apdu_size = p_echo_cfg->max_tx_apdu_size; in bta_hl_dch_mca_create_ind()
1485 p_dcb->in_use = TRUE; in bta_hl_dch_mca_create_ind()
1486 p_dcb->dch_oper = BTA_HL_DCH_OP_REMOTE_CREATE; in bta_hl_dch_mca_create_ind()
1487 p_dcb->local_mdep_id = p_create_ind->dep_id ; in bta_hl_dch_mca_create_ind()
1488 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in bta_hl_dch_mca_create_ind()
1489 p_dcb->local_cfg = BTA_HL_DCH_CFG_UNKNOWN; in bta_hl_dch_mca_create_ind()
1490 p_dcb->remote_cfg = p_create_ind->cfg; in bta_hl_dch_mca_create_ind()
1491 p_dcb->mdl_id = p_create_ind->mdl_id; in bta_hl_dch_mca_create_ind()
1492 p_dcb->mdl_cfg_idx_included = FALSE; in bta_hl_dch_mca_create_ind()
1494 &p_dcb->max_rx_apdu_size, in bta_hl_dch_mca_create_ind()
1495 &p_dcb->max_tx_apdu_size); in bta_hl_dch_mca_create_ind()
1508 evt_data.dch_create_ind.local_mdep_id = p_dcb->local_mdep_id; in bta_hl_dch_mca_create_ind()
1509 evt_data.dch_create_ind.mdl_id = p_dcb->mdl_id; in bta_hl_dch_mca_create_ind()
1510 evt_data.dch_create_ind.cfg = p_dcb->remote_cfg; in bta_hl_dch_mca_create_ind()
1517 p_dcb->local_mdep_id, in bta_hl_dch_mca_create_ind()
1518 p_dcb->mdl_id, in bta_hl_dch_mca_create_ind()
1519 p_dcb->local_cfg, in bta_hl_dch_mca_create_ind()
1521 &p_dcb->chnl_cfg)!= MCA_SUCCESS) in bta_hl_dch_mca_create_ind()
1527 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_create_ind()
1530 p_dcb->echo_oper = BTA_HL_ECHO_OP_OPEN_IND; in bta_hl_dch_mca_create_ind()
1549 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_create_cfm() local
1556 if (p_dcb->abort_oper & BTA_HL_ABORT_PENDING_MASK) in bta_hl_dch_mca_create_cfm()
1558 p_dcb->abort_oper &= ~BTA_HL_ABORT_PENDING_MASK; in bta_hl_dch_mca_create_cfm()
1563 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_OPEN) in bta_hl_dch_mca_create_cfm()
1571 if (MCA_DataChnlCfg((tMCA_CL) p_mcb->mcl_handle, &p_dcb->chnl_cfg)!= MCA_SUCCESS) in bta_hl_dch_mca_create_cfm()
1580 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_dch_mca_create_cfm()
1582 p_dcb->echo_oper = BTA_HL_ECHO_OP_DCH_OPEN_CFM; in bta_hl_dch_mca_create_cfm()
1613 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_create() local
1623 p_dcb->peer_mdep_id, in bta_hl_dch_mca_create()
1624 p_dcb->peer_mdep_role, in bta_hl_dch_mca_create()
1630 p_dcb->local_mdep_id, in bta_hl_dch_mca_create()
1632 p_dcb->mdl_id, in bta_hl_dch_mca_create()
1633 p_dcb->peer_mdep_id, in bta_hl_dch_mca_create()
1634 p_dcb->local_cfg, in bta_hl_dch_mca_create()
1695 tBTA_HL_MDL_CB *p_dcb; in bta_hl_sdp_cback() local
1906 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_sdp_cback()
1907 if (p_dcb->abort_oper & BTA_HL_ABORT_PENDING_MASK) { in bta_hl_sdp_cback()
1908 p_dcb->abort_oper &= ~BTA_HL_ABORT_PENDING_MASK; in bta_hl_sdp_cback()
1913 if (p_dcb->local_mdep_id == BTA_HL_ECHO_TEST_MDEP_ID) { in bta_hl_sdp_cback()
2391 tBTA_HL_MDL_CB *p_dcb; in bta_hl_cch_mca_disconnect() local
2405 p_dcb= BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, i); in bta_hl_cch_mca_disconnect()
2406 if (p_dcb->in_use && (p_dcb->dch_state != BTA_HL_DCH_IDLE_ST)) in bta_hl_cch_mca_disconnect()