Lines Matching refs:psm
56 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()
266 if (chan->psm && bdaddr_type_is_le(chan->src_type) && in l2cap_sock_connect()
419 la->l2_psm = chan->psm; in l2cap_sock_getname()
1767 la->l2_psm = bt_cb(skb)->l2cap.psm; in l2cap_skb_msg_name()