Lines Matching refs:btm_cb
86 btm_cb.sco_cb.sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; in btm_sco_init()
87 btm_cb.sco_cb.def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD); in btm_sco_init()
88 btm_cb.sco_cb.def_esco_parms.max_latency_ms = 12; in btm_sco_init()
89 btm_cb.sco_cb.sco_route = ESCO_DATA_PATH_PCM; in btm_sco_init()
114 if (sco_inx < BTM_MAX_SCO_LINKS) p_sco = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_esco_conn_rsp()
122 if (!btm_cb.sco_cb.esco_supported) { in btm_esco_conn_rsp()
136 *p_setup = btm_cb.sco_cb.def_esco_parms; in btm_esco_conn_rsp()
141 btm_cb.btm_sco_pkt_types_supported); in btm_esco_conn_rsp()
161 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_EXCEPTION_PKTS_MASK)); in btm_esco_conn_rsp()
169 btm_cb.sco_cb.sco_route; in btm_esco_conn_rsp()
247 if (!btm_cb.sco_cb.esco_supported) { in btm_send_connect_request()
255 btm_cb.btm_sco_pkt_types_supported); in btm_send_connect_request()
260 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_EXCEPTION_PKTS_MASK)); in btm_send_connect_request()
267 p_acl = &btm_cb.acl_db[acl_index]; in btm_send_connect_request()
315 btm_cb.sco_cb.sco_route; in btm_send_connect_request()
358 btm_cb.sco_cb.app_sco_ind_cb = sco_ind_cb; in btm_set_sco_ind_cback()
382 p_sco = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_accept_sco_link()
408 btm_cb.sco_cb.sco_db[sco_inx].esco.data.bd_addr, NULL); in btm_reject_sco_link()
436 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_CreateSco()
481 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco()
510 *p_setup = btm_cb.sco_cb.def_esco_parms; in BTM_CreateSco()
514 btm_cb.btm_sco_pkt_types_supported; in BTM_CreateSco()
520 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_EXCEPTION_PKTS_MASK); in BTM_CreateSco()
587 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_chk_pend_unpark()
623 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_chk_pend_rolechange()
656 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_disc_chk_pend_for_modechange()
687 tSCO_CB* p_sco = &btm_cb.sco_cb; in btm_sco_conn_req()
741 if (btm_cb.sco_cb.app_sco_ind_cb) { in btm_sco_conn_req()
744 for (sco_index = 0, p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_conn_req()
757 btm_cb.sco_cb.app_sco_ind_cb(sco_index); in btm_sco_conn_req()
783 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_connected()
789 btm_cb.sco_cb.sco_disc_reason = hci_status; in btm_sco_connected()
828 if (!btm_cb.sco_cb.esco_supported) { in btm_sco_connected()
863 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_find_scb_by_handle()
886 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_RemoveSco()
937 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_remove_sco_links()
960 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_removed()
964 btm_cb.sco_cb.sco_disc_reason = reason; in btm_sco_removed()
967 p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_removed()
1000 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_sco_acl_removed()
1049 p = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_SetScoPacketTypes()
1085 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_ReadScoPacketTypes()
1109 uint16_t res = btm_cb.sco_cb.sco_disc_reason; in BTM_ReadScoDiscReason()
1110 btm_cb.sco_cb.sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; in BTM_ReadScoDiscReason()
1136 return (btm_cb.btm_sco_pkt_types_supported); in BTM_ReadDeviceScoPacketTypes()
1151 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_ReadScoHandle()
1175 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_ReadScoBdAddr()
1205 enh_esco_params_t* p_def = &btm_cb.sco_cb.def_esco_parms; in BTM_SetEScoMode()
1207 if (btm_cb.sco_cb.esco_supported) { in BTM_SetEScoMode()
1245 if (!btm_cb.sco_cb.esco_supported) { in BTM_RegForEScoEvts()
1246 btm_cb.sco_cb.sco_db[sco_inx].esco.p_esco_cback = NULL; in BTM_RegForEScoEvts()
1251 btm_cb.sco_cb.sco_db[sco_inx].state != SCO_ST_UNUSED) { in BTM_RegForEScoEvts()
1252 btm_cb.sco_cb.sco_db[sco_inx].esco.p_esco_cback = p_esco_cback; in BTM_RegForEScoEvts()
1285 btm_cb.sco_cb.sco_db[sco_inx].state >= SCO_ST_CONNECTED) { in BTM_ReadEScoLinkParms()
1286 *p_parms = btm_cb.sco_cb.sco_db[sco_inx].esco.data; in BTM_ReadEScoLinkParms()
1292 if (btm_cb.sco_cb.sco_db[index].state >= SCO_ST_CONNECTED) { in BTM_ReadEScoLinkParms()
1294 *p_parms = btm_cb.sco_cb.sco_db[index].esco.data; in BTM_ReadEScoLinkParms()
1333 btm_cb.sco_cb.sco_db[sco_inx].state != SCO_ST_CONNECTED) in BTM_ChangeEScoLinkParms()
1336 tSCO_CONN* p_sco = &btm_cb.sco_cb.sco_db[sco_inx]; in BTM_ChangeEScoLinkParms()
1344 !btm_cb.sco_cb.esco_supported) { in BTM_ChangeEScoLinkParms()
1347 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_LINK_ONLY_MASK); in BTM_ChangeEScoLinkParms()
1361 btm_cb.btm_sco_pkt_types_supported); in BTM_ChangeEScoLinkParms()
1366 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_EXCEPTION_PKTS_MASK)); in BTM_ChangeEScoLinkParms()
1382 btm_cb.sco_cb.sco_route; in BTM_ChangeEScoLinkParms()
1433 btm_cb.sco_cb.sco_db[sco_inx].state == SCO_ST_W4_CONN_RSP) { in BTM_EScoConnRsp()
1435 btm_cb.sco_cb.sco_db[sco_inx].esco.data.bd_addr, p_parms); in BTM_EScoConnRsp()
1452 *p_parms = btm_cb.sco_cb.def_esco_parms; in btm_read_def_esco_mode()
1470 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_esco_proc_conn_chg()
1512 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_is_sco_active()
1532 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_GetNumScoLinks()
1565 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in btm_is_sco_active_by_bdaddr()