Home
last modified time | relevance | path

Searched refs:peer_addr (Results 1 – 25 of 49) sorted by relevance

12

/system/bt/bta/sys/
Dbta_sys_conn.c202 void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_open() argument
207 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
214 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
232 void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_close() argument
237 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
244 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
261 void bta_sys_app_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_app_open() argument
265 bta_sys_cb.ppm_cb(BTA_SYS_APP_OPEN, id, app_id, peer_addr); in bta_sys_app_open()
281 void bta_sys_app_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_app_close() argument
285 bta_sys_cb.ppm_cb(BTA_SYS_APP_CLOSE, id, app_id, peer_addr); in bta_sys_app_close()
[all …]
Dbta_sys.h141 … void (tBTA_SYS_CONN_CBACK)(tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
246 extern void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
247 extern void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
248 extern void bta_sys_app_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
249 extern void bta_sys_app_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
250 extern void bta_sys_sco_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
251 extern void bta_sys_sco_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
252 extern void bta_sys_sco_use(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
253 extern void bta_sys_sco_unuse(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
254 extern void bta_sys_idle(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
[all …]
/system/bt/bta/dm/
Dbta_dm_pm.c38 static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
39 static void bta_dm_pm_set_mode(BD_ADDR peer_addr, tBTA_DM_PM_ACTION pm_mode,
43 static BOOLEAN bta_dm_pm_park(BD_ADDR peer_addr);
58 static void bta_dm_pm_ssr(BD_ADDR peer_addr);
158 static void bta_dm_pm_stop_timer(BD_ADDR peer_addr) in bta_dm_pm_stop_timer() argument
164 if (bta_dm_cb.pm_timer[i].in_use && !bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr)) in bta_dm_pm_stop_timer()
218 static void bta_dm_pm_stop_timer_by_mode(BD_ADDR peer_addr, UINT8 power_mode) in bta_dm_pm_stop_timer_by_mode() argument
226 if (bta_dm_cb.pm_timer[i].in_use && !bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr)) in bta_dm_pm_stop_timer_by_mode()
254 static void bta_dm_pm_stop_timer_by_srvc_id(BD_ADDR peer_addr, UINT8 srvc_id) in bta_dm_pm_stop_timer_by_srvc_id() argument
258 if (bta_dm_cb.pm_timer[i].in_use && !bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr)) in bta_dm_pm_stop_timer_by_srvc_id()
[all …]
/system/bt/bta/ag/
Dbta_ag_act.c105 bdcpy(open.bd_addr, p_scb->peer_addr); in bta_ag_cback_open()
207 bdcpy(p_scb->peer_addr, p_data->api_open.bd_addr); in bta_ag_start_open()
218 bta_ag_collision_cback (0, BTA_ID_AG, 0, p_scb->peer_addr); in bta_ag_start_open()
344 bdcpy(p_scb->peer_addr, bd_addr_null); in bta_ag_disc_fail()
392 bdcpy(p_scb->peer_addr, bd_addr_null); in bta_ag_rfc_fail()
443 bdcpy(close.bd_addr, p_scb->peer_addr); in bta_ag_rfc_close()
445 bta_sys_conn_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
457 bdcpy(p_scb->peer_addr, bd_addr_null); in bta_ag_rfc_close()
482 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
524 bta_sys_conn_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_open()
[all …]
Dbta_ag_main.c455 UINT16 bta_ag_idx_by_bdaddr(BD_ADDR peer_addr) in bta_ag_idx_by_bdaddr() argument
460 if (peer_addr != NULL) in bta_ag_idx_by_bdaddr()
464 if (p_scb->in_use && !bdcmp(peer_addr, p_scb->peer_addr)) in bta_ag_idx_by_bdaddr()
584 UINT8 app_id, BD_ADDR peer_addr) in bta_ag_collision_cback() argument
592 handle = bta_ag_idx_by_bdaddr (peer_addr); in bta_ag_collision_cback()
Dbta_ag_int.h254 BD_ADDR peer_addr; /* peer bd address */ member
355 extern UINT16 bta_ag_idx_by_bdaddr(BD_ADDR peer_addr);
362 UINT8 app_id, BD_ADDR peer_addr);
Dbta_ag_sco.c551 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_create_sco()
592 p_bd_addr = p_scb->peer_addr; in bta_ag_create_sco()
673 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_codec_negotiate()
1451 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_open()
1527 bta_sys_sco_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close()
1534 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close()
1599 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_rsp()
/system/bt/bta/hf_client/
Dbta_hf_client_act.c143 bta_dm_pm_active(bta_hf_client_cb.scb.peer_addr); in bta_hf_client_start_close()
144 L2CA_SetIdleTimeoutByBdAddr(bta_hf_client_cb.scb.peer_addr, 0, BT_TRANSPORT_BR_EDR); in bta_hf_client_start_close()
177 bdcpy(bta_hf_client_cb.scb.peer_addr, p_data->api_open.bd_addr); in bta_hf_client_start_open()
187 bta_hf_client_collision_cback (0, BTA_ID_HS, 0, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_start_open()
226 bdcpy(evt.open.bd_addr, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_cback_open()
246 bta_sys_conn_open(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_rfc_open()
286 if (bdcmp (dev_addr, bta_hf_client_cb.scb.peer_addr) == 0) in bta_hf_client_rfc_acp_open()
298 bdcpy (bta_hf_client_cb.scb.peer_addr, dev_addr); in bta_hf_client_rfc_acp_open()
403 bta_sys_conn_close(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_rfc_close()
412 bdcpy(bta_hf_client_cb.scb.peer_addr, bd_addr_null); in bta_hf_client_rfc_close()
[all …]
Dbta_hf_client_sco.c166 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_rsp()
223 if (rem_bd && bdcmp(bta_hf_client_cb.scb.peer_addr, rem_bd) == 0 && in bta_hf_client_sco_conn_cback()
314 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_create()
321 p_bd_addr = bta_hf_client_cb.scb.peer_addr; in bta_hf_client_sco_create()
629 bta_sys_sco_open(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_open()
670 bta_sys_sco_close(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_close()
672 bta_sys_sco_unuse(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_close()
Dbta_hf_client_int.h142 BD_ADDR peer_addr; /* peer bd address */ member
208 UINT8 app_id, BD_ADDR peer_addr);
/system/bt/bta/av/
Dbta_av_act.c215 static void bta_av_rc_ctrl_cback(UINT8 handle, UINT8 event, UINT16 result, BD_ADDR peer_addr) in bta_av_rc_ctrl_cback() argument
242 if (peer_addr) in bta_av_rc_ctrl_cback()
243 bdcpy(p_msg->peer_addr, peer_addr); in bta_av_rc_ctrl_cback()
315 bda = p_scb->peer_addr; in bta_av_rc_create()
502 if (p_scb && bdcmp(p_scb->peer_addr, p_data->rc_conn_chg.peer_addr) == 0) in bta_av_rc_opened()
550 bdcpy(p_lcb->addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
563 bdcpy(rc_open.peer_addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
1131 L2CA_SetAclPriority(p_scb->peer_addr, L2CAP_PRIORITY_HIGH); in bta_av_stream_chg()
1157 && bdcmp(p_scbi->peer_addr, p_scb->peer_addr) == 0) in bta_av_stream_chg()
1172 L2CA_SetAclPriority(p_scb->peer_addr, L2CAP_PRIORITY_NORMAL); in bta_av_stream_chg()
[all …]
Dbta_av_aact.c297 if(bdcmp(p_scb->peer_addr, b) != 0) in bta_av_save_addr()
307 bdcpy(p_scb->peer_addr, b); in bta_av_save_addr()
407 (*p_req)(p_scb->peer_addr, in bta_av_next_getcap()
840 bta_sys_idle(BTA_ID_AV, bta_av_cb.audio_open_cnt, p_scb->peer_addr); in bta_av_role_res()
866 bdcpy(av_open.bd_addr, p_scb->peer_addr); in bta_av_role_res()
999 bta_sys_app_open(BTA_ID_AV, p_scb->app_id, p_scb->peer_addr); in bta_av_do_disc_a2d()
1030 if (A2D_FindService(sdp_uuid, p_scb->peer_addr, &db_params, in bta_av_do_disc_a2d()
1098 bdcpy(msg.peer_addr, p_scb->peer_addr); in bta_av_cleanup()
1186 p_scb->peer_addr, in bta_av_config_ind()
1197 p_scb->peer_addr, in bta_av_config_ind()
[all …]
Dbta_av_main.c170 app_id, BD_ADDR peer_addr);
171 …c void bta_av_sys_rs_cback (tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
274 if(!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) in bta_av_addr_to_scb()
862 … L2CA_SetFlushTimeout(p_scbi->peer_addr, p_bta_av_cfg->p_audio_flush_to[p_scbi->co_started - 1] ); in bta_av_chk_start()
895 … bta_sys_set_policy(BTA_ID_AV, HCI_ENABLE_MASTER_SLAVE_SWITCH, p_cb->p_scb[i]->peer_addr); in bta_av_restore_switch()
911 …ic void bta_av_sys_rs_cback (tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_av_sys_rs_cback() argument
925 if (p_scb && (bdcmp (peer_addr, p_scb->peer_addr) == 0)) { in bta_av_sys_rs_cback()
947 (BTM_GetRole (peer_addr, &cur_role) == BTM_SUCCESS) && in bta_av_sys_rs_cback()
950 bta_sys_set_policy(BTA_ID_AV, HCI_ENABLE_MASTER_SLAVE_SWITCH, peer_addr); in bta_av_sys_rs_cback()
991 app_id, BD_ADDR peer_addr) in bta_av_sco_chg_cback() argument
[all …]
/system/bt/stack/avct/
Davct_lcb_act.c187 BTM_SetOutService(p_lcb->peer_addr, BTM_SEC_SERVICE_AVCTP, 0); in avct_lcb_chnl_open()
190 if ((p_lcb->ch_lcid = L2CA_ConnectReq(AVCT_PSM, p_lcb->peer_addr)) == 0) in avct_lcb_chnl_open()
244 0, p_lcb->peer_addr); in avct_lcb_open_ind()
255 0, p_lcb->peer_addr); in avct_lcb_open_ind()
288 p_data->result, p_lcb->peer_addr); in avct_lcb_open_fail()
317 0, p_lcb->peer_addr); in avct_lcb_close_ind()
323 0, p_lcb->peer_addr); in avct_lcb_close_ind()
363 avct_ccb_dealloc(p_ccb, event, p_data->result, p_lcb->peer_addr); in avct_lcb_close_cfm()
369 p_data->result, p_lcb->peer_addr); in avct_lcb_close_cfm()
389 AVCT_CONNECT_CFM_EVT, 0, p_lcb->peer_addr); in avct_lcb_bind_conn()
[all …]
Davct_api.c133 UINT16 AVCT_CreateConn(UINT8 *p_handle, tAVCT_CC *p_cc, BD_ADDR peer_addr) in AVCT_CreateConn() argument
155 if ((p_lcb = avct_lcb_by_bd(peer_addr)) == NULL) in AVCT_CreateConn()
157 if ((p_lcb = avct_lcb_alloc(peer_addr)) == NULL) in AVCT_CreateConn()
/system/bt/stack/include/
Davct_api.h104 BD_ADDR peer_addr);
177 BD_ADDR peer_addr);
Davrc_api.h152 BD_ADDR peer_addr);
302 BD_ADDR_PTR peer_addr);
/system/bt/btif/co/
Dbta_pan_co.c76 tBTA_PAN_ROLE peer_role, BD_ADDR peer_addr) in bta_pan_co_open() argument
80 btpan_conn_t* conn = btpan_find_conn_addr(peer_addr); in bta_pan_co_open()
82 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open()
/system/bt/stack/mcap/
Dmca_csm.c231 …if (p_ccb_tmp->state != MCA_CCB_NULL_ST && memcmp(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN) == 0) in mca_ccb_by_bd()
272 memcpy(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN); in mca_ccb_alloc()
312 memcpy (evt_data.disconnect_ind.bd_addr, p_ccb->peer_addr, BD_ADDR_LEN); in mca_ccb_dealloc()
/system/bt/stack/avdt/
Davdt_l2c.c221 … L2CA_ConnectRsp (p_ccb->peer_addr, p_tbl->id, lcid, L2CAP_CONN_PENDING, L2CAP_CONN_OK); in avdt_l2c_connect_ind_cback()
333 … if (interop_match_addr(INTEROP_2MBPS_LINK_ONLY, (const bt_bdaddr_t *) &p_ccb->peer_addr)) { in avdt_l2c_connect_cfm_cback()
335 … tACL_CONN *p_acl_cb = btm_bda_to_acl(p_ccb->peer_addr, BT_TRANSPORT_BR_EDR); in avdt_l2c_connect_cfm_cback()
343 btm_sec_mx_access_request (p_ccb->peer_addr, AVDT_PSM, in avdt_l2c_connect_cfm_cback()
Davdt_ccb_act.c84 BTM_SetOutService(p_ccb->peer_addr, BTM_SEC_SERVICE_AVDTP, AVDT_CHAN_SIG); in avdt_ccb_chan_open()
204 (*p_ccb->proc_cback)(0, p_ccb->peer_addr, AVDT_DISCOVER_CFM_EVT, in avdt_ccb_hdl_discover_rsp()
251 (*p_ccb->proc_cback)(0, p_ccb->peer_addr, AVDT_GETCAP_CFM_EVT, in avdt_ccb_hdl_getcap_rsp()
1077 memcpy(bd_addr, p_ccb->peer_addr, BD_ADDR_LEN); in avdt_ccb_ll_closed()
1114 (*p_ccb->p_conn_cback)(0, p_ccb->peer_addr, AVDT_CONNECT_IND_EVT, &avdt_ctrl); in avdt_ccb_ll_opened()
Davdt_scb_act.c842 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_setconfig_cmd()
926 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_start_cmd()
944 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_start_rsp()
964 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_suspend_cmd()
982 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_suspend_rsp()
1012 memcpy (remote_addr, p_ccb->peer_addr, BD_ADDR_LEN); in avdt_scb_hdl_tc_close()
1072 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_delay_rpt_cmd()
1095 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_delay_rpt_rsp()
1125 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_tc_close_sto()
1175 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_tc_open()
[all …]
/system/bt/bta/include/
Dbta_hh_co.h51 UINT8 ctry_code, BD_ADDR peer_addr, UINT8 app_id);
Dbta_pan_co.h81 …UINT16 handle, UINT8 app_id, tBTA_PAN_ROLE local_role, tBTA_PAN_ROLE peer_role, BD_ADDR peer_addr);
/system/bt/btif/src/
Dbtif_av.c146 extern BOOLEAN btif_rc_get_connected_peer(BD_ADDR peer_addr);
148 extern void btif_rc_check_handle_pending_play (BD_ADDR peer_addr, BOOLEAN bSendToApp);
226 BD_ADDR peer_addr; in btif_initiate_av_open_timer_timeout() local
230 if (btif_rc_get_connected_peer(peer_addr)) { in btif_initiate_av_open_timer_timeout()
233 connect_req.target_bda = (bt_bdaddr_t*)&peer_addr; in btif_initiate_av_open_timer_timeout()
519 BD_ADDR peer_addr; in btif_av_state_opening_handler() local
520 if ((btif_rc_get_connected_peer(peer_addr)) in btif_av_state_opening_handler()
521 &&(!bdcmp(btif_av_cb.peer_bda.address, peer_addr))) in btif_av_state_opening_handler()

12