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.h140 … 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.c36 static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
37 static void bta_dm_pm_set_mode(BD_ADDR peer_addr, tBTA_DM_PM_ACTION pm_mode,
41 static BOOLEAN bta_dm_pm_park(BD_ADDR peer_addr);
55 static void bta_dm_pm_ssr(BD_ADDR peer_addr);
155 static void bta_dm_pm_stop_timer(BD_ADDR peer_addr) in bta_dm_pm_stop_timer() argument
161 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()
215 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
223 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()
251 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
255 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()
389 bdcpy(p_scb->peer_addr, bd_addr_null); in bta_ag_rfc_fail()
440 bdcpy(close.bd_addr, p_scb->peer_addr); in bta_ag_rfc_close()
442 bta_sys_conn_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
454 bdcpy(p_scb->peer_addr, bd_addr_null); in bta_ag_rfc_close()
479 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
521 bta_sys_conn_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_open()
576 if (bdcmp (dev_addr, ag_scb->peer_addr) == 0) in bta_ag_rfc_acp_open()
[all …]
Dbta_ag_main.c472 UINT16 bta_ag_idx_by_bdaddr(BD_ADDR peer_addr) in bta_ag_idx_by_bdaddr() argument
477 if (peer_addr != NULL) in bta_ag_idx_by_bdaddr()
481 if (p_scb->in_use && !bdcmp(peer_addr, p_scb->peer_addr)) in bta_ag_idx_by_bdaddr()
611 UINT8 app_id, BD_ADDR peer_addr) in bta_ag_collision_cback() argument
619 handle = bta_ag_idx_by_bdaddr (peer_addr); in bta_ag_collision_cback()
Dbta_ag_int.h255 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.c559 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_create_sco()
600 p_bd_addr = p_scb->peer_addr; in bta_ag_create_sco()
689 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_codec_negotiate()
1465 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_open()
1541 bta_sys_sco_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close()
1548 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close()
1613 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()
289 if (bdcmp (dev_addr, bta_hf_client_cb.scb.peer_addr) == 0) in bta_hf_client_rfc_acp_open()
301 bdcpy (bta_hf_client_cb.scb.peer_addr, dev_addr); in bta_hf_client_rfc_acp_open()
406 bta_sys_conn_close(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_rfc_close()
415 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()
224 if (rem_bd && bdcmp(bta_hf_client_cb.scb.peer_addr, rem_bd) == 0 && in bta_hf_client_sco_conn_cback()
322 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_create()
329 p_bd_addr = bta_hf_client_cb.scb.peer_addr; in bta_hf_client_sco_create()
637 bta_sys_sco_open(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_open()
678 bta_sys_sco_close(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_close()
680 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
209 UINT8 app_id, BD_ADDR peer_addr);
/system/bt/bta/av/
Dbta_av_act.c210 static void bta_av_rc_ctrl_cback(UINT8 handle, UINT8 event, UINT16 result, BD_ADDR peer_addr) in bta_av_rc_ctrl_cback() argument
239 if(peer_addr) in bta_av_rc_ctrl_cback()
240 bdcpy(p_msg->peer_addr, peer_addr); in bta_av_rc_ctrl_cback()
314 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()
551 bdcpy(p_lcb->addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
564 bdcpy(rc_open.peer_addr, p_data->rc_conn_chg.peer_addr); in bta_av_rc_opened()
1108 L2CA_SetAclPriority(p_scb->peer_addr, L2CAP_PRIORITY_HIGH); in bta_av_stream_chg()
1134 && bdcmp(p_scbi->peer_addr, p_scb->peer_addr) == 0) in bta_av_stream_chg()
1149 L2CA_SetAclPriority(p_scb->peer_addr, L2CAP_PRIORITY_NORMAL); in bta_av_stream_chg()
[all …]
Dbta_av_aact.c291 if(bdcmp(p_scb->peer_addr, b) != 0) in bta_av_save_addr()
301 bdcpy(p_scb->peer_addr, b); in bta_av_save_addr()
406 (*p_req)(p_scb->peer_addr, in bta_av_next_getcap()
849 bta_sys_idle(BTA_ID_AV, bta_av_cb.audio_open_cnt, p_scb->peer_addr); in bta_av_role_res()
875 bdcpy(av_open.bd_addr, p_scb->peer_addr); in bta_av_role_res()
1007 bta_sys_app_open(BTA_ID_AV, p_scb->app_id, p_scb->peer_addr); in bta_av_do_disc_a2d()
1032 if(A2D_FindService(sdp_uuid, p_scb->peer_addr, &db_params, in bta_av_do_disc_a2d()
1095 bdcpy(msg.peer_addr, p_scb->peer_addr); in bta_av_cleanup()
1183 p_scb->peer_addr, in bta_av_config_ind()
1194 p_scb->peer_addr, in bta_av_config_ind()
[all …]
Dbta_av_main.c167 app_id, BD_ADDR peer_addr);
168 …c void bta_av_sys_rs_cback (tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
302 if(!bdcmp(bd_addr, bta_av_cb.p_scb[xx]->peer_addr)) in bta_av_addr_to_scb()
886 … L2CA_SetFlushTimeout(p_scbi->peer_addr, p_bta_av_cfg->p_audio_flush_to[p_scbi->co_started - 1] ); in bta_av_chk_start()
919 … bta_sys_set_policy(BTA_ID_AV, HCI_ENABLE_MASTER_SLAVE_SWITCH, p_cb->p_scb[i]->peer_addr); in bta_av_restore_switch()
935 …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
950 if (p_scb && (bdcmp (peer_addr, p_scb->peer_addr) == 0) && in bta_av_sys_rs_cback()
972 (BTM_GetRole (peer_addr, &cur_role) == BTM_SUCCESS) && in bta_av_sys_rs_cback()
975 bta_sys_set_policy(BTA_ID_AV, HCI_ENABLE_MASTER_SLAVE_SWITCH, peer_addr); in bta_av_sys_rs_cback()
1016 app_id, BD_ADDR peer_addr) in bta_av_sco_chg_cback() argument
[all …]
/system/bt/stack/avct/
Davct_lcb_act.c194 BTM_SetOutService(p_lcb->peer_addr, BTM_SEC_SERVICE_AVCTP, 0); in avct_lcb_chnl_open()
197 if ((p_lcb->ch_lcid = L2CA_ConnectReq(AVCT_PSM, p_lcb->peer_addr)) == 0) in avct_lcb_chnl_open()
251 0, p_lcb->peer_addr); in avct_lcb_open_ind()
262 0, p_lcb->peer_addr); in avct_lcb_open_ind()
295 p_data->result, p_lcb->peer_addr); in avct_lcb_open_fail()
324 0, p_lcb->peer_addr); in avct_lcb_close_ind()
330 0, p_lcb->peer_addr); in avct_lcb_close_ind()
370 avct_ccb_dealloc(p_ccb, event, p_data->result, p_lcb->peer_addr); in avct_lcb_close_cfm()
376 p_data->result, p_lcb->peer_addr); in avct_lcb_close_cfm()
396 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()
Davct_lcb.c288 if (p_lcb->allocated && (!memcmp(p_lcb->peer_addr, bd_addr, BD_ADDR_LEN))) in avct_lcb_by_bd()
325 memcpy(p_lcb->peer_addr, bd_addr, BD_ADDR_LEN); in avct_lcb_alloc()
/system/bt/stack/include/
Davct_api.h104 BD_ADDR peer_addr);
177 BD_ADDR peer_addr);
Davrc_api.h146 BD_ADDR peer_addr);
295 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.c235 …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()
275 memcpy(p_ccb_tmp->peer_addr, bd_addr, BD_ADDR_LEN); in mca_ccb_alloc()
315 memcpy (evt_data.disconnect_ind.bd_addr, p_ccb->peer_addr, BD_ADDR_LEN); in mca_ccb_dealloc()
/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/stack/avdt/
Davdt_ccb_act.c92 BTM_SetOutService(p_ccb->peer_addr, BTM_SEC_SERVICE_AVDTP, AVDT_CHAN_SIG); in avdt_ccb_chan_open()
207 (*p_ccb->proc_cback)(0, p_ccb->peer_addr, AVDT_DISCOVER_CFM_EVT, in avdt_ccb_hdl_discover_rsp()
254 (*p_ccb->proc_cback)(0, p_ccb->peer_addr, AVDT_GETCAP_CFM_EVT, in avdt_ccb_hdl_getcap_rsp()
1089 memcpy(bd_addr, p_ccb->peer_addr, BD_ADDR_LEN); in avdt_ccb_ll_closed()
1126 (*p_ccb->p_conn_cback)(0, p_ccb->peer_addr, AVDT_CONNECT_IND_EVT, &avdt_ctrl); in avdt_ccb_ll_opened()
Davdt_scb_act.c836 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_setconfig_cmd()
920 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_start_cmd()
938 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_start_rsp()
958 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_suspend_cmd()
976 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_suspend_rsp()
1006 memcpy (remote_addr, p_ccb->peer_addr, BD_ADDR_LEN); in avdt_scb_hdl_tc_close()
1071 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_delay_rpt_cmd()
1094 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : NULL, in avdt_scb_hdl_delay_rpt_rsp()
1124 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/btif/src/
Dbtif_av.c153 extern BOOLEAN btif_rc_get_connected_peer(BD_ADDR peer_addr);
154 extern void btif_rc_check_handle_pending_play (BD_ADDR peer_addr, BOOLEAN bSendToApp);
225 BD_ADDR peer_addr; in btif_initiate_av_open_tmr_hdlr() local
230 if (btif_rc_get_connected_peer(peer_addr)) { in btif_initiate_av_open_tmr_hdlr()
233 connect_req.target_bda = (bt_bdaddr_t*)&peer_addr; in btif_initiate_av_open_tmr_hdlr()

12