/system/bt/btif/include/ |
btif_sock_l2cap.h | 22 void on_l2cap_psm_assigned(int id, int psm);
|
/system/bt/stack/l2cap/ |
l2c_ucd.c | 96 UINT16 psm; local 102 STREAM_TO_UINT16(psm, p) 107 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) 109 L2CAP_TRACE_ERROR ("L2CAP - no RCB for l2c_ucd_data_ind_cback, PSM: 0x%04x", psm); 141 L2CAP_TRACE_DEBUG ("L2CAP - Calling UCDCongestionStatus_Cb (%d), PSM=0x%04x, BDA: %08x%04x,", 142 is_congested, p_rcb->psm, 198 ** Description Register PSM on UCD. 205 BOOLEAN L2CA_UcdRegister ( UINT16 psm, tL2CAP_UCD_CB_INFO *p_cb_info ) 209 L2CAP_TRACE_API ("L2CA_UcdRegister() PSM: 0x%04x", psm) 766 UINT16 psm; local 834 UINT16 psm; local [all...] |
l2c_api.c | 53 ** Returns PSM to use or zero if error. Typically, the PSM returned 55 ** connection to a dynamic PSM, a "virtual" PSM is returned 60 UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info) 63 UINT16 vpsm = psm; 65 L2CAP_TRACE_API ("L2CAP - L2CA_Register() called for PSM: 0x%04x", psm); 77 L2CAP_TRACE_ERROR ("L2CAP - no cb registering PSM: 0x%04x", psm); 177 UINT16 psm = l2cb.dyn_psm; local [all...] |
l2c_int.h | 241 UINT16 psm; member in struct:__anon72816 243 /* this is the real PSM that we need to connect to */ 261 UINT16 psm; member in struct:__anon72817 532 UINT16 psm; /* PSM of the connection */ member in struct:__anon72821 [all...] |
l2c_csm.c | 175 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, TRUE, 181 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 201 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, TRUE, 222 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 264 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, FALSE, 285 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 363 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, FALSE, 368 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 488 p_ccb->p_rcb->psm, p_ccb->remote_id); 555 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, [all...] |
l2c_ble.c | 699 STREAM_TO_UINT16 (con_info.psm, p); 710 if ((p_rcb = l2cu_find_ble_rcb_by_psm (con_info.psm)) == NULL) 712 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for unknown PSM: 0x%04x", con_info.psm); 720 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for outgoing-only connection PSM: %d", con_info.psm); [all...] |
l2cap_client.c | 131 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm) { 134 assert(psm != 0); 139 assert(!L2C_INVALID_PSM(psm)); 141 client->local_channel_id = L2CA_ConnectReq(psm, (uint8_t *)remote_bdaddr);
|
l2c_main.c | 74 UINT16 l2cap_len, rcv_cid, psm; local 187 STREAM_TO_UINT16 (psm, p); 188 L2CAP_TRACE_DEBUG( "GOT CONNECTIONLESS DATA PSM:%d", psm ) ; 384 STREAM_TO_UINT16 (con_info.psm, p); 386 if ((p_rcb = l2cu_find_rcb_by_psm (con_info.psm)) == NULL) 388 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for unknown PSM: %d", con_info.psm); 396 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for outgoing-only connection PSM: %d", con_info.psm); [all...] |
l2c_utils.c | 560 ** CCB (non-existant PSM or no resources). [all...] |
/system/bt/stack/include/ |
l2c_api.h | 121 /* Validity check for PSM. PSM values must be odd. Also, all PSM values must 125 #define L2C_INVALID_PSM(psm) (((psm) & 0x0101) != 0x0001) 126 #define L2C_IS_VALID_PSM(psm) (((psm) & 0x0101) == 0x0001) 127 #define L2C_IS_VALID_LE_PSM(psm) (((psm) > 0x0000) && ((psm) < 0x0100) [all...] |
l2cap_client.h | 52 // using the |psm| protocol specifier. This function returns true if the connect 58 // |psm| must be greater than zero. 59 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm);
|
gap_api.h | 148 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg,
|
/system/bt/stack/mcap/ |
mca_l2c.c | 153 void mca_l2c_cconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) 155 tMCA_HANDLE handle = mca_handle_by_cpsm(psm); 163 MCA_TRACE_EVENT ("mca_l2c_cconn_ind_cback: lcid:x%x psm:x%x id:x%x", lcid, psm, id); 178 rc = btm_sec_mx_access_request (bd_addr, psm, FALSE, BTM_SEC_PROTO_MCA, 0, 229 void mca_l2c_dconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) 231 tMCA_HANDLE handle = mca_handle_by_dpsm(psm); 240 MCA_TRACE_EVENT ("mca_l2c_dconn_ind_cback: lcid:x%x psm:x%x ", lcid, psm); 563 UINT16 mca_l2c_open_req(BD_ADDR bd_addr, UINT16 psm, const tMCA_CHNL_CFG *p_chnl_cfg [all...] |
mca_int.h | 213 UINT16 ctrl_vpsm; /* The virtual PSM that peer is listening for control channel */ 214 UINT16 data_vpsm; /* The virtual PSM that peer is listening for data channel. */ 305 extern tMCA_HANDLE mca_handle_by_cpsm(UINT16 psm); 306 extern tMCA_HANDLE mca_handle_by_dpsm(UINT16 psm); 325 extern UINT16 mca_l2c_open_req(BD_ADDR bd_addr, UINT16 PSM, const tMCA_CHNL_CFG *p_chnl_cfg); 328 extern void mca_l2c_cconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); 329 extern void mca_l2c_dconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
|
mca_main.c | 63 ** channel PSM. 0, if not found. 68 tMCA_HANDLE mca_handle_by_cpsm(UINT16 psm) 76 if (p_rcb->p_cback && p_rcb->reg.ctrl_psm == psm) 90 ** channel PSM. 0, if not found. 95 tMCA_HANDLE mca_handle_by_dpsm(UINT16 psm) 103 if (p_rcb->p_cback && p_rcb->reg.data_psm == psm)
|
/system/bt/stack/gap/ |
gap_conn.c | 34 static void gap_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id); 111 ** psm - the PSM used for the connection 127 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, 180 /* If originator, use a dynamic PSM */ 193 /* Register the PSM with L2CAP */ 196 p_ccb->psm = L2CA_REGISTER (psm, &gap_cb.conn.reg_info, 198 if (p_ccb->psm == 0) 200 GAP_TRACE_ERROR ("%s: Failure registering PSM 0x%04x", __func__, psm) 1202 UINT16 psm = p_ccb->psm; local [all...] |
gap_int.h | 74 UINT16 psm; member in struct:__anon72486
|
/system/bt/stack/btm/ |
btm_sec.c | 61 tBTM_SEC_SERV_REC *btm_sec_find_first_serv (BOOLEAN is_originator, UINT16 psm); 63 static tBTM_SEC_SERV_REC *btm_sec_find_mx_serv (UINT8 is_originator, UINT16 psm, 82 static BOOLEAN btm_sec_queue_mx_request (BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_orig, 97 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, 104 static BOOLEAN btm_sec_is_serv_level0 (UINT16 psm); 471 ** psm - L2CAP PSM 479 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, 491 sec_level, psm, mx_proto_id, mx_chan_id)); 494 sec_level, psm, mx_proto_id, mx_chan_id)) [all...] |
btm_int.h | 435 UINT16 psm; /* L2CAP PSM value */ member in struct:__anon72466 750 UINT16 psm; member in struct:__anon72482 [all...] |
/system/bt/stack/avct/ |
avct_l2c.c | 39 void avct_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); 104 void avct_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) 109 UNUSED(psm);
|
/system/bt/stack/rfcomm/ |
rfc_l2cap_if.c | 43 static void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); 91 void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) 94 UNUSED(psm);
|
/system/bt/stack/avdt/ |
avdt_l2c.c | 39 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); 175 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) 182 UNUSED(psm);
|
/system/bt/bta/jv/ |
bta_jv_act.c | 394 p_cb->psm = 0; 590 ** Description for now use only the legal PSM per JSR82 spec 595 BOOLEAN bta_jv_check_psm(UINT16 psm) 599 if (L2C_IS_VALID_PSM(psm)) 601 if (psm < 0x1001) 604 switch (psm) 688 * We keep a list of PSM's that have been freed from JAVA, for reuse. 689 * This function will return a free PSM, and delete it from the free 696 UINT16 psm = bta_jv_cb.free_psm_list[i]; local 697 if (psm != 0) 736 UINT16 psm = 0; local [all...] |
/system/bt/stack/sdp/ |
sdp_main.c | 58 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, 174 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) 176 UNUSED(psm);
|
/system/bt/stack/hid/ |
hidh_conn.c | 58 UINT16 psm, UINT8 l2cap_id); 210 static void hidh_l2cif_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) 217 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, l2cap_cid); 230 if (psm == HID_PSM_INTERRUPT) 265 if (psm == HID_PSM_CONTROL) 294 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP conn ind, sent config req, PSM: 0x%04x CID 0x%x", 295 psm, l2cap_cid); [all...] |