Home | History | Annotate | Download | only in jv

Lines Matching defs:psm

362   p_cb->psm = 0;
542 * Description for now use only the legal PSM per JSR82 spec
547 bool bta_jv_check_psm(uint16_t psm) {
550 if (L2C_IS_VALID_PSM(psm)) {
551 if (psm < 0x1001) {
553 switch (psm) {
610 * We keep a list of PSM's that have been freed from JAVA, for reuse.
611 * This function will return a free PSM, and delete it from the free
619 uint16_t psm = bta_jv_cb.free_psm_list[i];
620 if (psm != 0) {
621 VLOG(2) << __func__ << ": Reusing PSM=" << loghex(psm);
623 return psm;
629 static void bta_jv_set_free_psm(uint16_t psm) {
636 } else if (psm == bta_jv_cb.free_psm_list[i]) {
637 return; // PSM already freed?
641 bta_jv_cb.free_psm_list[free_index] = psm;
642 VLOG(2) << __func__ << ": Recycling PSM=" << loghex(psm);
644 LOG(ERROR) << __func__ << ": unable to free psm=" << loghex(psm)
649 /** Obtain a free SCN (Server Channel Number) (RFCOMM channel or L2CAP PSM) */
654 uint16_t psm = 0;
684 psm = bta_jv_get_free_psm();
685 if (psm == 0) {
686 psm = L2CA_AllocatePSM();
687 VLOG(2) << __func__ << ": returned PSM=" << loghex(psm);
691 psm = L2CA_AllocateLePSM();
692 if (psm == 0) {
693 LOG(ERROR) << __func__ << ": Error: No free LE PSM available";
702 bta_jv.psm = psm;
723 VLOG(2) << __func__ << ": type=BTA_JV_CONN_TYPE_L2CAP_LE. psm=" << scn;
940 /* PSM checking is not required for LE COC */
960 p_cb->psm = 0; /* not a server */
1093 /* PSM checking is not required for LE COC */
1112 p_cb->psm = local_psm;
1125 if (bta_jv_cb.l2c_cb[i].psm == local_psm) {