Home
last modified time | relevance | path

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

/net/bluetooth/
Dl2cap_core.c188 static struct l2cap_chan *__l2cap_global_chan_by_addr(__le16 psm, bdaddr_t *src, in __l2cap_global_chan_by_addr() argument
200 if (c->sport == psm && !bacmp(&c->src, src)) in __l2cap_global_chan_by_addr()
206 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
212 if (psm && __l2cap_global_chan_by_addr(psm, src, chan->src_type)) { in l2cap_add_psm()
217 if (psm) { in l2cap_add_psm()
218 chan->psm = psm; in l2cap_add_psm()
219 chan->sport = psm; in l2cap_add_psm()
238 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
586 __le16_to_cpu(chan->psm), chan->dcid); in __l2cap_chan_add()
881 if (chan->psm == cpu_to_le16(L2CAP_PSM_3DSP)) { in l2cap_get_auth_type()
[all …]
Dl2cap_sock.c56 static int l2cap_validate_bredr_psm(u16 psm) in l2cap_validate_bredr_psm() argument
59 if ((psm & 0x0101) != 0x0001) in l2cap_validate_bredr_psm()
63 if (psm < L2CAP_PSM_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_bredr_psm()
69 static int l2cap_validate_le_psm(u16 psm) in l2cap_validate_le_psm() argument
72 if (psm > L2CAP_PSM_LE_DYN_END) in l2cap_validate_le_psm()
76 if (psm < L2CAP_PSM_LE_DYN_START && !capable(CAP_NET_BIND_SERVICE)) in l2cap_validate_le_psm()
120 __u16 psm = __le16_to_cpu(la.l2_psm); in l2cap_sock_bind() local
123 err = l2cap_validate_bredr_psm(psm); in l2cap_sock_bind()
125 err = l2cap_validate_le_psm(psm); in l2cap_sock_bind()
168 if (chan->psm && bdaddr_type_is_le(chan->src_type) && in l2cap_sock_bind()
[all …]