/system/bt/test/mock/ |
D | mock_stack_l2cap_utils.cc | 36 BT_HDR* l2cu_build_header(tL2C_LCB* p_lcb, uint16_t len, uint8_t cmd, in l2cu_build_header() 41 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected() 45 bool l2cu_create_conn_le(tL2C_LCB* p_lcb) { in l2cu_create_conn_le() 49 bool l2cu_create_conn_le(tL2C_LCB* p_lcb, uint8_t initiating_phys) { in l2cu_create_conn_le() 53 bool l2cu_initialize_fixed_ccb(tL2C_LCB* p_lcb, uint16_t fixed_cid) { in l2cu_initialize_fixed_ccb() 74 tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* p_lcb, uint16_t cid) { in l2cu_allocate_ccb() 78 tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid) { in l2cu_find_ccb_by_cid() 82 tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, uint16_t remote_cid) { in l2cu_find_ccb_by_remote_cid() 86 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, 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 | 29 BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb) { in l2cu_get_next_buffer_to_send() 41 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb) { in l2cu_get_next_channel_in_rr() 55 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() 87 void l2c_link_timeout(tL2C_LCB* p_lcb) { mock_function_count_map[__func__]++; } in l2c_link_timeout()
|
D | mock_stack_l2cap_ble.h | 157 std::function<void(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len)> body{ 158 [](tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {}}; 159 void operator()(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in operator() 168 std::function<bool(tL2C_LCB* p_lcb)> body{ 169 [](tL2C_LCB* p_lcb) { return false; }}; 170 bool operator()(tL2C_LCB* p_lcb) { return body(p_lcb); }; in operator() 209 std::function<void(tL2C_LCB* p_lcb)> body{[](tL2C_LCB* p_lcb) {}}; 210 void operator()(tL2C_LCB* p_lcb) { body(p_lcb); }; in operator()
|
D | mock_stack_l2cap_ble.cc | 124 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd() 128 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn() 147 void l2cble_update_data_length(tL2C_LCB* p_lcb) { in l2cble_update_data_length()
|
/system/bt/stack/l2cap/ |
D | l2c_int.h | 555 } tL2C_LCB; typedef 579 tL2C_LCB lcb_pool[MAX_L2CAP_LINKS]; /* Link Control Block pool */ 593 tL2C_LCB* p_cur_hcit_lcb; /* Current HCI Transport buffer */ 672 extern tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, 674 extern void l2cu_release_lcb(tL2C_LCB* p_lcb); 675 extern tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, 677 extern tL2C_LCB* l2cu_find_lcb_by_handle(uint16_t handle); 687 extern tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* p_lcb, uint16_t cid); 689 extern tL2C_CCB* l2cu_find_ccb_by_cid(tL2C_LCB* p_lcb, uint16_t local_cid); 690 extern tL2C_CCB* l2cu_find_ccb_by_remote_cid(tL2C_LCB* p_lcb, [all …]
|
D | l2c_link.cc | 56 static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf); 57 static BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb); 68 tL2C_LCB* p_lcb; in l2c_link_hci_conn_req() 69 tL2C_LCB* p_lcb_cur; in l2c_link_hci_conn_req() 144 tL2C_LCB* p_lcb; in l2c_link_hci_conn_comp() 276 tL2C_LCB* p_lcb; in l2c_link_sec_comp2() 342 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_link_hci_disc_comp() 461 void l2c_link_timeout(tL2C_LCB* p_lcb) { in l2c_link_timeout() 548 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_info_resp_timer_timeout() 603 tL2C_LCB* p_lcb; in l2c_link_adjust_allocation() [all …]
|
D | l2c_utils.cc | 45 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb); // TODO Move 56 tL2C_LCB* l2cu_allocate_lcb(const RawAddress& p_bd_addr, bool is_bonding, in l2cu_allocate_lcb() 59 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb() 65 memset(p_lcb, 0, sizeof(tL2C_LCB)); in l2cu_allocate_lcb() 126 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in l2cu_update_lcb_4_bonding() 149 void l2cu_release_lcb(tL2C_LCB* p_lcb) { in l2cu_release_lcb() 238 tL2C_LCB* l2cu_find_lcb_by_bd_addr(const RawAddress& p_bd_addr, in l2cu_find_lcb_by_bd_addr() 241 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_bd_addr() 267 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected() 296 BT_HDR* l2cu_build_header(tL2C_LCB* p_lcb, uint16_t len, uint8_t cmd, in l2cu_build_header() [all …]
|
D | l2c_ble.cc | 55 static void l2cble_start_conn_update(tL2C_LCB* p_lcb); 81 tL2C_LCB* p_lcb; in L2CA_UpdateBleConnParams() 133 tL2C_LCB* p_lcb; in L2CA_EnableUpdateBleConnParams() 168 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bd_addr, BT_TRANSPORT_LE); in L2CA_GetBleConnRole() 185 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_notify_le_connection() 218 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(bda, BT_TRANSPORT_LE); in l2cble_conn_comp() 295 static void l2cble_start_conn_update(tL2C_LCB* p_lcb) { in l2cble_start_conn_update() 386 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2cble_process_conn_update_evt() 414 void l2cble_process_sig_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in l2cble_process_sig_cmd() 1053 bool l2cble_create_conn(tL2C_LCB* p_lcb) { in l2cble_create_conn() [all …]
|
D | l2c_api.cc | 165 tL2C_LCB* p_lcb; in L2CA_Deregister() 316 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_BR_EDR); in L2CA_ConnectReq() 466 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc() 526 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectLECocReq() 646 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedRsp() 736 tL2C_LCB* p_lcb = l2cu_find_lcb_by_bd_addr(p_bd_addr, BT_TRANSPORT_LE); in L2CA_ConnectCreditBasedReq() 855 tL2C_LCB* p_lcb = p_ccb->p_lcb; in L2CA_ReconfigCreditBasedConnsReq() 949 tL2C_LCB* p_lcb; in L2CA_SetIdleTimeoutByBdAddr() 961 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_SetIdleTimeoutByBdAddr() 1064 tL2C_LCB* p_lcb; in L2CA_GetPeerFeatures() [all …]
|
D | l2c_main.cc | 43 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len); 91 tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle); in l2c_rcv_acl_data() 255 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in process_l2cap_cmd() 985 tL2C_LCB* p_lcb = (tL2C_LCB*)data; in l2c_lcb_timer_timeout()
|
D | l2c_csm.cc | 585 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_w4_l2cap_connect_rsp() 894 tL2C_LCB* p_lcb = p_ccb->p_lcb; in l2c_csm_config()
|
/system/bt/stack/test/common/ |
D | mock_stack_l2cap_link.cc | 29 BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb) { in l2cu_get_next_buffer_to_send() 41 tL2C_CCB* l2cu_get_next_channel_in_rr(tL2C_LCB* p_lcb) { in l2cu_get_next_channel_in_rr() 55 void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, in l2c_link_check_send_pkts() 87 void l2c_link_timeout(tL2C_LCB* p_lcb) { mock_function_count_map[__func__]++; } in l2c_link_timeout()
|
/system/bt/main/shim/ |
D | acl.cc | 897 const tL2C_LCB& lcb = l2cb.lcb_pool[i]; in DumpsysL2cap()
|