/external/bluetooth/bluedroid/stack/smp/ |
D | smp_act.c | 59 static void smp_update_key_mask (tSMP_CB *p_cb, UINT8 key_type, BOOLEAN recv) in smp_update_key_mask() argument 62 …ate role=%d recv=%d loc_i_key = %02x, loc_r_key = %02x", p_cb->role, recv, p_cb->loc_i_key, p_cb->… in smp_update_key_mask() 63 if (p_cb->role == HCI_ROLE_SLAVE) in smp_update_key_mask() 66 p_cb->loc_i_key &= ~key_type; in smp_update_key_mask() 68 p_cb->loc_r_key &= ~key_type; in smp_update_key_mask() 73 p_cb->loc_r_key &= ~key_type; in smp_update_key_mask() 75 p_cb->loc_i_key &= ~key_type; in smp_update_key_mask() 78 SMP_TRACE_DEBUG("updated loc_i_key = %02x, loc_r_key = %02x", p_cb->loc_i_key, p_cb->loc_r_key); in smp_update_key_mask() 84 void smp_send_app_cback(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) in smp_send_app_cback() argument 90 SMP_TRACE_DEBUG ("smp_send_app_cback p_cb->cb_evt=%d", p_cb->cb_evt ); in smp_send_app_cback() [all …]
|
D | smp_keys.c | 46 static void smp_genenrate_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 47 static void smp_genenrate_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); 163 void smp_generate_passkey(tSMP_CB *p_cb, tSMP_INT_DATA *p_data) in smp_generate_passkey() argument [all …]
|
D | smp_int.h | 221 typedef void (*tSMP_ACT)(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 252 extern void smp_sm_event(tSMP_CB *p_cb, tSMP_EVENT event, void *p_data); 254 extern void smp_proc_sec_request(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 255 extern void smp_send_pair_req(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 256 extern void smp_send_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 257 extern void smp_send_pair_fail(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 258 extern void smp_send_init(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 259 extern void smp_proc_sec_request(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 260 extern void smp_proc_pair_fail(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); 261 extern void smp_proc_confirm(tSMP_CB *p_cb, tSMP_INT_DATA *p_data); [all …]
|
D | smp_utils.c | 51 typedef BT_HDR * (*tSMP_CMD_ACT)(UINT8 cmd_code, tSMP_CB *p_cb); 53 static BT_HDR * smp_build_pairing_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 54 static BT_HDR * smp_build_confirm_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 55 static BT_HDR * smp_build_rand_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 56 static BT_HDR * smp_build_pairing_fail(UINT8 cmd_code, tSMP_CB *p_cb); 57 static BT_HDR * smp_build_identity_info_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 58 static BT_HDR * smp_build_encrypt_info_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 59 static BT_HDR * smp_build_security_request(UINT8 cmd_code, tSMP_CB *p_cb); 60 static BT_HDR * smp_build_signing_info_cmd(UINT8 cmd_code, tSMP_CB *p_cb); 61 static BT_HDR * smp_build_master_id_cmd(UINT8 cmd_code, tSMP_CB *p_cb); [all …]
|
D | smp_l2c.c | 80 tSMP_CB *p_cb = &smp_cb; in smp_connect_cback() local 91 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0) in smp_connect_cback() 99 if(!p_cb->connect_initialized) in smp_connect_cback() 101 p_cb->connect_initialized = TRUE; in smp_connect_cback() 103 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_connect_cback() 106 p_cb->loc_r_key = p_cb->loc_i_key = SMP_SEC_DEFAULT_KEY; in smp_connect_cback() 107 p_cb->loc_auth_req = p_cb->peer_auth_req = SMP_DEFAULT_AUTH_REQ; in smp_connect_cback() 108 p_cb->cb_evt = SMP_IO_CAP_REQ_EVT; in smp_connect_cback() 109 smp_sm_event(p_cb, SMP_L2CAP_CONN_EVT, NULL); in smp_connect_cback() 116 smp_sm_event(p_cb, SMP_L2CAP_DISCONN_EVT, &int_data); in smp_connect_cback() [all …]
|
/external/bluetooth/bluedroid/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 if (p_cb->p_cmd_buf != NULL) in bta_ag_at_reinit() 66 GKI_freebuf(p_cb->p_cmd_buf); in bta_ag_at_reinit() 67 p_cb->p_cmd_buf = NULL; in bta_ag_at_reinit() 69 p_cb->cmd_pos = 0; in bta_ag_at_reinit() 83 void bta_ag_process_at(tBTA_AG_AT_CB *p_cb) in bta_ag_process_at() argument 90 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) in bta_ag_process_at() [all …]
|
/external/libnfc-nci/src/nfa/ee/ |
D | nfa_ee_act.c | 124 static void nfa_ee_update_route_size(tNFA_EE_ECB *p_cb) in nfa_ee_update_route_size() argument 129 p_cb->size_mask = 0; in nfa_ee_update_route_size() 134 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 136 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 138 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size() 143 p_cb->size_mask += 5; in nfa_ee_update_route_size() 151 if (p_cb->proto_switch_on & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size() 153 if (p_cb->proto_switch_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size() 155 if (p_cb->proto_battery_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size() 160 p_cb->size_mask += 5; in nfa_ee_update_route_size() [all …]
|
D | nfa_ee_main.c | 152 void nfa_ee_restore_one_ecb (tNFA_EE_ECB *p_cb) in nfa_ee_restore_one_ecb() argument 158 …_flags:0x%x ee_status:0x%x ee_old_status: 0x%x", p_cb->nfcee_id, p_cb->ecb_flags, p_cb->ee_status,… in nfa_ee_restore_one_ecb() 159 …if ((p_cb->nfcee_id != NFA_EE_INVALID) && (p_cb->ee_status & NFA_EE_STATUS_RESTORING) == 0 && (p_c… in nfa_ee_restore_one_ecb() 161 p_cb->ee_old_status &= ~NFA_EE_STATUS_RESTORING; in nfa_ee_restore_one_ecb() 162 mask = nfa_ee_ecb_to_mask(p_cb); in nfa_ee_restore_one_ecb() 163 if (p_cb->ee_status != p_cb->ee_old_status) in nfa_ee_restore_one_ecb() 165 p_cb->ecb_flags |= NFA_EE_ECB_FLAGS_RESTORE; in nfa_ee_restore_one_ecb() 166 if (p_cb->ee_old_status == NFC_NFCEE_STATUS_ACTIVE) in nfa_ee_restore_one_ecb() 168 NFC_NfceeModeSet (p_cb->nfcee_id, NFC_MODE_ACTIVATE); in nfa_ee_restore_one_ecb() 174 p_cb->ecb_flags |= NFA_EE_ECB_FLAGS_ROUTING; in nfa_ee_restore_one_ecb() [all …]
|
/external/bluetooth/bluedroid/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 …]
|
/external/libnfc-nci/src/nfc/tags/ |
D | rw_t3t.c | 129 static void rw_t3t_handle_get_sc_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses,… 130 static void rw_t3t_handle_ndef_detect_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_respo… 131 static void rw_t3t_handle_fmt_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses, UI… 132 static void rw_t3t_handle_sro_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses, UI… 185 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_check_timeout() local 189 …timeout = (p_cb->check_tout_a + num_blocks * p_cb->check_tout_b)*QUICK_TIMER_TICKS_PER_SEC/1000000; in rw_t3t_check_timeout() 208 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_update_timeout() local 212 …timeout = (p_cb->update_tout_a + num_blocks * p_cb->update_tout_b)*QUICK_TIMER_TICKS_PER_SEC/10000… in rw_t3t_update_timeout() 230 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_error() local 235 if (p_cb->rw_state == RW_T3T_STATE_COMMAND_PENDING) in rw_t3t_process_error() [all …]
|
D | ce_t3t.c | 170 tCE_T3T_MEM *p_cb = &p_ce_cb->mem.t3t; in ce_t3t_send_rsp() local 177 p_nfcid2 = p_cb->local_nfcid2; in ce_t3t_send_rsp() 214 tCE_T3T_MEM *p_cb = &p_ce_cb->mem.t3t; in ce_t3t_handle_update_cmd() local 216 UINT8 *p_block_list = p_cb->cur_cmd.p_block_list_start; in ce_t3t_handle_update_cmd() 217 UINT8 *p_block_data = p_cb->cur_cmd.p_block_data_start; in ce_t3t_handle_update_cmd() 227 if (p_cb->state == CE_T3T_STATE_IDLE) in ce_t3t_handle_update_cmd() 229 p_cb->state = CE_T3T_STATE_UPDATING; in ce_t3t_handle_update_cmd() 232 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) in ce_t3t_handle_update_cmd() 247 service_code = p_cb->cur_cmd.service_code_list[bl0 & T3T_MSG_SERVICE_LIST_MASK]; in ce_t3t_handle_update_cmd() 261 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbw) in ce_t3t_handle_update_cmd() [all …]
|
/external/libnfc-nci/src/nfa/ce/ |
D | nfa_ce_act.c | 51 tNFA_CE_CB *p_cb = &nfa_ce_cb; in nfa_ce_handle_t3t_evt() local 60 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt() 63 (*p_cb->p_active_conn_cback) (NFA_CE_NDEF_WRITE_START_EVT, &conn_evt); in nfa_ce_handle_t3t_evt() 73 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt() 78 (*p_cb->p_active_conn_cback) (NFA_CE_NDEF_WRITE_CPLT_EVT, &conn_evt); in nfa_ce_handle_t3t_evt() 87 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt() 92 (*p_cb->p_active_conn_cback) (NFA_DATA_EVT, &conn_evt); in nfa_ce_handle_t3t_evt() 97 conn_evt.ce_data.handle = (NFA_HANDLE_GROUP_CE | ((tNFA_HANDLE)p_cb->idx_cur_active)); in nfa_ce_handle_t3t_evt() 100 (*p_cb->p_active_conn_cback) (NFA_CE_DATA_EVT, &conn_evt); in nfa_ce_handle_t3t_evt() 122 tNFA_CE_CB *p_cb = &nfa_ce_cb; in nfa_ce_handle_t4t_evt() local [all …]
|
/external/bluetooth/bluedroid/hci/src/ |
D | hci_mct.c | 239 tHCI_MCT_CB *p_cb = &mct_cb; in internal_event_intercept() local 241 p = (uint8_t *)(p_cb->rcv_evt.p_rcv_msg + 1); in internal_event_intercept() 256 if (p_cb->int_cmd_rsp_pending > 0) in internal_event_intercept() 260 if (opcode == p_cb->int_cmd[p_cb->int_cmd_rd_idx].opcode) in internal_event_intercept() 265 if (p_cb->int_cmd[p_cb->int_cmd_rd_idx].cback != NULL) in internal_event_intercept() 267 p_cb->int_cmd[p_cb->int_cmd_rd_idx].cback(p_cb->rcv_evt.p_rcv_msg); in internal_event_intercept() 275 bt_hc_cbacks->dealloc(p_cb->rcv_evt.p_rcv_msg); in internal_event_intercept() 278 p_cb->int_cmd_rd_idx = ((p_cb->int_cmd_rd_idx+1) & \ in internal_event_intercept() 280 p_cb->int_cmd_rsp_pending--; in internal_event_intercept() 327 tHCI_MCT_CB *p_cb = &mct_cb; in acl_rx_frame_buffer_alloc() local [all …]
|
D | hci_h4.c | 255 tHCI_H4_CB *p_cb = &h4_cb; in internal_event_intercept() local 257 p = (uint8_t *)(p_cb->p_rcv_msg + 1); in internal_event_intercept() 266 if (p_cb->int_cmd_rsp_pending > 0) in internal_event_intercept() 270 if (opcode == p_cb->int_cmd[p_cb->int_cmd_rd_idx].opcode) in internal_event_intercept() 275 if (p_cb->int_cmd[p_cb->int_cmd_rd_idx].cback != NULL) in internal_event_intercept() 277 p_cb->int_cmd[p_cb->int_cmd_rd_idx].cback(p_cb->p_rcv_msg); in internal_event_intercept() 285 bt_hc_cbacks->dealloc(p_cb->p_rcv_msg); in internal_event_intercept() 288 p_cb->int_cmd_rd_idx = ((p_cb->int_cmd_rd_idx+1) & \ in internal_event_intercept() 290 p_cb->int_cmd_rsp_pending--; in internal_event_intercept() 331 tHCI_H4_CB *p_cb = &h4_cb; in acl_rx_frame_buffer_alloc() local [all …]
|
/external/bluetooth/bluedroid/stack/gap/ |
D | gap_utils.c | 42 tGAP_INFO *p_cb; in btm_cback() local 48 p_cb = &gap_cb.blk[index]; in btm_cback() 51 switch (p_cb->event) in btm_cback() 87 if (p_cb->gap_cback) in btm_cback() 88 p_cb->gap_cback(p_cb->event, p_data); in btm_cback() 91 gap_free_cb(p_cb); in btm_cback() 118 tGAP_INFO *p_cb; in gap_inq_results_cb() local 131 for (index = 0, p_cb = &gap_cb.blk[0]; index < GAP_MAX_BLOCKS; index++, p_cb++) in gap_inq_results_cb() 134 if (p_cb->in_use && (p_cb->event == GAP_EVT_INQUIRY_COMPLETE)) in gap_inq_results_cb() 137 if (p_cb->gap_inq_rslt_cback) in gap_inq_results_cb() [all …]
|
/external/bluetooth/bluedroid/bta/sys/ |
D | ptim.c | 41 void ptim_init(tPTIM_CB *p_cb, UINT16 period, UINT8 timer_id) in ptim_init() argument 43 GKI_init_timer_list(&p_cb->timer_queue); in ptim_init() 44 p_cb->period = period; in ptim_init() 45 p_cb->timer_id = timer_id; in ptim_init() 59 void ptim_timer_update(tPTIM_CB *p_cb) in ptim_timer_update() argument 72 if (new_ticks_count >= p_cb->last_gki_ticks) in ptim_timer_update() 74 period_in_ticks = (INT32)(new_ticks_count - p_cb->last_gki_ticks); in ptim_timer_update() 78 period_in_ticks = (INT32)(((UINT32)0xffffffff - p_cb->last_gki_ticks) in ptim_timer_update() 83 GKI_update_timer_list(&p_cb->timer_queue, GKI_TICKS_TO_MS(period_in_ticks)); in ptim_timer_update() 85 p_cb->last_gki_ticks = new_ticks_count; in ptim_timer_update() [all …]
|
/external/libnfc-nci/src/nfa/sys/ |
D | nfa_sys_ptim.c | 43 void nfa_sys_ptim_init (tPTIM_CB *p_cb, UINT16 period, UINT8 timer_id) in nfa_sys_ptim_init() argument 45 GKI_init_timer_list (&p_cb->timer_queue); in nfa_sys_ptim_init() 46 p_cb->period = period; in nfa_sys_ptim_init() 47 p_cb->timer_id = timer_id; in nfa_sys_ptim_init() 61 void nfa_sys_ptim_timer_update (tPTIM_CB *p_cb) in nfa_sys_ptim_timer_update() argument 74 if (new_ticks_count >= p_cb->last_gki_ticks) in nfa_sys_ptim_timer_update() 76 period_in_ticks = (INT32) (new_ticks_count - p_cb->last_gki_ticks); in nfa_sys_ptim_timer_update() 80 period_in_ticks = (INT32) (((UINT32) 0xffffffff - p_cb->last_gki_ticks) in nfa_sys_ptim_timer_update() 85 GKI_update_timer_list (&p_cb->timer_queue, GKI_TICKS_TO_MS (period_in_ticks)); in nfa_sys_ptim_timer_update() 87 p_cb->last_gki_ticks = new_ticks_count; in nfa_sys_ptim_timer_update() [all …]
|
/external/bluetooth/bluedroid/gki/common/ |
D | gki_buffer.c | 46 tGKI_COM_CB *p_cb = &gki_cb.com; in gki_init_free_queue() local 56 p_cb->pool_start[id] = (UINT8 *)p_mem; in gki_init_free_queue() 57 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue() 61 p_cb->pool_size[id] = act_size; in gki_init_free_queue() 63 p_cb->freeq[id].size = (UINT16) tempsize; in gki_init_free_queue() 64 p_cb->freeq[id].total = total; in gki_init_free_queue() 65 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue() 66 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue() 73 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue() 86 p_cb->freeq[id].p_last = hdr1; in gki_init_free_queue() [all …]
|
/external/libnfc-nci/halimpl/bcm2079x/gki/common/ |
D | gki_buffer.c | 54 tGKI_COM_CB *p_cb = &gki_cb.com; in gki_init_free_queue() local 63 p_cb->pool_start[id] = (UINT8 *)p_mem; in gki_init_free_queue() 64 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue() 67 p_cb->pool_size[id] = act_size; in gki_init_free_queue() 69 p_cb->freeq[id].size = (UINT16) tempsize; in gki_init_free_queue() 70 p_cb->freeq[id].total = total; in gki_init_free_queue() 71 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue() 72 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue() 82 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue() 95 p_cb->freeq[id].p_last = hdr1; in gki_init_free_queue() [all …]
|
/external/libnfc-nci/src/gki/common/ |
D | gki_buffer.c | 54 tGKI_COM_CB *p_cb = &gki_cb.com; in gki_init_free_queue() local 63 p_cb->pool_start[id] = (UINT8 *)p_mem; in gki_init_free_queue() 64 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue() 67 p_cb->pool_size[id] = act_size; in gki_init_free_queue() 69 p_cb->freeq[id].size = (UINT16) tempsize; in gki_init_free_queue() 70 p_cb->freeq[id].total = total; in gki_init_free_queue() 71 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue() 72 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue() 82 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue() 95 p_cb->freeq[id].p_last = hdr1; in gki_init_free_queue() [all …]
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_sm.c | 78 btif_sm_cb_t *p_cb; in btif_sm_init() local 86 p_cb = (btif_sm_cb_t*) GKI_os_malloc(sizeof(btif_sm_cb_t)); in btif_sm_init() 87 p_cb->state = initial_state; in btif_sm_init() 88 p_cb->p_handlers = (btif_sm_handler_t*)p_handlers; in btif_sm_init() 91 p_cb->p_handlers[initial_state](BTIF_SM_ENTER_EVT, NULL); in btif_sm_init() 93 return (btif_sm_handle_t)p_cb; in btif_sm_init() 107 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_shutdown() local 109 if (p_cb == NULL) in btif_sm_shutdown() 114 GKI_os_free((void*)p_cb); in btif_sm_shutdown() 128 btif_sm_cb_t *p_cb = (btif_sm_cb_t*)handle; in btif_sm_get_state() local [all …]
|
/external/bluetooth/bluedroid/bta/hl/ |
D | bta_hl_sdp.c | 185 tBTA_HL_APP_CB *p_cb = BTA_HL_GET_APP_CB_PTR(0); in bta_hl_sdp_update() local 190 if ((p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SOURCE) && in bta_hl_sdp_update() 191 (!p_cb->sup_feature.advertize_source_sdp)) in bta_hl_sdp_update() 198 if (p_cb->sup_feature.app_role_mask == BTA_HL_MDEP_ROLE_MASK_SINK) in bta_hl_sdp_update() 204 if (p_cb->sup_feature.app_role_mask != BTA_HL_MDEP_ROLE_MASK_SOURCE) in bta_hl_sdp_update() 211 result &= SDP_AddServiceClassIdList(p_cb->sdp_handle, num_services, svc_class_id_list); in bta_hl_sdp_update() 218 proto_elem_list[0].params[0] = p_cb->ctrl_psm; in bta_hl_sdp_update() 222 result &= SDP_AddProtocolList(p_cb->sdp_handle, BTA_HL_NUM_PROTO_ELEMS, proto_elem_list); in bta_hl_sdp_update() 224 result &= SDP_AddProfileDescriptorList(p_cb->sdp_handle, profile_uuid, version); in bta_hl_sdp_update() 232 add_proto_list.list_elem[0].params[0] = p_cb->data_psm; in bta_hl_sdp_update() [all …]
|
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/ |
D | nfc_hal_nci.c | 179 static BOOLEAN nfc_hal_nci_receive_nci_msg (tNFC_HAL_NCIT_CB *p_cb, UINT8 byte) in nfc_hal_nci_receive_nci_msg() argument 184 switch (p_cb->rcv_state) in nfc_hal_nci_receive_nci_msg() 189 p_cb->rcv_state = NFC_HAL_RCV_NCI_HDR_ST; in nfc_hal_nci_receive_nci_msg() 190 p_cb->rcv_len = NCI_MSG_HDR_SIZE; in nfc_hal_nci_receive_nci_msg() 193 if ((p_cb->p_rcv_msg = (NFC_HDR *) GKI_getpoolbuf (NFC_HAL_NCI_POOL_ID)) != NULL) in nfc_hal_nci_receive_nci_msg() 196 p_cb->p_rcv_msg->len = 0; in nfc_hal_nci_receive_nci_msg() 197 p_cb->p_rcv_msg->event = 0; in nfc_hal_nci_receive_nci_msg() 198 p_cb->p_rcv_msg->offset = 0; in nfc_hal_nci_receive_nci_msg() 200 … *((UINT8 *) (p_cb->p_rcv_msg + 1) + p_cb->p_rcv_msg->offset + p_cb->p_rcv_msg->len++) = byte; in nfc_hal_nci_receive_nci_msg() 206 p_cb->rcv_len--; in nfc_hal_nci_receive_nci_msg() [all …]
|
/external/bluetooth/bluedroid/bta/av/ |
D | bta_av_act.c | 143 static void bta_av_close_all_rc(tBTA_AV_CB *p_cb) in bta_av_close_all_rc() argument 149 if ((p_cb->disabling == TRUE) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc() 298 UINT8 bta_av_rc_create(tBTA_AV_CB *p_cb, UINT8 role, UINT8 shdl, UINT8 lidx) in bta_av_rc_create() argument 303 tBTA_AV_SCB *p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create() 327 ccb.control = p_cb->features & (BTA_AV_FEAT_RCTG | BTA_AV_FEAT_RCCT | AVRC_CT_PASSIVE); in bta_av_rc_create() 334 p_rcb = &p_cb->rcb[i]; in bta_av_rc_create() 349 p_cb->rc_acp_handle = p_rcb->handle; in bta_av_rc_create() 350 p_cb->rc_acp_idx = (i + 1); in bta_av_rc_create() 351 APPL_TRACE_DEBUG("rc_acp_handle:%d idx:%d", p_cb->rc_acp_handle, p_cb->rc_acp_idx); in bta_av_rc_create() 452 tBTA_AV_CB *p_cb = &bta_av_cb; in bta_av_find_lcb() local [all …]
|
/external/bluetooth/bluedroid/stack/btm/ |
D | btm_ble_bgconn.c | 191 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_update_dev_to_white_list() local 192 UINT8 wl_state = p_cb->wl_state; in btm_update_dev_to_white_list() 194 if ((to_add && p_cb->num_empty_filter == 0) || in btm_update_dev_to_white_list() 195 (!to_add && p_cb->num_empty_filter == p_cb->max_filter_entries)) in btm_update_dev_to_white_list() 198 p_cb->num_empty_filter); in btm_update_dev_to_white_list() 232 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_ble_clear_white_list_complete() local 240 p_cb->num_empty_filter = p_cb->max_filter_entries; in btm_ble_clear_white_list_complete() 251 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_ble_add_2_white_list_complete() local 256 p_cb->num_empty_filter --; in btm_ble_add_2_white_list_complete() 267 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; in btm_ble_remove_from_white_list_complete() local [all …]
|