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