Home
last modified time | relevance | path

Searched refs:credits (Results 1 – 24 of 24) sorted by relevance

/system/bt/gd/hci/acl_manager/
Dround_robin_scheduler.cc189 void RoundRobinScheduler::incoming_acl_credits(uint16_t handle, uint16_t credits) { in incoming_acl_credits() argument
192 LOG_INFO("Dropping %hx received credits to unknown connection 0x%0hx", credits, handle); in incoming_acl_credits()
195 acl_queue_handler->second.number_of_sent_packets_ -= credits; in incoming_acl_credits()
197 acl_packet_credits_ += credits; in incoming_acl_credits()
199 le_acl_packet_credits_ += credits; in incoming_acl_credits()
203 if (acl_packet_credits_ == credits || le_acl_packet_credits_ == credits) { in incoming_acl_credits()
Dround_robin_scheduler.h58 void incoming_acl_credits(uint16_t handle, uint16_t credits);
Dround_robin_scheduler_test.cc60 void SendCompletedAclPacketsCallback(uint16_t handle, uint16_t credits) { in SendCompletedAclPacketsCallback() argument
61 acl_credits_callback_.Invoke(handle, credits); in SendCompletedAclPacketsCallback()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_utils.cc112 int credits, in CreateRfcommPacket() argument
129 if (credits > 0) { in CreateRfcommPacket()
130 result.push_back(static_cast<uint8_t>(credits)); in CreateRfcommPacket()
202 uint16_t acl_handle, int credits, in CreateQuickDataPacket() argument
206 GetControlField(credits > 0 ? true : false, RFCOMM_UIH); in CreateQuickDataPacket()
208 CreateRfcommPacket(address_field, control_field, credits, data); in CreateQuickDataPacket()
216 uint16_t acl_handle, int credits, in CreateQuickDataPacket() argument
219 return CreateQuickDataPacket(dlci, cr, l2cap_lcid, acl_handle, credits, data); in CreateQuickDataPacket()
Dstack_rfcomm_test_utils.h129 int credits,
212 uint16_t acl_handle, int credits,
228 uint16_t acl_handle, int credits,
Dstack_rfcomm_test.cc412 int credits, uint16_t acl_handle, in SendAndVerifyOutgoingTransmission() argument
417 credits, message)); in SendAndVerifyOutgoingTransmission()
430 int credits, uint16_t acl_handle, in ReceiveAndVerifyIncomingTransmission() argument
436 credits, message)); in ReceiveAndVerifyIncomingTransmission()
/system/bt/hci/src/
Dhci_layer.cc569 void process_command_credits(int credits) { in process_command_credits() argument
578 command_credits = credits - get_num_waiting_commands(); in process_command_credits()
639 int credits = 0; in filter_incoming_event() local
646 STREAM_TO_UINT8(credits, stream); in filter_incoming_event()
651 process_command_credits(credits); in filter_incoming_event()
673 STREAM_TO_UINT8(credits, stream); in filter_incoming_event()
680 process_command_credits(credits); in filter_incoming_event()
/system/bt/gd/l2cap/internal/
Dle_credit_based_channel_data_controller.cc119 void LeCreditBasedDataController::OnCredit(uint16_t credits) { in OnCredit() argument
120 int total_credits = credits_ + credits; in OnCredit()
Dle_credit_based_channel_data_controller.h59 void OnCredit(uint16_t credits);
/system/bt/gd/l2cap/le/internal/
Dsignalling_manager.h112 void SendCredit(Cid local_cid, uint16_t credits);
132 void OnCredit(Cid remote_cid, uint16_t credits);
Dsignalling_manager.cc107 void LeSignallingManager::SendCredit(Cid local_cid, uint16_t credits) { in SendCredit() argument
108 auto builder = LeFlowControlCreditBuilder::Create(next_signal_id_.Value(), local_cid, credits); in SendCredit()
343 void LeSignallingManager::OnCredit(Cid remote_cid, uint16_t credits) { in OnCredit() argument
351 data_controller->OnCredit(credits); in OnCredit()
/system/bt/stack/rfcomm/
Drfc_ts_frames.cc154 uint8_t credits; in rfc_send_buf_uih() local
162 credits = (uint8_t)p_buf->layer_specific; in rfc_send_buf_uih()
164 credits = 0; in rfc_send_buf_uih()
167 if (credits) { in rfc_send_buf_uih()
175 *p_data++ = RFCOMM_UIH | ((credits) ? RFCOMM_PF : 0); in rfc_send_buf_uih()
185 if (credits) { in rfc_send_buf_uih()
186 *p_data++ = credits; in rfc_send_buf_uih()
/system/bt/gd/hci/
Dcontroller_test.cc440 void CheckReceivedCredits(uint16_t handle, uint16_t credits) { in CheckReceivedCredits() argument
443 ASSERT_EQ(kCredits1, credits); in CheckReceivedCredits()
447 ASSERT_EQ(kCredits2, credits); in CheckReceivedCredits()
451 ASSERT_LOG(false, "Unknown handle 0x%0hx with 0x%0hx credits", handle, credits); in CheckReceivedCredits()
Dacl_manager_test.cc838 for (uint16_t credits = 0; credits < test_controller_->total_acl_buffers_; credits++) { in TEST_F() local
Dcontroller.cc130 uint16_t credits = completed_packets.host_num_of_completed_packets_; in NumberOfCompletedPackets() local
131 acl_credits_callback_.Invoke(handle, credits); in NumberOfCompletedPackets()
/system/bt/stack/l2cap/
Dl2c_ble.cc628 p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
660 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.credits, p); in l2cble_process_sig_cmd()
671 p_ccb->peer_conn_cfg.mps, p_ccb->peer_conn_cfg.credits, in l2cble_process_sig_cmd()
Dl2c_csm.cc1126 if ((p_ccb->peer_conn_cfg.credits + *credit) > L2CAP_LE_CREDIT_MAX) { in l2c_csm_open()
1132 p_ccb->peer_conn_cfg.credits += *credit; in l2c_csm_open()
1137 (*cr_cb)(p_ccb->local_cid, *credit, p_ccb->peer_conn_cfg.credits); in l2c_csm_open()
Dl2c_main.cc229 uint16_t credits = L2CAP_LE_CREDIT_DEFAULT - p_ccb->remote_credit_count; in l2c_rcv_acl_data() local
233 l2c_csm_execute(p_ccb, L2CEVT_L2CA_SEND_FLOW_CONTROL_CREDIT, &credits); in l2c_rcv_acl_data()
Dl2c_api.cc600 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocReq()
678 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocRsp()
Dl2c_utils.cc2845 initial_credit = p_ccb->local_conn_cfg.credits; in l2cu_send_peer_ble_credit_based_conn_req()
2927 UINT16_TO_STREAM(p, p_ccb->local_conn_cfg.credits); /* initial credit */ in l2cu_send_peer_ble_credit_based_conn_res()
3296 if (p_ccb->peer_conn_cfg.credits == 0) { in l2cu_get_next_buffer_to_send()
3303 p_ccb->peer_conn_cfg.credits--; in l2cu_get_next_buffer_to_send()
/system/bt/stack/include/
Dl2c_api.h156 uint16_t credits; member
/system/bt/gd/l2cap/le/cert/
Dle_l2cap_test.py388 credits = cert_channel.credits_left()
393 for _ in range(min(credits + 1, 3)):
/system/bt/stack/gap/
Dgap_conn.cc213 p_ccb->local_coc_cfg.credits = L2CAP_LE_CREDIT_DEFAULT; in GAP_ConnOpen()
223 VLOG(2) << __func__ << ": credits=" << p_ccb->local_coc_cfg.credits in GAP_ConnOpen()
/system/bt/gd/l2cap/
Dl2cap_packets.pdl629 credits : 16,