Lines Matching refs:p_acb

604     tBTA_HL_APP_CB  *p_acb = BTA_HL_GET_APP_CB_PTR(0);  in bta_hl_api_update()  local
620 evt_data.dereg_cfm.app_handle = p_acb->app_handle; in bta_hl_api_update()
621 if (p_acb->p_cback) in bta_hl_api_update()
623 p_acb->p_cback(BTA_HL_DEREGISTER_CFM_EVT, (tBTA_HL *) &evt_data); in bta_hl_api_update()
635 if (p_acb) in bta_hl_api_update()
636 memset(p_acb, 0, sizeof(tBTA_HL_APP_CB)); in bta_hl_api_update()
650 evt_data.reg_cfm.app_handle = p_acb->app_handle; in bta_hl_api_update()
658 evt_data.sdp_info_ind.app_handle = p_acb->app_handle; in bta_hl_api_update()
659 evt_data.sdp_info_ind.ctrl_psm = p_acb->ctrl_psm; in bta_hl_api_update()
660 evt_data.sdp_info_ind.data_psm = p_acb->data_psm; in bta_hl_api_update()
684 tBTA_HL_APP_CB *p_acb = NULL; in bta_hl_api_register() local
694 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_register()
695 p_acb->in_use = TRUE; in bta_hl_api_register()
696 p_acb->app_id = p_data->api_reg.app_id; in bta_hl_api_register()
697 p_acb->p_cback = p_data->api_reg.p_cback; in bta_hl_api_register()
698 p_acb->sec_mask = p_data->api_reg.sec_mask; in bta_hl_api_register()
699 p_acb->dev_type = p_data->api_reg.dev_type; in bta_hl_api_register()
700 strlcpy(p_acb->srv_name, p_data->api_reg.srv_name, BTA_SERVICE_NAME_LEN); in bta_hl_api_register()
701 strlcpy(p_acb->srv_desp, p_data->api_reg.srv_desp, BTA_SERVICE_DESP_LEN); in bta_hl_api_register()
702 strlcpy(p_acb->provider_name, p_data->api_reg.provider_name, BTA_PROVIDER_NAME_LEN); in bta_hl_api_register()
704 p_acb->ctrl_psm = bta_hl_cb.p_alloc_psm(); in bta_hl_api_register()
705 p_acb->data_psm = bta_hl_cb.p_alloc_psm(); in bta_hl_api_register()
706 p_acb->p_mcap_cback = bta_hl_mcap_ctrl_cback; in bta_hl_api_register()
725 if (p_acb) in bta_hl_api_register()
726 memset(p_acb, 0, sizeof(tBTA_HL_APP_CB)); in bta_hl_api_register()
740 evt_data.reg_cfm.app_handle = p_acb->app_handle; in bta_hl_api_register()
748 evt_data.sdp_info_ind.app_handle = p_acb->app_handle; in bta_hl_api_register()
749 evt_data.sdp_info_ind.ctrl_psm = p_acb->ctrl_psm; in bta_hl_api_register()
750 evt_data.sdp_info_ind.data_psm = p_acb->data_psm; in bta_hl_api_register()
773 tBTA_HL_APP_CB *p_acb; in bta_hl_api_deregister() local
778 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_deregister()
779 p_acb->deregistering= TRUE; in bta_hl_api_deregister()
802 tBTA_HL_APP_CB *p_acb; in bta_hl_api_cch_open() local
830 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_cch_open()
832 if (p_acb->p_cback) in bta_hl_api_cch_open()
839 p_acb->p_cback(BTA_HL_CCH_OPEN_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_cch_open()
866 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_cch_open()
867 if (p_acb->p_cback) in bta_hl_api_cch_open()
874 p_acb->p_cback(BTA_HL_CCH_OPEN_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_cch_open()
901 tBTA_HL_APP_CB *p_acb; in bta_hl_api_cch_close() local
927 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_cch_close()
928 if (p_acb->p_cback) in bta_hl_api_cch_close()
931 p_acb->app_handle, in bta_hl_api_cch_close()
934 p_acb->p_cback(BTA_HL_CCH_CLOSE_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_cch_close()
962 tBTA_HL_APP_CB *p_acb; in bta_hl_api_dch_open() local
971 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_open()
984 … (p_acb->sup_feature.mdep[mdep_cfg_idx].mdep_cfg.mdep_role == BTA_HL_MDEP_ROLE_SINK)) in bta_hl_api_dch_open()
1079 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_open()
1080 if (p_acb->p_cback) in bta_hl_api_dch_open()
1083 p_acb->app_handle, in bta_hl_api_dch_open()
1087 p_acb->p_cback(BTA_HL_DCH_OPEN_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_dch_open()
1116 tBTA_HL_APP_CB *p_acb; in bta_hl_api_dch_close() local
1147 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_close()
1148 if (p_acb->p_cback) in bta_hl_api_dch_close()
1152 p_acb->app_handle, in bta_hl_api_dch_close()
1157 p_acb->p_cback(BTA_HL_DCH_CLOSE_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_dch_close()
1185 tBTA_HL_APP_CB *p_acb; in bta_hl_api_dch_reconnect() local
1195 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_reconnect()
1206 (p_acb->mdl_cfg[mdl_cfg_idx].dch_mode != BTA_HL_DCH_MODE_RELIABLE)) in bta_hl_api_dch_reconnect()
1217 … p_dcb->local_mdep_id = p_acb->mdl_cfg[mdl_cfg_idx].local_mdep_id; in bta_hl_api_dch_reconnect()
1223 p_dcb->dch_mode = p_acb->mdl_cfg[mdl_cfg_idx].dch_mode; in bta_hl_api_dch_reconnect()
1291 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_reconnect()
1292 if (p_acb->p_cback) in bta_hl_api_dch_reconnect()
1295 p_acb->app_handle, in bta_hl_api_dch_reconnect()
1299 p_acb->p_cback(BTA_HL_DCH_RECONNECT_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_dch_reconnect()
1326 tBTA_HL_APP_CB *p_acb; in bta_hl_api_dch_echo_test() local
1334 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_echo_test()
1424 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_echo_test()
1425 if (p_acb->p_cback) in bta_hl_api_dch_echo_test()
1428 p_acb->app_handle, in bta_hl_api_dch_echo_test()
1431 p_acb->p_cback(BTA_HL_DCH_ECHO_TEST_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_dch_echo_test()
1460 tBTA_HL_APP_CB *p_acb; in bta_hl_api_sdp_query() local
1521 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_sdp_query()
1522 if (p_acb->p_cback) in bta_hl_api_sdp_query()
1530 p_acb->p_cback(BTA_HL_SDP_QUERY_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_sdp_query()
1563 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR( app_idx); in bta_hl_sdp_query_results() local
1588 bta_hl_build_sdp_query_cfm(&evt_data,p_mcb->app_id, p_acb->app_handle, in bta_hl_sdp_query_results()
1590 p_acb->p_cback(BTA_HL_SDP_QUERY_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_sdp_query_results()
1623 tBTA_HL_APP_CB *p_acb; in bta_hl_api_delete_mdl() local
1677 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_delete_mdl()
1678 if (p_acb->p_cback) in bta_hl_api_delete_mdl()
1681 p_acb->app_handle, in bta_hl_api_delete_mdl()
1685 p_acb->p_cback(BTA_HL_DELETE_MDL_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_api_delete_mdl()
1715 tBTA_HL_APP_CB *p_acb; in bta_hl_mca_delete_mdl_cfm() local
1759 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_mca_delete_mdl_cfm()
1760 if (p_acb->p_cback) in bta_hl_mca_delete_mdl_cfm()
1763 p_acb->app_handle, in bta_hl_mca_delete_mdl_cfm()
1768 p_acb->p_cback(BTA_HL_DELETE_MDL_CFM_EVT,(tBTA_HL *) &evt_data ); in bta_hl_mca_delete_mdl_cfm()
1795 tBTA_HL_APP_CB *p_acb; in bta_hl_mca_delete_mdl_ind() local
1824 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_mca_delete_mdl_ind()
1825 if (p_acb->p_cback) in bta_hl_mca_delete_mdl_ind()
1828 evt_data.delete_mdl_ind.app_handle = p_acb->app_handle; in bta_hl_mca_delete_mdl_ind()
1830 p_acb->p_cback(BTA_HL_DELETE_MDL_IND_EVT,(tBTA_HL *) &evt_data ); in bta_hl_mca_delete_mdl_ind()
1854 tBTA_HL_APP_CB *p_acb; in bta_hl_api_dch_abort() local
1902 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_api_dch_abort()
1903 if (p_acb->p_cback) in bta_hl_api_dch_abort()
1910 p_acb->app_handle, in bta_hl_api_dch_abort()
1913 p_acb->p_cback(BTA_HL_DCH_ABORT_CFM_EVT,(tBTA_HL *) &evt_data); in bta_hl_api_dch_abort()