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

12

/system/bt/stack/l2cap/
H A Dl2c_csm.c45 static void l2c_csm_closed (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
46 static void l2c_csm_orig_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
47 static void l2c_csm_term_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
48 static void l2c_csm_w4_l2cap_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
49 static void l2c_csm_w4_l2ca_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
50 static void l2c_csm_config (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
51 static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
52 static void l2c_csm_w4_l2cap_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
53 static void l2c_csm_w4_l2ca_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
68 void l2c_csm_execute (tL2C_CCB *p_ccb, UINT1 argument
125 l2c_csm_closed(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
327 l2c_csm_orig_w4_sec_comp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
445 l2c_csm_term_w4_sec_comp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
572 l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
702 l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
820 l2c_csm_config(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1070 l2c_csm_open(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1262 l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1327 l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB *p_ccb, UINT16 event, void *p_data) argument
1474 l2c_enqueue_peer_data(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
H A Dl2c_ucd.c270 tL2C_CCB *p_ccb; local
300 p_ccb = l2cb.ccb_pool;
303 if (( p_ccb->in_use )
304 &&( p_ccb->local_cid == L2CAP_CONNECTIONLESS_CID ))
306 l2cu_release_ccb (p_ccb);
308 p_ccb++;
332 tL2C_CCB *p_ccb; local
350 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL))
369 if (!p_ccb)
371 p_ccb
398 tL2C_CCB *p_ccb; local
489 tL2C_CCB *p_ccb; local
522 tL2C_CCB *p_ccb; local
561 tL2C_CCB *p_ccb; local
667 l2c_ucd_check_pending_info_req(tL2C_CCB *p_ccb) argument
745 l2c_ucd_enqueue_pending_out_sec_q(tL2C_CCB *p_ccb, void *p_data) argument
760 l2c_ucd_check_pending_out_sec_q(tL2C_CCB *p_ccb) argument
790 l2c_ucd_send_pending_out_sec_q(tL2C_CCB *p_ccb) argument
811 l2c_ucd_discard_pending_out_sec_q(tL2C_CCB *p_ccb) argument
828 l2c_ucd_check_pending_in_sec_q(tL2C_CCB *p_ccb) argument
857 l2c_ucd_send_pending_in_sec_q(tL2C_CCB *p_ccb) argument
[all...]
H A Dl2c_utils.c142 tL2C_CCB *p_ccb; local
197 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_lcb->ccb_queue.p_first_ccb)
199 l2cu_release_ccb (p_ccb);
484 void l2cu_send_peer_connect_req (tL2C_CCB *p_ccb) argument
490 p_ccb->p_lcb->id++;
491 l2cu_adj_id(p_ccb->p_lcb, L2CAP_ADJ_ID);
493 p_ccb->local_id = p_ccb
522 l2cu_send_peer_connect_rsp(tL2C_CCB *p_ccb, UINT16 result, UINT16 status) argument
596 l2cu_send_peer_config_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
703 l2cu_send_peer_config_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
796 l2cu_send_peer_config_rej(tL2C_CCB *p_ccb, UINT8 *p_data, UINT16 data_len, UINT16 rej_len) argument
917 l2cu_send_peer_disc_req(tL2C_CCB *p_ccb) argument
1257 l2cu_enqueue_ccb(tL2C_CCB *p_ccb) argument
1349 l2cu_dequeue_ccb(tL2C_CCB *p_ccb) argument
1433 l2cu_change_pri_ccb(tL2C_CCB *p_ccb, tL2CAP_CHNL_PRIORITY priority) argument
1481 tL2C_CCB *p_ccb; local
1675 l2cu_release_ccb(tL2C_CCB *p_ccb) argument
1770 tL2C_CCB *p_ccb; local
1876 l2cu_disconnect_chnl(tL2C_CCB *p_ccb) argument
1969 l2cu_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2102 l2cu_process_peer_cfg_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2139 l2cu_process_our_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2232 l2cu_process_our_cfg_rsp(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2505 tL2C_CCB *p_ccb; local
2627 tL2C_CCB *p_ccb; local
2697 l2cu_adjust_out_mps(tL2C_CCB *p_ccb) argument
2745 tL2C_CCB *p_ccb; local
3074 l2cu_send_peer_ble_credit_based_conn_req(tL2C_CCB *p_ccb) argument
3164 l2cu_send_peer_ble_credit_based_conn_res(tL2C_CCB *p_ccb, UINT16 result) argument
3199 l2cu_send_peer_ble_flow_control_credit(tL2C_CCB *p_ccb, UINT16 credit_value) argument
3241 l2cu_send_peer_ble_credit_based_disconn_req(tL2C_CCB *p_ccb) argument
3319 tL2C_CCB *p_ccb = NULL; local
3382 tL2C_CCB *p_ccb; local
3495 tL2C_CCB *p_ccb; local
3537 tL2C_CCB *p_ccb; local
3657 l2cu_set_acl_hci_header(BT_HDR *p_buf, tL2C_CCB *p_ccb) argument
3721 l2cu_check_channel_congestion(tL2C_CCB *p_ccb) argument
[all...]
H A Dl2c_fcr.c95 static BOOLEAN process_reqseq (tL2C_CCB *p_ccb, UINT16 ctrl_word);
96 static void process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
97 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack);
98 static BOOLEAN retransmit_i_frames (tL2C_CCB *p_ccb, UINT8 tx_seq);
99 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission);
100 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf);
101 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
104 static void l2c_fcr_collect_ack_delay (tL2C_CCB *p_ccb, UINT8 num_bufs_acked);
175 void l2c_fcr_start_timer (tL2C_CCB *p_ccb) argument
177 assert(p_ccb !
207 l2c_fcr_stop_timer(tL2C_CCB *p_ccb) argument
222 l2c_fcr_cleanup(tL2C_CCB *p_ccb) argument
361 l2c_fcr_is_flow_controlled(tL2C_CCB *p_ccb) argument
396 prepare_I_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission) argument
500 l2c_fcr_send_S_frame(tL2C_CCB *p_ccb, UINT16 function_code, UINT16 pf_bit) argument
594 l2c_fcr_proc_pdu(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
823 l2c_lcc_proc_pdu(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
903 l2c_fcr_proc_tout(tL2C_CCB *p_ccb) argument
942 l2c_fcr_proc_ack_tout(tL2C_CCB *p_ccb) argument
971 process_reqseq(tL2C_CCB *p_ccb, UINT16 ctrl_word) argument
1064 process_s_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word) argument
1150 process_i_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack) argument
1339 process_stream_frame(tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
1423 do_sar_reassembly(tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word) argument
1546 retransmit_i_frames(tL2C_CCB *p_ccb, UINT8 tx_seq) argument
1667 l2c_fcr_get_next_xmit_sdu_seg(tL2C_CCB *p_ccb, UINT16 max_packet_length) argument
1846 l2c_lcc_get_next_xmit_sdu_seg(tL2C_CCB *p_ccb, UINT16 max_packet_length) argument
1956 l2c_fcr_chk_chan_modes(tL2C_CCB *p_ccb) argument
1986 l2c_fcr_adj_our_req_options(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2105 l2c_fcr_adj_monitor_retran_timeout(tL2C_CCB *p_ccb) argument
2144 l2c_fcr_adj_our_rsp_options(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2186 l2c_fcr_renegotiate_chan(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2296 l2c_fcr_process_peer_cfg_req(tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg) argument
2429 l2c_fcr_collect_ack_delay(tL2C_CCB *p_ccb, UINT8 num_bufs_acked) argument
[all...]
H A Dl2c_api.c130 tL2C_CCB *p_ccb; local
143 if (((p_ccb = p_lcb->ccb_queue.p_first_ccb) == NULL)
147 if ((p_ccb->in_use) &&
148 ((p_ccb->chnl_state == CST_W4_L2CAP_DISCONNECT_RSP) ||
149 (p_ccb->chnl_state == CST_W4_L2CA_DISCONNECT_RSP)))
152 if (p_ccb->p_rcb == p_rcb)
153 l2c_csm_execute (p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL);
242 tL2C_CCB *p_ccb; local
279 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
286 p_ccb
435 tL2C_CCB *p_ccb = p_lcb->ccb_queue.p_first_ccb; local
504 tL2C_CCB *p_ccb = l2cu_allocate_ccb(p_lcb, 0); local
577 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); local
624 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); local
704 tL2C_CCB *p_ccb; local
787 tL2C_CCB *p_ccb; local
837 tL2C_CCB *p_ccb; local
880 tL2C_CCB *p_ccb; local
908 tL2C_CCB *p_ccb; local
1082 tL2C_CCB *p_ccb; local
1235 tL2C_CCB *p_ccb; local
1313 tL2C_CCB *p_ccb; local
1357 tL2C_CCB *p_ccb; local
1389 tL2C_CCB *p_ccb; local
1417 tL2C_CCB *p_ccb; local
1627 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid (NULL, lcid); local
1909 tL2C_CCB *p_ccb; local
2026 tL2C_CCB *p_ccb; local
2075 tL2C_CCB *p_ccb = l2cu_find_ccb_by_cid(NULL, lcid);; local
2153 tL2C_CCB *p_ccb; local
2209 tL2C_CCB *p_ccb; local
[all...]
H A Dl2c_int.h597 extern void l2cu_enqueue_ccb (tL2C_CCB *p_ccb);
598 extern void l2cu_dequeue_ccb (tL2C_CCB *p_ccb);
599 extern void l2cu_change_pri_ccb (tL2C_CCB *p_ccb, tL2CAP_CHNL_PRIORITY priority);
602 extern void l2cu_release_ccb (tL2C_CCB *p_ccb);
610 extern void l2cu_send_peer_connect_req (tL2C_CCB *p_ccb);
611 extern void l2cu_send_peer_connect_rsp (tL2C_CCB *p_ccb, UINT16 result, UINT16 status);
612 extern void l2cu_send_peer_config_req (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg);
613 extern void l2cu_send_peer_config_rsp (tL2C_CCB *p_ccb, tL2CAP_CFG_INFO *p_cfg);
614 extern void l2cu_send_peer_config_rej (tL2C_CCB *p_ccb, UINT8 *p_data, UINT16 data_len, UINT16 rej_len);
615 extern void l2cu_send_peer_disc_req (tL2C_CCB *p_ccb);
[all...]
H A Dl2c_link.c162 tL2C_CCB *p_ccb; local
225 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
227 l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM, &ci);
260 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; )
262 tL2C_CCB *pn = p_ccb->p_next_ccb;
264 l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM_NE
304 tL2C_CCB *p_ccb; local
372 tL2C_CCB *p_ccb; local
525 tL2C_CCB *p_ccb; local
557 tL2C_CCB *p_ccb; local
688 tL2C_CCB *p_ccb; local
879 tL2C_CCB *p_ccb = l2cb.ccb_pool + xx; local
1015 tL2C_CCB *p_ccb; local
1064 l2c_link_check_send_pkts(tL2C_LCB *p_lcb, tL2C_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
H A Dl2c_ble.c250 tL2C_CCB *p_ccb; local
263 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
265 if (p_ccb->chnl_state == CST_CLOSED)
266 l2c_csm_execute (p_ccb, L2CEVT_LP_CONNECT_CFM, NULL);
606 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; local
706 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
721 p_ccb
1273 l2cble_credit_based_conn_req(tL2C_CCB *p_ccb) argument
1298 l2cble_credit_based_conn_res(tL2C_CCB *p_ccb, UINT16 result) argument
1323 l2cble_send_flow_control_credit(tL2C_CCB *p_ccb, UINT16 credit_value) argument
1349 l2cble_send_peer_disc_req(tL2C_CCB *p_ccb) argument
[all...]
/system/bt/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_DEBUG("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.c136 tAVCT_CCB *p_ccb; local
142 if ((p_ccb = avct_ccb_alloc(p_cc)) == NULL)
149 *p_handle = avct_ccb_to_idx(p_ccb);
160 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL);
167 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL);
174 p_ccb->p_lcb = p_lcb;
176 avct_lcb_event(p_lcb, AVCT_LCB_UL_BIND_EVT, (tAVCT_LCB_EVT *) &p_ccb);
199 tAVCT_CCB *p_ccb; local
204 if ((p_ccb = avct_ccb_by_idx(handle)) == NULL)
209 else if (p_ccb
241 tAVCT_CCB *p_ccb; local
318 tAVCT_CCB *p_ccb; local
353 tAVCT_CCB *p_ccb; local
378 tAVCT_CCB *p_ccb; local
416 tAVCT_CCB *p_ccb; local
[all...]
H A Davct_lcb_act.c211 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL);
229 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
233 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
236 if (p_ccb->allocated)
239 if (p_ccb->p_lcb == p_lcb)
243 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_CFM_EVT,
247 else if ((p_ccb->p_lcb == NULL) && (p_ccb->cc.role == AVCT_ACP) &&
248 (avct_lcb_has_pid(p_lcb, p_ccb
280 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
306 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
342 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
470 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
666 tAVCT_CCB *p_ccb; local
[all...]
H A Davct_lcb.c94 typedef void (*tAVCT_LCB_ACTION)(tAVCT_LCB *p_ccb, tAVCT_LCB_EVT *p_data);
359 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
360 for (size_t i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
362 if (p_ccb->allocated && p_ccb->p_lcb == p_lcb)
422 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
425 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++)
427 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb) && (p_ccb
447 tAVCT_CCB *p_ccb = &avct_cb.ccb[0]; local
[all...]
/system/bt/stack/sdp/
H A Dsdp_main.c178 tCONN_CB *p_ccb; local
181 if ((p_ccb = sdpu_allocate_ccb()) == NULL)
185 p_ccb->con_state = SDP_STATE_CFG_SETUP;
188 memcpy (&p_ccb->device_address[0], bd_addr, sizeof (BD_ADDR));
189 p_ccb->connection_id = l2cap_cid;
213 SDP_TRACE_EVENT ("SDP - Rcvd L2CAP conn ind, sent config req, CID 0x%x", p_ccb->connection_id);
234 tCONN_CB *p_ccb; local
238 if ((p_ccb = sdpu_find_ccb_by_cid (l2cap_cid)) == NULL)
246 if ((result == L2CAP_CONN_OK) && (p_ccb->con_state == SDP_STATE_CONN_SETUP))
248 p_ccb
312 tCONN_CB *p_ccb; local
407 tCONN_CB *p_ccb; local
468 tCONN_CB *p_ccb; local
511 tCONN_CB *p_ccb; local
551 tCONN_CB *p_ccb; local
675 tCONN_CB *p_ccb; local
711 tCONN_CB *p_ccb = (tCONN_CB *)data; local
[all...]
H A Dsdp_server.c55 static void process_service_search (tCONN_CB *p_ccb, UINT16 trans_num,
59 static void process_service_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
63 static void process_service_search_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
117 void sdp_server_handle_client_req (tCONN_CB *p_ccb, BT_HDR *p_msg) argument
126 alarm_set_on_queue(p_ccb->sdp_conn_timer, SDP_INACT_TIMEOUT_MS,
127 sdp_conn_timer_timeout, p_ccb, btu_general_alarm_queue);
138 sdpu_build_n_send_error (p_ccb, trans_num, SDP_INVALID_PDU_SIZE, SDP_TEXT_BAD_HEADER);
145 process_service_search (p_ccb, trans_num, param_len, p_req, p_req_end);
149 process_service_attr_req (p_ccb, trans_num, param_len, p_req, p_req_end);
153 process_service_search_attr_req (p_ccb, trans_nu
176 process_service_search(tCONN_CB *p_ccb, UINT16 trans_num, UINT16 param_len, UINT8 *p_req, UINT8 *p_req_end) argument
315 process_service_attr_req(tCONN_CB *p_ccb, UINT16 trans_num, UINT16 param_len, UINT8 *p_req, UINT8 *p_req_end) argument
544 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);
49 static void process_service_attr_rsp (tCONN_CB *p_ccb, UINT8 *p_reply);
50 static void process_service_search_attr_rsp (tCONN_CB *p_ccb, UINT8 *p_reply);
51 static UINT8 *save_attr_seq (tCONN_CB *p_ccb, UINT8 *p, UINT8 *p_msg_end);
120 static void sdp_snd_service_search_req(tCONN_CB *p_ccb, UINT8 cont_len, UINT8 * p_cont) argument
132 UINT16_TO_BE_STREAM (p, p_ccb->transaction_id);
133 p_ccb->transaction_id++;
141 p = sdpu_build_uuid_seq (p, 1, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]);
143 p = sdpu_build_uuid_seq (p, p_ccb
190 sdp_disc_connected(tCONN_CB *p_ccb) argument
220 sdp_disc_server_rsp(tCONN_CB *p_ccb, BT_HDR *p_msg) argument
283 process_service_search_rsp(tCONN_CB *p_ccb, UINT8 *p_reply) argument
344 sdp_copy_raw_data(tCONN_CB *p_ccb, BOOLEAN offset) argument
398 process_service_attr_rsp(tCONN_CB *p_ccb, UINT8 *p_reply) argument
544 process_service_search_attr_rsp(tCONN_CB *p_ccb, UINT8 *p_reply) argument
722 save_attr_seq(tCONN_CB *p_ccb, UINT8 *p, UINT8 *p_msg_end) argument
[all...]
/system/bt/stack/gap/
H A Dgap_conn.c46 static void gap_release_ccb (tGAP_CCB *p_ccb);
47 static void gap_checks_con_flags (tGAP_CCB *p_ccb);
131 tGAP_CCB *p_ccb; local
137 if ((p_ccb = gap_allocate_ccb()) == NULL)
141 p_ccb->transport = transport;
148 p_ccb->rem_addr_specified = TRUE;
150 memcpy (&p_ccb->rem_dev_address[0], p_rem_bda, BD_ADDR_LEN);
159 if (!p_ccb->rem_addr_specified && !is_server)
161 gap_release_ccb (p_ccb);
168 p_ccb
307 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
346 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
406 tGAP_CCB *p_ccb; local
447 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
489 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
563 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
601 tGAP_CCB *p_ccb; local
629 tGAP_CCB *p_ccb = gap_find_ccb_by_handle (gap_handle); local
661 tGAP_CCB *p_ccb; local
683 tGAP_CCB *p_ccb; local
703 tGAP_CCB *p_ccb = gap_find_ccb_by_cid (l2cap_cid); local
728 tGAP_CCB *p_ccb; local
794 gap_checks_con_flags(tGAP_CCB *p_ccb) argument
818 tGAP_CCB *p_ccb = (tGAP_CCB *)p_ref_data; local
852 tGAP_CCB *p_ccb; local
912 tGAP_CCB *p_ccb; local
962 tGAP_CCB *p_ccb; local
1000 tGAP_CCB *p_ccb; local
1027 tGAP_CCB *p_ccb; local
1065 tGAP_CCB *p_ccb; local
1113 tGAP_CCB *p_ccb; local
1139 tGAP_CCB *p_ccb; local
1167 tGAP_CCB *p_ccb; local
1199 gap_release_ccb(tGAP_CCB *p_ccb) argument
[all...]
/system/bt/stack/avdt/
H A Davdt_ccb_act.c50 static void avdt_ccb_clear_ccb(tAVDT_CCB *p_ccb) argument
55 p_ccb->cong = FALSE;
56 p_ccb->ret_count = 0;
59 osi_free_and_reset((void **)&p_ccb->p_curr_msg);
62 osi_free_and_reset((void **)&p_ccb->p_rx_msg);
65 while ((p_buf = (BT_HDR *) fixed_queue_try_dequeue(p_ccb->rsp_q)) != NULL)
80 void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
84 BTM_SetOutService(p_ccb->peer_addr, BTM_SEC_SERVICE_AVDTP, AVDT_CHAN_SIG);
85 avdt_ad_open_req(AVDT_CHAN_SIG, p_ccb, NULL, AVDT_INT);
99 void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EV argument
118 avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
158 avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
198 avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
221 avdt_ccb_hdl_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
245 avdt_ccb_hdl_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
268 avdt_ccb_hdl_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
300 avdt_ccb_hdl_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
338 avdt_ccb_hdl_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
374 avdt_ccb_hdl_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
411 avdt_ccb_snd_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
437 avdt_ccb_snd_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
456 avdt_ccb_snd_getcap_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
486 avdt_ccb_snd_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
510 avdt_ccb_snd_start_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
556 avdt_ccb_snd_start_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
588 avdt_ccb_snd_suspend_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
634 avdt_ccb_snd_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
666 avdt_ccb_clear_cmds(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
712 avdt_ccb_cmd_fail(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
757 avdt_ccb_free_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
774 avdt_ccb_cong_state(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
792 avdt_ccb_ret_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
839 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
913 avdt_ccb_set_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
930 avdt_ccb_clr_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
949 avdt_ccb_chk_reconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
984 avdt_ccb_chk_timer(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1001 avdt_ccb_set_conn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1021 avdt_ccb_set_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1042 avdt_ccb_do_disconn(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1063 avdt_ccb_ll_closed(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
1100 avdt_ccb_ll_opened(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
[all...]
H A Davdt_ccb.c298 void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data) argument
305 AVDT_TRACE_EVENT("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]);
309 state_table = avdt_ccb_st_tbl[p_ccb->state];
312 if (p_ccb->state != state_table[event][AVDT_CCB_NEXT_STATE]) {
313 p_ccb->state = state_table[event][AVDT_CCB_NEXT_STATE];
321 (*avdt_cb.p_ccb_act[action])(p_ccb, p_data);
343 tAVDT_CCB *p_ccb = &avdt_cb.ccb[0]; local
346 for (i = 0; i < AVDT_NUM_LINKS; i++, p_ccb++)
349 if (p_ccb
378 tAVDT_CCB *p_ccb = &avdt_cb.ccb[0]; local
416 avdt_ccb_dealloc(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data) argument
439 avdt_ccb_to_idx(tAVDT_CCB *p_ccb) argument
457 tAVDT_CCB *p_ccb; local
[all...]
H A Davdt_ad.c135 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_st(UINT8 type, tAVDT_CCB *p_ccb, UINT8 state) argument
141 if (p_ccb == NULL)
156 ccb_idx = avdt_ccb_to_idx(p_ccb);
231 tAVDT_TC_TBL *avdt_ad_tc_tbl_by_type(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) argument
236 UINT8 ccb_idx = avdt_ccb_to_idx(p_ccb);
265 tAVDT_TC_TBL *avdt_ad_tc_tbl_alloc(tAVDT_CCB *p_ccb) argument
286 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb);
325 tAVDT_CCB *p_ccb; local
341 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx);
342 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EV
372 tAVDT_CCB *p_ccb; local
429 tAVDT_CCB *p_ccb; local
465 tAVDT_CCB *p_ccb; local
509 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf) argument
537 avdt_ad_open_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, UINT8 role) argument
615 avdt_ad_close_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb) argument
[all...]
H A Davdt_int.h454 typedef void (*tAVDT_CCB_ACTION)(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
493 tAVDT_CCB *p_ccb; /* ccb associated with this scb */ member in struct:__anon849
564 extern void avdt_ccb_event(tAVDT_CCB *p_ccb, UINT8 event, tAVDT_CCB_EVT *p_data);
567 extern void avdt_ccb_dealloc(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
568 extern UINT8 avdt_ccb_to_idx(tAVDT_CCB *p_ccb);
572 extern void avdt_ccb_chan_open(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
573 extern void avdt_ccb_chan_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
574 extern void avdt_ccb_chk_close(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
575 extern void avdt_ccb_hdl_discover_cmd(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data);
576 extern void avdt_ccb_hdl_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EV
[all...]
H A Davdt_msg.c1198 BOOLEAN avdt_msg_send(tAVDT_CCB *p_ccb, BT_HDR *p_msg) argument
1212 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL);
1217 p_ccb->p_curr_msg = p_msg;
1221 curr_msg_len = p_ccb->p_curr_msg->len;
1224 while ((!p_ccb->cong) && (p_ccb->p_curr_msg != NULL))
1231 if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) &&
1232 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE))
1236 p_buf = p_ccb->p_curr_msg;
1239 else if ((p_ccb
1358 avdt_msg_asmbl(tAVDT_CCB *p_ccb, BT_HDR *p_buf) argument
1491 avdt_msg_send_cmd(tAVDT_CCB *p_ccb, void *p_scb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1552 avdt_msg_send_rsp(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1593 avdt_msg_send_rej(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1650 avdt_msg_send_grej(tAVDT_CCB *p_ccb, UINT8 sig_id, tAVDT_MSG *p_params) argument
1686 avdt_msg_ind(tAVDT_CCB *p_ccb, BT_HDR *p_buf) argument
[all...]
/system/bt/stack/mcap/
H A Dmca_cact.c51 void mca_ccb_rsp_tout(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
56 mca_ccb_report_event(p_ccb, MCA_RSP_TOUT_IND_EVT, &evt_data);
68 void mca_ccb_report_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CTRL *p_data) argument
70 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback)
71 (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), mca_ccb_to_hdl(p_ccb), event, p_data);
83 void mca_ccb_free_msg(tMCA_CCB *p_ccb, tMCA_CCB_EV argument
98 mca_ccb_snd_req(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
162 mca_ccb_snd_rsp(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
212 mca_ccb_do_disconn(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
229 mca_ccb_cong(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
256 mca_ccb_hdl_req(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
452 mca_ccb_hdl_rsp(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
553 mca_ccb_ll_open(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
572 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 alarm_cancel(p_ccb->mca_ccb_timer);
183 void mca_ccb_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CCB_EVT *p_data) argument
189 MCA_TRACE_EVENT("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]);
191 MCA_TRACE_EVENT("CCB ccb=%d event=%d state=%d", mca_ccb_to_hdl(p_ccb), event, p_ccb->state);
195 state_table = mca_ccb_st_tbl[p_ccb->state - 1];
198 p_ccb->state = state_table[event][MCA_CCB_NEXT_STATE];
203 (*mca_ccb_action[action])(p_ccb, p_dat
220 tMCA_CCB *p_ccb = NULL; local
254 tMCA_CCB *p_ccb = NULL; local
291 mca_ccb_dealloc(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data) argument
331 mca_ccb_to_hdl(tMCA_CCB *p_ccb) argument
349 tMCA_CCB * p_ccb = NULL; local
365 mca_ccb_uses_mdl_id(tMCA_CCB *p_ccb, UINT16 mdl_id) argument
[all...]
H A Dmca_api.c52 tMCA_CCB *p_ccb = (tMCA_CCB *)data; local
54 mca_ccb_event(p_ccb, MCA_CCB_RSP_TOUT_EVT, NULL);
337 tMCA_CCB *p_ccb; local
341 if ((p_ccb = mca_ccb_by_bd(handle, bd_addr)) == NULL)
342 p_ccb = mca_ccb_alloc(handle, bd_addr);
349 if (p_ccb)
351 p_ccb->ctrl_vpsm = L2CA_Register (ctrl_psm, (tL2CAP_APPL_INFO *)&mca_l2c_int_appl);
353 if (p_ccb->ctrl_vpsm)
356 p_ccb->ctrl_vpsm, BTM_SEC_PROTO_MCA, MCA_CTRL_TCID);
357 p_ccb
392 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
426 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
501 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
598 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
663 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
728 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
775 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
820 tMCA_CCB *p_ccb = mca_ccb_by_hdl(mcl); local
[all...]
H A Dmca_int.h220 typedef void (*tMCA_CCB_ACTION)(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data);
242 tMCA_CCB *p_ccb; /* the associated control control block */ member in struct:__anon1251
253 typedef void (*tMCA_DCB_ACTION)(tMCA_DCB *p_ccb, tMCA_DCB_EVT *p_data);
265 extern void mca_ccb_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CCB_EVT *p_data);
268 extern void mca_ccb_rsp_tout(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data);
269 extern void mca_ccb_dealloc(tMCA_CCB *p_ccb, tMCA_CCB_EVT *p_data);
270 extern tMCA_CL mca_ccb_to_hdl(tMCA_CCB *p_ccb);
272 extern BOOLEAN mca_ccb_uses_mdl_id(tMCA_CCB *p_ccb, UINT16 mdl_id);
275 extern void mca_ccb_report_event(tMCA_CCB *p_ccb, UINT8 event, tMCA_CTRL *p_data);
276 extern void mca_ccb_free_msg(tMCA_CCB *p_ccb, tMCA_CCB_EV
[all...]

Completed in 253 milliseconds

12