/external/libnfc-nci/src/nfc/nfc/ |
nfc_test.c | 57 tNFC_CONN_CB *p_cb = nfc_find_conn_cb_by_handle (NCI_TEST_ID); local 59 if (p_data && p_cb && (p_data->offset >= (NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE))) 61 status = nfc_ncif_send_data (p_cb, p_data);
|
/external/bluetooth/bluedroid/bta/gatt/ |
bta_gatts_main.c | 65 tBTA_GATTS_CB *p_cb = &bta_gatts_cb; local 71 bta_gatts_api_disable(p_cb); 75 bta_gatts_register(p_cb, (tBTA_GATTS_DATA *) p_msg); 79 bta_gatts_start_if(p_cb, (tBTA_GATTS_DATA *) p_msg); 83 bta_gatts_deregister(p_cb, (tBTA_GATTS_DATA *) p_msg); 87 bta_gatts_create_srvc(p_cb, (tBTA_GATTS_DATA *) p_msg); 91 bta_gatts_indicate_handle(p_cb,(tBTA_GATTS_DATA *) p_msg); 95 bta_gatts_open(p_cb,(tBTA_GATTS_DATA *) p_msg); 99 bta_gatts_cancel_open(p_cb,(tBTA_GATTS_DATA *) p_msg); 103 bta_gatts_close(p_cb,(tBTA_GATTS_DATA *) p_msg) [all...] |
bta_gattc_main.c | 347 tBTA_GATTC_CB *p_cb = &bta_gattc_cb; local 356 bta_gattc_disable(p_cb); 360 bta_gattc_register(p_cb, (tBTA_GATTC_DATA *) p_msg); 364 bta_gattc_start_if(p_cb, (tBTA_GATTC_DATA *) p_msg); 369 bta_gattc_deregister(p_cb, p_clreg); 373 bta_gattc_process_api_open(p_cb, (tBTA_GATTC_DATA *) p_msg); 377 bta_gattc_process_api_open_cancel(p_cb, (tBTA_GATTC_DATA *) p_msg); 381 bta_gattc_process_api_refresh(p_cb, (tBTA_GATTC_DATA *) p_msg); 386 bta_gattc_listen(p_cb, (tBTA_GATTC_DATA *) p_msg); 389 bta_gattc_broadcast(p_cb, (tBTA_GATTC_DATA *) p_msg) [all...] |
/external/bluetooth/bluedroid/stack/smp/ |
smp_l2c.c | 78 tSMP_CB *p_cb = &smp_cb; local 83 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0) 91 if(!p_cb->connect_initialized) 93 p_cb->connect_initialized = TRUE; 95 p_cb->role = L2CA_GetBleConnRole(bd_addr); 98 p_cb->loc_r_key = p_cb->loc_i_key = SMP_SEC_DEFAULT_KEY; 99 p_cb->loc_auth_req = p_cb->peer_auth_req = SMP_DEFAULT_AUTH_REQ; 100 p_cb->cb_evt = SMP_IO_CAP_REQ_EVT 126 tSMP_CB *p_cb = &smp_cb; local [all...] |
smp_api.c | 130 tSMP_CB *p_cb = &smp_cb; local 133 BTM_TRACE_EVENT2 ("SMP_Pair state=%d flag=0x%x ", p_cb->state, p_cb->flags); 134 if (p_cb->state != SMP_ST_IDLE || p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD) 141 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD; 143 memcpy (p_cb->pairing_bda, bd_addr, BD_ADDR_LEN); 148 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &status); 170 tSMP_CB *p_cb = &smp_cb; local 174 BTM_TRACE_EVENT2 ("SMP_CancelPair state=%d flag=0x%x ", p_cb->state, p_cb->flags) 225 tSMP_CB *p_cb = & smp_cb; local 281 tSMP_CB *p_cb = & smp_cb; local [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_sm.c | 78 btif_sm_cb_t *p_cb; local 86 p_cb = (btif_sm_cb_t*) GKI_os_malloc(sizeof(btif_sm_cb_t)); 87 p_cb->state = initial_state; 88 p_cb->p_handlers = (btif_sm_handler_t*)p_handlers; 91 p_cb->p_handlers[initial_state](BTIF_SM_ENTER_EVT, NULL); 93 return (btif_sm_handle_t)p_cb; 107 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; local 109 if (p_cb == NULL) 114 GKI_os_free((void*)p_cb); 128 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle local 155 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; local 185 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; local [all...] |
btif_profile_queue.c | 48 void *p_cb; member in struct:connect_node_tag 106 return (*(btif_connect_cb_t*)p_head->p_cb)(&p_head->bda); 142 node.p_cb = connect_cb;
|
/external/bluetooth/bluedroid/btif/co/ |
bta_gatts_co.c | 54 btif_gatts_srv_chg_cb_t *p_cb= &btif_gatts_srv_chg_cb; local 56 if (!p_cb->enable) 58 memset(p_cb, 0, sizeof(btif_gatts_srv_chg_cb_t)); 59 p_cb->enable = TRUE; 70 btif_gatts_srv_chg_cb_t *p_cb = &btif_gatts_srv_chg_cb; local 78 if (p_cb->num_clients < BTIF_GATTS_MAX_SRV_CHG_CLT_SIZE) 80 memcpy(&p_cb->srv_chg[p_cb->num_clients], &p_req->srv_chg, sizeof(tBTA_GATTS_SRV_CHG)); 81 p_cb->num_clients++; 89 for (i=0; i != p_cb->num_clients; ++i 160 btif_gatts_srv_chg_cb_t *p_cb= &btif_gatts_srv_chg_cb; local [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_utils.c | 41 tGAP_INFO *p_cb; local 47 p_cb = &gap_cb.blk[index]; 50 switch (p_cb->event) 86 if (p_cb->gap_cback) 87 p_cb->gap_cback(p_cb->event, p_data); 90 gap_free_cb(p_cb); 117 tGAP_INFO *p_cb; local 129 for (index = 0, p_cb = &gap_cb.blk[0]; index < GAP_MAX_BLOCKS; index++, p_cb++ 161 tGAP_FINDADDR_CB *p_cb = &gap_cb.findaddr_cb; local 227 tGAP_FINDADDR_CB *p_cb = &gap_cb.findaddr_cb; local 325 tGAP_INFO *p_cb = &gap_cb.blk[0]; local 379 tGAP_INFO *p_cb = &gap_cb.blk[0]; local [all...] |
gap_api.c | 392 tGAP_INFO *p_cb; local 405 if ((p_cb = gap_allocate_cb()) != NULL) 407 p_cb->gap_cback = p_cmpl_cb; 408 p_cb->gap_inq_rslt_cback = p_results_cb; 409 p_cb->event = GAP_EVT_INQUIRY_COMPLETE; /* Return event expected */ 412 (tBTM_CMPL_CB *) gap_cb.btm_cback[p_cb->index]); 416 gap_free_cb(p_cb); /* Error starting the inquiry */ 466 tGAP_INFO *p_cb; local 486 if ((p_cb = gap_allocate_cb()) != NULL) 488 p_cb->gap_inq_rslt_cback = p_results_cb 518 tGAP_INFO *p_cb = &gap_cb.blk[0]; local 557 tGAP_INFO *p_cb = &gap_cb.blk[0]; local 723 tGAP_INFO *p_cb; local [all...] |
/external/bluetooth/bluedroid/stack/btm/ |
btm_ble_addr.c | 51 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; local 57 p_cb->private_addr[5] = p->param_buf[0]; 58 p_cb->private_addr[4] = p->param_buf[1]; 59 p_cb->private_addr[3] = p->param_buf[2]; 61 btsnd_hcic_ble_set_random_addr(p_cb->private_addr); 63 p_cb->own_addr_type = BLE_ADDR_RANDOM; 66 btu_stop_timer(&p_cb->raddr_timer_ent); 67 btu_start_timer (&p_cb->raddr_timer_ent, BTU_TTYPE_BLE_RANDOM_ADDR, 90 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; local 99 p_cb->private_addr[2] = p->param_buf[0] 143 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; local [all...] |
btm_ble_bgconn.c | 187 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 189 UINT8 wl_state = p_cb->wl_state; 191 if ((to_add && p_cb->num_empty_filter == 0) || 192 (!to_add && p_cb->num_empty_filter == p_cb->max_filter_entries)) 195 p_cb->num_empty_filter); 228 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 234 p_cb->num_empty_filter = p_cb->max_filter_entries; 245 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb local 261 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 276 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 298 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 357 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 433 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 533 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 603 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local [all...] |
btm_pm.c | 140 tBTM_STATUS BTM_PmRegister (UINT8 mask, UINT8 *p_pm_id, tBTM_PM_STATUS_CBACK *p_cb) 161 if(p_cb == NULL) 163 btm_cb.pm_reg_db[xx].cback = p_cb; 189 tBTM_PM_MCB *p_cb = NULL; /* per ACL link */ local 210 p_cb = &(btm_cb.pm_mode_db[acl_ind]); 221 if(mode == p_cb->state) /* the requested mode is current mode */ 225 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->interval)) || 226 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) 228 BTM_TRACE_DEBUG4( "BTM_SetPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->max, p_mode->min) 327 tBTM_PM_MCB *p_cb; local 582 tBTM_PM_MCB *p_cb = &btm_cb.pm_mode_db[link_ind]; local 732 tBTM_PM_MCB *p_cb; local 787 tBTM_PM_MCB *p_cb = NULL; local 922 tBTM_PM_MCB *p_cb; local [all...] |
/external/libnfc-nci/src/nfa/ee/ |
nfa_ee_api.c | 96 tNFA_EE_ECB *p_cb = nfa_ee_cb.ecb; local 116 for (xx = 0; (xx < ret) && (num_ret < max_ret); xx++, p_cb++) 118 NFA_TRACE_DEBUG4 ("xx:%d max_ret:%d, num_ret:%d ee_status:0x%x", xx, max_ret, num_ret, p_cb->ee_status); 119 if ((p_cb->ee_status & NFA_EE_STATUS_INT_MASK) || (p_cb->ee_status == NFA_EE_STATUS_REMOVED)) 123 p_info->ee_handle = NFA_HANDLE_GROUP_EE | (tNFA_HANDLE)p_cb->nfcee_id; 124 p_info->ee_status = p_cb->ee_status; 125 p_info->num_interface = p_cb->num_interface; 126 p_info->num_tlvs = p_cb->num_tlvs; 127 memcpy(p_info->ee_interface, p_cb->ee_interface, p_cb->num_interface) 236 tNFA_EE_ECB *p_cb, *p_found = NULL; local 301 tNFA_EE_ECB *p_cb; local 357 tNFA_EE_ECB *p_cb; local 413 tNFA_EE_ECB *p_cb; local 544 tNFA_EE_ECB *p_cb; local 590 tNFA_EE_ECB *p_cb; local 636 tNFA_EE_ECB *p_cb; local [all...] |
nfa_ee_main.c | 142 void nfa_ee_restore_one_ecb (tNFA_EE_ECB *p_cb) 148 NFA_TRACE_DEBUG4 ("nfa_ee_restore_one_ecb () nfcee_id:0x%x, ecb_flags:0x%x ee_status:0x%x ee_old_status: 0x%x", p_cb->nfcee_id, p_cb->ecb_flags, p_cb->ee_status, p_cb->ee_old_status); 149 if ((p_cb->nfcee_id != NFA_EE_INVALID) && (p_cb->ee_status & NFA_EE_STATUS_RESTORING) == 0 && (p_cb->ee_old_status & NFA_EE_STATUS_RESTORING) != 0) 151 p_cb->ee_old_status &= ~NFA_EE_STATUS_RESTORING; 152 mask = nfa_ee_ecb_to_mask(p_cb); 206 tNFA_EE_ECB *p_cb; local 265 tNFA_EE_ECB *p_cb; local 384 tNFA_EE_ECB *p_ret = NULL, *p_cb; local 419 tNFA_EE_ECB *p_ret = NULL, *p_cb; local 448 tNFA_EE_ECB *p_cb; local [all...] |
/external/bluetooth/bluedroid/bta/hh/ |
bta_hh_utils.c | 120 void bta_hh_clean_up_kdev(tBTA_HH_DEV_CB *p_cb) 124 if (p_cb->hid_handle != BTA_HH_INVALID_HANDLE ) 127 if (p_cb->is_le_device) 128 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = BTA_HH_IDX_INVALID; 131 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; 135 index = p_cb->index; /* Preserve index for this control block */ 138 utl_freebuf((void **)&p_cb->dscp_info.descriptor.dsc_list); 140 memset(p_cb, 0, sizeof (tBTA_HH_DEV_CB)); /* Reset control block */ 142 p_cb->index = index; /* Restore index for this control block */ 143 p_cb->state = BTA_HH_IDLE_ST 411 tBTA_HH_CB *p_cb = &bta_hh_cb; local [all...] |
bta_hh_act.c | 190 tBTA_HH_DEV_CB *p_cb = bta_hh_cb.p_cur; local 195 if ((result == SDP_SUCCESS) && (p_cb != NULL)) 198 if (p_cb->sec_mask) 202 APPL_TRACE_EVENT4("bta_hh_sdp_cback: p_cb: %d result 0x%02x, \ 204 p_cb, result, attr_mask,p_cb->hid_handle); 208 if (bta_hh_tod_spt(p_cb, sdp_rec->sub_class)) 211 if (p_cb->hid_handle == BTA_HH_INVALID_HANDLE) 214 if(HID_HostAddDev (p_cb->addr, attr_mask, &hdl) == HID_SUCCESS) 218 bta_hh_cb.cb_index[hdl] = p_cb->index 266 tBTA_HH_DEV_CB *p_cb = bta_hh_cb.p_cur; local [all...] |
bta_hh_main.c | 77 typedef void (*tBTA_HH_ACTION)(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data); 275 void bta_hh_sm_execute(tBTA_HH_DEV_CB *p_cb, UINT16 event, tBTA_HH_DATA * p_data) 289 if (!p_cb) 371 in_state = p_cb->state; 377 if ((p_cb->state == BTA_HH_NULL_ST) || (p_cb->state >= BTA_HH_INVALID_ST)) 380 p_cb->state,event); 383 state_table = bta_hh_st_tbl[p_cb->state - 1]; 387 p_cb->state = state_table[event][BTA_HH_NEXT_STATE] ; 391 (*bta_hh_action[action])(p_cb, p_data) 420 tBTA_HH_DEV_CB *p_cb = NULL; local [all...] |
/external/bluetooth/bluedroid/bta/hl/ |
bta_hl_sdp.c | 167 ** Parameters: p_cb - Pointer to MA instance control block 189 tBTA_HL_APP_CB *p_cb = BTA_HL_GET_APP_CB_PTR(0); local 193 if ((p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE) && 194 (!p_cb->sup_feature.advertize_source_sdp)) 201 if (p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SINK) 207 if (p_cb->sup_feature.app_role_mask != BTA_HL_MDEP_ROLE_MASK_SOURCE) 214 result &= SDP_AddServiceClassIdList(p_cb->sdp_handle, num_services, svc_class_id_list); 221 proto_elem_list[0].params[0] = p_cb->ctrl_psm; 225 result &= SDP_AddProtocolList(p_cb->sdp_handle, BTA_HL_NUM_PROTO_ELEMS, proto_elem_list); 227 result &= SDP_AddProfileDescriptorList(p_cb->sdp_handle, profile_uuid, version) 391 tBTA_HL_APP_CB *p_cb = BTA_HL_GET_APP_CB_PTR(app_idx); local [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_ble.c | 595 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; local 608 scan_int = (p_cb->scan_int == BTM_BLE_CONN_PARAM_UNDEF) ? BTM_BLE_SCAN_FAST_INT : p_cb->scan_int; 609 scan_win = (p_cb->scan_win == BTM_BLE_CONN_PARAM_UNDEF) ? BTM_BLE_SCAN_FAST_WIN : p_cb->scan_win;
|
l2c_main.c | 689 tL2CA_ECHO_RSP_CB *p_cb = p_lcb->p_echo_rsp_cb; local 694 (*p_cb) (L2CAP_PING_RESULT_OK); [all...] |
/external/libnfc-nci/src/nfa/dm/ |
nfa_dm_ndef.c | 87 tNFA_DM_CB *p_cb = &nfa_dm_cb; local 91 if (p_cb->p_ndef_handler[hdlr_idx]) 93 GKI_freebuf (p_cb->p_ndef_handler[hdlr_idx]); 94 p_cb->p_ndef_handler[hdlr_idx] = NULL; 110 tNFA_DM_CB *p_cb = &nfa_dm_cb; local 116 if (p_cb->p_ndef_handler[i] != NULL) 118 GKI_freebuf (p_cb->p_ndef_handler[i]); 119 p_cb->p_ndef_handler[i] = NULL; 136 tNFA_DM_CB *p_cb = &nfa_dm_cb; local 145 if (p_cb->p_ndef_handler[NFA_NDEF_DEFAULT_HANDLER_IDX] 243 tNFA_DM_CB *p_cb = &nfa_dm_cb; local 342 tNFA_DM_CB *p_cb = &nfa_dm_cb; local 367 tNFA_DM_CB *p_cb = &nfa_dm_cb; local [all...] |
/external/bluetooth/bluedroid/bta/dm/ |
bta_dm_sco.c | 592 tBTA_DM_PCM_RESAMPLE_CB *p_cb = &bta_dm_pcm_cb; local 594 p_cb->cur_pos = src_sps / 2; 595 p_cb->src_sps = src_sps; 596 p_cb->bits = bits; 597 p_cb->n_channels = n_channels; 598 p_cb->sample_size = 2; 599 p_cb->divisor = 2; 601 memset(p_cb->overlap_area, 0, sizeof(p_cb->overlap_area) ); 606 p_cb->can_be_filtered = 1 [all...] |
/external/bluetooth/bluedroid/btif/include/ |
btif_common.h | 55 #define HAL_CBACK(P_CB, P_CBACK, ...)\ 56 if (P_CB && P_CB->P_CBACK) { \ 57 BTIF_TRACE_API2("HAL %s->%s", #P_CB, #P_CBACK); \ 58 P_CB->P_CBACK(__VA_ARGS__); \ 159 tBTIF_CBACK* p_cb; /* context switch callback */ member in struct:__anon3332
|
/external/bluetooth/bluedroid/gki/common/ |
gki_buffer.c | 46 tGKI_COM_CB *p_cb = &gki_cb.com; local 56 p_cb->pool_start[id] = (UINT8 *)p_mem; 57 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); 61 p_cb->pool_size[id] = act_size; 63 p_cb->freeq[id].size = (UINT16) tempsize; 64 p_cb->freeq[id].total = total; 65 p_cb->freeq[id].cur_cnt = 0; 66 p_cb->freeq[id].max_cnt = 0; 73 p_cb->freeq[id].p_first = hdr; 86 p_cb->freeq[id].p_last = hdr1 97 tGKI_COM_CB *p_cb = &gki_cb.com; local 122 tGKI_COM_CB *p_cb = &gki_cb.com; local 158 tGKI_COM_CB *p_cb = &gki_cb.com; local 373 tGKI_COM_CB *p_cb = &gki_cb.com; local 461 tGKI_COM_CB *p_cb = &gki_cb.com; local 643 tGKI_COM_CB *p_cb = &gki_cb.com; local 1035 tGKI_COM_CB *p_cb = &gki_cb.com; local 1075 tGKI_COM_CB *p_cb = &gki_cb.com; local 1105 tGKI_COM_CB *p_cb = &gki_cb.com; local 1137 tGKI_COM_CB *p_cb = &gki_cb.com; local 1278 tGKI_COM_CB *p_cb = &gki_cb.com; local 1351 tGKI_COM_CB *p_cb = &gki_cb.com; local 1405 tGKI_COM_CB *p_cb = &gki_cb.com; local [all...] |