Home | History | Annotate | Download | only in gap

Lines Matching defs:psm

57   uint16_t psm;
88 uint16_t psm, uint8_t l2cap_id);
150 * psm - the PSM used for the connection
169 bool is_server, const RawAddress* p_rem_bda, uint16_t psm,
230 /* If originator, use a dynamic PSM */
236 /* Register the PSM with L2CAP */
238 p_ccb->psm = L2CA_REGISTER(
239 psm, &conn.reg_info, AMP_AUTOSWITCH_ALLOWED | AMP_USE_AMP_IF_POSSIBLE);
240 if (p_ccb->psm == 0) {
241 LOG(ERROR) << StringPrintf("%s: Failure registering PSM 0x%04x", __func__,
242 psm);
249 p_ccb->psm = L2CA_REGISTER_COC(
250 psm, &conn.reg_info, AMP_AUTOSWITCH_ALLOWED | AMP_USE_AMP_IF_POSSIBLE);
251 if (p_ccb->psm == 0) {
252 LOG(ERROR) << StringPrintf("%s: Failure registering PSM 0x%04x", __func__,
253 psm);
261 security, p_ccb->psm, 0, 0)) {
306 cid = L2CA_CONNECT_REQ(p_ccb->psm, *p_rem_bda, &p_ccb->ertm_info);
314 cid = L2CA_CONNECT_COC_REQ(p_ccb->psm, *p_rem_bda, &p_ccb->local_coc_cfg);
719 uint16_t psm, uint8_t l2cap_id) {
725 if ((p_ccb->con_state == GAP_CCB_STATE_LISTENING) && (p_ccb->psm == psm) &&
845 btm_sec_mx_access_request(p_ccb->rem_dev_address, p_ccb->psm, true, 0, 0,
1145 /* If no-one else is using the PSM, deregister from L2CAP */
1149 (p_ccb_local->psm == p_ccb->psm)) {
1150 DVLOG(1) << __func__ << " : " << +p_ccb_local->psm
1151 << " PSM is still in use, do not deregister";
1156 /* Free the security record for this PSM */
1158 if (p_ccb->transport == BT_TRANSPORT_BR_EDR) L2CA_DEREGISTER(p_ccb->psm);
1159 if (p_ccb->transport == BT_TRANSPORT_LE) L2CA_DEREGISTER_COC(p_ccb->psm);