Lines Matching refs:psm
70 uint16_t add_classic_cid_token_entry(uint16_t psm) { in add_classic_cid_token_entry() argument
72 classic_cid_token_to_channel_map_[new_token] = psm; in add_classic_cid_token_entry()
82 void remove_classic_dynamic_channel_helper(uint16_t psm);
85 ClassicDynamicChannelHelper(uint16_t psm, tL2CAP_APPL_INFO appl_info, in ClassicDynamicChannelHelper()
88 : psm_(psm), appl_info_(appl_info), config_(config), policy_(policy) {} in ClassicDynamicChannelHelper()
304 void remove_classic_dynamic_channel_helper(uint16_t psm) { in remove_classic_dynamic_channel_helper() argument
305 if (classic_dynamic_channel_helper_map_.count(psm) != 0 && in remove_classic_dynamic_channel_helper()
306 classic_dynamic_channel_helper_map_[psm]->channels_.empty()) { in remove_classic_dynamic_channel_helper()
307 classic_dynamic_channel_helper_map_.erase(psm); in remove_classic_dynamic_channel_helper()
745 void L2CA_Deregister(uint16_t psm) { in L2CA_Deregister() argument
746 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_Deregister()
747 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_Deregister()
750 classic_dynamic_channel_helper_map_[psm]->Unregister(); in L2CA_Deregister()
756 uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& raw_address) { in L2CA_ConnectReq() argument
757 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_ConnectReq()
758 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_ConnectReq()
761 uint16_t cid_token = add_classic_cid_token_entry(psm); in L2CA_ConnectReq()
762 classic_dynamic_channel_helper_map_[psm]->Connect( in L2CA_ConnectReq()
768 auto psm = classic_cid_token_to_channel_map_[cid]; in L2CA_DisconnectReq() local
769 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_DisconnectReq()
770 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_DisconnectReq()
773 classic_dynamic_channel_helper_map_[psm]->Disconnect(cid); in L2CA_DisconnectReq()
783 auto psm = classic_cid_token_to_channel_map_[cid]; in L2CA_DataWrite() local
784 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_DataWrite()
785 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_DataWrite()
792 classic_dynamic_channel_helper_map_[psm]->send( in L2CA_DataWrite()
807 std::vector<uint16_t> L2CA_ConnectCreditBasedReq(uint16_t psm, in L2CA_ConnectCreditBasedReq() argument
1130 auto psm = classic_cid_token_to_channel_map_[lcid]; in L2CA_GetRemoteCid() local
1131 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_GetRemoteCid()
1132 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_GetRemoteCid()
1135 *rcid = classic_dynamic_channel_helper_map_[psm]->GetRemoteCid(lcid); in L2CA_GetRemoteCid()
1140 auto psm = classic_cid_token_to_channel_map_[cid]; in L2CA_SetTxPriority() local
1141 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_SetTxPriority()
1142 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_SetTxPriority()
1146 return classic_dynamic_channel_helper_map_[psm]->SetChannelTxPriority( in L2CA_SetTxPriority()
1165 auto psm = classic_cid_token_to_channel_map_[lcid]; in L2CA_FlushChannel() local
1166 if (classic_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_FlushChannel()
1167 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_FlushChannel()
1171 return classic_dynamic_channel_helper_map_[psm]->GetNumBufferedPackets( in L2CA_FlushChannel()
1174 classic_dynamic_channel_helper_map_[psm]->FlushChannel(lcid); in L2CA_FlushChannel()
1256 uint16_t add_le_cid_token_entry(uint16_t psm) { in add_le_cid_token_entry() argument
1258 le_cid_token_to_channel_map_[new_token] = psm; in add_le_cid_token_entry()
1268 void remove_le_dynamic_channel_helper(uint16_t psm);
1271 LeDynamicChannelHelper(uint16_t psm, tL2CAP_APPL_INFO appl_info, in LeDynamicChannelHelper()
1274 : psm_(psm), appl_info_(appl_info), config_(config), policy_(policy) {} in LeDynamicChannelHelper()
1460 void remove_le_dynamic_channel_helper(uint16_t psm) { in remove_le_dynamic_channel_helper() argument
1461 if (le_dynamic_channel_helper_map_.count(psm) != 0 && in remove_le_dynamic_channel_helper()
1462 le_dynamic_channel_helper_map_[psm]->channels_.empty()) { in remove_le_dynamic_channel_helper()
1463 le_dynamic_channel_helper_map_.erase(psm); in remove_le_dynamic_channel_helper()
1490 void L2CA_FreeLePSM(uint16_t psm) { assigned_dynamic_le_psm_.erase(psm); } in L2CA_FreeLePSM() argument
1492 uint16_t L2CA_RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO& callbacks, in L2CA_RegisterLECoc() argument
1494 if (le_dynamic_channel_helper_map_.count(psm) != 0) { in L2CA_RegisterLECoc()
1495 LOG(ERROR) << __func__ << "Already registered psm: " << psm; in L2CA_RegisterLECoc()
1507 le_dynamic_channel_helper_map_[psm] = in L2CA_RegisterLECoc()
1508 std::make_unique<LeDynamicChannelHelper>(psm, callbacks, config, policy); in L2CA_RegisterLECoc()
1509 le_dynamic_channel_helper_map_[psm]->Register(); in L2CA_RegisterLECoc()
1510 return psm; in L2CA_RegisterLECoc()
1513 void L2CA_DeregisterLECoc(uint16_t psm) { in L2CA_DeregisterLECoc() argument
1514 if (le_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_DeregisterLECoc()
1515 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_DeregisterLECoc()
1518 le_dynamic_channel_helper_map_[psm]->Unregister(); in L2CA_DeregisterLECoc()
1521 uint16_t L2CA_ConnectLECocReq(uint16_t psm, const RawAddress& p_bd_addr, in L2CA_ConnectLECocReq() argument
1523 if (le_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_ConnectLECocReq()
1524 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_ConnectLECocReq()
1527 uint16_t cid_token = add_le_cid_token_entry(psm); in L2CA_ConnectLECocReq()
1534 le_dynamic_channel_helper_map_[psm]->Connect(cid_token, remote); in L2CA_ConnectLECocReq()
1543 auto psm = le_cid_token_to_channel_map_[cid]; in L2CA_GetPeerLECocConfig() local
1544 if (le_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_GetPeerLECocConfig()
1545 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_GetPeerLECocConfig()
1548 auto mtu = le_dynamic_channel_helper_map_[psm]->GetMtu(cid); in L2CA_GetPeerLECocConfig()
1558 auto psm = le_cid_token_to_channel_map_[cid]; in L2CA_DisconnectLECocReq() local
1559 if (le_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_DisconnectLECocReq()
1560 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_DisconnectLECocReq()
1563 le_dynamic_channel_helper_map_[psm]->Disconnect(cid); in L2CA_DisconnectLECocReq()
1573 auto psm = le_cid_token_to_channel_map_[cid]; in L2CA_LECocDataWrite() local
1574 if (le_dynamic_channel_helper_map_.count(psm) == 0) { in L2CA_LECocDataWrite()
1575 LOG(ERROR) << __func__ << "Not registered psm: " << psm; in L2CA_LECocDataWrite()
1582 le_dynamic_channel_helper_map_[psm]->send( in L2CA_LECocDataWrite()