Lines Matching defs:p_dev
703 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev;
705 if (p_dev == NULL)
709 bdcpy(other_address, p_dev->bd_addr);
715 if (BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_LE) ||
716 BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_BR_EDR))
724 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr))
732 btm_remove_acl(p_dev->bd_addr, transport);
779 bta_dm_process_remove_device(p_dev->bd_addr);
798 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev;
808 if (p_dev->dc_known)
809 p_dc = (UINT8 *)p_dev->dc;
811 if (p_dev->link_key_known)
812 p_lc = (UINT8 *)p_dev->link_key;
814 if (p_dev->is_trusted)
817 while (p_dev->tm && (index < BTA_MAX_SERVICE_ID))
819 if (p_dev->tm & (UINT32)(1<<index))
825 p_dev->tm &= (UINT32)(~(1<<index));
832 if (!BTM_SecAddDevice (p_dev->bd_addr, p_dc, p_dev->bd_name, p_dev->features,
833 trusted_services_mask, p_lc, p_dev->key_type, p_dev->io_cap,
834 p_dev->pin_length))
837 (p_dev->bd_addr[0]<<24)+(p_dev->bd_addr[1]<<16)+(p_dev->bd_addr[2]<<8)+p_dev
838 (p_dev->bd_addr[4]<<8)+p_dev->bd_addr[5]);
1056 tBTA_DM_PEER_DEVICE *p_dev = NULL;
1061 p_dev = bta_dm_find_peer_device(peer_addr);
1068 if(!p_dev)
1071 p_dev->link_policy |= policy;
1072 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &(p_dev->link_policy));
1076 if(!p_dev)
1079 p_dev->link_policy &= (~policy);
1080 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &(p_dev->link_policy));
1085 bta_dm_pm_active(p_dev->peer_bdaddr);
3085 tBTA_DM_PEER_DEVICE *p_dev;
3102 p_dev = &bta_dm_cb.device_list.peer_device[i];
3104 i, p_dev->conn_state, p_dev->info, avoid_roleswitch);
3105 if((p_dev->conn_state == BTA_DM_CONNECTED) && (p_dev->info & BTA_DM_DI_AV_ACTIVE) &&
3109 if(BTM_CMD_STARTED == BTM_SwitchRole (p_dev->peer_bdaddr, HCI_ROLE_MASTER, (tBTM_CMPL_CB *)bta_dm_rs_cback))
3116 bta_dm_policy_cback(BTA_SYS_PLCY_CLR, 0, HCI_ENABLE_MASTER_SLAVE_SWITCH, p_dev->peer_bdaddr);
3145 tBTA_DM_PEER_DEVICE *p_dev;
3160 p_dev = bta_dm_find_peer_device(p_bda);
3161 if(p_dev)
3164 p_dev->info, p_data->acl_change.new_role, bta_dm_cb.device_list.count);
3165 if(p_dev->info & BTA_DM_DI_AV_ACTIVE)
3184 bta_dm_policy_cback(BTA_SYS_PLCY_CLR, 0, HCI_ENABLE_MASTER_SLAVE_SWITCH, p_dev->peer_bdaddr);
3389 tBTA_DM_PEER_DEVICE *p_dev;
3391 p_dev = bta_dm_find_peer_device(peer_addr);
3394 if(p_dev)
3400 if (p_dev->conn_state != BTA_DM_UNPAIRING)
3401 p_dev->conn_state = BTA_DM_CONNECTED;
3410 if(role > p_dev->pref_role )
3411 p_dev->pref_role = role;
3422 if(p_dev)
3423 p_dev->info |= BTA_DM_DI_AV_ACTIVE;
3430 if(p_dev)
3431 p_dev->info &= ~BTA_DM_DI_AV_ACTIVE;