Searched refs:p_ccb (Results 1 - 25 of 41) sorted by relevance

12

/external/bluetooth/bluedroid/stack/avct/
H A Davct_ccb.c44 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) argument
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));
112 avct_ccb_to_idx(tAVCT_CCB *p_ccb) argument
130 tAVCT_CCB *p_ccb; local
[all...]
H A Davct_api.c133 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
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...]
H A Davct_lcb_act.c196 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
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...]
H A Davct_lcb.c93 typedef void (*tAVCT_LCB_ACTION)(tAVCT_LCB *p_ccb, tAVCT_LCB_EVT *p_data);
351 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
357 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
360 if (p_ccb->allocated)
362 if (p_ccb->p_lcb == p_lcb)
429 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
432 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
434 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb) && (p_ccb
454 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
[all...]
/external/bluetooth/bluedroid/stack/l2cap/
H A Dl2c_csm.c42 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, UINT1 argument
121 l2c_csm_closed(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
300 l2c_csm_orig_w4_sec_comp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
396 l2c_csm_term_w4_sec_comp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
512 l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
617 l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
703 l2c_csm_config(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
935 l2c_csm_open(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1086 l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1146 l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1289 l2c_enqueue_peer_data(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
H A Dl2c_ucd.c267 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
395 tL2C_CCB *p_ccb; local
485 tL2C_CCB *p_ccb; local
518 tL2C_CCB *p_ccb; local
557 tL2C_CCB *p_ccb; local
659 l2c_ucd_check_pending_info_req(tL2C_CCB *p_ccb) argument
737 l2c_ucd_enqueue_pending_out_sec_q(tL2C_CCB *p_ccb, void *p_data) argument
752 l2c_ucd_check_pending_out_sec_q(tL2C_CCB *p_ccb) argument
783 l2c_ucd_send_pending_out_sec_q(tL2C_CCB *p_ccb) argument
806 l2c_ucd_discard_pending_out_sec_q(tL2C_CCB *p_ccb) argument
829 l2c_ucd_check_pending_in_sec_q(tL2C_CCB *p_ccb) argument
860 l2c_ucd_send_pending_in_sec_q(tL2C_CCB *p_ccb) argument
882 l2c_ucd_discard_pending_in_sec_q(tL2C_CCB *p_ccb) argument
906 tL2C_CCB *p_ccb; local
957 l2c_ucd_process_event(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
[all...]
H A Dl2c_fcr.c89 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, UINT
175 l2c_fcr_start_timer(tL2C_CCB *p_ccb) argument
206 l2c_fcr_stop_timer(tL2C_CCB *p_ccb) argument
227 l2c_fcr_cleanup(tL2C_CCB *p_ccb) argument
387 l2c_fcr_is_flow_controlled(tL2C_CCB *p_ccb) argument
421 prepare_I_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission) argument
520 l2c_fcr_send_S_frame(tL2C_CCB *p_ccb, UINT16 function_code, UINT16 pf_bit) argument
638 l2c_fcr_proc_pdu(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
865 l2c_fcr_proc_tout(tL2C_CCB *p_ccb) argument
901 l2c_fcr_proc_ack_tout(tL2C_CCB *p_ccb) argument
929 process_reqseq(tL2C_CCB *p_ccb, UINT16 ctrl_word) argument
1022 process_s_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word) argument
1105 process_i_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack) argument
1299 process_stream_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
1388 do_sar_reassembly(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word) argument
1513 retransmit_i_frames(tL2C_CCB *p_ccb, UINT8 tx_seq) argument
1624 l2c_fcr_get_next_xmit_sdu_seg(tL2C_CCB *p_ccb, UINT16 max_packet_length) argument
1831 l2c_fcr_chk_chan_modes(tL2C_CCB *p_ccb) argument
1859 l2c_fcr_adj_our_req_options(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
1975 l2c_fcr_adj_monitor_retran_timeout(tL2C_CCB *p_ccb) argument
2012 l2c_fcr_adj_our_rsp_options(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2053 l2c_fcr_renegotiate_chan(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2157 l2c_fcr_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2297 l2c_corrupt_the_fcr_packet(tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_rx, UINT16 ctrl_word) argument
2427 tL2C_CCB *p_ccb = NULL; local
2522 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, cid); local
2545 l2c_bypass_sframe_packet(tL2C_CCB *p_ccb) argument
2584 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, cid); local
2622 l2c_fcr_collect_ack_delay(tL2C_CCB *p_ccb, UINT8 num_bufs_acked) argument
[all...]
H A Dl2c_utils.c118 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) argument
400 p_ccb->p_lcb->id++;
401 l2cu_adj_id(p_ccb->p_lcb, L2CAP_ADJ_ID);
403 p_ccb->local_id = p_ccb
432 l2cu_send_peer_connect_rsp(tL2C_CCB *p_ccb, UINT16 result, UINT16 status) argument
506 l2cu_send_peer_config_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
613 l2cu_send_peer_config_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
706 l2cu_send_peer_config_rej(tL2C_CCB *p_ccb, UINT8 *p_data, UINT16 data_len, UINT16 rej_len) argument
807 l2cu_send_peer_disc_req(tL2C_CCB *p_ccb) argument
1122 l2cu_enqueue_ccb(tL2C_CCB *p_ccb) argument
1214 l2cu_dequeue_ccb(tL2C_CCB *p_ccb) argument
1298 l2cu_change_pri_ccb(tL2C_CCB *p_ccb, tL2CAP_CHNL_PRIORITY priority) argument
1346 tL2C_CCB *p_ccb; local
1549 l2cu_release_ccb(tL2C_CCB *p_ccb) argument
1636 tL2C_CCB *p_ccb; local
1711 l2cu_disconnect_chnl(tL2C_CCB *p_ccb) argument
1780 l2cu_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
1913 l2cu_process_peer_cfg_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
1950 l2cu_process_our_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2043 l2cu_process_our_cfg_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2328 tL2C_CCB *p_ccb; local
2450 tL2C_CCB *p_ccb; local
2520 l2cu_adjust_out_mps(tL2C_CCB *p_ccb) argument
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
3163 l2cu_set_acl_hci_header(BT_HDR *p_buf, tL2C_CCB *p_ccb) argument
3223 l2cu_check_channel_congestion(tL2C_CCB *p_ccb) argument
[all...]
H A Dl2c_api.c124 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
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...]
H A Dl2c_link.c158 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_NE
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
1084 l2c_link_check_send_pkts(tL2C_LCB *p_lcb, tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
H A Dl2c_int.h591 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/sdp/
H A Dsdp_main.c174 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
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...]
H A Dsdp_server.c52 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) argument
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_nu
168 process_service_search(tCONN_CB *p_ccb, UINT16 trans_num, UINT16 param_len, UINT8 *p_req, UINT8 *p_req_end) argument
302 process_service_attr_req(tCONN_CB *p_ccb, UINT16 trans_num, UINT16 param_len, UINT8 *p_req, UINT8 *p_req_end) argument
551 process_service_search_attr_req(tCONN_CB *p_ccb, UINT16 trans_num, UINT16 param_len, UINT8 *p_req, UINT8 *p_req_end) argument
[all...]
H A Dsdp_discovery.c48 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) argument
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
195 sdp_disc_connected(tCONN_CB *p_ccb) argument
242 sdp_disc_server_rsp(tCONN_CB *p_ccb, BT_HDR *p_msg) argument
320 process_service_search_rsp(tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len) argument
381 sdp_copy_raw_data(tCONN_CB *p_ccb, UINT16 len, BOOLEAN offset) argument
436 process_service_attr_rsp(tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len) argument
594 process_service_search_attr_rsp(tCONN_CB *p_ccb, UINT8 *p_reply, UINT16 len) argument
784 save_attr_seq(tCONN_CB *p_ccb, UINT8 *p, UINT8 *p_msg_end) argument
[all...]
/external/bluetooth/bluedroid/stack/avdt/
H A Davdt_ccb_act.c47 static void avdt_ccb_clear_ccb(tAVDT_CCB *p_ccb) argument
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
87 avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
104 avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
121 avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
155 avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
195 avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
218 avdt_ccb_hdl_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
242 avdt_ccb_hdl_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
265 avdt_ccb_hdl_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
299 avdt_ccb_hdl_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
337 avdt_ccb_hdl_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
372 avdt_ccb_hdl_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
409 avdt_ccb_snd_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
435 avdt_ccb_snd_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
454 avdt_ccb_snd_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
484 avdt_ccb_snd_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
508 avdt_ccb_snd_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
554 avdt_ccb_snd_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
586 avdt_ccb_snd_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
632 avdt_ccb_snd_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
664 avdt_ccb_clear_cmds(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
709 avdt_ccb_cmd_fail(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
755 avdt_ccb_free_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
775 avdt_ccb_cong_state(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
793 avdt_ccb_ret_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
838 avdt_ccb_snd_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
870 avdt_ccb_snd_msg(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
912 avdt_ccb_set_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
927 avdt_ccb_clr_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
944 avdt_ccb_chk_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
978 avdt_ccb_chk_timer(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
996 avdt_ccb_set_conn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1016 avdt_ccb_set_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1037 avdt_ccb_do_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1056 avdt_ccb_ll_closed(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1092 avdt_ccb_ll_opened(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
[all...]
H A Davdt_ccb.c297 void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data) argument
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
415 avdt_ccb_dealloc(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
432 avdt_ccb_to_idx(tAVDT_CCB *p_ccb) argument
450 tAVDT_CCB *p_ccb; local
[all...]
H A Davdt_ad.c133 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) argument
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) argument
234 UINT8 ccb_idx = avdt_ccb_to_idx(p_ccb);
263 tAVDT_TC_TBL *avdt_ad_tc_tbl_alloc(tAVDT_CCB *p_ccb) argument
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_EV
368 tAVDT_CCB *p_ccb; local
425 tAVDT_CCB *p_ccb; local
461 tAVDT_CCB *p_ccb; local
502 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf) argument
530 avdt_ad_open_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, UINT8 role) argument
603 avdt_ad_close_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) argument
[all...]
H A Davdt_int.h450 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:__anon1083
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_EV
[all...]
H A Davdt_msg.c1186 BOOLEAN avdt_msg_send(tAVDT_CCB *p_ccb, BT_HDR *p_msg) argument
1200 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL);
1205 p_ccb->p_curr_msg = p_msg;
1209 curr_msg_len = p_ccb->p_curr_msg->len;
1212 while ((!p_ccb->cong) && (p_ccb->p_curr_msg != NULL))
1219 if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) &&
1220 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE))
1224 p_buf = p_ccb->p_curr_msg;
1227 else if ((p_ccb
1346 avdt_msg_asmbl(tAVDT_CCB *p_ccb, BT_HDR *p_buf) argument
1467 avdt_msg_send_cmd(tAVDT_CCB *p_ccb, void *p_scb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1536 avdt_msg_send_rsp(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1581 avdt_msg_send_rej(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1642 avdt_msg_send_grej(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1684 avdt_msg_ind(tAVDT_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
/external/bluetooth/bluedroid/stack/mcap/
H A Dmca_cact.c47 void mca_ccb_rsp_tout(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
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) argument
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_EV argument
91 mca_ccb_snd_req(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
157 mca_ccb_snd_rsp(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
211 mca_ccb_do_disconn(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
226 mca_ccb_cong(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
253 mca_ccb_hdl_req(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
454 mca_ccb_hdl_rsp(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
555 mca_ccb_ll_open(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
574 mca_ccb_dl_open(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
[all...]
H A Dmca_csm.c167 void mca_stop_timer(tMCA_CCB *p_ccb) argument
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) argument
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
224 tMCA_CCB *p_ccb = NULL; local
258 tMCA_CCB *p_ccb = NULL; local
294 mca_ccb_dealloc(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
333 mca_ccb_to_hdl(tMCA_CCB *p_ccb) argument
351 tMCA_CCB * p_ccb = NULL; local
367 mca_ccb_uses_mdl_id(tMCA_CCB *p_ccb, UINT16 mdl_id) argument
[all...]
H A Dmca_api.c339 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
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...]
H A Dmca_int.h219 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:__anon1521
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_EV
[all...]
H A Dmca_main.c122 tMCA_TC_TBL * mca_tc_tbl_calloc(tMCA_CCB *p_ccb) argument
142 p_tbl->cb_idx = mca_ccb_to_hdl(p_ccb);
146 p_tbl->lcid = p_ccb->lcid;
147 mca_cb.tc.lcid_tbl[p_ccb->lcid - L2CAP_BASE_APPL_CID] = i;
298 tMCA_CCB *p_ccb; local
322 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
323 mca_ccb_event(p_ccb, MCA_CCB_LL_CLOSE_EVT, (tMCA_CCB_EVT *)&close);
351 tMCA_CCB *p_ccb; local
371 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
373 mca_ccb_event(p_ccb, MCA_CCB_LL_OPEN_EV
406 tMCA_CCB *p_ccb; local
442 tMCA_CCB *p_ccb; local
544 tMCA_CCB *p_ccb; local
[all...]
/external/bluetooth/bluedroid/stack/gap/
H A Dgap_conn.c43 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
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
779 gap_checks_con_flags(tGAP_CCB *p_ccb) argument
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
1164 gap_release_ccb(tGAP_CCB *p_ccb) argument
1234 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (p_msg->layer_specific); local
[all...]

Completed in 307 milliseconds

12