Lines Matching refs:psm
202 LOG_DBG("chan %p psm 0x%04x %s -> %s", chan, le_chan->psm, in bt_l2cap_chan_set_state_debug()
282 BT_L2CAP_LE_CHAN(chan)->psm = 0U; in bt_l2cap_chan_del()
535 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_le_conn_req()
576 req->psm = sys_cpu_to_le16(ch->psm); in l2cap_ecred_conn_req()
580 req_psm = ch->psm; in l2cap_ecred_conn_req()
586 __ASSERT(ch->psm == req_psm, in l2cap_ecred_conn_req()
1133 struct bt_l2cap_server *bt_l2cap_server_lookup_psm(uint16_t psm) in bt_l2cap_server_lookup_psm() argument
1138 if (server->psm == psm) { in bt_l2cap_server_lookup_psm()
1152 if (server->psm) { in bt_l2cap_server_register()
1153 if (server->psm < L2CAP_LE_PSM_FIXED_START || in bt_l2cap_server_register()
1154 server->psm > L2CAP_LE_PSM_DYN_END) { in bt_l2cap_server_register()
1159 if (bt_l2cap_server_lookup_psm(server->psm)) { in bt_l2cap_server_register()
1164 uint16_t psm; in bt_l2cap_server_register() local
1166 for (psm = L2CAP_LE_PSM_DYN_START; in bt_l2cap_server_register()
1167 psm <= L2CAP_LE_PSM_DYN_END; psm++) { in bt_l2cap_server_register()
1168 if (!bt_l2cap_server_lookup_psm(psm)) { in bt_l2cap_server_register()
1173 if (psm > L2CAP_LE_PSM_DYN_END) { in bt_l2cap_server_register()
1178 LOG_DBG("Allocated PSM 0x%04x for new server", psm); in bt_l2cap_server_register()
1179 server->psm = psm; in bt_l2cap_server_register()
1189 LOG_DBG("PSM 0x%04x", server->psm); in bt_l2cap_server_register()
1403 le_chan->psm = server->psm; in l2cap_chan_accept()
1447 uint16_t psm, scid, mtu, mps, credits; in le_conn_req() local
1455 psm = sys_le16_to_cpu(req->psm); in le_conn_req()
1461 LOG_DBG("psm 0x%02x scid 0x%04x mtu %u mps %u credits %u", psm, scid, mtu, mps, credits); in le_conn_req()
1478 server = bt_l2cap_server_lookup_psm(psm); in le_conn_req()
1530 uint16_t psm = 0x0000; in le_ecred_conn_req() local
1555 psm = sys_le16_to_cpu(req->psm); in le_ecred_conn_req()
1560 LOG_DBG("psm 0x%02x mtu %u mps %u credits %u", psm, mtu, mps, credits); in le_ecred_conn_req()
1569 server = bt_l2cap_server_lookup_psm(psm); in le_ecred_conn_req()
1636 ecred_cb->ecred_conn_req(conn, result, psm); in le_ecred_conn_req()
1899 uint16_t dcid, mtu, mps, credits, result, psm; in le_ecred_conn_rsp() local
1918 psm = chan->psm; in le_ecred_conn_rsp()
1920 psm = 0x0000; in le_ecred_conn_rsp()
2018 ecred_cb->ecred_conn_rsp(conn, result, attempted, succeeded, psm); in le_ecred_conn_rsp()
2685 if (!L2CAP_LE_PSM_IS_DYN(chan->psm)) { in l2cap_chan_recv_queue()
2837 uint16_t psm) in l2cap_le_connect() argument
2841 if (psm < L2CAP_LE_PSM_FIXED_START || psm > L2CAP_LE_PSM_DYN_END) { in l2cap_le_connect()
2852 ch->psm = psm; in l2cap_le_connect()
2881 struct bt_l2cap_le_chan *ch, uint16_t psm) in l2cap_ecred_init() argument
2884 if (psm < L2CAP_LE_PSM_FIXED_START || psm > L2CAP_LE_PSM_DYN_END) { in l2cap_ecred_init()
2895 ch->psm = psm; in l2cap_ecred_init()
2897 LOG_DBG("ch %p psm 0x%02x mtu %u mps %u credits 1", ch, ch->psm, ch->rx.mtu, ch->rx.mps); in l2cap_ecred_init()
2903 struct bt_l2cap_chan **chan, uint16_t psm) in bt_l2cap_ecred_chan_connect() argument
2907 LOG_DBG("conn %p chan %p psm 0x%04x", conn, chan, psm); in bt_l2cap_ecred_chan_connect()
2919 err = l2cap_ecred_init(conn, BT_L2CAP_LE_CHAN(chan[i]), psm); in bt_l2cap_ecred_chan_connect()
3132 uint16_t psm) in bt_l2cap_chan_connect() argument
3136 LOG_DBG("conn %p chan %p psm 0x%04x", conn, chan, psm); in bt_l2cap_chan_connect()
3148 return bt_l2cap_br_chan_connect(conn, chan, psm); in bt_l2cap_chan_connect()
3157 return l2cap_le_connect(conn, le_chan, psm); in bt_l2cap_chan_connect()