Home
last modified time | relevance | path

Searched refs:psm (Results 1 – 2 of 2) sorted by relevance

/net/bluetooth/
Dl2cap_core.c146 static struct l2cap_chan *__l2cap_global_chan_by_addr(__le16 psm, bdaddr_t *src) in __l2cap_global_chan_by_addr() argument
151 if (c->sport == psm && !bacmp(&bt_sk(c->sk)->src, src)) in __l2cap_global_chan_by_addr()
157 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
163 if (psm && __l2cap_global_chan_by_addr(psm, src)) { in l2cap_add_psm()
168 if (psm) { in l2cap_add_psm()
169 chan->psm = psm; in l2cap_add_psm()
170 chan->sport = psm; in l2cap_add_psm()
178 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
496 __le16_to_cpu(chan->psm), chan->dcid); in __l2cap_chan_add()
684 } else if (chan->psm == __constant_cpu_to_le16(L2CAP_PSM_SDP)) { in l2cap_get_auth_type()
[all …]
Dl2cap_sock.c79 __u16 psm = __le16_to_cpu(la.l2_psm); in l2cap_sock_bind() local
82 if ((psm & 0x0101) != 0x0001) { in l2cap_sock_bind()
88 if (psm < 0x1001 && !capable(CAP_NET_BIND_SERVICE)) { in l2cap_sock_bind()
267 la->l2_psm = chan->psm; in l2cap_sock_getname()