Lines Matching refs:mcl_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
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
493 mcl_idx = p_msg->cch_sdp.mcl_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()
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()
564 *p_mcl_idx = mcl_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()
670 mcl_idx = p_msg->mca_rcv_data_evt.mcl_idx; in bta_hl_find_dch_cb_indexes()
679 mcl_idx = p_msg->dch_sdp.mcl_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 …(bta_hl_find_mdl_idx_using_handle(p_msg->ci_get_put_data.mdl_handle, &app_idx, &mcl_idx, &mdl_idx)) 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()
738 *p_mcl_idx = mcl_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()
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()
1322 BOOLEAN bta_hl_find_avail_mdl_cfg_idx(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_find_avail_mdl_cfg_idx() argument
1330 UNUSED(mcl_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()
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()
1885 tBTA_HL_STATUS bta_hl_chk_local_cfg(UINT8 app_idx, UINT8 mcl_idx, in bta_hl_chk_local_cfg() argument
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
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()
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()
2477 void bta_hl_save_mdl_cfg(UINT8 app_idx, UINT8 mcl_idx, UINT8 mdl_idx ) in bta_hl_save_mdl_cfg() argument
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()
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
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
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
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()
2889 UINT8 mcl_idx; in bta_hl_check_deregistration() local
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()