Lines Matching full:p_data
1482 tBTA_DM_SEARCH *p_data = (tBTA_DM_SEARCH*)p_param;
1494 bdcpy(bd_addr.address, p_data->disc_res.bd_addr);
1497 p_data->disc_res.result, p_data->disc_res.services);
1498 if ((p_data->disc_res.result != BTA_SUCCESS) &&
1509 if ((p_data->disc_res.result == BTA_SUCCESS) && (p_data->disc_res.num_uuids > 0))
1511 prop.val = p_data->disc_res.p_uuid_list;
1512 prop.len = p_data->disc_res.num_uuids * MAX_UUID_SIZE;
1513 for (i=0; i < p_data->disc_res.num_uuids; i++)
1516 uuid_to_string_legacy((bt_uuid_t*)(p_data->disc_res.p_uuid_list + (i*MAX_UUID_SIZE)), temp);
1525 ((bdcmp(p_data->disc_res.bd_addr, pairing_cb.bd_addr) == 0) ||
1526 (bdcmp(p_data->disc_res.bd_addr, pairing_cb.static_bdaddr.address) == 0)) &&
1535 if (bdcmp(p_data->disc_res.bd_addr, pairing_cb.static_bdaddr.address) == 0)
1541 if (p_data->disc_res.num_uuids != 0)
1560 p_data->disc_ble_res.service.uu.uuid16);
1564 if (p_data->disc_ble_res.service.uu.uuid16 == UUID_SERVCLASS_LE_HID)
1572 bta_gatt_convert_uuid16_to_uuid128(uuid.uu,p_data->disc_ble_res.service.uu.uuid16);
1586 bdcpy(bd_addr.address, p_data->disc_ble_res.bd_addr);
1622 tBTA_DM_SEARCH *p_data = (tBTA_DM_SEARCH*)p_param;
1634 bdcpy(bd_addr.address, p_data->disc_res.bd_addr);
1637 p_data->disc_res.result, p_data->disc_res.services);
1643 p_data->disc_res.services &= ~BTA_USER_SERVICE_MASK;
1645 rec.channel = p_data->disc_res.result - 3;
1673 tBTA_DM_SEC *p_data = (tBTA_DM_SEC*)p_param;
1730 btif_enable_bluetooth_evt(p_data->enable.status);
1750 btif_dm_pin_req_evt(&p_data->pin_req);
1754 btif_dm_auth_cmpl_evt(&p_data->auth_cmpl);
1762 bond_state_changed(p_data->bond_cancel_cmpl.result, &bd_addr, BT_BOND_STATE_NONE);
1767 btif_dm_ssp_cfm_req_evt(&p_data->cfm_req);
1770 btif_dm_ssp_key_notif_evt(&p_data->key_notif);
1774 bdcpy(bd_addr.address, p_data->link_down.bd_addr);
1775 btm_set_bond_type_dev(p_data->link_down.bd_addr, BOND_TYPE_UNKNOWN);
1788 if (p_data
1790 if (p_data->busy_level.level_flags == BTM_BL_INQUIRY_STARTED)
1796 else if (p_data->busy_level.level_flags == BTM_BL_INQUIRY_CANCELLED)
1802 else if (p_data->busy_level.level_flags == BTM_BL_INQUIRY_COMPLETE)
1810 bdcpy(bd_addr.address, p_data->link_up.bd_addr);
1820 bdcpy(bd_addr.address, p_data->link_down.bd_addr);
1821 btm_set_bond_type_dev(p_data->link_down.bd_addr, BOND_TYPE_UNKNOWN);
1838 BTIF_TRACE_DEBUG("BTA_DM_BLE_KEY_EVT key_type=0x%02x ", p_data->ble_key.key_type);
1846 bond_state_changed(BT_STATUS_SUCCESS, (bt_bdaddr_t*)p_data->ble_key.bd_addr,
1849 else if (memcmp (pairing_cb.bd_addr, p_data->ble_key.bd_addr, BD_ADDR_LEN)!=0)
1851 BTIF_TRACE_ERROR("BD mismatch discard BLE key_type=%d ",p_data->ble_key.key_type);
1855 switch (p_data->ble_key.key_type)
1860 pairing_cb.ble.penc_key = p_data->ble_key.p_key_value->penc_key;
1866 pairing_cb.ble.pid_key = p_data->ble_key.p_key_value->pid_key;
1872 pairing_cb.ble.pcsrk_key = p_data->ble_key.p_key_value->pcsrk_key;
1878 pairing_cb.ble.lenc_key = p_data->ble_key.p_key_value->lenc_key;
1884 pairing_cb.ble.lcsrk_key = p_data->ble_key.p_key_value->lcsrk_key;
1893 BTIF_TRACE_ERROR("unknown BLE key type (0x%02x)", p_data->ble_key.key_type);
1899 btif_dm_ble_sec_req_evt(&p_data->ble_req);
1903 btif_dm_ble_key_notif_evt(&p_data->key_notif);
1907 btif_dm_ble_passkey_req_evt(&p_data->pin_req);
1911 btif_dm_ble_key_nc_req_evt(&p_data->key_notif);
1915 btif_dm_ble_oob_req_evt(&p_data->rmt_oob);
1921 &p_data->ble_id_keys.irk[0], sizeof(BT_OCTET16));
1923 &p_data->ble_id_keys.ir[0], sizeof(BT_OCTET16));
1925 &p_data->ble_id_keys.dhk[0], sizeof(BT_OCTET16));
1939 memcpy(&ble_local_key_cb.er[0], &p_data->ble_er[0], sizeof(BT_OCTET16));
1947 btif_dm_ble_auth_cmpl_evt(&p_data->auth_cmpl);
2015 btif_dm_data_free(event, p_data);
2101 void bte_dm_evt(tBTA_DM_SEC_EVT event, tBTA_DM_SEC *p_data)
2105 (void*)p_data, sizeof(tBTA_DM_SEC), btif_dm_data_copy);
2120 static void bte_search_devices_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data)
2124 if (p_data)
2131 if (p_data->inq_res.p_eir)
2138 if (p_data->disc_res.raw_data_size && p_data->disc_res.p_raw_data)
2139 param_len += p_data->disc_res.raw_data_size;
2147 p_data->inq_res.remt_name_not_required = check_eir_remote_name(p_data, NULL, NULL);
2149 btif_transfer_context (btif_dm_search_devices_evt , (UINT16) event, (void *)p_data, param_len,
2163 static void bte_dm_search_services_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data)
2166 if (p_data)
2172 if ((p_data->disc_res.result == BTA_SUCCESS) && (p_data->disc_res.num_uuids > 0)) {
2173 param_len += (p_data->disc_res.num_uuids * MAX_UUID_SIZE);
2179 btif_transfer_context(btif_dm_search_services_evt, event, (char*)p_data, param_len,
2193 static void bte_dm_remote_service_record_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data)
2196 btif_transfer_context(btif_dm_remote_service_record_evt, event, (char*)p_data, sizeof(tBTA_DM_SEARCH), NULL);