• Home
  • Raw
  • Download

Lines Matching refs:cid

64 						   u16 cid)  in __l2cap_get_chan_by_dcid()  argument
69 if (c->dcid == cid) in __l2cap_get_chan_by_dcid()
76 u16 cid) in __l2cap_get_chan_by_scid() argument
81 if (c->scid == cid) in __l2cap_get_chan_by_scid()
90 u16 cid) in l2cap_get_chan_by_scid() argument
95 c = __l2cap_get_chan_by_scid(conn, cid); in l2cap_get_chan_by_scid()
107 u16 cid) in l2cap_get_chan_by_dcid() argument
112 c = __l2cap_get_chan_by_dcid(conn, cid); in l2cap_get_chan_by_dcid()
203 u16 cid = L2CAP_CID_DYN_START; in l2cap_alloc_cid() local
205 for (; cid < L2CAP_CID_DYN_END; cid++) { in l2cap_alloc_cid()
206 if (!__l2cap_get_chan_by_scid(conn, cid)) in l2cap_alloc_cid()
207 return cid; in l2cap_alloc_cid()
930 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_sframe_pdu()
1299 static struct l2cap_chan *l2cap_global_chan_by_scid(int state, u16 cid, in l2cap_global_chan_by_scid() argument
1313 if (c->scid == cid) { in l2cap_global_chan_by_scid()
1715 int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, in l2cap_chan_connect() argument
1738 if ((__le16_to_cpu(psm) & 0x0101) != 0x0001 && !cid && in l2cap_chan_connect()
1744 if (chan->chan_type == L2CAP_CHAN_CONN_ORIENTED && !(psm || cid)) { in l2cap_chan_connect()
1791 chan->dcid = cid; in l2cap_chan_connect()
2275 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_connless_pdu()
2309 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_basic_pdu()
2351 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_iframe_pdu()
2869 lh->cid = __constant_cpu_to_le16(L2CAP_CID_LE_SIGNALING); in l2cap_build_cmd()
2871 lh->cid = __constant_cpu_to_le16(L2CAP_CID_SIGNALING); in l2cap_build_cmd()
6271 static void l2cap_data_channel(struct l2cap_conn *conn, u16 cid, in l2cap_data_channel() argument
6276 chan = l2cap_get_chan_by_scid(conn, cid); in l2cap_data_channel()
6278 if (cid == L2CAP_CID_A2MP) { in l2cap_data_channel()
6287 BT_DBG("unknown cid 0x%4.4x", cid); in l2cap_data_channel()
6382 u16 cid, len; in l2cap_recv_frame() local
6386 cid = __le16_to_cpu(lh->cid); in l2cap_recv_frame()
6394 BT_DBG("len %d, cid 0x%4.4x", len, cid); in l2cap_recv_frame()
6396 switch (cid) { in l2cap_recv_frame()
6418 l2cap_data_channel(conn, cid, skb); in l2cap_recv_frame()