Lines Matching refs:psm
64 tBTM_SEC_SERV_REC* btm_sec_find_first_serv(bool is_originator, uint16_t psm);
67 uint16_t psm,
83 static bool btm_sec_queue_mx_request(const RawAddress& bd_addr, uint16_t psm,
103 uint16_t sec_level, uint16_t psm,
112 static bool btm_sec_is_serv_level0(uint16_t psm);
464 uint8_t service_id, uint16_t sec_level, uint16_t psm, in BTM_SetSecurityLevel() argument
467 sec_level, psm, mx_proto_id, mx_chan_id)); in BTM_SetSecurityLevel()
492 uint16_t sec_level, uint16_t psm, in btm_sec_set_security_level() argument
513 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
522 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
551 p_srec->psm = psm; in btm_sec_set_security_level()
622 index, service_id, is_originator, psm, mx_proto_id, mx_chan_id); in btm_sec_set_security_level()
659 (p_srec->psm != BT_PSM_SDP) && in BTM_SecClrService()
686 uint8_t btm_sec_clr_service_by_psm(uint16_t psm) { in btm_sec_clr_service_by_psm() argument
693 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm == psm)) { in btm_sec_clr_service_by_psm()
699 BTM_TRACE_API("btm_sec_clr_service_by_psm psm:0x%x num_freed:%d", psm, in btm_sec_clr_service_by_psm()
1805 p_serv_rec->service_id, p_serv_rec->psm, p_serv_rec->mx_proto_id, in BTM_SetOutService()
1934 tBTM_STATUS btm_sec_l2cap_access_req(const RawAddress& bd_addr, uint16_t psm, in btm_sec_l2cap_access_req() argument
1953 is_originator, p_ref_data, psm); in btm_sec_l2cap_access_req()
1961 p_serv_rec = btm_sec_find_first_serv(conn_type, psm); in btm_sec_l2cap_access_req()
1966 BTM_TRACE_WARNING("%s() PSM: %d no application registerd", __func__, psm); in btm_sec_l2cap_access_req()
1972 if ((btm_sec_is_serv_level0(psm)) && in btm_sec_l2cap_access_req()
1986 __func__, security_required, is_originator, psm); in btm_sec_l2cap_access_req()
2013 __func__, psm, btm_pair_state_descr(btm_cb.pairing_state), in btm_sec_l2cap_access_req()
2139 psm); in btm_sec_l2cap_access_req()
2161 (psm >= 0x1001)) { in btm_sec_l2cap_access_req()
2163 "dynamic PSM:0x%x in legacy mode - postponed for upper layer", psm); in btm_sec_l2cap_access_req()
2235 __func__, psm, handle, p_dev_rec->sec_state, p_dev_rec->sec_flags, in btm_sec_l2cap_access_req()
2272 tBTM_STATUS btm_sec_mx_access_request(const RawAddress& bd_addr, uint16_t psm, in btm_sec_mx_access_request() argument
2290 btm_sec_find_mx_serv(is_originator, psm, mx_proto_id, mx_chan_id); in btm_sec_mx_access_request()
2299 "Security Manager: MX service not found PSM:%d Proto:%d SCN:%d", psm, in btm_sec_mx_access_request()
2305 (!btm_sec_is_serv_level0(psm))) { in btm_sec_mx_access_request()
2318 __func__, psm, mx_proto_id, mx_chan_id, in btm_sec_mx_access_request()
2401 btm_sec_queue_mx_request(bd_addr, psm, is_originator, mx_proto_id, in btm_sec_mx_access_request()
2673 if (p_e->psm != 0) { in btm_sec_check_pending_reqs()
2676 p_e->psm, p_e->is_orig, p_e->mx_proto_id, p_e->mx_chan_id); in btm_sec_check_pending_reqs()
2678 btm_sec_mx_access_request(p_e->bd_addr, p_e->psm, p_e->is_orig, in btm_sec_check_pending_reqs()
3178 __func__, p_dev_rec->p_cur_service->psm, in btm_io_capabilities_req()
5303 uint16_t psm) { in btm_sec_find_first_serv() argument
5308 if (is_originator && btm_cb.p_out_serv && btm_cb.p_out_serv->psm == psm) { in btm_sec_find_first_serv()
5317 (p_serv_rec->psm == psm)) in btm_sec_find_first_serv()
5339 (p_serv_rec->psm == p_cur->psm)) { in btm_sec_find_next_serv()
5359 uint16_t psm, in btm_sec_find_mx_serv() argument
5367 if (is_originator && p_out_serv && p_out_serv->psm == psm && in btm_sec_find_mx_serv()
5378 (p_serv_rec->psm == psm) && (p_serv_rec->mx_proto_id == mx_proto_id) && in btm_sec_find_mx_serv()
5612 static bool btm_sec_queue_mx_request(const RawAddress& bd_addr, uint16_t psm, in btm_sec_queue_mx_request() argument
5620 p_e->psm = psm; in btm_sec_queue_mx_request()
5632 __func__, psm, is_orig, mx_proto_id, mx_chan_id); in btm_sec_queue_mx_request()
5726 p_e->psm = 0; /* if PSM 0, encryption request */ in btm_sec_queue_encrypt_request()
5784 static bool btm_sec_is_serv_level0(uint16_t psm) { in btm_sec_is_serv_level0() argument
5785 if (psm == BT_PSM_SDP) { in btm_sec_is_serv_level0()
5786 BTM_TRACE_DEBUG("%s: PSM: 0x%04x -> mode 4 level 0 service", __func__, psm); in btm_sec_is_serv_level0()
5813 if (p_e->bd_addr == p_dev_rec->bd_addr && p_e->psm == 0 && in btm_sec_check_pending_enc_req()