Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test_utils.cc111 int credits, in CreateRfcommPacket() argument
128 if (credits > 0) { in CreateRfcommPacket()
129 result.push_back(static_cast<uint8_t>(credits)); in CreateRfcommPacket()
201 uint16_t acl_handle, int credits, in CreateQuickDataPacket() argument
205 GetControlField(credits > 0 ? true : false, RFCOMM_UIH); in CreateQuickDataPacket()
207 CreateRfcommPacket(address_field, control_field, credits, data); in CreateQuickDataPacket()
215 uint16_t acl_handle, int credits, in CreateQuickDataPacket() argument
218 return CreateQuickDataPacket(dlci, cr, l2cap_lcid, acl_handle, credits, data); in CreateQuickDataPacket()
Dstack_rfcomm_test_utils.h127 int credits,
210 uint16_t acl_handle, int credits,
226 uint16_t acl_handle, int credits,
Dstack_rfcomm_test.cc416 int credits, uint16_t acl_handle, in SendAndVerifyOutgoingTransmission() argument
421 credits, message)); in SendAndVerifyOutgoingTransmission()
434 int credits, uint16_t acl_handle, in ReceiveAndVerifyIncomingTransmission() argument
440 credits, message)); in ReceiveAndVerifyIncomingTransmission()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dround_robin_scheduler.cc229 void RoundRobinScheduler::incoming_acl_credits(uint16_t handle, uint16_t credits) { in incoming_acl_credits() argument
235 if (acl_queue_handler->second.number_of_sent_packets_ >= credits) { in incoming_acl_credits()
236 acl_queue_handler->second.number_of_sent_packets_ -= credits; in incoming_acl_credits()
247 acl_packet_credits_ += credits; in incoming_acl_credits()
250 log::warn("acl packet credits overflow due to receive {} credits", credits); in incoming_acl_credits()
256 le_acl_packet_credits_ += credits; in incoming_acl_credits()
259 log::warn("le acl packet credits overflow due to receive {} credits", credits); in incoming_acl_credits()
Dround_robin_scheduler.h62 void incoming_acl_credits(uint16_t handle, uint16_t credits);
Dround_robin_scheduler_test.cc62 void SendCompletedAclPacketsCallback(uint16_t handle, uint16_t credits) { in SendCompletedAclPacketsCallback() argument
63 acl_credits_callback_(handle, credits); in SendCompletedAclPacketsCallback()
/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_ts_frames.cc161 uint8_t credits; in rfc_send_buf_uih() local
169 credits = (uint8_t)p_buf->layer_specific; in rfc_send_buf_uih()
171 credits = 0; in rfc_send_buf_uih()
174 if (credits) { in rfc_send_buf_uih()
182 *p_data++ = RFCOMM_UIH | ((credits) ? RFCOMM_PF : 0); in rfc_send_buf_uih()
192 if (credits) { in rfc_send_buf_uih()
193 *p_data++ = credits; in rfc_send_buf_uih()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_iso.cc127 void IsoManager::HandleNumComplDataPkts(uint16_t handle, uint16_t credits) { in HandleNumComplDataPkts() argument
129 pimpl_->HandleNumComplDataPkts(handle, credits); in HandleNumComplDataPkts()
Dmock_stack_btm_iso.h70 (uint16_t handle, uint16_t credits));
Dmock_stack_acl.h678 std::function<void(uint16_t handle, uint16_t credits)> body{
680 void operator()(uint16_t handle, uint16_t credits) { body(handle, credits); }; in operator()
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Dle_credit_based_channel_data_controller.cc124 void LeCreditBasedDataController::OnCredit(uint16_t credits) { in OnCredit() argument
125 int total_credits = credits_ + credits; in OnCredit()
Dle_credit_based_channel_data_controller.h60 void OnCredit(uint16_t credits);
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_iso.cc131 void IsoManager::HandleNumComplDataPkts(uint16_t handle, uint16_t credits) { in HandleNumComplDataPkts() argument
133 pimpl_->iso_impl_->handle_gd_num_completed_pkts(handle, credits); in HandleNumComplDataPkts()
Dbtm_iso_impl.h667 void handle_gd_num_completed_pkts(uint16_t handle, uint16_t credits) { in handle_gd_num_completed_pkts()
670 iter->second->used_credits -= credits; in handle_gd_num_completed_pkts()
671 iso_credits_ += credits; in handle_gd_num_completed_pkts()
677 iter->second->used_credits -= credits; in handle_gd_num_completed_pkts()
678 iso_credits_ += credits; in handle_gd_num_completed_pkts()
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dsignalling_manager.h116 void SendCredit(Cid local_cid, uint16_t credits);
144 void OnCredit(Cid remote_cid, uint16_t credits);
Dsignalling_manager.cc109 void LeSignallingManager::SendCredit(Cid local_cid, uint16_t credits) { in SendCredit() argument
110 auto builder = LeFlowControlCreditBuilder::Create(next_signal_id_.Value(), local_cid, credits); in SendCredit()
355 void LeSignallingManager::OnCredit(Cid remote_cid, uint16_t credits) { in OnCredit() argument
363 data_controller->OnCredit(credits); in OnCredit()
/packages/modules/Bluetooth/system/stack/test/
Dstack_l2cap_test.cc108 .credits = L2CA_LeCreditDefault(),
117 .credits = L2CA_LeCreditDefault(),
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_ble.cc435 temp_p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
595 temp_p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
778 p_ccb->local_conn_cfg.credits = L2CA_LeCreditDefault(); in l2cble_process_sig_cmd()
783 p_ccb->peer_conn_cfg.credits = initial_credit; in l2cble_process_sig_cmd()
816 STREAM_TO_UINT16(p_ccb->peer_conn_cfg.credits, p); in l2cble_process_sig_cmd()
824 p_ccb->peer_conn_cfg.mps, p_ccb->peer_conn_cfg.credits, in l2cble_process_sig_cmd()
Dl2c_api.cc559 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocReq()
646 return p_ccb->peer_conn_cfg.credits; in L2CA_GetPeerLECocCredit()
697 temp_p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectCreditBasedRsp()
803 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectCreditBasedReq()
Dl2c_main.cc195 uint16_t credits = L2CA_LeCreditDefault() - p_ccb->remote_credit_count; in l2c_rcv_acl_data() local
199 l2c_csm_execute(p_ccb, L2CEVT_L2CA_SEND_FLOW_CONTROL_CREDIT, &credits); in l2c_rcv_acl_data()
/packages/modules/Bluetooth/system/gd/hci/
Dcontroller_test.cc588 void CheckReceivedCredits(uint16_t handle, uint16_t credits) { in CheckReceivedCredits() argument
591 ASSERT_EQ(kCredits1, credits); in CheckReceivedCredits()
595 ASSERT_EQ(kCredits2, credits); in CheckReceivedCredits()
599 log::fatal("Unknown handle 0x{:0x} with 0x{:0x} credits", handle, credits); in CheckReceivedCredits()
/packages/modules/Bluetooth/system/stack/include/
Dbtm_iso_api.h216 virtual void HandleNumComplDataPkts(uint16_t handle, uint16_t credits);
/packages/modules/Bluetooth/system/main/shim/
Dacl.h119 void on_incoming_acl_credits(uint16_t handle, uint16_t credits);
/packages/modules/Bluetooth/floss/hcidoc/packets/
Dl2cap_packets.pdl439 credits : 16,
591 credits : 16,
/packages/modules/Bluetooth/system/pdl/l2cap/
Dl2cap_packets.pdl542 credits : 16,
694 credits : 16,

12