Home | History | Annotate | Download | only in l2cap

Lines Matching refs:cid

209 ** Returns          the CID of the connection, or 0 if it failed to start
226 ** Returns the CID of the connection, or 0 if it failed to start
315 L2CAP_TRACE_API2 ("L2CAP - L2CA_conn_req(psm: 0x%04x) returned CID: 0x%04x", psm, p_ccb->local_cid);
317 /* Return the local CID as our handle */
356 L2CAP_TRACE_API6 ("L2CA_ErtmConnectRsp() CID: 0x%04x Result: %d Status: %d BDA: %08x%04x p_ertm_info:0x%08x",
435 BOOLEAN L2CA_ConfigReq (UINT16 cid, tL2CAP_CFG_INFO *p_cfg)
439 L2CAP_TRACE_API5 ("L2CA_ConfigReq() CID 0x%04x: fcr_present:%d (mode %d) mtu_present:%d (%d)",
440 cid, p_cfg->fcr_present, p_cfg->fcr.mode, p_cfg->mtu_present, p_cfg->mtu);
443 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
445 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_cfg_req, CID: %d", cid);
486 BOOLEAN L2CA_ConfigRsp (UINT16 cid, tL2CAP_CFG_INFO *p_cfg)
490 L2CAP_TRACE_API6 ("L2CA_ConfigRsp() CID: 0x%04x Result: %d MTU present:%d Flush TO:%d FCR:%d FCS:%d",
491 cid, p_cfg->result, p_cfg->mtu_present, p_cfg->flush_to_present, p_cfg->fcr_present, p_cfg->fcs_present);
494 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
496 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_cfg_rsp, CID: %d", cid);
530 BOOLEAN L2CA_DisconnectReq (UINT16 cid)
534 L2CAP_TRACE_API1 ("L2CA_DisconnectReq() CID: 0x%04x", cid);
537 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
539 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_disc_req, CID: %d", cid);
558 BOOLEAN L2CA_DisconnectRsp (UINT16 cid)
562 L2CAP_TRACE_API1 ("L2CA_DisconnectRsp() CID: 0x%04x", cid);
565 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
567 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_disc_rsp, CID: %d", cid);
716 BOOLEAN L2CA_SetIdleTimeout (UINT16 cid, UINT16 timeout, BOOLEAN is_global)
728 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
730 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_SetIdleTimeout, CID: %d", cid);
856 ** Description This function sets up a CID for local loopback
858 ** Returns CID of 0 if none.
905 /* Return the local CID as our handle */
940 BOOLEAN L2CA_FlowControl (UINT16 cid, BOOLEAN data_enabled)
945 L2CAP_TRACE_API2 ("L2CA_FlowControl(%d) CID: 0x%04x", on_off, cid);
948 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
950 L2CAP_TRACE_WARNING2 ("L2CAP - no CCB for L2CA_FlowControl, CID: 0x%04x data_enabled: %d", cid, data_enabled);
984 BOOLEAN L2CA_SendTestSFrame (UINT16 cid, UINT8 sup_type, UINT8 back_track)
988 L2CAP_TRACE_API3 ("L2CA_SendTestSFrame() CID: 0x%04x Type: 0x%02x back_track: %u", cid, sup_type, back_track);
991 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
993 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_SendTestSFrame, CID: %d", cid);
1017 BOOLEAN L2CA_SetTxPriority (UINT16 cid, tL2CAP_CHNL_PRIORITY priority)
1021 L2CAP_TRACE_API2 ("L2CA_SetTxPriority() CID: 0x%04x, priority:%d", cid, priority);
1024 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
1026 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_SetTxPriority, CID: %d", cid);
1045 BOOLEAN L2CA_SetChnlDataRate (UINT16 cid, tL2CAP_CHNL_DATA_RATE tx, tL2CAP_CHNL_DATA_RATE rx)
1049 L2CAP_TRACE_API3 ("L2CA_SetChnlDataRate() CID: 0x%04x, tx:%d, rx:%d", cid, tx, rx);
1052 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
1054 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_SetChnlDataRate, CID: %d", cid);
1250 ** Parameters: Local CID
1286 L2CAP_TRACE_ERROR1 ("L2CA_RegisterFixedChannel() Invalid CID: 0x%04x", fixed_cid);
1301 ** Parameters: Fixed CID
1314 L2CAP_TRACE_API3 ("L2CA_ConnectFixedChnl() CID: 0x%04x BDA: %08x%04x", fixed_cid,
1317 /* Check CID is valid and registered */
1321 L2CAP_TRACE_ERROR1 ("L2CA_ConnectFixedChnl() Invalid CID: 0x%04x", fixed_cid);
1332 /* If we already have a link to the remote, check if it supports that CID */
1337 L2CAP_TRACE_EVENT3 ("L2CA_ConnectFixedChnl() CID: 0x%04x BDA: %08x%04x not supported", fixed_cid,
1381 ** Parameters: Fixed CID
1393 L2CAP_TRACE_API3 ("L2CA_SendFixedChnlData() CID: 0x%04x BDA: %08x%04x", fixed_cid,
1396 /* Check CID is valid and registered */
1400 L2CAP_TRACE_ERROR1 ("L2CA_SendFixedChnlData() Invalid CID: 0x%04x", fixed_cid);
1455 ** Parameters: Fixed CID
1467 /* Check CID is valid and registered */
1471 L2CAP_TRACE_ERROR1 ("L2CA_RemoveFixedChnl() Invalid CID: 0x%04x", fixed_cid);
1479 L2CAP_TRACE_WARNING3 ("L2CA_RemoveFixedChnl() CID: 0x%04x BDA: %08x%04x not connected", fixed_cid,
1484 L2CAP_TRACE_API3 ("L2CA_RemoveFixedChnl() CID: 0x%04x BDA: %08x%04x", fixed_cid,
1528 L2CAP_TRACE_WARNING3 ("L2CA_SetFixedChannelTout() CID: 0x%04x BDA: %08x%04x not connected", fixed_cid,
1565 L2CAP_TRACE_API1 ("L2CA_GetCurrentConfig() CID: 0x%04x", lcid);
1595 L2CAP_TRACE_ERROR1 ("No CCB for CID:0x%04x", lcid);
1639 UINT8 L2CA_DataWrite (UINT16 cid, BT_HDR *p_data)
1641 L2CAP_TRACE_API2 ("L2CA_DataWrite() CID: 0x%04x Len: %d", cid, p_data->len);
1642 return l2c_data_write (cid, p_data, L2CAP_FLUSHABLE_CH_BASED);
1652 ** Returns TRUE if CID found, else FALSE
1655 BOOLEAN L2CA_SetChnlFlushability (UINT16 cid, BOOLEAN is_flushable)
1662 if ((p_ccb = l2cu_find_ccb_by_cid (NULL, cid)) == NULL)
1664 L2CAP_TRACE_WARNING1 ("L2CAP - no CCB for L2CA_SetChnlFlushability, CID: %d", cid);
1670 L2CAP_TRACE_API2 ("L2CA_SetChnlFlushability() CID: 0x%04x is_flushable: %d", cid, is_flushable);
1692 UINT8 L2CA_DataWriteEx (UINT16 cid, BT_HDR *p_data, UINT16 flags)
1694 L2CAP_TRACE_API3 ("L2CA_DataWriteEx() CID: 0x%04x Len: %d Flags:0x%04X",
1695 cid, p_data->len, flags);
1696 return l2c_data_write (cid, p_data, flags);
1704 ** for xmission for a particular CID. If called with
1706 ** of buffers queued for that CID L2CAP_FLUSH_CHANS_ALL (0xffff)
1710 ** Returns Number of buffers left queued for that CID
1726 L2CAP_TRACE_WARNING1 ("L2CA_FlushChannel() abnormally returning 0 CID: 0x%04x", lcid);
1732 L2CAP_TRACE_API4 ("L2CA_FlushChannel (FLUSH) CID: 0x%04x NumToFlush: %d QC: %u pFirst: 0x%08x",
1737 L2CAP_TRACE_API1 ("L2CA_FlushChannel (QUERY) CID: 0x%04x", lcid);
1810 /* Return the local number of buffers left for the CID */