Lines Matching refs:fixed_cid
1652 BOOLEAN L2CA_RegisterFixedChannel (UINT16 fixed_cid, tL2CAP_FIXED_CHNL_REG *p_freg) in L2CA_RegisterFixedChannel() argument
1654 if ( (fixed_cid < L2CAP_FIRST_FIXED_CHNL) || (fixed_cid > L2CAP_LAST_FIXED_CHNL) ) in L2CA_RegisterFixedChannel()
1656 L2CAP_TRACE_ERROR ("L2CA_RegisterFixedChannel() Invalid CID: 0x%04x", fixed_cid); in L2CA_RegisterFixedChannel()
1661 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = *p_freg; in L2CA_RegisterFixedChannel()
1677 BOOLEAN L2CA_ConnectFixedChnl (UINT16 fixed_cid, BD_ADDR rem_bda) in L2CA_ConnectFixedChnl() argument
1682 L2CAP_TRACE_API ("%s() CID: 0x%04x BDA: %08x%04x", __func__, fixed_cid, in L2CA_ConnectFixedChnl()
1686 if ( (fixed_cid < L2CAP_FIRST_FIXED_CHNL) || (fixed_cid > L2CAP_LAST_FIXED_CHNL) in L2CA_ConnectFixedChnl()
1687 || (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == NULL) ) in L2CA_ConnectFixedChnl()
1689 L2CAP_TRACE_ERROR ("%s() Invalid CID: 0x%04x", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1696 L2CAP_TRACE_WARNING ("%s(0x%04x) - BTU not ready", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1701 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_ConnectFixedChnl()
1721 if (!(peer_channel_mask & (1 << fixed_cid))) in L2CA_ConnectFixedChnl()
1724 fixed_cid,(rem_bda[0]<<24)+(rem_bda[1]<<16)+(rem_bda[2]<<8)+rem_bda[3], in L2CA_ConnectFixedChnl()
1730 if (!l2cu_initialize_fixed_ccb (p_lcb, fixed_cid, in L2CA_ConnectFixedChnl()
1731 &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].fixed_chnl_opts)) in L2CA_ConnectFixedChnl()
1733 L2CAP_TRACE_WARNING ("%s(0x%04x) - LCB but no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1742 p_lcb->p_pending_ccb = p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_ConnectFixedChnl()
1747 (*l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedConn_Cb) in L2CA_ConnectFixedChnl()
1748 (fixed_cid,p_lcb->remote_bd_addr, TRUE, 0, p_lcb->transport); in L2CA_ConnectFixedChnl()
1750 (*l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedConn_Cb) in L2CA_ConnectFixedChnl()
1751 (fixed_cid, p_lcb->remote_bd_addr, TRUE, 0, BT_TRANSPORT_BR_EDR); in L2CA_ConnectFixedChnl()
1759 L2CAP_TRACE_WARNING ("%s(0x%04x) - no LCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1764 if (!l2cu_initialize_fixed_ccb (p_lcb, fixed_cid, in L2CA_ConnectFixedChnl()
1765 &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].fixed_chnl_opts)) in L2CA_ConnectFixedChnl()
1768 L2CAP_TRACE_WARNING ("%s(0x%04x) - no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1796 UINT16 L2CA_SendFixedChnlData (UINT16 fixed_cid, BD_ADDR rem_bda, BT_HDR *p_buf) in L2CA_SendFixedChnlData() argument
1801 L2CAP_TRACE_API ("L2CA_SendFixedChnlData() CID: 0x%04x BDA: %08x%04x", fixed_cid, in L2CA_SendFixedChnlData()
1805 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SendFixedChnlData()
1810 if ( (fixed_cid < L2CAP_FIRST_FIXED_CHNL) || (fixed_cid > L2CAP_LAST_FIXED_CHNL) in L2CA_SendFixedChnlData()
1811 || (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == NULL) ) in L2CA_SendFixedChnlData()
1813 L2CAP_TRACE_ERROR ("L2CA_SendFixedChnlData() Invalid CID: 0x%04x", fixed_cid); in L2CA_SendFixedChnlData()
1821 L2CAP_TRACE_WARNING ("L2CA_SendFixedChnlData(0x%04x) - BTU not ready", fixed_cid); in L2CA_SendFixedChnlData()
1831 L2CAP_TRACE_WARNING ("L2CA_SendFixedChnlData(0x%04x) - no LCB", fixed_cid); in L2CA_SendFixedChnlData()
1846 if ((peer_channel_mask & (1 << fixed_cid)) == 0) in L2CA_SendFixedChnlData()
1848 …P_TRACE_WARNING ("L2CA_SendFixedChnlData() - peer does not support fixed chnl: 0x%04x", fixed_cid); in L2CA_SendFixedChnlData()
1856 if (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]) in L2CA_SendFixedChnlData()
1858 …if (!l2cu_initialize_fixed_ccb (p_lcb, fixed_cid, &l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CH… in L2CA_SendFixedChnlData()
1860 L2CAP_TRACE_WARNING ("L2CA_SendFixedChnlData() - no CCB for chnl: 0x%4x", fixed_cid); in L2CA_SendFixedChnlData()
1867 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) in L2CA_SendFixedChnlData()
1870 xmit_hold_q.count: %u buff_quota: %u", fixed_cid, in L2CA_SendFixedChnlData()
1871 … fixed_queue_length(p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->xmit_hold_q), in L2CA_SendFixedChnlData()
1872 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->buff_quota); in L2CA_SendFixedChnlData()
1877 l2c_enqueue_peer_data (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL], p_buf); in L2CA_SendFixedChnlData()
1887 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) in L2CA_SendFixedChnlData()
1906 BOOLEAN L2CA_RemoveFixedChnl (UINT16 fixed_cid, BD_ADDR rem_bda) in L2CA_RemoveFixedChnl() argument
1913 if ( (fixed_cid < L2CAP_FIRST_FIXED_CHNL) || (fixed_cid > L2CAP_LAST_FIXED_CHNL) in L2CA_RemoveFixedChnl()
1914 || (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == NULL) ) in L2CA_RemoveFixedChnl()
1916 L2CAP_TRACE_ERROR ("L2CA_RemoveFixedChnl() Invalid CID: 0x%04x", fixed_cid); in L2CA_RemoveFixedChnl()
1921 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_RemoveFixedChnl()
1928 if ( ((p_lcb) == NULL) || (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]) ) in L2CA_RemoveFixedChnl()
1930 …L2CAP_TRACE_WARNING ("L2CA_RemoveFixedChnl() CID: 0x%04x BDA: %08x%04x not connected", fixed_cid, in L2CA_RemoveFixedChnl()
1935 L2CAP_TRACE_API ("L2CA_RemoveFixedChnl() CID: 0x%04x BDA: %08x%04x", fixed_cid, in L2CA_RemoveFixedChnl()
1939 p_ccb = p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_RemoveFixedChnl()
1941 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = NULL; in L2CA_RemoveFixedChnl()
1951 if ((fixed_cid == L2CAP_ATT_CID ) && !p_lcb->ccb_queue.p_first_ccb) in L2CA_RemoveFixedChnl()
1977 BOOLEAN L2CA_SetFixedChannelTout (BD_ADDR rem_bda, UINT16 fixed_cid, UINT16 idle_tout) in L2CA_SetFixedChannelTout() argument
1983 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SetFixedChannelTout()
1989 if ( ((p_lcb) == NULL) || (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]) ) in L2CA_SetFixedChannelTout()
1991 …P_TRACE_WARNING ("L2CA_SetFixedChannelTout() CID: 0x%04x BDA: %08x%04x not connected", fixed_cid, in L2CA_SetFixedChannelTout()
1996 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->fixed_chnl_idle_tout = idle_tout; in L2CA_SetFixedChannelTout()