/system/bt/stack/smp/ |
D | smp_act.c | 68 static bool pts_test_send_authentication_complete_failure(tSMP_CB *p_cb) in pts_test_send_authentication_complete_failure() argument 72 if (p_cb->cert_failure < 2 || p_cb->cert_failure > 6) in pts_test_send_authentication_complete_failure() 75 SMP_TRACE_ERROR("%s failure case = %d", __func__, p_cb->cert_failure); in pts_test_send_authentication_complete_failure() 77 switch (p_cb->cert_failure) in pts_test_send_authentication_complete_failure() 81 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); in pts_test_send_authentication_complete_failure() 85 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); in pts_test_send_authentication_complete_failure() 89 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); in pts_test_send_authentication_complete_failure() 93 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); in pts_test_send_authentication_complete_failure() 97 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); in pts_test_send_authentication_complete_failure() 108 static void smp_update_key_mask (tSMP_CB *p_cb, UINT8 key_type, BOOLEAN recv) in smp_update_key_mask() argument [all …]
|
D | smp_utils.c | 80 static BOOLEAN smp_parameter_unconditionally_valid(tSMP_CB *p_cb); 81 static BOOLEAN smp_parameter_unconditionally_invalid(tSMP_CB *p_cb); 84 typedef BOOLEAN (*tSMP_CMD_LEN_VALID)(tSMP_CB *p_cb); 86 static BOOLEAN smp_command_has_valid_fixed_length(tSMP_CB *p_cb); 109 typedef BOOLEAN (*tSMP_CMD_PARAM_RANGES_VALID)(tSMP_CB *p_cb); 111 static BOOLEAN smp_pairing_request_response_parameters_are_valid(tSMP_CB *p_cb); 112 static BOOLEAN smp_pairing_keypress_notification_is_valid(tSMP_CB *p_cb); 135 typedef BT_HDR * (*tSMP_CMD_ACT)(UINT8 cmd_code, tSMP_CB *p_cb); 137 static BT_HDR *smp_build_pairing_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 138 static BT_HDR *smp_build_confirm_cmd(UINT8 cmd_code, tSMP_CB *p_cb); [all …]
|
D | smp_api.c | 141 tSMP_CB *p_cb = &smp_cb; in SMP_Pair() local 145 __FUNCTION__, p_cb->state, p_cb->br_state, p_cb->flags); in SMP_Pair() 146 if (p_cb->state != SMP_STATE_IDLE || p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD || in SMP_Pair() 147 p_cb->smp_over_br) in SMP_Pair() 154 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD; in SMP_Pair() 156 memcpy (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN); in SMP_Pair() 161 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &status); in SMP_Pair() 183 tSMP_CB *p_cb = &smp_cb; in SMP_BR_PairWith() local 187 __func__, p_cb->state, p_cb->br_state, p_cb->flags); in SMP_BR_PairWith() 189 if (p_cb->state != SMP_STATE_IDLE || in SMP_BR_PairWith() [all …]
|
D | smp_l2c.c | 94 tSMP_CB *p_cb = &smp_cb; in smp_connect_callback() local 103 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_connect_callback() 113 if(!p_cb->connect_initialized) in smp_connect_callback() 115 p_cb->connect_initialized = TRUE; in smp_connect_callback() 117 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_connect_callback() 120 p_cb->local_r_key = p_cb->local_i_key = SMP_SEC_DEFAULT_KEY; in smp_connect_callback() 121 p_cb->loc_auth_req = p_cb->peer_auth_req = SMP_DEFAULT_AUTH_REQ; in smp_connect_callback() 122 p_cb->cb_evt = SMP_IO_CAP_REQ_EVT; in smp_connect_callback() 123 smp_sm_event(p_cb, SMP_L2CAP_CONN_EVT, NULL); in smp_connect_callback() 130 smp_sm_event(p_cb, SMP_L2CAP_DISCONN_EVT, &int_data); in smp_connect_callback() [all …]
|
D | smp_keys.c | 46 static void smp_generate_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 47 static void smp_generate_ltk_cont(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 48 static void smp_generate_y(tSMP_CB *p_cb, tSMP_INT_DATA *p); 49 static void smp_generate_rand_vector (tSMP_CB *p_cb, tSMP_INT_DATA *p); 50 static void smp_process_stk(tSMP_CB *p_cb, tSMP_ENC *p); 51 static void smp_calculate_comfirm_cont(tSMP_CB *p_cb, tSMP_ENC *p); 52 static void smp_process_confirm(tSMP_CB *p_cb, tSMP_ENC *p); 53 static void smp_process_compare(tSMP_CB *p_cb, tSMP_ENC *p); 54 static void smp_process_ediv(tSMP_CB *p_cb, tSMP_ENC *p); 55 static BOOLEAN smp_calculate_legacy_short_term_key(tSMP_CB *p_cb, tSMP_ENC *output); [all …]
|
D | smp_int.h | 348 typedef void (*tSMP_ACT)(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 371 extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data); 373 extern void smp_proc_sec_request(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 394 extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data); 399 extern void smp_br_state_machine_event(tSMP_CB *p_cb, tSMP_BR_EVENT event, void *p_data); 405 extern void smp_send_pair_req(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 406 extern void smp_send_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 407 extern void smp_send_pair_fail(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 408 extern void smp_send_rand(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 409 extern void smp_send_pair_public_key(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); [all …]
|
/system/bt/bta/ag/ |
D | bta_ag_at.c | 44 void bta_ag_at_init(tBTA_AG_AT_CB *p_cb) in bta_ag_at_init() argument 46 p_cb->p_cmd_buf = NULL; in bta_ag_at_init() 47 p_cb->cmd_pos = 0; in bta_ag_at_init() 62 void bta_ag_at_reinit(tBTA_AG_AT_CB *p_cb) in bta_ag_at_reinit() argument 64 osi_free_and_reset((void **)&p_cb->p_cmd_buf); in bta_ag_at_reinit() 65 p_cb->cmd_pos = 0; in bta_ag_at_reinit() 80 void bta_ag_process_at(tBTA_AG_AT_CB *p_cb) in bta_ag_process_at() argument 87 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) in bta_ag_process_at() 89 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) in bta_ag_process_at() 96 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) in bta_ag_process_at() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_act.c | 191 tBTA_HH_DEV_CB *p_cb = bta_hh_cb.p_cur; in bta_hh_sdp_cback() local 196 if ((result == SDP_SUCCESS) && (p_cb != NULL)) in bta_hh_sdp_cback() 199 if (p_cb->sec_mask) in bta_hh_sdp_cback() 205 p_cb, result, attr_mask,p_cb->hid_handle); in bta_hh_sdp_cback() 209 if (bta_hh_tod_spt(p_cb, sdp_rec->sub_class)) in bta_hh_sdp_cback() 212 if (p_cb->hid_handle == BTA_HH_INVALID_HANDLE) in bta_hh_sdp_cback() 215 if(HID_HostAddDev (p_cb->addr, attr_mask, &hdl) == HID_SUCCESS) in bta_hh_sdp_cback() 219 bta_hh_cb.cb_index[hdl] = p_cb->index; in bta_hh_sdp_cback() 223 p_cb->app_id = 0; in bta_hh_sdp_cback() 228 hdl = p_cb->hid_handle; in bta_hh_sdp_cback() [all …]
|
D | bta_hh_int.h | 330 extern void bta_hh_sm_execute(tBTA_HH_DEV_CB *p_cb, UINT16 event, 334 extern void bta_hh_api_disc_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 335 extern void bta_hh_open_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 336 extern void bta_hh_close_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 337 extern void bta_hh_data_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA * p_data); 338 extern void bta_hh_ctrl_dat_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA * p_data); 339 extern void bta_hh_start_sdp(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 340 extern void bta_hh_sdp_cmpl(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 341 extern void bta_hh_write_dev_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 342 extern void bta_hh_get_dscp_act(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); [all …]
|
D | bta_hh_le.c | 64 static void bta_hh_le_add_dev_bg_conn(tBTA_HH_DEV_CB *p_cb, BOOLEAN check_bond); 251 static void bta_hh_le_hid_report_dbg(tBTA_HH_DEV_CB *p_cb) in bta_hh_le_hid_report_dbg() argument 255 if (!p_cb->hid_srvc.in_use) in bta_hh_le_hid_report_dbg() 258 tBTA_HH_LE_RPT *p_rpt = &p_cb->hid_srvc.report[0]; in bta_hh_le_hid_report_dbg() 423 BOOLEAN bta_hh_is_le_device(tBTA_HH_DEV_CB *p_cb, BD_ADDR remote_bda) in bta_hh_is_le_device() argument 425 p_cb->is_le_device = BTM_UseLeLink (remote_bda); in bta_hh_is_le_device() 427 return p_cb->is_le_device; in bta_hh_is_le_device() 439 void bta_hh_le_open_conn(tBTA_HH_DEV_CB *p_cb, BD_ADDR remote_bda) in bta_hh_le_open_conn() argument 442 p_cb->hid_handle = BTA_HH_GET_LE_DEV_HDL(p_cb->index); in bta_hh_le_open_conn() 443 memcpy(p_cb->addr, remote_bda, BD_ADDR_LEN); in bta_hh_le_open_conn() [all …]
|
D | bta_hh_utils.c | 120 void bta_hh_clean_up_kdev(tBTA_HH_DEV_CB *p_cb) in bta_hh_clean_up_kdev() argument 124 if (p_cb->hid_handle != BTA_HH_INVALID_HANDLE ) in bta_hh_clean_up_kdev() 127 if (p_cb->is_le_device) in bta_hh_clean_up_kdev() 128 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev() 131 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev() 135 index = p_cb->index; /* Preserve index for this control block */ in bta_hh_clean_up_kdev() 138 osi_free_and_reset((void **)&p_cb->dscp_info.descriptor.dsc_list); in bta_hh_clean_up_kdev() 140 memset(p_cb, 0, sizeof(tBTA_HH_DEV_CB)); /* Reset control block */ in bta_hh_clean_up_kdev() 142 p_cb->index = index; /* Restore index for this control block */ in bta_hh_clean_up_kdev() 143 p_cb->state = BTA_HH_IDLE_ST; in bta_hh_clean_up_kdev() [all …]
|
/system/bt/btif/src/ |
D | btif_sm.c | 67 btif_sm_cb_t *p_cb = (btif_sm_cb_t *)osi_malloc(sizeof(btif_sm_cb_t)); in btif_sm_init() local 68 p_cb->state = initial_state; in btif_sm_init() 69 p_cb->p_handlers = (btif_sm_handler_t*)p_handlers; in btif_sm_init() 72 p_cb->p_handlers[initial_state](BTIF_SM_ENTER_EVT, NULL); in btif_sm_init() 74 return (btif_sm_handle_t)p_cb; in btif_sm_init() 88 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_shutdown() local 90 if (p_cb == NULL) in btif_sm_shutdown() 95 osi_free(p_cb); in btif_sm_shutdown() 109 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_get_state() local 111 if (p_cb == NULL) in btif_sm_get_state() [all …]
|
D | btif_gatt_server.c | 361 btif_gatts_cb_t* p_cb = (btif_gatts_cb_t*)p_param; in btgatts_handle_event() local 362 if (!p_cb) return; in btgatts_handle_event() 371 btif_to_bta_uuid(&uuid, &p_cb->uuid); in btgatts_handle_event() 377 BTA_GATTS_AppDeregister(p_cb->server_if); in btgatts_handle_event() 387 if (btif_get_address_type(p_cb->bd_addr.address, &addr_type) && in btgatts_handle_event() 388 btif_get_device_type(p_cb->bd_addr.address, &device_type) && in btgatts_handle_event() 391 BTA_DmAddBleDevice(p_cb->bd_addr.address, addr_type, device_type); in btgatts_handle_event() 395 if (!p_cb->is_direct) in btgatts_handle_event() 399 if (p_cb->transport != GATT_TRANSPORT_AUTO) in btgatts_handle_event() 401 transport = p_cb->transport; in btgatts_handle_event() [all …]
|
/system/bt/stack/gap/ |
D | gap_utils.c | 35 tGAP_INFO *p_cb = &gap_cb.blk[0]; in gap_allocate_cb() local 38 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++) in gap_allocate_cb() 40 if (!p_cb->in_use) in gap_allocate_cb() 42 memset (p_cb, 0, sizeof (tGAP_INFO)); in gap_allocate_cb() 44 p_cb->in_use = TRUE; in gap_allocate_cb() 45 p_cb->index = x; in gap_allocate_cb() 46 p_cb->p_data = (void *)NULL; in gap_allocate_cb() 47 return (p_cb); in gap_allocate_cb() 65 void gap_free_cb (tGAP_INFO *p_cb) in gap_free_cb() argument 67 if (p_cb) in gap_free_cb() [all …]
|
/system/bt/bta/hl/ |
D | bta_hl_sdp.c | 184 tBTA_HL_APP_CB *p_cb = BTA_HL_GET_APP_CB_PTR(0); in bta_hl_sdp_update() local 189 if ((p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE) && in bta_hl_sdp_update() 190 (!p_cb->sup_feature.advertize_source_sdp)) in bta_hl_sdp_update() 197 if (p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SINK) in bta_hl_sdp_update() 203 if (p_cb->sup_feature.app_role_mask != BTA_HL_MDEP_ROLE_MASK_SOURCE) in bta_hl_sdp_update() 210 result &= SDP_AddServiceClassIdList(p_cb->sdp_handle, num_services, svc_class_id_list); in bta_hl_sdp_update() 217 proto_elem_list[0].params[0] = p_cb->ctrl_psm; in bta_hl_sdp_update() 221 result &= SDP_AddProtocolList(p_cb->sdp_handle, BTA_HL_NUM_PROTO_ELEMS, proto_elem_list); in bta_hl_sdp_update() 223 result &= SDP_AddProfileDescriptorList(p_cb->sdp_handle, profile_uuid, version); in bta_hl_sdp_update() 231 add_proto_list.list_elem[0].params[0] = p_cb->data_psm; in bta_hl_sdp_update() [all …]
|
/system/bt/bta/av/ |
D | bta_av_act.c | 157 static void bta_av_close_all_rc(tBTA_AV_CB *p_cb) in bta_av_close_all_rc() argument 163 if ((p_cb->disabling == TRUE) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc() 303 UINT8 bta_av_rc_create(tBTA_AV_CB *p_cb, UINT8 role, UINT8 shdl, UINT8 lidx) in bta_av_rc_create() argument 308 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create() 332 ccb.control = p_cb->features & (BTA_AV_FEAT_RCTG | BTA_AV_FEAT_RCCT | AVRC_CT_PASSIVE); in bta_av_rc_create() 338 p_rcb = &p_cb->rcb[i]; in bta_av_rc_create() 353 p_cb->rc_acp_handle = p_rcb->handle; in bta_av_rc_create() 354 p_cb->rc_acp_idx = (i + 1); in bta_av_rc_create() 355 APPL_TRACE_DEBUG("rc_acp_handle:%d idx:%d", p_cb->rc_acp_handle, p_cb->rc_acp_idx); in bta_av_rc_create() 456 tBTA_AV_CB *p_cb = &bta_av_cb; in bta_av_find_lcb() local [all …]
|
/system/bt/bta/jv/ |
D | bta_jv_act.c | 96 static tBTA_JV_PCB * bta_jv_add_rfc_port(tBTA_JV_RFC_CB *p_cb, tBTA_JV_PCB *p_pcb_open); 98 static void bta_jv_pm_conn_busy(tBTA_JV_PM_CB *p_cb); 99 static void bta_jv_pm_conn_idle(tBTA_JV_PM_CB *p_cb); 100 static void bta_jv_pm_state_change(tBTA_JV_PM_CB *p_cb, const tBTA_JV_CONN_STATE state); 101 tBTA_JV_STATUS bta_jv_set_pm_conn_state(tBTA_JV_PM_CB *p_cb, const tBTA_JV_CONN_STATE 189 tBTA_JV_RFC_CB *p_cb = NULL; in bta_jv_alloc_rfc_cb() local 196 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb() 198 p_cb->handle = (i + 1) | BTA_JV_RFCOMM_MASK; in bta_jv_alloc_rfc_cb() 200 p_cb->max_sess = 1; in bta_jv_alloc_rfc_cb() 201 p_cb->curr_sess = 1; in bta_jv_alloc_rfc_cb() [all …]
|
/system/bt/bta/gatt/ |
D | bta_gatts_utils.c | 64 UINT8 bta_gatts_alloc_srvc_cb(tBTA_GATTS_CB *p_cb, UINT8 rcb_idx) in bta_gatts_alloc_srvc_cb() argument 70 if (!p_cb->srvc_cb[i].in_use) in bta_gatts_alloc_srvc_cb() 72 p_cb->srvc_cb[i].in_use = TRUE; in bta_gatts_alloc_srvc_cb() 73 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb() 112 UINT8 bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_IF server_if) in bta_gatts_find_app_rcb_idx_by_app_if() argument 118 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) in bta_gatts_find_app_rcb_idx_by_app_if() 132 tBTA_GATTS_SRVC_CB * bta_gatts_find_srvc_cb_by_srvc_id(tBTA_GATTS_CB *p_cb, UINT16 service_id) in bta_gatts_find_srvc_cb_by_srvc_id() argument 138 if (p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_srvc_id() 139 p_cb->srvc_cb[i].service_id == service_id) in bta_gatts_find_srvc_cb_by_srvc_id() 142 return &p_cb->srvc_cb[i]; in bta_gatts_find_srvc_cb_by_srvc_id() [all …]
|
D | bta_gatts_main.c | 65 tBTA_GATTS_CB *p_cb = &bta_gatts_cb; in bta_gatts_hdl_event() local 71 bta_gatts_api_disable(p_cb); in bta_gatts_hdl_event() 75 bta_gatts_register(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 79 bta_gatts_start_if(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 83 bta_gatts_deregister(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 87 bta_gatts_create_srvc(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 91 bta_gatts_indicate_handle(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 95 bta_gatts_open(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 99 bta_gatts_cancel_open(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() 103 bta_gatts_close(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event() [all …]
|
D | bta_gatts_act.c | 113 void bta_gatts_enable(tBTA_GATTS_CB *p_cb) in bta_gatts_enable() argument 118 if (p_cb->enabled) in bta_gatts_enable() 124 memset(p_cb, 0, sizeof(tBTA_GATTS_CB)); in bta_gatts_enable() 126 p_cb->enabled = TRUE; in bta_gatts_enable() 153 void bta_gatts_api_disable(tBTA_GATTS_CB *p_cb) in bta_gatts_api_disable() argument 157 if (p_cb->enabled) in bta_gatts_api_disable() 161 if (p_cb->rcb[i].in_use) in bta_gatts_api_disable() 163 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_api_disable() 166 memset(p_cb, 0, sizeof(tBTA_GATTS_CB)); in bta_gatts_api_disable() 183 void bta_gatts_register(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) in bta_gatts_register() argument [all …]
|
D | bta_gatts_int.h | 229 extern void bta_gatts_api_disable(tBTA_GATTS_CB *p_cb); 230 extern void bta_gatts_api_enable(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_data); 231 extern void bta_gatts_register(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg); 232 extern void bta_gatts_start_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg); 233 extern void bta_gatts_deregister(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg); 234 extern void bta_gatts_create_srvc(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg); 242 extern void bta_gatts_send_rsp(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg); 243 extern void bta_gatts_indicate_handle (tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg); 246 extern void bta_gatts_open (tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg); 247 extern void bta_gatts_cancel_open (tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg); [all …]
|
/system/bt/btif/co/ |
D | bta_gatts_co.c | 55 btif_gatts_srv_chg_cb_t *p_cb= &btif_gatts_srv_chg_cb; in btif_gatts_check_init() local 57 if (!p_cb->enable) in btif_gatts_check_init() 59 memset(p_cb, 0, sizeof(btif_gatts_srv_chg_cb_t)); in btif_gatts_check_init() 60 p_cb->enable = TRUE; in btif_gatts_check_init() 70 btif_gatts_srv_chg_cb_t *p_cb= &btif_gatts_srv_chg_cb; in btif_gatts_add_bonded_dev_from_nv() local 76 for (i=0; i != p_cb->num_clients; ++i) in btif_gatts_add_bonded_dev_from_nv() 78 if (!memcmp(p_cb->srv_chg[i].bda, bda, sizeof(BD_ADDR))) in btif_gatts_add_bonded_dev_from_nv() 87 if (p_cb->num_clients < BTIF_GATTS_MAX_SRV_CHG_CLT_SIZE) in btif_gatts_add_bonded_dev_from_nv() 89 bdcpy(p_cb->srv_chg[p_cb->num_clients].bda, bda); in btif_gatts_add_bonded_dev_from_nv() 90 p_cb->srv_chg[p_cb->num_clients].srv_changed = FALSE; in btif_gatts_add_bonded_dev_from_nv() [all …]
|
/system/bt/stack/btm/ |
D | btm_pm.c | 134 tBTM_STATUS BTM_PmRegister (UINT8 mask, UINT8 *p_pm_id, tBTM_PM_STATUS_CBACK *p_cb) in BTM_PmRegister() argument 155 if(p_cb == NULL) in BTM_PmRegister() 157 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister() 183 tBTM_PM_MCB *p_cb = NULL; /* per ACL link */ in BTM_SetPowerMode() local 203 p_cb = &(btm_cb.pm_mode_db[acl_ind]); in BTM_SetPowerMode() 214 if(mode == p_cb->state) /* the requested mode is current mode */ in BTM_SetPowerMode() 218 …((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->inte… in BTM_SetPowerMode() 219 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) in BTM_SetPowerMode() 221 …( "BTM_SetPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->… in BTM_SetPowerMode() 240 *(&p_cb->req_mode[temp_pm_id]) = *((tBTM_PM_PWR_MD *)p_mode); in BTM_SetPowerMode() [all …]
|
D | btm_ble_bgconn.c | 255 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_update_dev_to_white_list() local 257 if (to_add && p_cb->white_list_avail_size == 0) in btm_update_dev_to_white_list() 268 btm_suspend_wl_activity(p_cb->wl_state); in btm_update_dev_to_white_list() 270 btm_resume_wl_activity(p_cb->wl_state); in btm_update_dev_to_white_list() 297 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_ble_clear_white_list_complete() local 305 p_cb->white_list_avail_size = controller_get_interface()->get_ble_white_list_size(); in btm_ble_clear_white_list_complete() 363 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_ble_start_auto_conn() local 368 UINT8 own_addr_type = p_cb->addr_mgnt_cb.own_addr_type; in btm_ble_start_auto_conn() 373 if (p_cb->conn_state == BLE_CONN_IDLE && background_connections_pending() in btm_ble_start_auto_conn() 376 p_cb->wl_state |= BTM_BLE_WL_INIT; in btm_ble_start_auto_conn() [all …]
|
D | btm_ble_gap.c | 74 static UINT8 btm_set_conn_mode_adv_init_addr(tBTM_BLE_INQ_CB *p_cb, 262 tBTM_BLE_INQ_CB *p_cb = &btm_cb.ble_ctr_cb.inq_var; in BTM_BleUpdateAdvFilterPolicy() local 265 UINT8 adv_mode = p_cb->adv_mode; in BTM_BleUpdateAdvFilterPolicy() 272 if (p_cb->afp != adv_policy) in BTM_BleUpdateAdvFilterPolicy() 274 p_cb->afp = adv_policy; in BTM_BleUpdateAdvFilterPolicy() 279 if (p_cb->connectable_mode & BTM_BLE_CONNECTABLE) in BTM_BleUpdateAdvFilterPolicy() 280 p_cb->evt_type = btm_set_conn_mode_adv_init_addr(p_cb, p_addr_ptr, &init_addr_type, in BTM_BleUpdateAdvFilterPolicy() 281 &p_cb->adv_addr_type); in BTM_BleUpdateAdvFilterPolicy() 283 btsnd_hcic_ble_write_adv_params ((UINT16)(p_cb->adv_interval_min ? p_cb->adv_interval_min : in BTM_BleUpdateAdvFilterPolicy() 285 (UINT16)(p_cb->adv_interval_max ? p_cb->adv_interval_max : in BTM_BleUpdateAdvFilterPolicy() [all …]
|