Home
last modified time | relevance | path

Searched refs:tL2C_LCB (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_l2cap_utils.cc32 bool l2c_is_cmd_rejected(uint8_t /* cmd_code */, uint8_t /* signal_id */, tL2C_LCB* /* p_lcb */) { in l2c_is_cmd_rejected() argument
36 bool l2cu_create_conn_le(tL2C_LCB* /* p_lcb */) { in l2cu_create_conn_le() argument
40 bool l2cu_initialize_fixed_ccb(tL2C_LCB* /* p_lcb */, uint16_t /* fixed_cid */) { in l2cu_initialize_fixed_ccb() argument
61 tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* /* p_lcb */, uint16_t /* cid */, bool /* is_eatt */) { in l2cu_allocate_ccb() argument
65 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* /* p_lcb */, uint16_t /* local_cid */) { in l2cu_find_ccb_by_cid() argument
69 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* /* p_lcb */, uint16_t /* remote_cid */) { in l2cu_find_ccb_by_remote_cid() argument
73 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& /* p_bd_addr */, bool /* is_bonding */, in l2cu_allocate_lcb()
78 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& /* p_bd_addr */, in l2cu_find_lcb_by_bd_addr()
83 tL2C_LCB* l2cu_find_lcb_by_handle(uint16_t /* handle */) { in l2cu_find_lcb_by_handle()
87 tL2C_LCB* l2cu_find_lcb_by_state(tL2C_LINK_STATE /* state */) { in l2cu_find_lcb_by_state()
[all …]
Dmock_stack_l2cap_ble.h143 std::function<void(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len)> body{
144 [](tL2C_LCB* /* p_lcb */, uint8_t* /* p */, uint16_t /* pkt_len */) {}};
145 void operator()(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { body(p_lcb, p, pkt_len); } in operator()
152 std::function<bool(tL2C_LCB* p_lcb)> body{[](tL2C_LCB* /* p_lcb */) { return false; }};
153 bool operator()(tL2C_LCB* p_lcb) { return body(p_lcb); } in operator()
190 std::function<void(tL2C_LCB* p_lcb)> body{[](tL2C_LCB* /* p_lcb */) {}};
191 void operator()(tL2C_LCB* p_lcb) { body(p_lcb); } in operator()
Dmock_stack_l2cap_link.cc47 void l2c_link_check_send_pkts(tL2C_LCB* /* p_lcb */, uint16_t /* local_cid */, in l2c_link_check_send_pkts() argument
65 void l2c_link_timeout(tL2C_LCB* /* p_lcb */) { inc_func_call_count(__func__); } in l2c_link_timeout() argument
Dmock_stack_l2cap_ble.cc116 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd()
120 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn()
138 void l2cble_update_data_length(tL2C_LCB* p_lcb) { in l2cble_update_data_length()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_int.h259 struct tL2C_LCB;
277 tL2C_LCB* p_lcb; /* Link this CCB is assigned to */
404 struct tL2C_LCB { struct
418 friend void l2cu_set_lcb_handle(tL2C_LCB& p_lcb, uint16_t handle); argument
594 tL2C_LCB lcb_pool[MAX_L2CAP_LINKS]; /* Link Control Block pool */
605 tL2C_LCB* p_cur_hcit_lcb; /* Current HCI Transport buffer */
693 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, tBT_TRANSPORT transport);
694 void l2cu_release_lcb(tL2C_LCB* p_lcb);
695 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, tBT_TRANSPORT transport);
696 tL2C_LCB* l2cu_find_lcb_by_handle(uint16_t handle);
[all …]
Dl2c_ble_conn_params.cc52 void l2cble_start_conn_update(tL2C_LCB* p_lcb);
53 static void l2cble_start_subrate_change(tL2C_LCB* p_lcb);
70 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, BT_TRANSPORT_LE); in L2CA_UpdateBleConnParams()
103 static bool l2c_enable_update_ble_conn_params(tL2C_LCB* p_lcb, bool enable);
114 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, BT_TRANSPORT_LE); in L2CA_LockBleConnParamsForServiceDiscovery()
158 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, BT_TRANSPORT_LE); in L2CA_LockBleConnParamsForProfileConnection()
185 static bool l2c_enable_update_ble_conn_params(tL2C_LCB* p_lcb, bool enable) { in l2c_enable_update_ble_conn_params()
214 void l2cble_start_conn_update(tL2C_LCB* p_lcb) { in l2cble_start_conn_update()
337 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2cble_process_conn_update_evt()
368 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2cble_process_rc_param_request_evt()
[all …]
Dl2c_utils.cc70 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, tBT_TRANSPORT transport) { in l2cu_allocate_lcb()
72 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb()
115 void l2cu_set_lcb_handle(tL2C_LCB& p_lcb, uint16_t handle) { in l2cu_set_lcb_handle()
133 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in l2cu_update_lcb_4_bonding()
155 void l2cu_release_lcb(tL2C_LCB* p_lcb) { in l2cu_release_lcb()
250 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, tBT_TRANSPORT transport) { in l2cu_find_lcb_by_bd_addr()
252 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_bd_addr()
277 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected()
305 static BT_HDR* l2cu_build_header(tL2C_LCB* p_lcb, uint16_t len, uint8_t cmd, uint8_t signal_id) { in l2cu_build_header()
348 static void l2cu_adj_id(tL2C_LCB* p_lcb) { in l2cu_adj_id()
[all …]
Dl2c_link.cc57 static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf, tL2C_TX_COMPLETE_CB_INFO* p_cbi);
58 static BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb, tL2C_TX_COMPLETE_CB_INFO* p_cbi);
76 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(ci.bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_comp()
207 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bda, transport); in l2c_link_sec_comp()
287 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_link_hci_disc_comp()
401 void l2c_link_timeout(tL2C_LCB* p_lcb) { in l2c_link_timeout()
487 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_info_resp_timer_timeout()
544 tL2C_LCB* p_lcb; in l2c_link_adjust_allocation()
705 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(*bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_role_changed()
721 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2c_link_role_changed()
[all …]
Dl2c_api.cc188 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_Deregister()
316 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in L2CA_ConnectReq()
454 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc()
515 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectLECocReq()
613 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetPeerLECocCredit()
651 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedRsp()
744 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedReq()
867 tL2C_LCB* p_lcb = p_ccb->p_lcb; in L2CA_ReconfigCreditBasedConnsReq()
962 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, transport); in L2CA_SetIdleTimeoutByBdAddr()
974 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_SetIdleTimeoutByBdAddr()
[all …]
Dl2c_ble.cc72 void l2cble_start_conn_update(tL2C_LCB* p_lcb);
75 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rpa, BT_TRANSPORT_LE); in L2CA_Consolidate()
85 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetBleConnRole()
93 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetBleConnInterval()
111 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_notify_le_connection()
144 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_conn_comp()
238 static void l2cble_handle_connect_rsp_neg(tL2C_LCB* p_lcb, tL2C_CONN_INFO* con_info) { in l2cble_handle_connect_rsp_neg()
260 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd()
966 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn()
1018 tL2C_LCB* p_lcb; in l2c_ble_link_adjust_allocation()
[all …]
Dl2c_main.cc52 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len);
100 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_rcv_acl_data()
224 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in process_l2cap_cmd()
903 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_lcb_timer_timeout()
Dl2c_csm.cc703 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_w4_l2cap_connect_rsp()
868 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_w4_l2ca_connect_rsp()
1025 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_config()
/packages/modules/Bluetooth/system/stack/test/
Dstack_l2cap_test.cc37 void l2c_link_send_to_lower_br_edr(tL2C_LCB* p_lcb, BT_HDR* p_buf);
38 void l2c_link_send_to_lower_ble(tL2C_LCB* p_lcb, BT_HDR* p_buf);
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_l2cap_layer.cc32 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* /*p_lcb*/, uint16_t /*local_cid*/) { return nullptr; } in l2cu_find_ccb_by_cid() argument