Lines Matching refs:peer_addr

38 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()
342 static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_dm_pm_cback() argument
356 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_cback()
372 bta_dm_pm_stop_timer_by_srvc_id(peer_addr, id); in bta_dm_pm_cback()
397 && !bdcmp(bta_dm_conn_srvcs.conn_srvc[j].peer_bdaddr, peer_addr)) in bta_dm_pm_cback()
439 bdcpy(bta_dm_conn_srvcs.conn_srvc[j].peer_bdaddr, peer_addr); in bta_dm_pm_cback()
453 bta_dm_pm_stop_timer(peer_addr); in bta_dm_pm_cback()
473 bta_dm_pm_ssr(peer_addr); in bta_dm_pm_cback()
478 … ((NULL != (p = BTM_ReadRemoteFeatures (peer_addr))) && HCI_SNIFF_SUB_RATE_SUPPORTED(p)) && in bta_dm_pm_cback()
484 BTM_SetSsrParams (peer_addr, 0,0,0 ); in bta_dm_pm_cback()
489 bta_dm_pm_ssr(peer_addr); in bta_dm_pm_cback()
495 bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, pm_req); in bta_dm_pm_cback()
529 static void bta_dm_pm_set_mode(BD_ADDR peer_addr, tBTA_DM_PM_ACTION pm_request, in bta_dm_pm_set_mode() argument
552 p_peer_device = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_set_mode()
563 if(!bdcmp(p_srvcs->peer_bdaddr, peer_addr)) in bta_dm_pm_set_mode()
637 … if (bta_dm_cb.pm_timer[i].in_use && bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr) == 0) in bta_dm_pm_set_mode()
675 bdcpy(bta_dm_cb.pm_timer[available_timer].peer_bdaddr, peer_addr); in bta_dm_pm_set_mode()
702 bta_dm_pm_park(peer_addr); in bta_dm_pm_set_mode()
719 bta_dm_pm_active(peer_addr); in bta_dm_pm_set_mode()
732 static BOOLEAN bta_dm_pm_park(BD_ADDR peer_addr) in bta_dm_pm_park() argument
738 BTM_ReadPowerMode(peer_addr, &mode); in bta_dm_pm_park()
742 BTM_SetPowerMode (bta_dm_cb.pm_id, peer_addr, &p_bta_dm_pm_md[BTA_DM_PM_PARK_IDX]); in bta_dm_pm_park()
828 static void bta_dm_pm_ssr(BD_ADDR peer_addr) in bta_dm_pm_ssr() argument
837 if(!bdcmp(bta_dm_conn_srvcs.conn_srvc[i].peer_bdaddr, peer_addr)) in bta_dm_pm_ssr()
861 … if (bta_hh_read_ssr_param(peer_addr, &p_spec_cur->max_lat, &p_spec_cur->min_rmt_to) == BTA_HH_ERR) in bta_dm_pm_ssr()
885 if (bdcmp(bta_dm_conn_srvcs.conn_srvc[idx].peer_bdaddr, peer_addr) == 0) in bta_dm_pm_ssr()
894 BTM_SetSsrParams (peer_addr, p_spec->max_lat, in bta_dm_pm_ssr()
909 void bta_dm_pm_active(BD_ADDR peer_addr) in bta_dm_pm_active() argument
917 BTM_SetPowerMode (bta_dm_cb.pm_id, peer_addr, &pm); in bta_dm_pm_active()
1126 tBTA_DM_PEER_DEVICE * bta_dm_find_peer_device(BD_ADDR peer_addr) in bta_dm_find_peer_device() argument
1132 if(!bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, peer_addr)) in bta_dm_find_peer_device()