Lines Matching refs:bluetooth
29 static bluetooth::shim::legacy::L2cap shim_l2cap;
34 uint16_t bluetooth::shim::L2CA_Register(uint16_t client_psm, in L2CA_Register()
72 void bluetooth::shim::L2CA_Deregister(uint16_t client_psm) { in L2CA_Deregister()
83 uint16_t bluetooth::shim::L2CA_AllocatePSM(void) { in L2CA_AllocatePSM()
87 uint16_t bluetooth::shim::L2CA_AllocateLePSM(void) { in L2CA_AllocateLePSM()
91 void bluetooth::shim::L2CA_FreeLePSM(uint16_t psm) { in L2CA_FreeLePSM()
102 uint16_t bluetooth::shim::L2CA_ErtmConnectReq(uint16_t psm, in L2CA_ErtmConnectReq()
108 uint16_t bluetooth::shim::L2CA_ConnectReq(uint16_t psm, in L2CA_ConnectReq()
113 bool bluetooth::shim::L2CA_ErtmConnectRsp(const RawAddress& p_bd_addr, in L2CA_ErtmConnectRsp()
121 bool bluetooth::shim::L2CA_ConnectRsp(const RawAddress& p_bd_addr, uint8_t id, in L2CA_ConnectRsp()
124 return bluetooth::shim::L2CA_ErtmConnectRsp(p_bd_addr, id, lcid, result, in L2CA_ConnectRsp()
128 bool bluetooth::shim::L2CA_ConfigReq(uint16_t cid, tL2CAP_CFG_INFO* cfg_info) { in L2CA_ConfigReq()
132 bool bluetooth::shim::L2CA_ConfigRsp(uint16_t cid, tL2CAP_CFG_INFO* cfg_info) { in L2CA_ConfigRsp()
136 bool bluetooth::shim::L2CA_DisconnectReq(uint16_t cid) { in L2CA_DisconnectReq()
140 bool bluetooth::shim::L2CA_DisconnectRsp(uint16_t cid) { in L2CA_DisconnectRsp()
147 uint16_t bluetooth::shim::L2CA_RegisterLECoc(uint16_t psm, in L2CA_RegisterLECoc()
153 void bluetooth::shim::L2CA_DeregisterLECoc(uint16_t psm) { in L2CA_DeregisterLECoc()
157 uint16_t bluetooth::shim::L2CA_ConnectLECocReq(uint16_t psm, in L2CA_ConnectLECocReq()
165 bool bluetooth::shim::L2CA_ConnectLECocRsp(const RawAddress& p_bd_addr, in L2CA_ConnectLECocRsp()
176 bool bluetooth::shim::L2CA_GetPeerLECocConfig(uint16_t lcid, in L2CA_GetPeerLECocConfig()
185 bool bluetooth::shim::L2CA_SetConnectionCallbacks( in L2CA_SetConnectionCallbacks()
191 uint8_t bluetooth::shim::L2CA_DataWrite(uint16_t cid, BT_HDR* p_data) { in L2CA_DataWrite()
199 uint8_t bluetooth::shim::L2CA_SetDesireRole(uint8_t new_role) { in L2CA_SetDesireRole()
207 bool bluetooth::shim::L2CA_SetIdleTimeoutByBdAddr(const RawAddress& bd_addr, in L2CA_SetIdleTimeoutByBdAddr()
214 bool bluetooth::shim::L2CA_SetAclPriority(const RawAddress& bd_addr, in L2CA_SetAclPriority()
220 bool bluetooth::shim::L2CA_SetFlushTimeout(const RawAddress& bd_addr, in L2CA_SetFlushTimeout()
226 bool bluetooth::shim::L2CA_GetPeerFeatures(const RawAddress& bd_addr, in L2CA_GetPeerFeatures()
233 using bluetooth::hci::AddressWithType;
234 using bluetooth::l2cap::le::FixedChannel;
235 using bluetooth::l2cap::le::FixedChannelManager;
236 using bluetooth::l2cap::le::FixedChannelService;
256 void on_channel_close(bluetooth::hci::AddressWithType device, in on_channel_close()
257 bluetooth::hci::ErrorCode error_code) { in on_channel_close()
258 auto address = bluetooth::ToRawAddress(device.GetAddress()); in on_channel_close()
268 bluetooth::shim::GetGdShimHandler(), in on_channel_open()
269 bluetooth::common::BindOnce(&LeFixedChannelHelper::on_channel_close, in on_channel_open()
270 bluetooth::common::Unretained(this), in on_channel_open()
274 bluetooth::os::EnqueueBuffer<bluetooth::packet::BasePacketBuilder>>( in on_channel_open()
277 bluetooth::shim::GetGdShimHandler(), in on_channel_open()
278 bluetooth::common::Bind(&LeFixedChannelHelper::on_incoming_data, in on_channel_open()
279 bluetooth::common::Unretained(this), device)); in on_channel_open()
282 auto address = bluetooth::ToRawAddress(device.GetAddress()); in on_channel_open()
285 bluetooth::shim::Btm::StoreAddressType( in on_channel_open()
289 void on_incoming_data(bluetooth::hci::AddressWithType remote) { in on_incoming_data()
301 auto address = bluetooth::ToRawAddress(remote.GetAddress()); in on_incoming_data()
312 std::unique_ptr<bluetooth::packet::BasePacketBuilder> packet) { in send()
319 bluetooth::shim::GetGdShimHandler()); in send()
325 std::unique_ptr<bluetooth::os::EnqueueBuffer<
326 bluetooth::packet::BasePacketBuilder>>>
341 bool bluetooth::shim::L2CA_RegisterFixedChannel(uint16_t cid, in L2CA_RegisterFixedChannel()
352 bluetooth::shim::GetL2capLeModule() in L2CA_RegisterFixedChannel()
365 bool bluetooth::shim::L2CA_ConnectFixedChnl(uint16_t cid, in L2CA_ConnectFixedChnl()
374 auto manager = bluetooth::shim::GetL2capLeModule()->GetFixedChannelManager(); in L2CA_ConnectFixedChnl()
383 bool bluetooth::shim::L2CA_ConnectFixedChnl(uint16_t cid, in L2CA_ConnectFixedChnl()
386 return bluetooth::shim::L2CA_ConnectFixedChnl(cid, rem_bda); in L2CA_ConnectFixedChnl()
389 static std::unique_ptr<bluetooth::packet::RawBuilder> MakeUniquePacket( in MakeUniquePacket()
391 bluetooth::packet::RawBuilder builder; in MakeUniquePacket()
393 auto payload = std::make_unique<bluetooth::packet::RawBuilder>(); in MakeUniquePacket()
398 uint16_t bluetooth::shim::L2CA_SendFixedChnlData(uint16_t cid, in L2CA_SendFixedChnlData()
413 bool bluetooth::shim::L2CA_RemoveFixedChnl(uint16_t cid, in L2CA_RemoveFixedChnl()
433 bool bluetooth::shim::L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid) { in L2CA_GetRemoteCid()
437 bool bluetooth::shim::L2CA_SetIdleTimeout(uint16_t cid, uint16_t timeout, in L2CA_SetIdleTimeout()
443 bool bluetooth::shim::L2CA_SetTxPriority(uint16_t cid, in L2CA_SetTxPriority()
449 bool bluetooth::shim::L2CA_SetFixedChannelTout(const RawAddress& rem_bda, in L2CA_SetFixedChannelTout()
456 bool bluetooth::shim::L2CA_SetChnlFlushability(uint16_t cid, in L2CA_SetChnlFlushability()
462 uint16_t bluetooth::shim::L2CA_FlushChannel(uint16_t lcid, in L2CA_FlushChannel()
468 bool bluetooth::shim::L2CA_IsLinkEstablished(const RawAddress& bd_addr, in L2CA_IsLinkEstablished()