Lines Matching refs:psm
360 p_cb->psm = 0; in bta_jv_free_l2c_cb()
546 bool bta_jv_check_psm(uint16_t psm) { in bta_jv_check_psm() argument
549 if (L2C_IS_VALID_PSM(psm)) { in bta_jv_check_psm()
550 if (psm < 0x1001) { in bta_jv_check_psm()
552 switch (psm) { in bta_jv_check_psm()
618 uint16_t psm = bta_jv_cb.free_psm_list[i]; in bta_jv_get_free_psm() local
619 if (psm != 0) { in bta_jv_get_free_psm()
620 VLOG(2) << __func__ << ": Reusing PSM=" << loghex(psm); in bta_jv_get_free_psm()
622 return psm; in bta_jv_get_free_psm()
628 static void bta_jv_set_free_psm(uint16_t psm) { in bta_jv_set_free_psm() argument
635 } else if (psm == bta_jv_cb.free_psm_list[i]) { in bta_jv_set_free_psm()
640 bta_jv_cb.free_psm_list[free_index] = psm; in bta_jv_set_free_psm()
641 VLOG(2) << __func__ << ": Recycling PSM=" << loghex(psm); in bta_jv_set_free_psm()
643 LOG(ERROR) << __func__ << ": unable to free psm=" << loghex(psm) in bta_jv_set_free_psm()
653 uint16_t psm = 0; in bta_jv_get_channel_id() local
683 psm = bta_jv_get_free_psm(); in bta_jv_get_channel_id()
684 if (psm == 0) { in bta_jv_get_channel_id()
685 psm = L2CA_AllocatePSM(); in bta_jv_get_channel_id()
686 VLOG(2) << __func__ << ": returned PSM=" << loghex(psm); in bta_jv_get_channel_id()
690 psm = L2CA_AllocateLePSM(); in bta_jv_get_channel_id()
691 if (psm == 0) { in bta_jv_get_channel_id()
701 bta_jv.psm = psm; in bta_jv_get_channel_id()
959 p_cb->psm = 0; /* not a server */ in bta_jv_l2cap_connect()
1111 p_cb->psm = local_psm; in bta_jv_l2cap_start_server()
1124 if (bta_jv_cb.l2c_cb[i].psm == local_psm) { in bta_jv_l2cap_stop_server()