/external/bluetooth/bluedroid/stack/avct/ |
avct_ccb.c | 44 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 47 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) 49 if (!p_ccb->allocated) 51 p_ccb->allocated = AVCT_ALOC_LCB; 52 memcpy(&p_ccb->cc, p_cc, sizeof(tAVCT_CC)); 61 p_ccb = NULL; 64 return p_ccb; 78 void avct_ccb_dealloc(tAVCT_CCB *p_ccb, UINT8 event, UINT16 result, BD_ADDR bd_addr) 80 tAVCT_CTRL_CBACK *p_cback = p_ccb->cc.p_ctrl_cback; 82 AVCT_TRACE_DEBUG1("avct_ccb_dealloc %d", avct_ccb_to_idx(p_ccb)); 130 tAVCT_CCB *p_ccb; local [all...] |
avct_api.c | 133 tAVCT_CCB *p_ccb; local 139 if ((p_ccb = avct_ccb_alloc(p_cc)) == NULL) 146 *p_handle = avct_ccb_to_idx(p_ccb); 157 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); 164 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); 171 p_ccb->p_lcb = p_lcb; 173 avct_lcb_event(p_lcb, AVCT_LCB_UL_BIND_EVT, (tAVCT_LCB_EVT *) &p_ccb); 196 tAVCT_CCB *p_ccb; local 201 if ((p_ccb = avct_ccb_by_idx(handle)) == NULL) 206 else if (p_ccb->p_lcb == NULL 238 tAVCT_CCB *p_ccb; local 313 tAVCT_CCB *p_ccb; local 347 tAVCT_CCB *p_ccb; local 370 tAVCT_CCB *p_ccb; local 408 tAVCT_CCB *p_ccb; local [all...] |
avct_lcb_act.c | 196 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); 214 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 218 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) 221 if (p_ccb->allocated) 224 if (p_ccb->p_lcb == p_lcb) 228 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_CFM_EVT, 232 else if ((p_ccb->p_lcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && 233 (avct_lcb_has_pid(p_lcb, p_ccb->cc.pid) == NULL) 265 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 291 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 326 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 450 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local 646 tAVCT_CCB *p_ccb; local [all...] |
/external/bluetooth/bluedroid/stack/gap/ |
gap_conn.c | 43 static void gap_release_ccb (tGAP_CCB *p_ccb); 125 tGAP_CCB *p_ccb; local 132 if ((p_ccb = gap_allocate_ccb()) == NULL) 140 p_ccb->rem_addr_specified = TRUE; 142 memcpy (&p_ccb->rem_dev_address[0], p_rem_bda, BD_ADDR_LEN); 151 if (!p_ccb->rem_addr_specified && !is_server) 153 gap_release_ccb (p_ccb); 160 p_ccb->cfg = *p_cfg; 162 p_ccb->p_callback = p_cb; 178 if ((p_ccb->psm = L2CA_REGISTER (psm, &gap_cb.conn.reg_info, AMP_AUTOSWITCH_ALLOWED|AMP_USE_AMP_IF_POSSIBLE)) (…) 254 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 293 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 358 tGAP_CCB *p_ccb; local 399 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 438 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 506 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 586 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 624 tGAP_CCB *p_ccb; local 652 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local 684 tGAP_CCB *p_ccb; local 706 tGAP_CCB *p_ccb; local 729 tGAP_CCB *p_ccb; local 803 tGAP_CCB *p_ccb = (tGAP_CCB *)p_ref_data; local 835 tGAP_CCB *p_ccb; local 879 tGAP_CCB *p_ccb; local 929 tGAP_CCB *p_ccb; local 967 tGAP_CCB *p_ccb; local 994 tGAP_CCB *p_ccb; local 1032 tGAP_CCB *p_ccb; local 1080 tGAP_CCB *p_ccb; local 1106 tGAP_CCB *p_ccb; local 1134 tGAP_CCB *p_ccb; local 1234 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (p_msg->layer_specific); local [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_csm.c | 42 static void l2c_csm_closed (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 43 static void l2c_csm_orig_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 44 static void l2c_csm_term_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 45 static void l2c_csm_w4_l2cap_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 46 static void l2c_csm_w4_l2ca_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 47 static void l2c_csm_config (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 48 static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 49 static void l2c_csm_w4_l2cap_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 50 static void l2c_csm_w4_l2ca_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data); 65 void l2c_csm_execute (tL2C_CCB *p_ccb, UINT16 event, void *p_data [all...] |
l2c_ucd.c | 267 tL2C_CCB *p_ccb; local 297 p_ccb = l2cb.ccb_pool; 300 if (( p_ccb->in_use ) 301 &&( p_ccb->local_cid == L2CAP_CONNECTIONLESS_CID )) 303 l2cu_release_ccb (p_ccb); 305 p_ccb++; 329 tL2C_CCB *p_ccb; local 347 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)) 366 if (!p_ccb) 368 p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID) 395 tL2C_CCB *p_ccb; local 485 tL2C_CCB *p_ccb; local 518 tL2C_CCB *p_ccb; local 557 tL2C_CCB *p_ccb; local 906 tL2C_CCB *p_ccb; local [all...] |
l2c_fcr.c | 89 static BOOLEAN process_reqseq (tL2C_CCB *p_ccb, UINT16 ctrl_word); 90 static void process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word); 91 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack); 92 static BOOLEAN retransmit_i_frames (tL2C_CCB *p_ccb, UINT8 tx_seq); 93 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission); 94 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf); 95 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word); 98 static BOOLEAN l2c_corrupt_the_fcr_packet (tL2C_CCB *p_ccb, BT_HDR *p_buf, 100 static BOOLEAN l2c_bypass_sframe_packet (tL2C_CCB *p_ccb); 104 static void l2c_fcr_collect_ack_delay (tL2C_CCB *p_ccb, UINT8 num_bufs_acked) 2427 tL2C_CCB *p_ccb = NULL; local 2522 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, cid); local 2584 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, cid); local [all...] |
l2c_utils.c | 118 tL2C_CCB *p_ccb; local 186 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_lcb->ccb_queue.p_first_ccb) 188 l2cu_release_ccb (p_ccb); 394 void l2cu_send_peer_connect_req (tL2C_CCB *p_ccb) 400 p_ccb->p_lcb->id++; 401 l2cu_adj_id(p_ccb->p_lcb, L2CAP_ADJ_ID); 403 p_ccb->local_id = p_ccb->p_lcb->id 1346 tL2C_CCB *p_ccb; local 1636 tL2C_CCB *p_ccb; local 2328 tL2C_CCB *p_ccb; local 2450 tL2C_CCB *p_ccb; local 2568 tL2C_CCB *p_ccb; local 2846 tL2C_CCB *p_ccb = NULL; local 2909 tL2C_CCB *p_ccb; local 3015 tL2C_CCB *p_ccb; local 3061 tL2C_CCB *p_ccb; local [all...] |
l2c_api.c | 124 tL2C_CCB *p_ccb; local 137 if (((p_ccb = p_lcb->ccb_queue.p_first_ccb) == NULL) 141 if ((p_ccb->in_use) && 142 ((p_ccb->chnl_state == CST_W4_L2CAP_DISCONNECT_RSP) || 143 (p_ccb->chnl_state == CST_W4_L2CA_DISCONNECT_RSP))) 146 if (p_ccb->p_rcb == p_rcb) 147 l2c_csm_execute (p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL); 232 tL2C_CCB *p_ccb; local 266 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL) 273 p_ccb->p_rcb = p_rcb 354 tL2C_CCB *p_ccb; local 437 tL2C_CCB *p_ccb; local 488 tL2C_CCB *p_ccb; local 532 tL2C_CCB *p_ccb; local 560 tL2C_CCB *p_ccb; local 718 tL2C_CCB *p_ccb; local 864 tL2C_CCB *p_ccb; local 942 tL2C_CCB *p_ccb; local 986 tL2C_CCB *p_ccb; local 1019 tL2C_CCB *p_ccb; local 1047 tL2C_CCB *p_ccb; local 1257 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, lcid); local 1465 tL2C_CCB *p_ccb; local 1563 tL2C_CCB *p_ccb; local 1659 tL2C_CCB *p_ccb; local 1715 tL2C_CCB *p_ccb; local [all...] |
l2c_main.c | 125 tL2C_CCB *p_ccb = NULL; local 197 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, rcv_cid)) == NULL) 272 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL]; 274 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) 275 l2c_fcr_proc_pdu (p_ccb, p_msg); 286 if (p_ccb == NULL) 291 if (p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_BASIC_MODE) 292 l2c_csm_execute (p_ccb, L2CEVT_L2CAP_DATA, p_msg); 296 if ((p_ccb->chnl_state == CST_OPEN) || (p_ccb->chnl_state == CST_CONFIG) 322 tL2C_CCB *p_ccb; local 930 tL2C_CCB *p_ccb; local [all...] |
l2c_link.c | 158 tL2C_CCB *p_ccb; local 223 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) 225 l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); 252 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; ) 254 tL2C_CCB *pn = p_ccb->p_next_ccb; 256 l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci) 296 tL2C_CCB *p_ccb; local 360 tL2C_CCB *p_ccb; local 466 tL2C_CCB *p_ccb; local 498 tL2C_CCB *p_ccb; local 623 tL2C_CCB *p_ccb; local 804 tL2C_CCB *p_ccb; local 1035 tL2C_CCB *p_ccb; local [all...] |
l2c_int.h | 591 extern void l2cu_enqueue_ccb (tL2C_CCB *p_ccb); 592 extern void l2cu_dequeue_ccb (tL2C_CCB *p_ccb); 593 extern void l2cu_change_pri_ccb (tL2C_CCB *p_ccb, tL2CAP_CHNL_PRIORITY priority); 596 extern void l2cu_release_ccb (tL2C_CCB *p_ccb); 603 extern void l2cu_send_peer_connect_req (tL2C_CCB *p_ccb); 604 extern void l2cu_send_peer_connect_rsp (tL2C_CCB *p_ccb, UINT16 result, UINT16 status); 605 extern void l2cu_send_peer_config_req (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg); 606 extern void l2cu_send_peer_config_rsp (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg); 607 extern void l2cu_send_peer_config_rej (tL2C_CCB *p_ccb, UINT8 *p_data, UINT16 data_len, UINT16 rej_len); 608 extern void l2cu_send_peer_disc_req (tL2C_CCB *p_ccb); [all...] |
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_ccb_act.c | 47 static void avdt_ccb_clear_ccb(tAVDT_CCB *p_ccb) 52 p_ccb->cong = FALSE; 53 p_ccb->ret_count = 0; 56 if (p_ccb->p_curr_msg != NULL) 58 GKI_freebuf(p_ccb->p_curr_msg); 59 p_ccb->p_curr_msg = NULL; 63 if (p_ccb->p_rx_msg != NULL) 65 GKI_freebuf(p_ccb->p_rx_msg); 66 p_ccb->p_rx_msg = NULL; 70 while ((p_buf = (BT_HDR *) GKI_dequeue(&p_ccb->rsp_q)) != NULL [all...] |
avdt_ccb.c | 297 void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data) 304 AVDT_TRACE_EVENT3("CCB ccb=%d event=%s state=%s", avdt_ccb_to_idx(p_ccb), avdt_ccb_evt_str[event], avdt_ccb_st_str[p_ccb->state]); 306 BTTRC_AVDT_CCB_EVENT(event, p_ccb->state); 309 state_table = avdt_ccb_st_tbl[p_ccb->state]; 312 if (p_ccb->state != state_table[event][AVDT_CCB_NEXT_STATE]) 314 p_ccb->state = state_table[event][AVDT_CCB_NEXT_STATE]; 322 (*avdt_cb.p_ccb_act[action])(p_ccb, p_data); 344 tAVDT_CCB *p_ccb = &avdt_cb.ccb[0]; local 347 for (i = 0; i < AVDT_NUM_LINKS; i++, p_ccb++ 379 tAVDT_CCB *p_ccb = &avdt_cb.ccb[0]; local 450 tAVDT_CCB *p_ccb; local [all...] |
avdt_int.h | 450 typedef void (*tAVDT_CCB_ACTION)(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 490 tAVDT_CCB *p_ccb; /* ccb associated with this scb */ member in struct:__anon3053 561 extern void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data); 564 extern void avdt_ccb_dealloc(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 565 extern UINT8 avdt_ccb_to_idx(tAVDT_CCB *p_ccb); 569 extern void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 570 extern void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 571 extern void avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 572 extern void avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data); 573 extern void avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) [all...] |
avdt_ad.c | 133 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) 139 if (p_ccb == NULL) 154 ccb_idx = avdt_ccb_to_idx(p_ccb); 229 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_type(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) 234 UINT8 ccb_idx = avdt_ccb_to_idx(p_ccb); 263 tAVDT_TC_TBL *avdt_ad_tc_tbl_alloc(tAVDT_CCB *p_ccb) 283 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); 322 tAVDT_CCB *p_ccb; local 337 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); 338 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL) 368 tAVDT_CCB *p_ccb; local 425 tAVDT_CCB *p_ccb; local 461 tAVDT_CCB *p_ccb; local [all...] |
avdt_msg.c | [all...] |
avdt_l2c.c | 74 tAVDT_CCB *p_ccb = NULL; local 85 p_ccb = avdt_ccb_by_bd(bd_addr); 87 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); 98 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; 130 tAVDT_CCB *p_ccb = NULL; local 136 p_ccb = avdt_ccb_by_bd(bd_addr); 137 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); 172 tAVDT_CCB *p_ccb; local 179 if ((p_ccb = avdt_ccb_by_bd(bd_addr)) == NULL) 182 if ((p_ccb = avdt_ccb_alloc(bd_addr)) == NULL 278 tAVDT_CCB *p_ccb; local [all...] |
/external/bluetooth/bluedroid/stack/mcap/ |
mca_cact.c | 47 void mca_ccb_rsp_tout(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) 50 mca_ccb_report_event(p_ccb, MCA_RSP_TOUT_IND_EVT, &evt_data); 62 void mca_ccb_report_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CTRL *p_data) 64 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback) 65 (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), mca_ccb_to_hdl(p_ccb), event, p_data); 77 void mca_ccb_free_msg(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data [all...] |
mca_csm.c | 167 void mca_stop_timer(tMCA_CCB *p_ccb) 169 if (p_ccb->timer_entry.event == BTU_TTYPE_MCA_CCB_RSP) 171 btu_stop_timer(&p_ccb->timer_entry); 172 p_ccb->timer_entry.event = 0; 187 void mca_ccb_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CCB_EVT *p_data) 193 MCA_TRACE_EVENT3("CCB ccb=%d event=%s state=%s", mca_ccb_to_hdl(p_ccb), mca_ccb_evt_str[event], mca_ccb_st_str[p_ccb->state]); 195 MCA_TRACE_EVENT3("CCB ccb=%d event=%d state=%d", mca_ccb_to_hdl(p_ccb), event, p_ccb->state); 199 state_table = mca_ccb_st_tbl[p_ccb->state - 1] 224 tMCA_CCB *p_ccb = NULL; local 258 tMCA_CCB *p_ccb = NULL; local 351 tMCA_CCB * p_ccb = NULL; local [all...] |
mca_api.c | 339 tMCA_CCB *p_ccb; local 343 if ((p_ccb = mca_ccb_by_bd(handle, bd_addr)) == NULL) 344 p_ccb = mca_ccb_alloc(handle, bd_addr); 351 if (p_ccb) 353 p_ccb->ctrl_vpsm = L2CA_Register (ctrl_psm, (tL2CAP_APPL_INFO *)&mca_l2c_int_appl); 355 if (p_ccb->ctrl_vpsm) 358 p_ccb->ctrl_vpsm, BTM_SEC_PROTO_MCA, MCA_CTRL_TCID); 359 p_ccb->lcid = mca_l2c_open_req(bd_addr, p_ccb->ctrl_vpsm, NULL); 360 if (p_ccb->lcid 394 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 428 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 506 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 603 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 672 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 737 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 784 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local 834 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local [all...] |
mca_int.h | 219 typedef void (*tMCA_CCB_ACTION)(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data); 241 tMCA_CCB *p_ccb; /* the associated control control block */ member in struct:__anon3491 252 typedef void (*tMCA_DCB_ACTION)(tMCA_DCB *p_ccb, tMCA_DCB_EVT *p_data); 264 extern void mca_ccb_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CCB_EVT *p_data); 267 extern void mca_ccb_rsp_tout(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data); 268 extern void mca_ccb_dealloc(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data); 269 extern tMCA_CL mca_ccb_to_hdl(tMCA_CCB *p_ccb); 271 extern BOOLEAN mca_ccb_uses_mdl_id(tMCA_CCB *p_ccb, UINT16 mdl_id); 274 extern void mca_ccb_report_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CTRL *p_data); 275 extern void mca_ccb_free_msg(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) [all...] |
/external/bluetooth/bluedroid/stack/sdp/ |
sdp_discovery.c | 48 static void process_service_search_rsp (tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len); 49 static void process_service_attr_rsp (tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len); 50 static void process_service_search_attr_rsp (tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len); 51 static UINT8 *save_attr_seq (tCONN_CB *p_ccb, UINT8 *p, UINT8 *p_msg_end); 119 static void sdp_snd_service_search_req(tCONN_CB *p_ccb, UINT8 cont_len, UINT8 * p_cont) 128 sdp_disconnect (p_ccb, SDP_NO_RESOURCES); 137 UINT16_TO_BE_STREAM (p, p_ccb->transaction_id); 138 p_ccb->transaction_id++; 146 p = sdpu_build_uuid_seq (p, 1, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]) [all...] |
sdp_server.c | 52 static void process_service_search (tCONN_CB *p_ccb, UINT16 trans_num, 56 static void process_service_attr_req (tCONN_CB *p_ccb, UINT16 trans_num, 60 static void process_service_search_attr_req (tCONN_CB *p_ccb, UINT16 trans_num, 110 void sdp_server_handle_client_req (tCONN_CB *p_ccb, BT_HDR *p_msg) 119 btu_start_timer (&p_ccb->timer_entry, BTU_TTYPE_SDP, SDP_INACT_TIMEOUT); 130 sdpu_build_n_send_error (p_ccb, trans_num, SDP_INVALID_PDU_SIZE, SDP_TEXT_BAD_HEADER); 137 process_service_search (p_ccb, trans_num, param_len, p_req, p_req_end); 141 process_service_attr_req (p_ccb, trans_num, param_len, p_req, p_req_end); 145 process_service_search_attr_req (p_ccb, trans_num, param_len, p_req, p_req_end); 149 sdpu_build_n_send_error (p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, SDP_TEXT_BAD_PDU) [all...] |
sdp_main.c | 174 tCONN_CB *p_ccb; local 177 if ((p_ccb = sdpu_allocate_ccb()) == NULL) 181 p_ccb->con_state = SDP_STATE_CFG_SETUP; 184 memcpy (&p_ccb->device_address[0], bd_addr, sizeof (BD_ADDR)); 185 p_ccb->connection_id = l2cap_cid; 209 SDP_TRACE_EVENT1 ("SDP - Rcvd L2CAP conn ind, sent config req, CID 0x%x", p_ccb->connection_id); 230 tCONN_CB *p_ccb; local 234 if ((p_ccb = sdpu_find_ccb_by_cid (l2cap_cid)) == NULL) 242 if ((result == L2CAP_CONN_OK) && (p_ccb->con_state == SDP_STATE_CONN_SETUP)) 244 p_ccb->con_state = SDP_STATE_CFG_SETUP 308 tCONN_CB *p_ccb; local 402 tCONN_CB *p_ccb; local 460 tCONN_CB *p_ccb; local 503 tCONN_CB *p_ccb; local 543 tCONN_CB *p_ccb; local 673 tCONN_CB *p_ccb; local [all...] |