Lines Matching refs:psm

52 UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info)
55 UINT16 vpsm = psm;
57 L2CAP_TRACE_API ("L2CAP - L2CA_Register() called for PSM: 0x%04x", psm);
69 L2CAP_TRACE_ERROR ("L2CAP - no cb registering PSM: 0x%04x", psm);
74 if (L2C_INVALID_PSM(psm))
76 L2CAP_TRACE_ERROR ("L2CAP - invalid PSM value, PSM: 0x%04x", psm);
82 if ( (psm >= 0x1001) && (p_cb_info->pL2CA_ConnectInd_Cb == NULL) )
90 L2CAP_TRACE_API ("L2CA_Register - Real PSM: 0x%04x Virtual PSM: 0x%04x", psm, vpsm);
98 L2CAP_TRACE_WARNING ("L2CAP - no RCB available, PSM: 0x%04x vPSM: 0x%04x", psm, vpsm);
104 p_rcb->real_psm = psm;
121 void L2CA_Deregister (UINT16 psm)
128 L2CAP_TRACE_API ("L2CAP - L2CA_Deregister() called for PSM: 0x%04x", psm);
130 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) != NULL)
154 L2CAP_TRACE_WARNING ("L2CAP - PSM: 0x%04x not found for deregistration", psm);
171 UINT16 psm = l2cb.dyn_psm;
176 psm += 2;
177 if (psm > 0xfeff)
179 psm = 0x1001;
181 else if (psm & 0x0100)
184 psm += 0x0100;
187 /* if psm is in range of reserved BRCM Aware features */
188 if ((BRCM_RESERVED_PSM_START <= psm)&&(psm <= BRCM_RESERVED_PSM_END))
191 /* make sure the newlly allocated psm is not used right now */
192 if ((l2cu_find_rcb_by_psm (psm)) == NULL)
195 l2cb.dyn_psm = psm;
197 return(psm);
212 UINT16 L2CA_ConnectReq (UINT16 psm, BD_ADDR p_bd_addr)
214 return L2CA_ErtmConnectReq (psm, p_bd_addr, NULL);
233 UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr, tL2CAP_ERTM_INFO *p_ertm_info)
239 L2CAP_TRACE_API ("L2CA_ErtmConnectReq() PSM: 0x%04x BDA: %08x%04x p_ertm_info: 0x%08x allowed:0x%x preferred:%d", psm,
252 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
254 L2CAP_TRACE_WARNING ("L2CAP - no RCB for L2CA_conn_req, PSM: 0x%04x", psm);
267 L2CAP_TRACE_WARNING ("L2CAP - conn not started for PSM: 0x%04x p_lcb: 0x%08x", psm, p_lcb);
275 L2CAP_TRACE_WARNING ("L2CAP - no CCB for L2CA_conn_req, PSM: 0x%04x", psm);
323 L2CAP_TRACE_API ("L2CAP - L2CA_conn_req(psm: 0x%04x) returned CID: 0x%04x", psm, p_ccb->local_cid);
870 UINT16 L2CA_LocalLoopbackReq (UINT16 psm, UINT16 handle, BD_ADDR p_bd_addr)
876 L2CAP_TRACE_API ("L2CA_LocalLoopbackReq() PSM: %d Handle: 0x%04x", psm, handle);
886 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
888 L2CAP_TRACE_WARNING ("L2CAP - no RCB for L2CA_conn_req, PSM: %d", psm);