Home
last modified time | relevance | path

Searched refs:tL2C_CCB (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_l2cap_utils.cc52 bool l2cu_is_ccb_active(tL2C_CCB* /* p_ccb */) { in l2cu_is_ccb_active() argument
70 tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* /* p_lcb */, uint16_t /* cid */, in l2cu_allocate_ccb()
75 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* /* p_lcb */, in l2cu_find_ccb_by_cid()
80 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* /* p_lcb */, in l2cu_find_ccb_by_remote_cid()
124 uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* /* p_ccb */, in l2cu_process_peer_cfg_req() argument
130 void l2cu_adjust_out_mps(tL2C_CCB* /* p_ccb */) { in l2cu_adjust_out_mps() argument
133 void l2cu_change_pri_ccb(tL2C_CCB* /* p_ccb */, in l2cu_change_pri_ccb() argument
137 void l2cu_check_channel_congestion(tL2C_CCB* /* p_ccb */) { in l2cu_check_channel_congestion() argument
146 void l2cu_dequeue_ccb(tL2C_CCB* /* p_ccb */) { inc_func_call_count(__func__); } in l2cu_dequeue_ccb() argument
148 void l2cu_disconnect_chnl(tL2C_CCB* /* p_ccb */) { in l2cu_disconnect_chnl() argument
[all …]
Dmock_stack_l2cap_ble.h208 std::function<void(tL2C_CCB* p_ccb)> body{[](tL2C_CCB* /* p_ccb */) {}};
209 void operator()(tL2C_CCB* p_ccb) { body(p_ccb); }; in operator()
216 std::function<void(tL2C_CCB* p_ccb, uint16_t result)> body{
217 [](tL2C_CCB* /* p_ccb */, uint16_t /* result */) {}};
218 void operator()(tL2C_CCB* p_ccb, uint16_t result) { body(p_ccb, result); }; in operator()
225 std::function<void(tL2C_CCB* p_ccb, uint16_t credit_value)> body{
226 [](tL2C_CCB* /* p_ccb */, uint16_t /* credit_value */) {}};
227 void operator()(tL2C_CCB* p_ccb, uint16_t credit_value) { in operator()
236 std::function<void(tL2C_CCB* p_ccb)> body{[](tL2C_CCB* /* p_ccb */) {}};
237 void operator()(tL2C_CCB* p_ccb) { body(p_ccb); }; in operator()
Dmock_stack_l2cap_ble.cc146 void l2cble_credit_based_conn_req(tL2C_CCB* p_ccb) { in l2cble_credit_based_conn_req()
150 void l2cble_credit_based_conn_res(tL2C_CCB* p_ccb, uint16_t result) { in l2cble_credit_based_conn_res()
154 void l2cble_send_flow_control_credit(tL2C_CCB* p_ccb, uint16_t credit_value) { in l2cble_send_flow_control_credit()
159 void l2cble_send_peer_disc_req(tL2C_CCB* p_ccb) { in l2cble_send_peer_disc_req()
Dmock_stack_l2cap_link.cc40 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* /* p_lcb */) { in l2cu_get_next_channel_in_rr()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_int.h372 } tL2C_CCB; typedef
378 tL2C_CCB* p_first_ccb; /* The first channel in this queue */
379 tL2C_CCB* p_last_ccb; /* The last channel in this queue */
397 tL2C_CCB* p_serve_ccb; /* current serving ccb within priority group */
398 tL2C_CCB* p_first_ccb; /* first ccb of priority group */
440 tL2C_CCB* p_pending_ccb; /* ccb of waiting channel during link disconnect */
508 tL2C_CCB* p_fixed_ccbs[L2CAP_NUM_FIXED_CHNLS];
573 const tL2C_CCB* cur = ccb_queue.p_first_ccb; in number_of_active_dynamic_channels()
604 tL2C_CCB ccb_pool[MAX_L2CAP_CHANNELS]; /* Channel Control Block pool */
607 tL2C_CCB* p_free_ccb_first; /* Pointer to first free CCB */
[all …]
Dl2c_csm.cc51 static void l2c_csm_closed(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
52 static void l2c_csm_orig_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
54 static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
56 static void l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
58 static void l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
60 static void l2c_csm_config(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
61 static void l2c_csm_open(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
62 static void l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
64 static void l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
70 static void l2c_csm_send_connect_rsp(tL2C_CCB* p_ccb) { in l2c_csm_send_connect_rsp()
[all …]
Dl2c_fcr.cc88 static bool process_reqseq(tL2C_CCB* p_ccb, uint16_t ctrl_word);
89 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word);
90 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word,
92 static bool retransmit_i_frames(tL2C_CCB* p_ccb, uint8_t tx_seq);
93 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf,
95 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf,
163 void l2c_fcr_start_timer(tL2C_CCB* p_ccb) { in l2c_fcr_start_timer()
190 void l2c_fcr_stop_timer(tL2C_CCB* p_ccb) { in l2c_fcr_stop_timer()
205 void l2c_fcr_cleanup(tL2C_CCB* p_ccb) { in l2c_fcr_cleanup()
265 bool l2c_fcr_is_flow_controlled(tL2C_CCB* p_ccb) { in l2c_fcr_is_flow_controlled()
[all …]
Dl2c_main.cc119 tL2C_CCB* p_ccb = NULL; in l2c_rcv_acl_data()
345 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
364 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in process_l2cap_cmd()
392 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in process_l2cap_cmd()
426 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
587 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
701 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
727 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
748 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in process_l2cap_cmd()
817 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in process_l2cap_cmd()
[all …]
Dl2c_utils.cc51 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb); // TODO Move
151 tL2C_CCB* p_ccb; in l2cu_release_lcb()
401 void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb) { in l2cu_send_peer_connect_req()
437 void l2cu_send_peer_connect_rsp(tL2C_CCB* p_ccb, uint16_t result, in l2cu_send_peer_connect_rsp()
511 void l2cu_send_credit_based_reconfig_req(tL2C_CCB* p_ccb, in l2cu_send_credit_based_reconfig_req()
517 tL2C_CCB* p_ccb_temp; in l2cu_send_credit_based_reconfig_req()
564 void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_send_peer_config_req()
665 void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_send_peer_config_rsp()
755 void l2cu_send_peer_config_rej(tL2C_CCB* p_ccb, uint8_t* p_data, in l2cu_send_peer_config_rej()
868 void l2cu_send_peer_disc_req(tL2C_CCB* p_ccb) { in l2cu_send_peer_disc_req()
[all …]
Dl2c_link.cc71 tL2C_CCB* p_ccb; in l2c_link_hci_conn_comp()
153 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp()
193 tL2C_CCB* p_ccb; in l2c_link_sec_comp()
194 tL2C_CCB* p_next_ccb; in l2c_link_sec_comp()
222 p_ccb = (tL2C_CCB*)p_ref_data; in l2c_link_sec_comp()
316 tL2C_CCB* p_ccb; in l2c_link_hci_disc_comp()
337 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_disc_comp()
429 tL2C_CCB* p_ccb; in l2c_link_timeout()
446 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_timeout()
519 tL2C_CCB* p_ccb; in l2c_info_resp_timer_timeout()
[all …]
Dl2c_api.cc195 tL2C_CCB* p_ccb; in L2CA_Deregister()
347 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in L2CA_ConnectReq()
479 tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; in L2CA_DeregisterLECoc()
545 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in L2CA_ConnectLECocReq()
609 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(NULL, lcid); in L2CA_GetPeerLECocConfig()
640 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, lcid); in L2CA_GetPeerLECocCredit()
681 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(p_lcb, p_lcb->pending_lead_cid); in L2CA_ConnectCreditBasedRsp()
689 tL2C_CCB* temp_p_ccb = l2cu_find_ccb_by_cid(p_lcb, cid); in L2CA_ConnectCreditBasedRsp()
780 tL2C_CCB* p_ccb_primary; in L2CA_ConnectCreditBasedReq()
790 tL2C_CCB* p_ccb = in L2CA_ConnectCreditBasedReq()
[all …]
Dl2c_ble.cc118 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cble_notify_le_connection()
213 tL2C_CCB* temp_p_ccb = NULL; in l2cble_handle_connect_rsp_neg()
242 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd()
1161 void l2cble_credit_based_conn_req(tL2C_CCB* p_ccb) { in l2cble_credit_based_conn_req()
1187 void l2cble_credit_based_conn_res(tL2C_CCB* p_ccb, uint16_t result) { in l2cble_credit_based_conn_res()
1209 void l2cble_send_flow_control_credit(tL2C_CCB* p_ccb, uint16_t credit_value) { in l2cble_send_flow_control_credit()
1231 void l2cble_send_peer_disc_req(tL2C_CCB* p_ccb) { in l2cble_send_peer_disc_req()
/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_port_fsm.cc231 tL2C_CCB* p_ccb = in rfc_port_sm_sabme_wait_ua()
240 tL2C_CCB* ccb; in rfc_port_sm_sabme_wait_ua()
366 tL2C_CCB* p_ccb = in rfc_port_sm_term_wait_sec_check()
375 tL2C_CCB* ccb; in rfc_port_sm_term_wait_sec_check()
Dport_rfc.cc991 tL2C_CCB* ccb; in port_rfc_closed()
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_l2cap_layer.cc33 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) { in l2cu_find_ccb_by_cid()
/packages/modules/Bluetooth/system/stack/test/
Dstack_l2cap_test.cc99 tL2C_CCB ccb_ = {