Lines Matching refs:psm
691 static struct bt_l2cap_server *l2cap_br_server_lookup_psm(uint16_t psm) in l2cap_br_server_lookup_psm() argument
696 if (server->psm == psm) { in l2cap_br_server_lookup_psm()
771 l2cap_br_conn_security(struct bt_l2cap_chan *chan, const uint16_t psm) in l2cap_br_conn_security() argument
897 LOG_DBG("chan %p psm 0x%04x %s -> %s", chan, br_chan->psm, in bt_l2cap_br_chan_set_state_debug()
973 BR_CHAN(chan)->psm = 0U; in bt_l2cap_br_chan_del()
991 uint16_t psm, scid, result; in l2cap_br_conn_req() local
999 psm = sys_le16_to_cpu(req->psm); in l2cap_br_conn_req()
1002 LOG_DBG("psm 0x%02x scid 0x%04x", psm, scid); in l2cap_br_conn_req()
1005 server = l2cap_br_server_lookup_psm(psm); in l2cap_br_conn_req()
1059 switch (l2cap_br_conn_security(chan, psm)) { in l2cap_br_conn_req()
1156 if (server->psm < L2CAP_BR_PSM_START || !server->accept) { in bt_l2cap_br_server_register()
1161 if ((server->psm & 0x0101) != 0x0001) { in bt_l2cap_br_server_register()
1168 server->psm != L2CAP_BR_PSM_SDP) { in bt_l2cap_br_server_register()
1173 if (l2cap_br_server_lookup_psm(server->psm)) { in bt_l2cap_br_server_register()
1178 LOG_DBG("PSM 0x%04x", server->psm); in bt_l2cap_br_server_register()
1672 uint16_t psm) in bt_l2cap_br_chan_connect() argument
1679 if (!psm) { in bt_l2cap_br_chan_connect()
1683 if (br_chan->psm) { in bt_l2cap_br_chan_connect()
1688 if ((psm & 0x0101) != 0x0001) { in bt_l2cap_br_chan_connect()
1695 psm != L2CAP_BR_PSM_SDP) { in bt_l2cap_br_chan_connect()
1717 br_chan->psm = psm; in bt_l2cap_br_chan_connect()
1721 switch (l2cap_br_conn_security(chan, psm)) { in bt_l2cap_br_chan_connect()
1744 req->psm = sys_cpu_to_le16(psm); in bt_l2cap_br_chan_connect()
1973 req->psm = sys_cpu_to_le16(BR_CHAN(chan)->psm); in l2cap_br_conn_pend()