Lines Matching refs:app_idx

49 BOOLEAN bta_hl_set_ctrl_psm_for_dch(UINT8 app_idx, UINT8 mcl_idx,  in bta_hl_set_ctrl_psm_for_dch()  argument
52 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_set_ctrl_psm_for_dch()
244 void bta_hl_clean_mdl_cb(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx) in bta_hl_clean_mdl_cb() argument
246 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_clean_mdl_cb()
249 app_idx, mcl_idx, mdl_idx); in bta_hl_clean_mdl_cb()
295 BOOLEAN bta_hl_find_service_in_db( UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_service_in_db() argument
299 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_service_in_db()
335 UINT16 bta_hl_get_service_uuids(UINT8 sdp_oper, UINT8 app_idx, UINT8 mcl_idx, in bta_hl_get_service_uuids() argument
346 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_get_service_uuids()
381 BOOLEAN bta_hl_find_echo_cfg_rsp(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdep_idx, UINT8 cfg, in bta_hl_find_echo_cfg_rsp() argument
384 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_find_echo_cfg_rsp()
410 app_idx, mcl_idx, mdep_idx, cfg); in bta_hl_find_echo_cfg_rsp()
427 BOOLEAN bta_hl_validate_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx, in bta_hl_validate_cfg() argument
430 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_cfg()
434 if (!bta_hl_is_the_first_reliable_existed(app_idx, mcl_idx) && in bta_hl_validate_cfg()
486 UINT8 app_idx = 0, mcl_idx = 0; in bta_hl_find_cch_cb_indexes() local
492 app_idx = p_msg->cch_sdp.app_idx; in bta_hl_find_cch_cb_indexes()
499 if (bta_hl_find_app_idx_using_handle(p_msg->mca_evt.app_handle, &app_idx)) in bta_hl_find_cch_cb_indexes()
501 … if (bta_hl_find_mcl_idx(app_idx, p_msg->mca_evt.mca_data.connect_ind.bd_addr, &mcl_idx)) in bta_hl_find_cch_cb_indexes()
506 … else if (!bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx)&& in bta_hl_find_cch_cb_indexes()
507 bta_hl_find_avail_mcl_idx(app_idx, &mcl_idx)) in bta_hl_find_cch_cb_indexes()
510 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_cch_cb_indexes()
520 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_find_cch_cb_indexes()
524 else if (bta_hl_find_app_idx_using_handle(p_msg->mca_evt.app_handle, &app_idx) && in bta_hl_find_cch_cb_indexes()
525 … bta_hl_find_mcl_idx(app_idx, p_msg->mca_evt.mca_data.disconnect_ind.bd_addr, &mcl_idx)) in bta_hl_find_cch_cb_indexes()
532 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_cch_cb_indexes()
542 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_find_cch_cb_indexes()
549 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_cch_cb_indexes()
563 *p_app_idx = app_idx; in bta_hl_find_cch_cb_indexes()
571 bta_hl_evt_code(p_msg->hdr.event), found, app_idx, mcl_idx); in bta_hl_find_cch_cb_indexes()
595 UINT8 app_idx = 0, mcl_idx = 0, mdl_idx = 0; in bta_hl_find_dch_cb_indexes() local
600 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
601 … bta_hl_find_mdl_idx( app_idx, mcl_idx, p_msg->mca_evt.mca_data.create_cfm.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
609 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
610 bta_hl_find_avail_mdl_idx( app_idx, mcl_idx, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
617 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
618 … bta_hl_find_mdl_idx( app_idx, mcl_idx, p_msg->mca_evt.mca_data.open_cfm.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
625 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
626 … bta_hl_find_mdl_idx( app_idx, mcl_idx, p_msg->mca_evt.mca_data.open_ind.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
635 &app_idx, &mcl_idx, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
643 &app_idx, &mcl_idx, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
651 &app_idx, &mcl_idx, &mdl_idx )) in bta_hl_find_dch_cb_indexes()
661 &app_idx, &mcl_idx, &mdl_idx )) in bta_hl_find_dch_cb_indexes()
669 app_idx = p_msg->mca_rcv_data_evt.app_idx; in bta_hl_find_dch_cb_indexes()
678 app_idx = p_msg->dch_sdp.app_idx; in bta_hl_find_dch_cb_indexes()
684 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
685 … bta_hl_find_mdl_idx( app_idx, mcl_idx, p_msg->mca_evt.mca_data.reconnect_cfm.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
693 … if (bta_hl_find_mcl_idx_using_handle(p_msg->api_dch_create_rsp.mcl_handle, &app_idx, &mcl_idx)&& in bta_hl_find_dch_cb_indexes()
694 bta_hl_find_mdl_idx( app_idx, mcl_idx,p_msg->api_dch_create_rsp.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
700 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
701 … bta_hl_find_mdl_idx( app_idx, mcl_idx,p_msg->mca_evt.mca_data.abort_ind.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
707 if (bta_hl_find_mcl_idx_using_handle(p_msg->mca_evt.mcl_handle, &app_idx, &mcl_idx) && in bta_hl_find_dch_cb_indexes()
708 … bta_hl_find_mdl_idx( app_idx, mcl_idx, p_msg->mca_evt.mca_data.abort_cfm.mdl_id, &mdl_idx)) in bta_hl_find_dch_cb_indexes()
715 …if (bta_hl_find_mdl_idx_using_handle(p_msg->ci_get_put_data.mdl_handle, &app_idx, &mcl_idx, &mdl_i… in bta_hl_find_dch_cb_indexes()
722 … if (bta_hl_find_mcl_idx_using_handle(p_msg->ci_get_put_echo_data.mcl_handle, &app_idx, &mcl_idx)) in bta_hl_find_dch_cb_indexes()
724 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_dch_cb_indexes()
737 *p_app_idx = app_idx; in bta_hl_find_dch_cb_indexes()
761 UINT16 bta_hl_allocate_mdl_id(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx ) in bta_hl_allocate_mdl_id() argument
764 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_allocate_mdl_id()
792 if (bta_hl_find_mdl_cfg_idx(app_idx,mcl_idx, mdl_id, &mdl_cfg_idx)) in bta_hl_allocate_mdl_id()
819 BOOLEAN bta_hl_find_mdl_idx(UINT8 app_idx, UINT8 mcl_idx, UINT16 mdl_id, in bta_hl_find_mdl_idx() argument
822 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_mdl_idx()
858 BOOLEAN bta_hl_find_an_active_mdl_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_an_active_mdl_idx() argument
861 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_an_active_mdl_idx()
880 found, app_idx, mcl_idx, i); in bta_hl_find_an_active_mdl_idx()
896 BOOLEAN bta_hl_find_dch_setup_mdl_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_dch_setup_mdl_idx() argument
899 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_dch_setup_mdl_idx()
918 found, app_idx, mcl_idx, i); in bta_hl_find_dch_setup_mdl_idx()
934 BOOLEAN bta_hl_find_an_in_use_mcl_idx(UINT8 app_idx, in bta_hl_find_an_in_use_mcl_idx() argument
943 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, i); in bta_hl_find_an_in_use_mcl_idx()
957 found, app_idx, i); in bta_hl_find_an_in_use_mcl_idx()
1130 BOOLEAN bta_hl_find_mcl_idx(UINT8 app_idx, BD_ADDR p_bd_addr, UINT8 *p_mcl_idx) in bta_hl_find_mcl_idx() argument
1137 if (bta_hl_cb.acb[app_idx].mcb[i].in_use && in bta_hl_find_mcl_idx()
1138 (!memcmp (bta_hl_cb.acb[app_idx].mcb[i].bd_addr, p_bd_addr, BD_ADDR_LEN))) in bta_hl_find_mcl_idx()
1229 BOOLEAN bta_hl_is_the_first_reliable_existed(UINT8 app_idx, UINT8 mcl_idx ) in bta_hl_is_the_first_reliable_existed() argument
1231 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_is_the_first_reliable_existed()
1261 BOOLEAN bta_hl_find_non_active_mdl_cfg(UINT8 app_idx, UINT8 start_mdl_cfg_idx, in bta_hl_find_non_active_mdl_cfg() argument
1275 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_non_active_mdl_cfg()
1278 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, j); in bta_hl_find_non_active_mdl_cfg()
1285 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, j, k); in bta_hl_find_non_active_mdl_cfg()
1322 BOOLEAN bta_hl_find_avail_mdl_cfg_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_avail_mdl_cfg_idx() argument
1334 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_avail_mdl_cfg_idx()
1350 if (bta_hl_find_non_active_mdl_cfg(app_idx,0, &first_mdl_cfg_idx)) in bta_hl_find_avail_mdl_cfg_idx()
1352 … if (bta_hl_find_non_active_mdl_cfg(app_idx,(UINT8) (first_mdl_cfg_idx+1), &second_mdl_cfg_idx)) in bta_hl_find_avail_mdl_cfg_idx()
1357 p_mdl1 = BTA_HL_GET_MDL_CFG_PTR(app_idx, first_mdl_cfg_idx); in bta_hl_find_avail_mdl_cfg_idx()
1358 p_mdl2 = BTA_HL_GET_MDL_CFG_PTR(app_idx, second_mdl_cfg_idx); in bta_hl_find_avail_mdl_cfg_idx()
1369 … if (bta_hl_find_non_active_mdl_cfg(app_idx,(UINT8) (second_mdl_cfg_idx+1), &second_mdl_cfg_idx)) in bta_hl_find_avail_mdl_cfg_idx()
1417 BOOLEAN bta_hl_find_mdl_cfg_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_mdl_cfg_idx() argument
1420 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_mdl_cfg_idx()
1428 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_find_mdl_cfg_idx()
1465 BOOLEAN bta_hl_get_cur_time(UINT8 app_idx, UINT8 *p_cur_time) in bta_hl_get_cur_time() argument
1473 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_get_cur_time()
1480 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, j); in bta_hl_get_cur_time()
1534 void bta_hl_sort_cfg_time_idx(UINT8 app_idx, UINT8 *a, UINT8 n) in bta_hl_sort_cfg_time_idx() argument
1536 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_sort_cfg_time_idx()
1564 void bta_hl_compact_mdl_cfg_time(UINT8 app_idx, UINT8 mdep_id) in bta_hl_compact_mdl_cfg_time() argument
1573 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_compact_mdl_cfg_time()
1590 bta_hl_sort_cfg_time_idx(app_idx, s_arr, cnt); in bta_hl_compact_mdl_cfg_time()
1594 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, s_arr[i]); in bta_hl_compact_mdl_cfg_time()
1616 BOOLEAN bta_hl_is_mdl_exsit_in_mcl(UINT8 app_idx, BD_ADDR bd_addr, in bta_hl_is_mdl_exsit_in_mcl() argument
1625 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_is_mdl_exsit_in_mcl()
1658 BOOLEAN bta_hl_delete_mdl_cfg(UINT8 app_idx, BD_ADDR bd_addr, in bta_hl_delete_mdl_cfg() argument
1667 p_mdl = BTA_HL_GET_MDL_CFG_PTR(app_idx, i); in bta_hl_delete_mdl_cfg()
1743 BOOLEAN bta_hl_find_mdep_cfg_idx(UINT8 app_idx, tBTA_HL_MDEP_ID local_mdep_id, in bta_hl_find_mdep_cfg_idx() argument
1746 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_find_mdep_cfg_idx()
1782 void bta_hl_find_rxtx_apdu_size(UINT8 app_idx, UINT8 mdep_cfg_idx, in bta_hl_find_rxtx_apdu_size() argument
1786 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_find_rxtx_apdu_size()
1830 BOOLEAN bta_hl_validate_peer_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx, in bta_hl_validate_peer_cfg() argument
1835 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_validate_peer_cfg()
1836 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_peer_cfg()
1841 APPL_TRACE_DEBUG("bta_hl_validate_peer_cfg sdp_idx=%d app_idx %d", sdp_idx, app_idx); in bta_hl_validate_peer_cfg()
1885 tBTA_HL_STATUS bta_hl_chk_local_cfg(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_chk_local_cfg() argument
1889 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_chk_local_cfg()
1894 (!bta_hl_is_the_first_reliable_existed(app_idx, mcl_idx)) && in bta_hl_chk_local_cfg()
1914 BOOLEAN bta_hl_validate_reconnect_params(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_validate_reconnect_params() argument
1918 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_validate_reconnect_params()
1928 …RACE_DEBUG("bta_hl_validate_reconnect_params mdl_id=%d app_idx=%d", p_reconnect->mdl_id, app_idx); in bta_hl_validate_reconnect_params()
1930 if (bta_hl_find_mdl_cfg_idx(app_idx, mcl_idx, p_reconnect->mdl_id, &mdl_cfg_idx)) in bta_hl_validate_reconnect_params()
1968 if (!bta_hl_find_mdl_idx(app_idx,mcl_idx, p_reconnect->mdl_id, &in_use_mdl_idx)) in bta_hl_validate_reconnect_params()
1996 BOOLEAN bta_hl_find_avail_mcl_idx(UINT8 app_idx, UINT8 *p_mcl_idx) in bta_hl_find_avail_mcl_idx() argument
2003 if (!bta_hl_cb.acb[app_idx].mcb[i].in_use) in bta_hl_find_avail_mcl_idx()
2033 BOOLEAN bta_hl_find_avail_mdl_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_avail_mdl_idx() argument
2036 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_find_avail_mdl_idx()
2304 tBTA_HL_STATUS bta_hl_app_registration(UINT8 app_idx) in bta_hl_app_registration() argument
2307 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_app_registration()
2314 APPL_TRACE_DEBUG("bta_hl_app_registration app_idx=%d", app_idx); in bta_hl_app_registration()
2429 status = bta_hl_sdp_register(app_idx); in bta_hl_app_registration()
2477 void bta_hl_save_mdl_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx ) in bta_hl_save_mdl_cfg() argument
2479 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_save_mdl_cfg()
2480 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_save_mdl_cfg()
2481 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_save_mdl_cfg()
2490 if (!bta_hl_find_mdl_cfg_idx(app_idx, mcl_idx, mdl_id, &mdl_cfg_idx)) in bta_hl_save_mdl_cfg()
2492 if (!bta_hl_find_avail_mdl_cfg_idx(app_idx, mcl_idx, &mdl_cfg_idx)) in bta_hl_save_mdl_cfg()
2502 if (!bta_hl_get_cur_time(app_idx, &time_val )) in bta_hl_save_mdl_cfg()
2504 bta_hl_compact_mdl_cfg_time(app_idx,p_dcb->local_mdep_id); in bta_hl_save_mdl_cfg()
2505 bta_hl_get_cur_time(app_idx, &time_val); in bta_hl_save_mdl_cfg()
2548 void bta_hl_set_dch_chan_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx,tBTA_HL_DATA *p_data) in bta_hl_set_dch_chan_cfg() argument
2550 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_set_dch_chan_cfg()
2551 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_set_dch_chan_cfg()
2711 BOOLEAN bta_hl_validate_chan_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx) in bta_hl_validate_chan_cfg() argument
2713 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_validate_chan_cfg()
2714 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_validate_chan_cfg()
2721 get_mdl_result = bta_hl_find_mdl_cfg_idx(app_idx, mcl_idx, p_dcb->mdl_id, &mdl_cfg_idx); in bta_hl_validate_chan_cfg()
2744 …_validate_chan_cfg success=%d app_idx=%d mcl_idx=%d mdl_idx=%d",success, app_idx, mcl_idx, mdl_idx… in bta_hl_validate_chan_cfg()
2769 UINT8 app_idx = 0, mcl_idx, mdl_idx; in bta_hl_is_cong_on() local
2772 if (bta_hl_find_app_idx(app_id, &app_idx)) in bta_hl_is_cong_on()
2774 if (bta_hl_find_mcl_idx(app_idx, bd_addr, &mcl_idx )) in bta_hl_is_cong_on()
2776 if (bta_hl_find_mdl_idx(app_idx, mcl_idx, mdl_id, &mdl_idx )) in bta_hl_is_cong_on()
2778 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_is_cong_on()
2796 void bta_hl_check_cch_close(UINT8 app_idx, UINT8 mcl_idx, tBTA_HL_DATA *p_data, BOOLEAN check_dch_s… in bta_hl_check_cch_close() argument
2798 tBTA_HL_MCL_CB *p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_check_cch_close()
2808 if (check_dch_setup && bta_hl_find_dch_setup_mdl_idx(app_idx, mcl_idx, &mdl_idx)) in bta_hl_check_cch_close()
2810 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_check_cch_close()
2818 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_ABORT_EVT, p_data); in bta_hl_check_cch_close()
2824 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_CLOSE_CMPL_EVT, p_data); in bta_hl_check_cch_close()
2827 else if (bta_hl_find_an_active_mdl_idx(app_idx, mcl_idx,&mdl_idx)) in bta_hl_check_cch_close()
2830 bta_hl_dch_sm_execute(app_idx, mcl_idx, mdl_idx, BTA_HL_DCH_CLOSE_EVT, p_data); in bta_hl_check_cch_close()
2835 bta_hl_cch_sm_execute(app_idx, mcl_idx, BTA_HL_CCH_CLOSE_EVT, p_data); in bta_hl_check_cch_close()
2849 void bta_hl_clean_app(UINT8 app_idx) in bta_hl_clean_app() argument
2851 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_clean_app()
2885 void bta_hl_check_deregistration(UINT8 app_idx, tBTA_HL_DATA *p_data ) in bta_hl_check_deregistration() argument
2887 tBTA_HL_APP_CB *p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_check_deregistration()
2898 if (bta_hl_find_an_in_use_mcl_idx(app_idx, &mcl_idx)) in bta_hl_check_deregistration()
2900 p_mcb = BTA_HL_GET_MCL_CB_PTR(app_idx, mcl_idx); in bta_hl_check_deregistration()
2907 bta_hl_check_cch_close(app_idx,mcl_idx,p_data, TRUE); in bta_hl_check_deregistration()
2917 bta_hl_clean_app(app_idx); in bta_hl_check_deregistration()
2938 UINT8 app_idx; in bta_hl_check_disable() local
2947 if (bta_hl_find_an_in_use_app_idx(&app_idx)) in bta_hl_check_disable()
2949 p_acb = BTA_HL_GET_APP_CB_PTR(app_idx); in bta_hl_check_disable()
2953 bta_hl_check_deregistration(app_idx, p_data); in bta_hl_check_disable()