Lines Matching refs:psm
57 static int l2cap_validate_bredr_psm(u16 psm)
60 if ((psm & 0x0101) != 0x0001)
64 if (psm < L2CAP_PSM_DYN_START && !capable(CAP_NET_BIND_SERVICE))
70 static int l2cap_validate_le_psm(u16 psm)
73 if (psm > L2CAP_PSM_LE_DYN_END)
77 if (psm < L2CAP_PSM_LE_DYN_START && !capable(CAP_NET_BIND_SERVICE))
121 __u16 psm = __le16_to_cpu(la.l2_psm);
124 err = l2cap_validate_bredr_psm(psm);
126 err = l2cap_validate_le_psm(psm);
169 if (chan->psm && bdaddr_type_is_le(chan->src_type) &&
252 if (chan->psm && bdaddr_type_is_le(chan->src_type) &&
401 la->l2_psm = chan->psm;
1789 la->l2_psm = bt_cb(skb)->l2cap.psm;