Lines Matching refs:evt_data
1895 tBTM_SP_UPGRADE evt_data; in btm_sec_check_upgrade() local
1896 evt_data.bd_addr = p_dev_rec->bd_addr; in btm_sec_check_upgrade()
1897 evt_data.upgrade = true; in btm_sec_check_upgrade()
1900 (tBTM_SP_EVT_DATA*)&evt_data); in btm_sec_check_upgrade()
1902 BTM_TRACE_DEBUG("evt_data.upgrade:0x%x", evt_data.upgrade); in btm_sec_check_upgrade()
1903 if (evt_data.upgrade) { in btm_sec_check_upgrade()
3131 tBTM_SP_IO_REQ evt_data; in btm_io_capabilities_req() local
3137 evt_data.bd_addr = p; in btm_io_capabilities_req()
3142 evt_data.io_cap = btm_cb.devcb.loc_io_caps; in btm_io_capabilities_req()
3143 evt_data.oob_data = BTM_OOB_NONE; in btm_io_capabilities_req()
3144 evt_data.auth_req = BTM_DEFAULT_AUTH_REQ; in btm_io_capabilities_req()
3156 p_dev_rec = btm_find_or_alloc_dev(evt_data.bd_addr); in btm_io_capabilities_req()
3195 evt_data.auth_req = BTM_DEFAULT_DD_AUTH_REQ; in btm_io_capabilities_req()
3202 if (evt_data.bd_addr == btm_cb.pairing_bda) { in btm_io_capabilities_req()
3203 evt_data.auth_req = BTM_DEFAULT_DD_AUTH_REQ; in btm_io_capabilities_req()
3237 btsnd_hcic_io_cap_req_neg_reply(evt_data.bd_addr, err_code); in btm_io_capabilities_req()
3241 evt_data.is_orig = is_orig; in btm_io_capabilities_req()
3250 evt_data.auth_req = BTM_AUTH_SP_YES; in btm_io_capabilities_req()
3252 evt_data.auth_req = in btm_io_capabilities_req()
3261 l2c_pin_code_request(evt_data.bd_addr); in btm_io_capabilities_req()
3263 btm_cb.pairing_bda = evt_data.bd_addr; in btm_io_capabilities_req()
3265 if (evt_data.bd_addr == btm_cb.connecting_bda) in btm_io_capabilities_req()
3276 evt_data.auth_req = BTM_AUTH_SPGB_YES; in btm_io_capabilities_req()
3280 (tBTM_SP_EVT_DATA*)&evt_data); in btm_io_capabilities_req()
3283 if ((callback_rc == BTM_SUCCESS) || (BTM_OOB_UNKNOWN != evt_data.oob_data)) { in btm_io_capabilities_req()
3285 evt_data.auth_req = in btm_io_capabilities_req()
3286 (BTM_AUTH_DD_BOND | (evt_data.auth_req & BTM_AUTH_YN_BIT)); in btm_io_capabilities_req()
3292 evt_data.auth_req |= BTM_AUTH_YN_BIT; in btm_io_capabilities_req()
3295 evt_data.auth_req); in btm_io_capabilities_req()
3302 btm_cb.devcb.loc_auth_req = evt_data.auth_req; in btm_io_capabilities_req()
3303 btm_cb.devcb.loc_io_caps = evt_data.io_cap; in btm_io_capabilities_req()
3307 evt_data.io_cap, evt_data.oob_data, evt_data.auth_req); in btm_io_capabilities_req()
3309 btsnd_hcic_io_cap_req_reply(evt_data.bd_addr, evt_data.io_cap, in btm_io_capabilities_req()
3310 evt_data.oob_data, evt_data.auth_req); in btm_io_capabilities_req()
3326 tBTM_SP_IO_RSP evt_data; in btm_io_capabilities_rsp() local
3328 STREAM_TO_BDADDR(evt_data.bd_addr, p); in btm_io_capabilities_rsp()
3329 STREAM_TO_UINT8(evt_data.io_cap, p); in btm_io_capabilities_rsp()
3330 STREAM_TO_UINT8(evt_data.oob_data, p); in btm_io_capabilities_rsp()
3331 STREAM_TO_UINT8(evt_data.auth_req, p); in btm_io_capabilities_rsp()
3334 p_dev_rec = btm_find_or_alloc_dev(evt_data.bd_addr); in btm_io_capabilities_rsp()
3338 btm_cb.pairing_bda = evt_data.bd_addr; in btm_io_capabilities_rsp()
3350 l2c_pin_code_request(evt_data.bd_addr); in btm_io_capabilities_rsp()
3354 if (evt_data.bd_addr == btm_cb.connecting_bda) in btm_io_capabilities_rsp()
3361 && (evt_data.auth_req & in btm_io_capabilities_rsp()
3368 p_dev_rec->rmt_io_caps = evt_data.io_cap; in btm_io_capabilities_rsp()
3369 p_dev_rec->rmt_auth_req = evt_data.auth_req; in btm_io_capabilities_rsp()
3373 (tBTM_SP_EVT_DATA*)&evt_data); in btm_io_capabilities_rsp()
3390 tBTM_SP_EVT_DATA evt_data; in btm_proc_sp_req_evt() local
3391 RawAddress& p_bda = evt_data.cfm_req.bd_addr; in btm_proc_sp_req_evt()
3403 evt_data.cfm_req.bd_addr = p_dev_rec->bd_addr; in btm_proc_sp_req_evt()
3404 memcpy(evt_data.cfm_req.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_proc_sp_req_evt()
3406 strlcpy((char*)evt_data.cfm_req.bd_name, (char*)p_dev_rec->sec_bd_name, in btm_proc_sp_req_evt()
3415 STREAM_TO_UINT32(evt_data.cfm_req.num_val, p); in btm_proc_sp_req_evt()
3417 evt_data.cfm_req.num_val); in btm_proc_sp_req_evt()
3419 evt_data.cfm_req.just_works = true; in btm_proc_sp_req_evt()
3438 evt_data.cfm_req.just_works = false; in btm_proc_sp_req_evt()
3445 evt_data.cfm_req.just_works, btm_cb.devcb.loc_io_caps, in btm_proc_sp_req_evt()
3449 evt_data.cfm_req.loc_auth_req = btm_cb.devcb.loc_auth_req; in btm_proc_sp_req_evt()
3450 evt_data.cfm_req.rmt_auth_req = p_dev_rec->rmt_auth_req; in btm_proc_sp_req_evt()
3451 evt_data.cfm_req.loc_io_caps = btm_cb.devcb.loc_io_caps; in btm_proc_sp_req_evt()
3452 evt_data.cfm_req.rmt_io_caps = p_dev_rec->rmt_io_caps; in btm_proc_sp_req_evt()
3457 STREAM_TO_UINT32(evt_data.key_notif.passkey, p); in btm_proc_sp_req_evt()
3459 evt_data.key_notif.passkey); in btm_proc_sp_req_evt()
3473 status = (*btm_cb.api.p_sp_callback)(event, &evt_data); in btm_proc_sp_req_evt()
3479 } else if ((event == BTM_SP_CFM_REQ_EVT) && (evt_data.cfm_req.just_works)) { in btm_proc_sp_req_evt()
3527 tBTM_SP_KEYPRESS evt_data; in btm_keypress_notif_evt() local
3531 RawAddress& p_bda = evt_data.bd_addr; in btm_keypress_notif_evt()
3534 evt_data.notif_type = *p; in btm_keypress_notif_evt()
3537 (tBTM_SP_EVT_DATA*)&evt_data); in btm_keypress_notif_evt()
3552 tBTM_SP_COMPLT evt_data; in btm_simple_pair_complete() local
3558 STREAM_TO_BDADDR(evt_data.bd_addr, p); in btm_simple_pair_complete()
3560 p_dev_rec = btm_find_dev(evt_data.bd_addr); in btm_simple_pair_complete()
3562 LOG(ERROR) << __func__ << " with unknown BDA: " << evt_data.bd_addr; in btm_simple_pair_complete()
3570 evt_data.status = BTM_ERR_PROCESSING; in btm_simple_pair_complete()
3572 evt_data.status = BTM_SUCCESS; in btm_simple_pair_complete()
3582 } else if (btm_cb.pairing_bda == evt_data.bd_addr) { in btm_simple_pair_complete()
3597 evt_data.bd_addr = p_dev_rec->bd_addr; in btm_simple_pair_complete()
3598 memcpy(evt_data.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_simple_pair_complete()
3602 (tBTM_SP_EVT_DATA*)&evt_data); in btm_simple_pair_complete()
3626 tBTM_SP_RMT_OOB evt_data; in btm_rem_oob_req() local
3631 RawAddress& p_bda = evt_data.bd_addr; in btm_rem_oob_req()
3638 evt_data.bd_addr = p_dev_rec->bd_addr; in btm_rem_oob_req()
3639 memcpy(evt_data.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN); in btm_rem_oob_req()
3640 strlcpy((char*)evt_data.bd_name, (char*)p_dev_rec->sec_bd_name, in btm_rem_oob_req()
3645 (tBTM_SP_EVT_DATA*)&evt_data) == in btm_rem_oob_req()
3668 tBTM_SP_LOC_OOB evt_data; in btm_read_local_oob_complete() local
3673 evt_data.status = BTM_SUCCESS; in btm_read_local_oob_complete()
3674 STREAM_TO_ARRAY16(evt_data.c.data(), p); in btm_read_local_oob_complete()
3675 STREAM_TO_ARRAY16(evt_data.r.data(), p); in btm_read_local_oob_complete()
3677 evt_data.status = BTM_ERR_PROCESSING; in btm_read_local_oob_complete()
3681 btm_sp_evt_data.loc_oob = evt_data; in btm_read_local_oob_complete()