Lines Matching refs:fixed_cid

1372 bool L2CA_RegisterFixedChannel(uint16_t fixed_cid,  in L2CA_RegisterFixedChannel()  argument
1375 return bluetooth::shim::L2CA_RegisterFixedChannel(fixed_cid, p_freg); in L2CA_RegisterFixedChannel()
1378 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_RegisterFixedChannel()
1379 (fixed_cid > L2CAP_LAST_FIXED_CHNL)) { in L2CA_RegisterFixedChannel()
1381 fixed_cid); in L2CA_RegisterFixedChannel()
1386 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = *p_freg; in L2CA_RegisterFixedChannel()
1402 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_ConnectFixedChnl() argument
1404 return bluetooth::shim::L2CA_ConnectFixedChnl(fixed_cid, rem_bda); in L2CA_ConnectFixedChnl()
1407 return L2CA_ConnectFixedChnl(fixed_cid, rem_bda, phy); in L2CA_ConnectFixedChnl()
1410 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda, in L2CA_ConnectFixedChnl() argument
1413 return bluetooth::shim::L2CA_ConnectFixedChnl(fixed_cid, rem_bda, in L2CA_ConnectFixedChnl()
1421 << StringPrintf("CID: 0x%04x ", fixed_cid); in L2CA_ConnectFixedChnl()
1424 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_ConnectFixedChnl()
1425 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_ConnectFixedChnl()
1426 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_ConnectFixedChnl()
1428 L2CAP_TRACE_ERROR("%s() Invalid CID: 0x%04x", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1434 L2CAP_TRACE_WARNING("%s(0x%04x) - BTU not ready", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1438 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_ConnectFixedChnl()
1455 if (!(peer_channel_mask & (1 << fixed_cid))) { in L2CA_ConnectFixedChnl()
1457 << StringPrintf(" CID:0x%04x not supported", fixed_cid); in L2CA_ConnectFixedChnl()
1462 if (!l2cu_initialize_fixed_ccb(p_lcb, fixed_cid)) { in L2CA_ConnectFixedChnl()
1463 L2CAP_TRACE_WARNING("%s(0x%04x) - LCB but no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1472 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_ConnectFixedChnl()
1476 (*l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedConn_Cb)( in L2CA_ConnectFixedChnl()
1477 fixed_cid, p_lcb->remote_bd_addr, true, 0, p_lcb->transport); in L2CA_ConnectFixedChnl()
1484 L2CAP_TRACE_WARNING("%s(0x%04x) - no LCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1489 if (!l2cu_initialize_fixed_ccb(p_lcb, fixed_cid)) { in L2CA_ConnectFixedChnl()
1491 L2CAP_TRACE_WARNING("%s(0x%04x) - no CCB", __func__, fixed_cid); in L2CA_ConnectFixedChnl()
1522 uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid, const RawAddress& rem_bda, in L2CA_SendFixedChnlData() argument
1525 return bluetooth::shim::L2CA_SendFixedChnlData(fixed_cid, rem_bda, p_buf); in L2CA_SendFixedChnlData()
1532 << StringPrintf(" CID: 0x%04x", fixed_cid); in L2CA_SendFixedChnlData()
1534 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SendFixedChnlData()
1538 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_SendFixedChnlData()
1539 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_SendFixedChnlData()
1540 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_SendFixedChnlData()
1543 fixed_cid); in L2CA_SendFixedChnlData()
1551 fixed_cid); in L2CA_SendFixedChnlData()
1560 L2CAP_TRACE_WARNING("L2CA_SendFixedChnlData(0x%04x) - no LCB", fixed_cid); in L2CA_SendFixedChnlData()
1573 if ((peer_channel_mask & (1 << fixed_cid)) == 0) { in L2CA_SendFixedChnlData()
1576 fixed_cid); in L2CA_SendFixedChnlData()
1584 if (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]) { in L2CA_SendFixedChnlData()
1585 if (!l2cu_initialize_fixed_ccb(p_lcb, fixed_cid)) { in L2CA_SendFixedChnlData()
1587 fixed_cid); in L2CA_SendFixedChnlData()
1594 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) { in L2CA_SendFixedChnlData()
1598 fixed_cid, fixed_queue_length( in L2CA_SendFixedChnlData()
1599 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_SendFixedChnlData()
1601 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->buff_quota); in L2CA_SendFixedChnlData()
1606 l2c_enqueue_peer_data(p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL], in L2CA_SendFixedChnlData()
1618 if (p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent) in L2CA_SendFixedChnlData()
1637 bool L2CA_RemoveFixedChnl(uint16_t fixed_cid, const RawAddress& rem_bda) { in L2CA_RemoveFixedChnl() argument
1639 return bluetooth::shim::L2CA_RemoveFixedChnl(fixed_cid, rem_bda); in L2CA_RemoveFixedChnl()
1647 if ((fixed_cid < L2CAP_FIRST_FIXED_CHNL) || in L2CA_RemoveFixedChnl()
1648 (fixed_cid > L2CAP_LAST_FIXED_CHNL) || in L2CA_RemoveFixedChnl()
1649 (l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb == in L2CA_RemoveFixedChnl()
1651 L2CAP_TRACE_ERROR("L2CA_RemoveFixedChnl() Invalid CID: 0x%04x", fixed_cid); in L2CA_RemoveFixedChnl()
1655 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_RemoveFixedChnl()
1662 (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL])) { in L2CA_RemoveFixedChnl()
1664 << StringPrintf(" CID: 0x%04x not connected", fixed_cid); in L2CA_RemoveFixedChnl()
1669 << StringPrintf(" CID: 0x%04x", fixed_cid); in L2CA_RemoveFixedChnl()
1673 p_ccb = p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]; in L2CA_RemoveFixedChnl()
1675 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] = NULL; in L2CA_RemoveFixedChnl()
1684 if ((fixed_cid == L2CAP_ATT_CID) && !p_lcb->ccb_queue.p_first_ccb) in L2CA_RemoveFixedChnl()
1707 bool L2CA_SetFixedChannelTout(const RawAddress& rem_bda, uint16_t fixed_cid, in L2CA_SetFixedChannelTout() argument
1710 return bluetooth::shim::L2CA_SetFixedChannelTout(rem_bda, fixed_cid, in L2CA_SetFixedChannelTout()
1717 if (fixed_cid >= L2CAP_ATT_CID && fixed_cid <= L2CAP_SMP_CID) in L2CA_SetFixedChannelTout()
1723 (!p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL])) { in L2CA_SetFixedChannelTout()
1725 << StringPrintf(" CID: 0x%04x not connected", fixed_cid); in L2CA_SetFixedChannelTout()
1729 p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] in L2CA_SetFixedChannelTout()