Lines Matching refs:p_acb

384     tBTA_HL_APP_CB      *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);  in bta_hl_find_echo_cfg_rsp()  local
385 tBTA_HL_MDEP *p_mdep= &p_acb->sup_feature.mdep[mdep_idx]; in bta_hl_find_echo_cfg_rsp()
976 tBTA_HL_APP_CB *p_acb ; in bta_hl_find_an_in_use_app_idx() local
982 p_acb = BTA_HL_GET_APP_CB_PTR(i); in bta_hl_find_an_in_use_app_idx()
983 if (p_acb->in_use) in bta_hl_find_an_in_use_app_idx()
1088 tBTA_HL_APP_CB *p_acb; in bta_hl_find_mcl_idx_using_handle() local
1094 p_acb = BTA_HL_GET_APP_CB_PTR(i); in bta_hl_find_mcl_idx_using_handle()
1095 if (p_acb->in_use) in bta_hl_find_mcl_idx_using_handle()
1099 if ( p_acb->mcb[j].mcl_handle == mcl_handle ) in bta_hl_find_mcl_idx_using_handle()
1172 tBTA_HL_APP_CB *p_acb; in bta_hl_find_mdl_idx_using_handle() local
1180 p_acb = BTA_HL_GET_APP_CB_PTR(i); in bta_hl_find_mdl_idx_using_handle()
1181 if (p_acb->in_use) in bta_hl_find_mdl_idx_using_handle()
1536 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_sort_cfg_time_idx() local
1542 temp_time = p_acb->mdl_cfg[temp_idx].time; in bta_hl_sort_cfg_time_idx()
1544 while ((j >= 0) && (temp_time < p_acb->mdl_cfg[a[j]].time)) in bta_hl_sort_cfg_time_idx()
1746 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_find_mdep_cfg_idx() local
1747 tBTA_HL_SUP_FEATURE *p_sup_feature= &p_acb->sup_feature; in bta_hl_find_mdep_cfg_idx()
1786 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_find_rxtx_apdu_size() local
1791 p_mdep_cfg = &p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg; in bta_hl_find_rxtx_apdu_size()
1889 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_chk_local_cfg() local
1893 (p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SOURCE) && in bta_hl_chk_local_cfg()
1918 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_validate_reconnect_params() local
1919 tBTA_HL_SUP_FEATURE *p_sup_feature = &p_acb->sup_feature; in bta_hl_validate_reconnect_params()
1948 if ( p_sup_feature->mdep[i].mdep_id == p_acb->mdl_cfg[mdl_cfg_idx].local_mdep_id) in bta_hl_validate_reconnect_params()
2146 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(0); in bta_hl_app_update() local
2170 if ( p_acb->sup_feature.mdep[mdep_idx].mdep_id == 0) in bta_hl_app_update()
2186 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle, in bta_hl_app_update()
2187 &(p_acb->sup_feature.mdep[mdep_idx].mdep_id), &mca_cs) == MCA_SUCCESS) in bta_hl_app_update()
2192 p_acb->sup_feature.mdep[mdep_idx].mdep_id, in bta_hl_app_update()
2193 &p_acb->sup_feature.mdep[mdep_idx].mdep_cfg)) in bta_hl_app_update()
2195 p_acb->sup_feature.mdep[mdep_idx].ori_app_id = app_id; in bta_hl_app_update()
2197 p_acb->sup_feature.mdep[mdep_idx].mdep_id, in bta_hl_app_update()
2198 p_acb->sup_feature.mdep[mdep_idx].ori_app_id, in bta_hl_app_update()
2199 p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.num_of_mdep_data_types); in bta_hl_app_update()
2200 if (p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role == in bta_hl_app_update()
2203 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SOURCE; in bta_hl_app_update()
2205 else if (p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role == in bta_hl_app_update()
2208 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SINK; in bta_hl_app_update()
2213 p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role); in bta_hl_app_update()
2233 p_acb->sup_feature.num_of_mdeps += num_of_mdeps; in bta_hl_app_update()
2234 APPL_TRACE_DEBUG("num_of_mdeps %d", p_acb->sup_feature.num_of_mdeps); in bta_hl_app_update()
2237 (p_acb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE)) in bta_hl_app_update()
2239 p_acb->sup_feature.advertize_source_sdp = in bta_hl_app_update()
2244 (!bta_hl_co_get_echo_config(app_id, &p_acb->sup_feature.echo_cfg))) in bta_hl_app_update()
2250 (!bta_hl_co_load_mdl_config(app_id, BTA_HL_NUM_MDL_CFGS, &p_acb->mdl_cfg[0]))) in bta_hl_app_update()
2264 if (p_acb->sup_feature.mdep[i].ori_app_id == app_id) in bta_hl_app_update()
2269 if (MCA_DeleteDep((tMCA_HANDLE)p_acb->app_handle, in bta_hl_app_update()
2270 (p_acb->sup_feature.mdep[i].mdep_id)) != MCA_SUCCESS) in bta_hl_app_update()
2276 memset(&p_acb->sup_feature.mdep[i], 0, sizeof(tBTA_HL_MDEP)); in bta_hl_app_update()
2307 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_app_registration() local
2317 reg.ctrl_psm = p_acb->ctrl_psm; in bta_hl_app_registration()
2318 reg.data_psm = p_acb->data_psm; in bta_hl_app_registration()
2319 reg.sec_mask = p_acb->sec_mask; in bta_hl_app_registration()
2322 if ( (p_acb->app_handle = (tBTA_HL_APP_HANDLE) MCA_Register(&reg, bta_hl_mcap_ctrl_cback))!=0) in bta_hl_app_registration()
2328 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle, in bta_hl_app_registration()
2329 &(p_acb->sup_feature.mdep[0].mdep_id), in bta_hl_app_registration()
2332 if (p_acb->sup_feature.mdep[0].mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_app_registration()
2336 p_acb->sup_feature.mdep[0].mdep_id ); in bta_hl_app_registration()
2347 bta_hl_co_get_num_of_mdep(p_acb->app_id, &num_of_mdeps)) in bta_hl_app_registration()
2349 p_acb->sup_feature.num_of_mdeps = num_of_mdeps+1; in bta_hl_app_registration()
2351 for (i=1; i<p_acb->sup_feature.num_of_mdeps; i++) in bta_hl_app_registration()
2357 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle, in bta_hl_app_registration()
2358 &(p_acb->sup_feature.mdep[i].mdep_id), &mca_cs) == MCA_SUCCESS) in bta_hl_app_registration()
2360 if (bta_hl_co_get_mdep_config(p_acb->app_id, in bta_hl_app_registration()
2362 p_acb->sup_feature.mdep[i].mdep_id, in bta_hl_app_registration()
2363 &p_acb->sup_feature.mdep[i].mdep_cfg)) in bta_hl_app_registration()
2365 … if (p_acb->sup_feature.mdep[i].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SOURCE) in bta_hl_app_registration()
2367 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SOURCE; in bta_hl_app_registration()
2369 … else if (p_acb->sup_feature.mdep[i].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SINK) in bta_hl_app_registration()
2371 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SINK; in bta_hl_app_registration()
2378 p_acb->sup_feature.mdep[i].ori_app_id = p_acb->app_id; in bta_hl_app_registration()
2380 p_acb->sup_feature.mdep[i].ori_app_id); in bta_hl_app_registration()
2398 (p_acb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE)) in bta_hl_app_registration()
2401 p_acb->sup_feature.advertize_source_sdp = in bta_hl_app_registration()
2402 bta_hl_co_advrtise_source_sdp(p_acb->app_id); in bta_hl_app_registration()
2406 (!bta_hl_co_get_echo_config(p_acb->app_id, &p_acb->sup_feature.echo_cfg))) in bta_hl_app_registration()
2412 … (!bta_hl_co_load_mdl_config(p_acb->app_id, BTA_HL_NUM_MDL_CFGS, &p_acb->mdl_cfg[0]))) in bta_hl_app_registration()
2479 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_save_mdl_cfg() local
2516 p_mdep_cfg = &p_acb->sup_feature.mdep[p_dcb->local_mdep_cfg_idx]; in bta_hl_save_mdl_cfg()
2518 memcpy(&p_acb->mdl_cfg[mdl_cfg_idx], &mdl_cfg, sizeof(tBTA_HL_MDL_CFG)); in bta_hl_save_mdl_cfg()
2550 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_set_dch_chan_cfg() local
2553 tBTA_HL_SUP_FEATURE *p_sup_feature= &p_acb->sup_feature; in bta_hl_set_dch_chan_cfg()
2713 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_validate_chan_cfg() local
2725 if ((p_acb->mdl_cfg[mdl_cfg_idx].mtu <= l2cap_cfg.mtu) && in bta_hl_validate_chan_cfg()
2726 (p_acb->mdl_cfg[mdl_cfg_idx].fcs == l2cap_cfg.fcs) && in bta_hl_validate_chan_cfg()
2727 (p_acb->mdl_cfg[mdl_cfg_idx].dch_mode == p_dcb->dch_mode)) in bta_hl_validate_chan_cfg()
2746 …APPL_TRACE_DEBUG("From saved: L2cap cfg mtu=%d fcs=%d dch_mode=%d", p_acb->mdl_cfg[mdl_cfg_idx].mt… in bta_hl_validate_chan_cfg()
2747 p_acb->mdl_cfg[mdl_cfg_idx].fcs , p_acb->mdl_cfg[mdl_cfg_idx].dch_mode); in bta_hl_validate_chan_cfg()
2851 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_clean_app() local
2857 MCA_Deregister((tMCA_HANDLE)p_acb->app_handle); in bta_hl_clean_app()
2859 if (p_acb->sdp_handle) SDP_DeleteRecord(p_acb->sdp_handle); in bta_hl_clean_app()
2861 memset((void *) p_acb, 0, sizeof(tBTA_HL_APP_CB)); in bta_hl_clean_app()
2866 p_acb = BTA_HL_GET_APP_CB_PTR(i); in bta_hl_clean_app()
2867 if (p_acb->in_use) num_act_apps++; in bta_hl_clean_app()
2887 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_check_deregistration() local
2896 if (p_acb->deregistering) in bta_hl_check_deregistration()
2913 evt_data.dereg_cfm.app_handle = p_acb->app_handle; in bta_hl_check_deregistration()
2916 p_acb->p_cback(BTA_HL_DEREGISTER_CFM_EVT, (tBTA_HL *) &evt_data ); in bta_hl_check_deregistration()
2937 tBTA_HL_APP_CB *p_acb; in bta_hl_check_disable() local
2949 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_check_disable()
2950 if (!p_acb->deregistering) in bta_hl_check_disable()
2952 p_acb->deregistering = TRUE; in bta_hl_check_disable()