Lines Matching refs:peer_device

537             transport = bta_dm_cb.device_list.peer_device[i].transport;  in bta_dm_disable_timer_cback()
539 btm_remove_acl(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, transport); in bta_dm_disable_timer_cback()
724 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)) in bta_dm_remove_device()
729 transport = bta_dm_cb.device_list.peer_device[i].transport; in bta_dm_remove_device()
731 bta_dm_cb.device_list.peer_device[i].conn_state = BTA_DM_UNPAIRING; in bta_dm_remove_device()
735 bta_dm_cb.device_list.peer_device[i].transport); in bta_dm_remove_device()
738 if(bta_dm_cb.device_list.peer_device[i].transport == BT_TRANSPORT_LE) in bta_dm_remove_device()
763 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, other_address)) in bta_dm_remove_device()
765 bta_dm_cb.device_list.peer_device[i].conn_state = BTA_DM_UNPAIRING; in bta_dm_remove_device()
766 btm_remove_acl(other_address,bta_dm_cb.device_list.peer_device[i].transport); in bta_dm_remove_device()
862 … if (!bdcmp( bta_dm_cb.device_list.peer_device[index].peer_bdaddr, p_remove_acl->bd_addr)) in bta_dm_close_acl()
868 bta_dm_cb.device_list.peer_device[index].remove_dev_pending = TRUE; in bta_dm_close_acl()
912 bdcpy(addr, bta_dm_cb.device_list.peer_device[i].peer_bdaddr); in bta_dm_remove_all_acl()
914 transport = bta_dm_cb.device_list.peer_device[i].transport; in bta_dm_remove_all_acl()
3102 p_dev = &bta_dm_cb.device_list.peer_device[i]; in bta_dm_check_av()
3214 if (!bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_bda) in bta_dm_acl_change()
3216 && bta_dm_cb.device_list.peer_device[i].conn_handle == p_data->acl_change.handle in bta_dm_acl_change()
3227 … bdcpy(bta_dm_cb.device_list.peer_device[bta_dm_cb.device_list.count].peer_bdaddr, p_bda); in bta_dm_acl_change()
3228 … bta_dm_cb.device_list.peer_device[bta_dm_cb.device_list.count].link_policy = bta_dm_cb.cur_policy; in bta_dm_acl_change()
3231 bta_dm_cb.device_list.peer_device[i].conn_handle = p_data->acl_change.handle; in bta_dm_acl_change()
3241 bta_dm_cb.device_list.peer_device[i].conn_state = BTA_DM_CONNECTED; in bta_dm_acl_change()
3242 bta_dm_cb.device_list.peer_device[i].pref_role = BTA_ANY_ROLE; in bta_dm_acl_change()
3244 bta_dm_cb.device_list.peer_device[i].info = BTA_DM_DI_NONE; in bta_dm_acl_change()
3247 bta_dm_cb.device_list.peer_device[i].transport = p_data->acl_change.transport; in bta_dm_acl_change()
3254 bta_dm_cb.device_list.peer_device[i].info = BTA_DM_DI_USE_SSR; in bta_dm_acl_change()
3256 APPL_TRACE_WARNING("%s info: 0x%x", __func__, bta_dm_cb.device_list.peer_device[i].info); in bta_dm_acl_change()
3263 if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_bda) in bta_dm_acl_change()
3265 ||bta_dm_cb.device_list.peer_device[i].transport != p_data->acl_change.transport in bta_dm_acl_change()
3270 if( bta_dm_cb.device_list.peer_device[i].conn_state == BTA_DM_UNPAIRING ) in bta_dm_acl_change()
3272 if (BTM_SecDeleteDevice(bta_dm_cb.device_list.peer_device[i].peer_bdaddr)) in bta_dm_acl_change()
3278 conn.link_down.is_removed = bta_dm_cb.device_list.peer_device[i].remove_dev_pending; in bta_dm_acl_change()
3282 …mcpy(&bta_dm_cb.device_list.peer_device[i], &bta_dm_cb.device_list.peer_device[i+1], sizeof(bta_dm… in bta_dm_acl_change()
3477 if (bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, remote_bd_addr) == 0) in bta_dm_reset_sec_dev_pending()
3479 bta_dm_cb.device_list.peer_device[i].remove_dev_pending = FALSE; in bta_dm_reset_sec_dev_pending()
3506 if (!bdcmp( bta_dm_cb.device_list.peer_device[index].peer_bdaddr, remote_bd_addr)) in bta_dm_remove_sec_dev_entry()
3511 bta_dm_cb.device_list.peer_device[index].remove_dev_pending = TRUE; in bta_dm_remove_sec_dev_entry()
3567 if (bta_dm_cb.device_list.peer_device[i].conn_state == BTA_DM_CONNECTED in bta_dm_adjust_roles()
3569 && bta_dm_cb.device_list.peer_device[i].transport == BT_TRANSPORT_BR_EDR in bta_dm_adjust_roles()
3573 … if(!set_master_role && (bta_dm_cb.device_list.peer_device[i].pref_role != BTA_ANY_ROLE) in bta_dm_adjust_roles()
3580 if((bta_dm_cb.device_list.peer_device[i].pref_role == BTA_MASTER_ROLE_ONLY) in bta_dm_adjust_roles()
3590 if (bta_dm_cb.device_list.peer_device[i].pref_role != BTA_SLAVE_ROLE_ONLY && in bta_dm_adjust_roles()
3593 BTM_SwitchRole (bta_dm_cb.device_list.peer_device[i].peer_bdaddr, in bta_dm_adjust_roles()
4163 if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, bd_addr) == 0 && in bta_dm_encrypt_cback()
4164 bta_dm_cb.device_list.peer_device[i].conn_state == BTA_DM_CONNECTED) in bta_dm_encrypt_cback()
4170 p_callback = bta_dm_cb.device_list.peer_device[i].p_encrypt_cback; in bta_dm_encrypt_cback()
4171 bta_dm_cb.device_list.peer_device[i].p_encrypt_cback = NULL; in bta_dm_encrypt_cback()
4221 …if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_data->set_encryption.bd_addr) == 0 … in bta_dm_set_encryption()
4222 bta_dm_cb.device_list.peer_device[i].conn_state == BTA_DM_CONNECTED) in bta_dm_set_encryption()
4227 if (bta_dm_cb.device_list.peer_device[i].p_encrypt_cback) in bta_dm_set_encryption()
4240 … bta_dm_cb.device_list.peer_device[i].p_encrypt_cback = p_data->set_encryption.p_callback; in bta_dm_set_encryption()