Lines Matching refs:cid
810 static struct sock * __l2cap_get_chan_by_dcid(struct l2cap_chan_list *l, __u16 cid) in __l2cap_get_chan_by_dcid() argument
814 if (l2cap_pi(s)->dcid == cid) in __l2cap_get_chan_by_dcid()
820 static struct sock *__l2cap_get_chan_by_scid(struct l2cap_chan_list *l, __u16 cid) in __l2cap_get_chan_by_scid() argument
824 if (l2cap_pi(s)->scid == cid) in __l2cap_get_chan_by_scid()
832 static inline struct sock *l2cap_get_chan_by_scid(struct l2cap_chan_list *l, __u16 cid) in l2cap_get_chan_by_scid() argument
836 s = __l2cap_get_chan_by_scid(l, cid); in l2cap_get_chan_by_scid()
844 __u16 cid = 0x0040; in l2cap_alloc_cid() local
846 for (; cid < 0xffff; cid++) { in l2cap_alloc_cid()
847 if(!__l2cap_get_chan_by_scid(l, cid)) in l2cap_alloc_cid()
848 return cid; in l2cap_alloc_cid()
1061 lh->cid = __cpu_to_le16(l2cap_pi(sk)->dcid); in l2cap_chan_send()
1146 lh->cid = __cpu_to_le16(0x0001); in l2cap_build_cmd()
1767 static inline int l2cap_data_channel(struct l2cap_conn *conn, __u16 cid, struct sk_buff *skb) in l2cap_data_channel() argument
1771 sk = l2cap_get_chan_by_scid(&conn->chan_list, cid); in l2cap_data_channel()
1773 BT_DBG("unknown cid 0x%4.4x", cid); in l2cap_data_channel()
1831 __u16 cid, psm, len; in l2cap_recv_frame() local
1834 cid = __le16_to_cpu(lh->cid); in l2cap_recv_frame()
1837 BT_DBG("len %d, cid 0x%4.4x", len, cid); in l2cap_recv_frame()
1839 switch (cid) { in l2cap_recv_frame()
1851 l2cap_data_channel(conn, cid, skb); in l2cap_recv_frame()