Lines Matching full:p_acb
335 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
336 tBTA_HL_MDEP* p_mdep = &p_acb->sup_feature.mdep[mdep_idx];
892 tBTA_HL_APP_CB* p_acb;
897 p_acb = BTA_HL_GET_APP_CB_PTR(i);
898 if (p_acb->in_use) {
991 tBTA_HL_APP_CB* p_acb;
996 p_acb = BTA_HL_GET_APP_CB_PTR(i);
997 if (p_acb->in_use) {
999 if (p_acb->mcb[j].mcl_handle == mcl_handle) {
1064 tBTA_HL_APP_CB* p_acb;
1071 p_acb = BTA_HL_GET_APP_CB_PTR(i);
1072 if (p_acb->in_use) {
1369 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
1374 temp_time = p_acb->mdl_cfg[temp_idx].time;
1376 while ((j >= 0) && (temp_time < p_acb->mdl_cfg[a[j]].time)) {
1540 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
1541 tBTA_HL_SUP_FEATURE* p_sup_feature = &p_acb->sup_feature;
1576 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
1581 p_mdep_cfg = &p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg;
1669 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
1673 (p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.mdep_role ==
1697 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
1698 tBTA_HL_SUP_FEATURE* p_sup_feature = &p_acb->sup_feature;
1725 p_acb->mdl_cfg[mdl_cfg_idx].local_mdep_id) {
1893 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(0);
1912 if (p_acb->sup_feature.mdep[mdep_idx].mdep_id == 0) {
1924 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle,
1925 &(p_acb->sup_feature.mdep[mdep_idx].mdep_id),
1929 p_acb->sup_feature.mdep[mdep_idx].mdep_id,
1930 &p_acb->sup_feature.mdep[mdep_idx].mdep_cfg)) {
1931 p_acb->sup_feature.mdep[mdep_idx].ori_app_id = app_id;
1934 p_acb->sup_feature.mdep[mdep_idx].mdep_id,
1935 p_acb->sup_feature.mdep[mdep_idx].ori_app_id,
1936 p_acb->sup_feature.mdep[mdep_idx]
1938 if (p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role ==
1940 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SOURCE;
1941 } else if (p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role ==
1943 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SINK;
1947 p_acb->sup_feature.mdep[mdep_idx].mdep_cfg.mdep_role);
1962 p_acb->sup_feature.num_of_mdeps += num_of_mdeps;
1963 APPL_TRACE_DEBUG("num_of_mdeps %d", p_acb->sup_feature.num_of_mdeps);
1966 (p_acb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE)) {
1967 p_acb->sup_feature.advertize_source_sdp =
1972 (!bta_hl_co_get_echo_config(app_id, &p_acb->sup_feature.echo_cfg))) {
1978 &p_acb->mdl_cfg[0]))) {
1986 if (p_acb->sup_feature.mdep[i].ori_app_id == app_id) {
1989 if (MCA_DeleteDep((tMCA_HANDLE)p_acb->app_handle,
1990 (p_acb->sup_feature.mdep[i].mdep_id)) !=
1996 memset(&p_acb->sup_feature.mdep[i], 0, sizeof(tBTA_HL_MDEP));
2021 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2031 reg.ctrl_psm = p_acb->ctrl_psm;
2032 reg.data_psm = p_acb->data_psm;
2033 reg.sec_mask = p_acb->sec_mask;
2036 p_acb->app_handle =
2038 if (p_acb->app_handle != 0) {
2043 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle,
2044 &(p_acb->sup_feature.mdep[0].mdep_id),
2046 if (p_acb->sup_feature.mdep[0].mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) {
2049 p_acb->sup_feature.mdep[0].mdep_id);
2057 bta_hl_co_get_num_of_mdep(p_acb->app_id, &num_of_mdeps)) {
2058 p_acb->sup_feature.num_of_mdeps = num_of_mdeps + 1;
2060 for (i = 1; i < p_acb->sup_feature.num_of_mdeps; i++) {
2065 if (MCA_CreateDep((tMCA_HANDLE)p_acb->app_handle,
2066 &(p_acb->sup_feature.mdep[i].mdep_id),
2068 if (bta_hl_co_get_mdep_config(p_acb->app_id, i, mdep_counter,
2069 p_acb->sup_feature.mdep[i].mdep_id,
2070 &p_acb->sup_feature.mdep[i].mdep_cfg)) {
2071 if (p_acb->sup_feature.mdep[i].mdep_cfg.mdep_role ==
2073 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SOURCE;
2074 } else if (p_acb->sup_feature.mdep[i].mdep_cfg.mdep_role ==
2076 p_acb->sup_feature.app_role_mask |= BTA_HL_MDEP_ROLE_MASK_SINK;
2081 p_acb->sup_feature.mdep[i].ori_app_id = p_acb->app_id;
2083 p_acb->sup_feature.mdep[i].ori_app_id);
2095 (p_acb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE)) {
2097 p_acb->sup_feature.advertize_source_sdp =
2098 bta_hl_co_advrtise_source_sdp(p_acb->app_id);
2102 (!bta_hl_co_get_echo_config(p_acb->app_id,
2103 &p_acb->sup_feature.echo_cfg))) {
2108 (!bta_hl_co_load_mdl_config(p_acb->app_id, BTA_HL_NUM_MDL_CFGS,
2109 &p_acb->mdl_cfg[0]))) {
2165 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2198 p_mdep_cfg = &p_acb->sup_feature.mdep[p_dcb->local_mdep_cfg_idx];
2200 memcpy(&p_acb->mdl_cfg[mdl_cfg_idx], &mdl_cfg, sizeof(tBTA_HL_MDL_CFG));
2230 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2233 tBTA_HL_SUP_FEATURE* p_sup_feature = &p_acb->sup_feature;
2368 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2380 if ((p_acb->mdl_cfg[mdl_cfg_idx].mtu <= l2cap_cfg.mtu) &&
2381 (p_acb->mdl_cfg[mdl_cfg_idx].fcs == l2cap_cfg.fcs) &&
2382 (p_acb->mdl_cfg[mdl_cfg_idx].dch_mode == p_dcb->dch_mode)) {
2403 p_acb->mdl_cfg[mdl_cfg_idx].mtu,
2404 p_acb->mdl_cfg[mdl_cfg_idx].fcs,
2405 p_acb->mdl_cfg[mdl_cfg_idx].dch_mode);
2500 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2506 MCA_Deregister((tMCA_HANDLE)p_acb->app_handle);
2508 if (p_acb->sdp_handle) SDP_DeleteRecord(p_acb->sdp_handle);
2510 memset((void*)p_acb, 0, sizeof(tBTA_HL_APP_CB));
2514 p_acb = BTA_HL_GET_APP_CB_PTR(i);
2515 if (p_acb->in_use) num_act_apps++;
2533 tBTA_HL_APP_CB* p_acb = BTA_HL_GET_APP_CB_PTR(app_idx);
2542 if (p_acb->deregistering) {
2555 evt_data.dereg_cfm.app_handle = p_acb->app_handle;
2558 p_acb->p_cback(BTA_HL_DEREGISTER_CFM_EVT, (tBTA_HL*)&evt_data);
2577 tBTA_HL_APP_CB* p_acb;
2587 p_acb
2588 if (!p_acb->deregistering) {
2589 p_acb->deregistering = true;