Lines Matching refs:cid
110 static struct sock *__l2cap_get_chan_by_dcid(struct l2cap_chan_list *l, u16 cid) in __l2cap_get_chan_by_dcid() argument
114 if (l2cap_pi(s)->dcid == cid) in __l2cap_get_chan_by_dcid()
120 static struct sock *__l2cap_get_chan_by_scid(struct l2cap_chan_list *l, u16 cid) in __l2cap_get_chan_by_scid() argument
124 if (l2cap_pi(s)->scid == cid) in __l2cap_get_chan_by_scid()
132 static inline struct sock *l2cap_get_chan_by_scid(struct l2cap_chan_list *l, u16 cid) in l2cap_get_chan_by_scid() argument
136 s = __l2cap_get_chan_by_scid(l, cid); in l2cap_get_chan_by_scid()
164 u16 cid = 0x0040; in l2cap_alloc_cid() local
166 for (; cid < 0xffff; cid++) { in l2cap_alloc_cid()
167 if(!__l2cap_get_chan_by_scid(l, cid)) in l2cap_alloc_cid()
168 return cid; in l2cap_alloc_cid()
1137 lh->cid = cpu_to_le16(l2cap_pi(sk)->dcid); in l2cap_do_send()
1601 lh->cid = cpu_to_le16(0x0001); in l2cap_build_cmd()
2347 static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk_buff *skb) in l2cap_data_channel() argument
2351 sk = l2cap_get_chan_by_scid(&conn->chan_list, cid); in l2cap_data_channel()
2353 BT_DBG("unknown cid 0x%4.4x", cid); in l2cap_data_channel()
2413 u16 cid, len; in l2cap_recv_frame() local
2417 cid = __le16_to_cpu(lh->cid); in l2cap_recv_frame()
2420 BT_DBG("len %d, cid 0x%4.4x", len, cid); in l2cap_recv_frame()
2422 switch (cid) { in l2cap_recv_frame()
2434 l2cap_data_channel(conn, cid, skb); in l2cap_recv_frame()