Lines Matching refs:fixed_cid
1630 bool L2CA_RegisterFixedChannel(uint16_t fixed_cid, in L2CA_RegisterFixedChannel() argument
1632 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_RegisterFixedChannel()
1633 (fixed_cid > L2CAP_LAST_FIXED_CHNL)) { in L2CA_RegisterFixedChannel()
1635 fixed_cid); in L2CA_RegisterFixedChannel()
1640 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = *p_freg; in L2CA_RegisterFixedChannel()
1656 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_ConnectFixedChnl() argument
1658 return L2CA_ConnectFixedChnl(fixed_cid, rem_bda, phy); in L2CA_ConnectFixedChnl()
1661 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda, in L2CA_ConnectFixedChnl() argument
1667 << StringPrintf("CID: 0x%04x ", fixed_cid); in L2CA_ConnectFixedChnl()
1670 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_ConnectFixedChnl()
1671 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_ConnectFixedChnl()
1672 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_ConnectFixedChnl()
1674 L2CAP_TRACE_ERROR("%s() Invalid CID: 0x%04x", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1680 L2CAP_TRACE_WARNING("%s(0x%04x) - BTU not ready", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1684 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_ConnectFixedChnl()
1701 if (!(peer_channel_mask & (1 << fixed_cid))) { in L2CA_ConnectFixedChnl()
1703 << StringPrintf(" CID:0x%04x not supported", fixed_cid); in L2CA_ConnectFixedChnl()
1709 p_lcb, fixed_cid, in L2CA_ConnectFixedChnl()
1710 &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_ConnectFixedChnl()
1712 L2CAP_TRACE_WARNING("%s(0x%04x) - LCB but no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1721 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_ConnectFixedChnl()
1725 (*l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedConn_Cb)( in L2CA_ConnectFixedChnl()
1726 fixed_cid, p_lcb->remote_bd_addr, true, 0, p_lcb->transport); in L2CA_ConnectFixedChnl()
1733 L2CAP_TRACE_WARNING("%s(0x%04x) - no LCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1739 p_lcb, fixed_cid, &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_ConnectFixedChnl()
1742 L2CAP_TRACE_WARNING("%s(0x%04x) - no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1773 uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid, const RawAddress& rem_bda, in L2CA_SendFixedChnlData() argument
1779 << StringPrintf(" CID: 0x%04x", fixed_cid); in L2CA_SendFixedChnlData()
1781 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SendFixedChnlData()
1785 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_SendFixedChnlData()
1786 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_SendFixedChnlData()
1787 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_SendFixedChnlData()
1790 fixed_cid); in L2CA_SendFixedChnlData()
1798 fixed_cid); in L2CA_SendFixedChnlData()
1807 L2CAP_TRACE_WARNING("L2CA_SendFixedChnlData(0x%04x) - no LCB", fixed_cid); in L2CA_SendFixedChnlData()
1820 if ((peer_channel_mask & (1 << fixed_cid)) == 0) { in L2CA_SendFixedChnlData()
1823 fixed_cid); in L2CA_SendFixedChnlData()
1831 if (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]) { in L2CA_SendFixedChnlData()
1833 p_lcb, fixed_cid, in L2CA_SendFixedChnlData()
1834 &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_SendFixedChnlData()
1837 fixed_cid); in L2CA_SendFixedChnlData()
1844 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) { in L2CA_SendFixedChnlData()
1848 fixed_cid, fixed_queue_length( in L2CA_SendFixedChnlData()
1849 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_SendFixedChnlData()
1851 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->buff_quota); in L2CA_SendFixedChnlData()
1856 l2c_enqueue_peer_data(p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL], in L2CA_SendFixedChnlData()
1868 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) in L2CA_SendFixedChnlData()
1887 bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_RemoveFixedChnl() argument
1893 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_RemoveFixedChnl()
1894 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_RemoveFixedChnl()
1895 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_RemoveFixedChnl()
1897 L2CAP_TRACE_ERROR("L2CA_RemoveFixedChnl() Invalid CID: 0x%04x", fixed_cid); in L2CA_RemoveFixedChnl()
1901 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_RemoveFixedChnl()
1908 (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL])) { in L2CA_RemoveFixedChnl()
1910 << StringPrintf(" CID: 0x%04x not connected", fixed_cid); in L2CA_RemoveFixedChnl()
1915 << StringPrintf(" CID: 0x%04x", fixed_cid); in L2CA_RemoveFixedChnl()
1919 p_ccb = p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_RemoveFixedChnl()
1921 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = NULL; in L2CA_RemoveFixedChnl()
1930 if ((fixed_cid == L2CAP_ATT_CID) && !p_lcb->ccb_queue.p_first_ccb) in L2CA_RemoveFixedChnl()
1953 bool L2CA_SetFixedChannelTout(const RawAddress& rem_bda, uint16_t fixed_cid, in L2CA_SetFixedChannelTout() argument
1958 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SetFixedChannelTout()
1964 (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL])) { in L2CA_SetFixedChannelTout()
1966 << StringPrintf(" CID: 0x%04x not connected", fixed_cid); in L2CA_SetFixedChannelTout()
1970 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_SetFixedChannelTout()