Lines Matching refs:p_mcb
187 btif_hl_mcl_cb_t *p_mcb; in btif_hl_if_channel_setup_pending() local
200 p_mcb = BTIF_HL_GET_MCL_CB_PTR(i, j); in btif_hl_if_channel_setup_pending()
201 if (p_mcb->in_use && in btif_hl_if_channel_setup_pending()
202 p_mcb->is_connected && p_mcb->pcb.channel_id == channel_id ) in btif_hl_if_channel_setup_pending()
230 btif_hl_mcl_cb_t *p_mcb; in btif_hl_num_dchs_in_use() local
248 p_mcb = &p_acb->mcb[j]; in btif_hl_num_dchs_in_use()
252 if (p_mcb->mdl[x].in_use) in btif_hl_num_dchs_in_use()
276 btif_hl_mcl_cb_t *p_mcb = (btif_hl_mcl_cb_t *)data; in btif_hl_timer_timeout() local
279 if (p_mcb->is_connected) { in btif_hl_timer_timeout()
281 p_mcb->mcl_handle); in btif_hl_timer_timeout()
282 BTA_HlCchClose(p_mcb->mcl_handle); in btif_hl_timer_timeout()
298 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_stop_cch_timer() local
301 alarm_cancel(p_mcb->cch_timer); in btif_hl_stop_cch_timer()
314 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_start_cch_timer() local
317 alarm_free(p_mcb->cch_timer); in btif_hl_start_cch_timer()
318 p_mcb->cch_timer = alarm_new("btif_hl.mcl_cch_timer"); in btif_hl_start_cch_timer()
319 alarm_set_on_queue(p_mcb->cch_timer, BTIF_TIMEOUT_CCH_NO_DCH_MS, in btif_hl_start_cch_timer()
320 btif_hl_timer_timeout, p_mcb, in btif_hl_start_cch_timer()
336 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_find_mdl_idx() local
342 if (p_mcb->mdl[i].in_use && in btif_hl_find_mdl_idx()
344 (p_mcb->mdl[i].mdl_id== mdl_id)) in btif_hl_find_mdl_idx()
371 btif_hl_mcl_cb_t *p_mcb =BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_is_the_first_reliable_existed() local
377 if (p_mcb->mdl[i].in_use && p_mcb->mdl[i].is_the_first_reliable) in btif_hl_is_the_first_reliable_existed()
445 btif_hl_mcl_cb_t *p_mcb; in btif_hl_clean_mcl_cb() local
447 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_clean_mcl_cb()
448 alarm_free(p_mcb->cch_timer); in btif_hl_clean_mcl_cb()
449 memset(p_mcb, 0, sizeof(btif_hl_mcl_cb_t)); in btif_hl_clean_mcl_cb()
479 btif_hl_mcl_cb_t *p_mcb =BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_find_sdp_idx_using_mdep_filter() local
488 num_recs = p_mcb->sdp.num_recs; in btif_hl_find_sdp_idx_using_mdep_filter()
500 num_mdeps = p_mcb->sdp.sdp_rec[i].num_mdeps; in btif_hl_find_sdp_idx_using_mdep_filter()
509 p_mdep = &(p_mcb->sdp.sdp_rec[i].mdep_cfg[mdep_idx]); in btif_hl_find_sdp_idx_using_mdep_filter()
559 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_is_reconnect_possible() local
607 memcpy(p_mdl->base.peer_bd_addr, p_mcb->bd_addr,sizeof(BD_ADDR) ) && in btif_hl_is_reconnect_possible()
631 memcpy(p_mdl1->base.peer_bd_addr, p_mcb->bd_addr,sizeof(BD_ADDR)) && in btif_hl_is_reconnect_possible()
679 btif_hl_mcl_cb_t *p_mcb; in btif_hl_dch_open() local
695 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_dch_open()
700 p_mcb->req_ctrl_psm = p_dch_open_api->ctrl_psm; in btif_hl_dch_open()
710 if (p_mcb->sdp.num_recs) in btif_hl_dch_open()
712 if (p_mcb->valid_sdp_idx) in btif_hl_dch_open()
714 p_dch_open_api->ctrl_psm = p_mcb->ctrl_psm; in btif_hl_dch_open()
721 BTA_HlDchOpen(p_mcb->mcl_handle, p_dch_open_api); in btif_hl_dch_open()
725 reconnect_param.ctrl_psm = p_mcb->ctrl_psm; in btif_hl_dch_open()
728 BTA_HlDchReconnect(p_mcb->mcl_handle, &reconnect_param); in btif_hl_dch_open()
736 p_mcb->cch_oper = BTIF_HL_CCH_OP_DCH_OPEN; in btif_hl_dch_open()
788 btif_hl_mcl_cb_t *p_mcb; in btif_hl_dch_abort() local
791 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_dch_abort()
792 if (p_mcb->is_connected) in btif_hl_dch_abort()
794 BTA_HlDchAbort(p_mcb->mcl_handle); in btif_hl_dch_abort()
798 p_mcb->pcb.abort_pending = TRUE; in btif_hl_dch_abort()
816 btif_hl_mcl_cb_t *p_mcb; in btif_hl_cch_open() local
834 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_cch_open()
835 alarm_free(p_mcb->cch_timer); in btif_hl_cch_open()
836 memset(p_mcb, 0, sizeof(btif_hl_mcl_cb_t)); in btif_hl_cch_open()
837 p_mcb->in_use = TRUE; in btif_hl_cch_open()
838 bdcpy(p_mcb->bd_addr, bd_addr); in btif_hl_cch_open()
842 p_mcb->cch_oper = BTIF_HL_CCH_OP_MDEP_FILTERING; in btif_hl_cch_open()
846 p_mcb->cch_oper = BTIF_HL_CCH_OP_MATCHED_CTRL_PSM; in btif_hl_cch_open()
847 p_mcb->req_ctrl_psm = ctrl_psm; in btif_hl_cch_open()
957 btif_hl_mcl_cb_t *p_mcb; in btif_hl_find_mdl_idx_using_channel_id() local
967 p_mcb =BTIF_HL_GET_MCL_CB_PTR(i,j); in btif_hl_find_mdl_idx_using_channel_id()
972 p_mcb->in_use && in btif_hl_find_mdl_idx_using_channel_id()
1038 btif_hl_mcl_cb_t *p_mcb; in btif_hl_find_mdl_idx_using_handle() local
1051 p_mcb =BTIF_HL_GET_MCL_CB_PTR(i,j); in btif_hl_find_mdl_idx_using_handle()
1056 p_mcb->in_use && in btif_hl_find_mdl_idx_using_handle()
1088 btif_hl_mcl_cb_t *p_mcb; in btif_hl_find_peer_mdep_id() local
1114 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_find_peer_mdep_id()
1117 BTIF_TRACE_DEBUG("valid_spd_idx=%d sdp_idx=%d",p_mcb->valid_sdp_idx, p_mcb->sdp_idx); in btif_hl_find_peer_mdep_id()
1118 if (p_mcb->valid_sdp_idx) in btif_hl_find_peer_mdep_id()
1120 p_rec = &p_mcb->sdp.sdp_rec[p_mcb->sdp_idx]; in btif_hl_find_peer_mdep_id()
1190 btif_hl_mcl_cb_t *p_mcb; in btif_hl_find_mcl_idx() local
1195 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, i); in btif_hl_find_mcl_idx()
1196 if (p_mcb->in_use && in btif_hl_find_mcl_idx()
1197 (!memcmp (p_mcb->bd_addr, p_bd_addr, BD_ADDR_LEN))) in btif_hl_find_mcl_idx()
1679 btif_hl_mcl_cb_t *p_mcb; in btif_hl_find_mcl_idx_using_mdl_id() local
1691 p_mcb = &p_acb->mcb[j]; in btif_hl_find_mcl_idx_using_mdl_id()
1695 if (p_mcb->mdl[x].in_use && p_mcb->mdl[x].mdl_id == mdl_id) in btif_hl_find_mcl_idx_using_mdl_id()
1816 btif_hl_mcl_cb_t *p_mcb; in btif_hl_clean_mdls_using_app_idx() local
1826 p_mcb = &p_acb->mcb[j]; in btif_hl_clean_mdls_using_app_idx()
1830 if (p_mcb->mdl[x].in_use) in btif_hl_clean_mdls_using_app_idx()
1836 bd_addr.address[y] = p_mcb->bd_addr[y]; in btif_hl_clean_mdls_using_app_idx()
1842 if (!btif_hl_num_dchs_in_use(p_mcb->mcl_handle)) in btif_hl_clean_mdls_using_app_idx()
1843 BTA_HlCchClose(p_mcb->mcl_handle); in btif_hl_clean_mdls_using_app_idx()
1922 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_find_avail_mdl_idx() local
1928 if (!p_mcb->mdl[i].in_use) in btif_hl_find_avail_mdl_idx()
1930 btif_hl_clean_mdl_cb(&p_mcb->mdl[i]); in btif_hl_find_avail_mdl_idx()
2229 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_sdp_query_cfm() local
2267 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_proc_sdp_query_cfm()
2268 if (p_mcb->cch_oper != BTIF_HL_CCH_OP_NONE) in btif_hl_proc_sdp_query_cfm()
2270 memcpy(&p_mcb->sdp, p_sdp, sizeof(tBTA_HL_SDP)); in btif_hl_proc_sdp_query_cfm()
2271 old_cch_oper = p_mcb->cch_oper; in btif_hl_proc_sdp_query_cfm()
2272 p_mcb->cch_oper = BTIF_HL_CCH_OP_NONE; in btif_hl_proc_sdp_query_cfm()
2286 p_mcb->sdp_idx = sdp_idx; in btif_hl_proc_sdp_query_cfm()
2287 p_mcb->valid_sdp_idx = TRUE; in btif_hl_proc_sdp_query_cfm()
2288 p_mcb->ctrl_psm = p_mcb->sdp.sdp_rec[sdp_idx].ctrl_psm; in btif_hl_proc_sdp_query_cfm()
2307 open_param.ctrl_psm = p_mcb->ctrl_psm; in btif_hl_proc_sdp_query_cfm()
2308 bdcpy(open_param.bd_addr, p_mcb->bd_addr); in btif_hl_proc_sdp_query_cfm()
2351 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_cch_open_ind() local
2364 p_mcb = BTIF_HL_GET_MCL_CB_PTR(i, mcl_idx); in btif_hl_proc_cch_open_ind()
2365 alarm_free(p_mcb->cch_timer); in btif_hl_proc_cch_open_ind()
2366 memset(p_mcb, 0, sizeof(btif_hl_mcl_cb_t)); in btif_hl_proc_cch_open_ind()
2367 p_mcb->in_use = TRUE; in btif_hl_proc_cch_open_ind()
2368 p_mcb->is_connected = TRUE; in btif_hl_proc_cch_open_ind()
2369 p_mcb->mcl_handle = p_data->cch_open_ind.mcl_handle; in btif_hl_proc_cch_open_ind()
2370 bdcpy(p_mcb->bd_addr, p_data->cch_open_ind.bd_addr); in btif_hl_proc_cch_open_ind()
2396 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_proc_pending_op() local
2412 dch_open.ctrl_psm = p_mcb->ctrl_psm; in btif_hl_proc_pending_op()
2414 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in btif_hl_proc_pending_op()
2430 BTIF_TRACE_DEBUG("Issue DCH open, mcl_handle=%d",p_mcb->mcl_handle); in btif_hl_proc_pending_op()
2431 BTA_HlDchOpen(p_mcb->mcl_handle, &dch_open); in btif_hl_proc_pending_op()
2435 reconnect_param.ctrl_psm = p_mcb->ctrl_psm; in btif_hl_proc_pending_op()
2438 BTA_HlDchReconnect(p_mcb->mcl_handle, &reconnect_param); in btif_hl_proc_pending_op()
2450 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id); in btif_hl_proc_pending_op()
2473 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_cch_open_cfm() local
2484 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_proc_cch_open_cfm()
2486 p_mcb->mcl_handle = p_data->cch_open_cfm.mcl_handle; in btif_hl_proc_cch_open_cfm()
2487 p_mcb->is_connected = TRUE; in btif_hl_proc_cch_open_cfm()
2574 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_create_ind() local
2590 p_mcb =BTIF_HL_GET_MCL_CB_PTR(orig_app_idx, mcl_idx); in btif_hl_proc_create_ind()
2641 BTA_HlDchCreateRsp(p_mcb->mcl_handle, &create_rsp_param); in btif_hl_proc_create_ind()
2952 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_dch_close_ind() local
2962 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx,mcl_idx); in btif_hl_proc_dch_close_ind()
2964 if (!btif_hl_num_dchs_in_use(p_mcb->mcl_handle)) in btif_hl_proc_dch_close_ind()
2983 btif_hl_mcl_cb_t *p_mcb; in btif_hl_proc_dch_close_cfm() local
2993 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx,mcl_idx); in btif_hl_proc_dch_close_cfm()
2994 if (!btif_hl_num_dchs_in_use(p_mcb->mcl_handle)) in btif_hl_proc_dch_close_cfm()
3244 btif_hl_mcl_cb_t *p_mcb = NULL; in btif_hl_upstreams_evt() local
3305 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_upstreams_evt()
3306 if ( (p_mcb->cch_oper == BTIF_HL_CCH_OP_MDEP_FILTERING) || in btif_hl_upstreams_evt()
3307 (p_mcb->cch_oper == BTIF_HL_CCH_OP_DCH_OPEN) ) in btif_hl_upstreams_evt()
3309 pending_op = p_mcb->pcb.op; in btif_hl_upstreams_evt()
3320 if (!p_mcb->is_connected) in btif_hl_upstreams_evt()
3358 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_upstreams_evt()
3359 pending_op = p_mcb->pcb.op; in btif_hl_upstreams_evt()
3401 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_upstreams_evt()
3402 pending_op = p_mcb->pcb.op; in btif_hl_upstreams_evt()
3504 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_upstreams_evt()
3505 pending_op = p_mcb->pcb.op; in btif_hl_upstreams_evt()
3838 btif_hl_mcl_cb_t *p_mcb=NULL; in connect_channel() local
3857 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in connect_channel()
3858 if (p_mcb->is_connected) in connect_channel()
3860 dch_open.ctrl_psm = p_mcb->ctrl_psm; in connect_channel()
3864 if (btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in connect_channel()
3885 p_mcb->cch_oper = BTIF_HL_CCH_OP_MDEP_FILTERING; in connect_channel()
3939 btif_hl_mcl_cb_t *p_mcb; in destroy_channel() local
3967 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in destroy_channel()
3968 if (p_mcb->is_connected) in destroy_channel()
3971 BTA_HlDeleteMdl(p_mcb->mcl_handle, p_acb->delete_mdl.mdl_id); in destroy_channel()
4193 btif_hl_mcl_cb_t *p_mcb; in btif_hl_save_mdl_cfg() local
4213 p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_save_mdl_cfg()
4214 if (p_mcb->pcb.in_use) in btif_hl_save_mdl_cfg()
4215 *p_channel_id = p_mcb->pcb.channel_id; in btif_hl_save_mdl_cfg()
4218 p_mdl->extra.mdep_cfg_idx = p_mcb->pcb.mdep_cfg_idx; in btif_hl_save_mdl_cfg()
4219 …p_mdl->extra.data_type = p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.data_cfg[0].dat… in btif_hl_save_mdl_cfg()
4221 if (!btif_hl_find_peer_mdep_id(p_acb->app_id, p_mcb->bd_addr, in btif_hl_save_mdl_cfg()
4222 … p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.mdep_role, in btif_hl_save_mdl_cfg()
4223 … p_acb->sup_feature.mdep[p_mcb->pcb.mdep_cfg_idx].mdep_cfg.data_cfg[0].data_type, in btif_hl_save_mdl_cfg()
4465 btif_hl_mcl_cb_t *p_mcb = BTIF_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in btif_hl_create_socket() local
4482 memcpy(p_scb->bd_addr, p_mcb->bd_addr,sizeof(BD_ADDR)); in btif_hl_create_socket()
4507 btif_hl_mcl_cb_t *p_mcb = NULL; in btif_hl_add_socket_to_set() local
4525 p_mcb = BTIF_HL_GET_MCL_CB_PTR(p_scb->app_idx, p_scb->mcl_idx); in btif_hl_add_socket_to_set()
4528 if (p_mcb && p_dcb) { in btif_hl_add_socket_to_set()
4529 btif_hl_stop_timer_using_handle(p_mcb->mcl_handle); in btif_hl_add_socket_to_set()
4531 memcpy(evt_param.chan_cb.bd_addr, p_mcb->bd_addr, sizeof(BD_ADDR)); in btif_hl_add_socket_to_set()