/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_l2cap_utils.cc | 29 BT_HDR* l2cu_build_header(tL2C_LCB* /* p_lcb */, uint16_t /* len */, in l2cu_build_header() argument 35 tL2C_LCB* /* p_lcb */) { in l2c_is_cmd_rejected() argument 39 bool l2cu_create_conn_le(tL2C_LCB* /* p_lcb */) { in l2cu_create_conn_le() argument 43 bool l2cu_create_conn_le(tL2C_LCB* /* p_lcb */, uint8_t /* initiating_phys */) { in l2cu_create_conn_le() argument 47 bool l2cu_initialize_fixed_ccb(tL2C_LCB* /* p_lcb */, in l2cu_initialize_fixed_ccb() argument 70 tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* /* p_lcb */, uint16_t /* cid */, in l2cu_allocate_ccb() argument 75 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* /* p_lcb */, in l2cu_find_ccb_by_cid() argument 80 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* /* p_lcb */, in l2cu_find_ccb_by_remote_cid() argument 85 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& /* p_bd_addr */, in l2cu_allocate_lcb() 91 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& /* p_bd_addr */, in l2cu_find_lcb_by_bd_addr() [all …]
|
D | mock_stack_l2cap_link.cc | 28 BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* /* p_lcb */) { in l2cu_get_next_buffer_to_send() argument 40 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* /* p_lcb */) { in l2cu_get_next_channel_in_rr() argument 52 void l2c_link_check_send_pkts(tL2C_LCB* /* p_lcb */, uint16_t /* local_cid */, in l2c_link_check_send_pkts() argument 77 void l2c_link_timeout(tL2C_LCB* /* p_lcb */) { inc_func_call_count(__func__); } in l2c_link_timeout() argument
|
D | mock_stack_l2cap_ble.h | 149 std::function<void(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len)> body{ 150 [](tL2C_LCB* /* p_lcb */, uint8_t* /* p */, uint16_t /* pkt_len */) {}}; 151 void operator()(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in operator() 160 std::function<bool(tL2C_LCB* p_lcb)> body{ 161 [](tL2C_LCB* /* p_lcb */) { return false; }}; 162 bool operator()(tL2C_LCB* p_lcb) { return body(p_lcb); }; in operator() 186 std::function<void(tL2C_LCB* p_lcb)> body{[](tL2C_LCB* /* p_lcb */) {}}; 187 void operator()(tL2C_LCB* p_lcb) { body(p_lcb); }; in operator()
|
D | mock_stack_l2cap_ble.cc | 119 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd() 123 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn() 135 void l2cble_update_data_length(tL2C_LCB* p_lcb) { in l2cble_update_data_length()
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_int.h | 580 } tL2C_LCB; typedef 603 tL2C_LCB lcb_pool[MAX_L2CAP_LINKS]; /* Link Control Block pool */ 614 tL2C_LCB* p_cur_hcit_lcb; /* Current HCI Transport buffer */ 707 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, 709 void l2cu_release_lcb(tL2C_LCB* p_lcb); 710 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, 712 tL2C_LCB* l2cu_find_lcb_by_handle(uint16_t handle); 722 tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* p_lcb, uint16_t cid, 725 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid); 726 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, uint16_t remote_cid); [all …]
|
D | l2c_ble_conn_params.cc | 43 void l2cble_start_conn_update(tL2C_LCB* p_lcb); 44 static void l2cble_start_subrate_change(tL2C_LCB* p_lcb); 61 tL2C_LCB* p_lcb; in L2CA_UpdateBleConnParams() 94 static bool l2c_enable_update_ble_conn_params(tL2C_LCB* p_lcb, bool enable); 104 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, BT_TRANSPORT_LE); in L2CA_LockBleConnParamsForServiceDiscovery() 141 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rem_bda, BT_TRANSPORT_LE); in L2CA_LockBleConnParamsForProfileConnection() 171 static bool l2c_enable_update_ble_conn_params(tL2C_LCB* p_lcb, bool enable) { in l2c_enable_update_ble_conn_params() 200 void l2cble_start_conn_update(tL2C_LCB* p_lcb) { in l2cble_start_conn_update() 293 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2cble_process_conn_update_evt() 314 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_use_preferred_conn_params() [all …]
|
D | l2c_link.cc | 62 static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf, 64 static BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb, 70 tL2C_LCB* p_lcb; in l2c_link_hci_conn_comp() 192 tL2C_LCB* p_lcb; in l2c_link_sec_comp() 315 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_link_hci_disc_comp() 428 void l2c_link_timeout(tL2C_LCB* p_lcb) { in l2c_link_timeout() 518 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_info_resp_timer_timeout() 573 tL2C_LCB* p_lcb; in l2c_link_adjust_allocation() 735 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(*bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_role_changed() 750 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2c_link_role_changed() [all …]
|
D | l2c_utils.cc | 51 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb); // TODO Move 62 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, in l2cu_allocate_lcb() 65 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb() 71 memset(p_lcb, 0, sizeof(tL2C_LCB)); in l2cu_allocate_lcb() 128 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in l2cu_update_lcb_4_bonding() 150 void l2cu_release_lcb(tL2C_LCB* p_lcb) { in l2cu_release_lcb() 239 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, in l2cu_find_lcb_by_bd_addr() 242 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_bd_addr() 268 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected() 297 BT_HDR* l2cu_build_header(tL2C_LCB* p_lcb, uint16_t len, uint8_t cmd, in l2cu_build_header() [all …]
|
D | l2c_api.cc | 196 tL2C_LCB* p_lcb; in L2CA_Deregister() 333 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in L2CA_ConnectReq() 475 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc() 531 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectLECocReq() 633 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetPeerLECocCredit() 672 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedRsp() 761 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedReq() 888 tL2C_LCB* p_lcb = p_ccb->p_lcb; in L2CA_ReconfigCreditBasedConnsReq() 981 tL2C_LCB* p_lcb; in L2CA_SetIdleTimeoutByBdAddr() 993 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_SetIdleTimeoutByBdAddr() [all …]
|
D | l2c_ble.cc | 71 void l2cble_start_conn_update(tL2C_LCB* p_lcb); 74 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(rpa, BT_TRANSPORT_LE); in L2CA_Consolidate() 84 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetBleConnRole() 101 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_notify_le_connection() 134 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_conn_comp() 211 static void l2cble_handle_connect_rsp_neg(tL2C_LCB* p_lcb, in l2cble_handle_connect_rsp_neg() 235 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd() 914 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn() 966 tL2C_LCB* p_lcb; in l2c_ble_link_adjust_allocation() 1078 void l2cble_update_data_length(tL2C_LCB* p_lcb) { in l2cble_update_data_length() [all …]
|
D | l2c_main.cc | 50 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len); 98 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_rcv_acl_data() 225 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in process_l2cap_cmd() 892 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_lcb_timer_timeout()
|
D | l2c_csm.cc | 649 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_w4_l2cap_connect_rsp() 827 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_w4_l2ca_connect_rsp() 995 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_config()
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_l2cap_test.cc | 37 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/ |
D | mock_l2cap_layer.cc | 33 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) { in l2cu_find_ccb_by_cid()
|