Lines Matching refs:mcl_idx
89 typedef void (*tBTA_HL_DCH_ACTION)(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx, tBTA_HL_DATA *p_dat…
307 typedef void (*tBTA_HL_CCH_ACTION)(UINT8 app_idx, UINT8 mcl_idx, tBTA_HL_DATA *p_data);
417 void bta_hl_cch_sm_execute(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_cch_sm_execute() argument
423 tBTA_HL_MCL_CB *p_cb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_cch_sm_execute()
445 (*bta_hl_cch_action[action])(app_idx, mcl_idx, p_data); in bta_hl_cch_sm_execute()
475 void bta_hl_dch_sm_execute(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx, in bta_hl_dch_sm_execute() argument
481 tBTA_HL_MDL_CB *p_cb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_sm_execute()
502 (*bta_hl_dch_action[action])(app_idx, mcl_idx, mdl_idx, p_data); in bta_hl_dch_sm_execute()
801 UINT8 app_idx, mcl_idx; in bta_hl_api_cch_open() local
809 if (!bta_hl_find_mcl_idx(app_idx, p_data->api_cch_open.bd_addr, &mcl_idx)) in bta_hl_api_cch_open()
811 if (bta_hl_find_avail_mcl_idx(app_idx, &mcl_idx)) in bta_hl_api_cch_open()
813 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_cch_open()
831 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_cch_open()
861 bta_hl_cch_sm_execute(app_idx, mcl_idx, BTA_HL_CCH_OPEN_EVT, p_data); in bta_hl_api_cch_open()
900 UINT8 app_idx, mcl_idx; in bta_hl_api_cch_close() local
905 if (bta_hl_find_mcl_idx_using_handle(p_data->api_cch_close.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_api_cch_close()
907 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_cch_close()
923 bta_hl_check_cch_close(app_idx, mcl_idx, p_data, TRUE); in bta_hl_api_cch_close()
961 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_api_dch_open() local
969 if (bta_hl_find_mcl_idx_using_handle(p_data->api_dch_open.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_api_dch_open()
972 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_dch_open()
974 …pi_dch_open: app_ix=%d, mcl_idx=%d, cch_state=%d, mcl_handle=%d",app_idx,mcl_idx,p_mcb->cch_state,… in bta_hl_api_dch_open()
977 if (bta_hl_find_avail_mdl_idx(app_idx, mcl_idx, &mdl_idx)) in bta_hl_api_dch_open()
979 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_open()
989 … if ((status = bta_hl_chk_local_cfg(app_idx,mcl_idx,mdep_cfg_idx,p_data->api_dch_open.local_cfg)) in bta_hl_api_dch_open()
995 … if (bta_hl_set_ctrl_psm_for_dch(app_idx, mcl_idx, mdl_idx, p_data->api_dch_open.ctrl_psm)) in bta_hl_api_dch_open()
1019 … p_dcb->mdl_id = bta_hl_allocate_mdl_id(app_idx,mcl_idx,mdl_idx); in bta_hl_api_dch_open()
1065 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_OPEN_EVT, p_data); in bta_hl_api_dch_open()
1069 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_SDP_INIT_EVT, p_data); in bta_hl_api_dch_open()
1115 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_api_dch_close() local
1121 …if (bta_hl_find_mdl_idx_using_handle(p_data->api_dch_close.mdl_handle, &app_idx, &mcl_idx, &mdl_id… in bta_hl_api_dch_close()
1123 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_close()
1144 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_CLOSE_EVT, p_data); in bta_hl_api_dch_close()
1150 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_dch_close()
1184 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_api_dch_reconnect() local
1193 if (bta_hl_find_mcl_idx_using_handle(p_data->api_dch_reconnect.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_api_dch_reconnect()
1196 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_dch_reconnect()
1199 if (bta_hl_find_avail_mdl_idx(app_idx, mcl_idx, &mdl_idx)) in bta_hl_api_dch_reconnect()
1201 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_reconnect()
1202 … if (bta_hl_validate_reconnect_params(app_idx, mcl_idx, &(p_data->api_dch_reconnect), in bta_hl_api_dch_reconnect()
1205 if (!bta_hl_is_the_first_reliable_existed(app_idx, mcl_idx) && in bta_hl_api_dch_reconnect()
1212 … if (bta_hl_set_ctrl_psm_for_dch(app_idx, mcl_idx, mdl_idx, p_data->api_dch_open.ctrl_psm)) in bta_hl_api_dch_reconnect()
1280 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_RECONNECT_EVT, p_data); in bta_hl_api_dch_reconnect()
1284 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_SDP_INIT_EVT, p_data); in bta_hl_api_dch_reconnect()
1325 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_api_dch_echo_test() local
1332 if (bta_hl_find_mcl_idx_using_handle(p_data->api_dch_echo_test.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_api_dch_echo_test()
1335 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_dch_echo_test()
1340 if (bta_hl_find_avail_mdl_idx(app_idx, mcl_idx, &mdl_idx)) in bta_hl_api_dch_echo_test()
1342 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_echo_test()
1350 … if (bta_hl_set_ctrl_psm_for_dch(app_idx, mcl_idx, mdl_idx, p_data->api_dch_open.ctrl_psm)) in bta_hl_api_dch_echo_test()
1359 … p_dcb->mdl_id = bta_hl_allocate_mdl_id(app_idx,mcl_idx,mdl_idx); in bta_hl_api_dch_echo_test()
1414 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_ECHO_TEST_EVT, p_data); in bta_hl_api_dch_echo_test()
1418 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_SDP_INIT_EVT, p_data); in bta_hl_api_dch_echo_test()
1459 UINT8 app_idx, mcl_idx; in bta_hl_api_sdp_query() local
1466 if (!bta_hl_find_mcl_idx(app_idx, p_data->api_sdp_query.bd_addr, &mcl_idx)) in bta_hl_api_sdp_query()
1468 if (bta_hl_find_avail_mcl_idx(app_idx, &mcl_idx)) in bta_hl_api_sdp_query()
1470 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_sdp_query()
1473 …UG("bta_hl_api_sdp_query p_mcb->app_id %d app_idx %d mcl_idx %d", p_mcb->app_id, app_idx, mcl_idx); in bta_hl_api_sdp_query()
1484 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_sdp_query()
1503 status = bta_hl_init_sdp( p_mcb->sdp_oper, app_idx, mcl_idx, 0xFF); in bta_hl_api_sdp_query()
1562 UINT8 mcl_idx = p_data->cch_sdp.mcl_idx; in bta_hl_sdp_query_results() local
1564 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR( app_idx, mcl_idx); in bta_hl_sdp_query_results()
1587 …bta_hl_sdp_query_results p_mcb->app_id %d app_idx %d mcl_idx %d", p_mcb->app_id, app_idx, mcl_idx); in bta_hl_sdp_query_results()
1599 bta_hl_check_cch_close(app_idx, mcl_idx, p_data, TRUE); in bta_hl_sdp_query_results()
1622 UINT8 app_idx, mcl_idx; in bta_hl_api_delete_mdl() local
1627 if (bta_hl_find_mcl_idx_using_handle(p_data->api_delete_mdl.mcl_handle, &app_idx, &mcl_idx )) in bta_hl_api_delete_mdl()
1631 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_delete_mdl()
1711 UINT8 app_idx, mcl_idx; in bta_hl_mca_delete_mdl_cfm() local
1718 if (bta_hl_find_mcl_idx_using_handle(p_data->mca_evt.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_mca_delete_mdl_cfm()
1720 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_mca_delete_mdl_cfm()
1790 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_mca_delete_mdl_ind() local
1798 if (bta_hl_find_mcl_idx_using_handle(p_data->mca_evt.mcl_handle, &app_idx, &mcl_idx) ) in bta_hl_mca_delete_mdl_ind()
1800 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_mca_delete_mdl_ind()
1802 if (bta_hl_find_mdl_idx(app_idx, mcl_idx, p_delete_ind->mdl_id, &mdl_idx )) in bta_hl_mca_delete_mdl_ind()
1804 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_mca_delete_mdl_ind()
1853 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_api_dch_abort() local
1860 if (bta_hl_find_mcl_idx_using_handle(p_data->api_dch_abort.mcl_handle, &app_idx, &mcl_idx )) in bta_hl_api_dch_abort()
1863 if (!bta_hl_find_dch_setup_mdl_idx(app_idx, mcl_idx, &mdl_idx )) in bta_hl_api_dch_abort()
1869 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_abort()
1897 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_ABORT_EVT, p_data); in bta_hl_api_dch_abort()
1905 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_api_dch_abort()
1937 UINT8 app_idx, mcl_idx, mdl_idx; in bta_hl_hdl_event() local
2009 if (bta_hl_find_cch_cb_indexes((tBTA_HL_DATA *) p_msg, &app_idx, &mcl_idx)) in bta_hl_hdl_event()
2012 mcl_idx, in bta_hl_hdl_event()
2028 … if (bta_hl_find_dch_cb_indexes((tBTA_HL_DATA *) p_msg, &app_idx, &mcl_idx, &mdl_idx)) in bta_hl_hdl_event()
2031 mcl_idx, in bta_hl_hdl_event()