/system/bt/btif/include/ |
H A D | btif_sock_l2cap.h | 20 void on_l2cap_psm_assigned(int id, int psm);
|
/system/bt/stack/l2cap/ |
H A D | l2c_ucd.c | 93 UINT16 psm; local 99 STREAM_TO_UINT16(psm, p) 104 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) 106 L2CAP_TRACE_ERROR ("L2CAP - no RCB for l2c_ucd_data_ind_cback, PSM: 0x%04x", psm); 139 is_congested, p_rcb->psm, 202 BOOLEAN L2CA_UcdRegister ( UINT16 psm, tL2CAP_UCD_CB_INFO *p_cb_info ) argument 206 L2CAP_TRACE_API ("L2CA_UcdRegister() PSM: 0x%04x", psm); 211 L2CAP_TRACE_ERROR ("L2CAP - no callback registering PSM(0x%04x) on UCD", psm); 215 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) 217 L2CAP_TRACE_ERROR ("L2CAP - no RCB for L2CA_UcdRegister, PSM: 0x%04x", psm); 326 L2CA_UcdDiscover( UINT16 psm, BD_ADDR rem_bda, UINT8 info_type ) argument 392 L2CA_UcdDataWrite(UINT16 psm, BD_ADDR rem_bda, BT_HDR *p_buf, UINT16 flags) argument 755 UINT16 psm; local 832 UINT16 psm; local [all...] |
H A D | l2c_api.c | 58 UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info) argument 61 UINT16 vpsm = psm; 63 L2CAP_TRACE_API ("L2CAP - L2CA_Register() called for PSM: 0x%04x", psm); 75 L2CAP_TRACE_ERROR ("L2CAP - no cb registering PSM: 0x%04x", psm); 80 if (L2C_INVALID_PSM(psm)) 82 L2CAP_TRACE_ERROR ("L2CAP - invalid PSM value, PSM: 0x%04x", psm); 88 if ( (psm >= 0x1001) && (p_cb_info->pL2CA_ConnectInd_Cb == NULL) ) 96 L2CAP_TRACE_API ("L2CA_Register - Real PSM: 0x%04x Virtual PSM: 0x%04x", psm, vpsm); 104 L2CAP_TRACE_WARNING ("L2CAP - no RCB available, PSM: 0x%04x vPSM: 0x%04x", psm, vpsm); 110 p_rcb->real_psm = psm; 127 L2CA_Deregister(UINT16 psm) argument 177 UINT16 psm = l2cb.dyn_psm; local 218 L2CA_ConnectReq(UINT16 psm, BD_ADDR p_bd_addr) argument 239 L2CA_ErtmConnectReq(UINT16 psm, BD_ADDR p_bd_addr, tL2CAP_ERTM_INFO *p_ertm_info) argument 941 L2CA_LocalLoopbackReq(UINT16 psm, UINT16 handle, BD_ADDR p_bd_addr) argument [all...] |
H A D | l2c_main.c | 62 void l2c_bcst_msg( BT_HDR *p_buf, UINT16 psm ) 98 UINT16_TO_STREAM (p, psm); 129 UINT16 l2cap_len, rcv_cid, psm; local 241 STREAM_TO_UINT16 (psm, p); 242 L2CAP_TRACE_DEBUG( "GOT CONNECTIONLESS DATA PSM:%d", psm ) ; 434 STREAM_TO_UINT16 (con_info.psm, p); 436 if ((p_rcb = l2cu_find_rcb_by_psm (con_info.psm)) == NULL) 438 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for unknown PSM: %d", con_info.psm); 446 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for outgoing-only connection PSM: %d", con_info.psm); 856 /* the psm i [all...] |
H A D | l2cap_client.c | 135 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm) { argument 138 assert(psm != 0); 143 assert(!L2C_INVALID_PSM(psm)); 145 client->local_channel_id = L2CA_ConnectReq(psm, (uint8_t *)remote_bdaddr);
|
H A D | l2c_csm.c | 170 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 204 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 257 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 327 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 429 p_ccb->p_rcb->psm, p_ccb->remote_id); 488 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 679 p_ccb->p_rcb->psm,
|
H A D | l2c_int.h | 237 UINT16 psm; member in struct:__anon1219 506 UINT16 psm; /* PSM of the connection */ member in struct:__anon1223 644 extern tL2C_RCB *l2cu_allocate_rcb (UINT16 psm); 645 extern tL2C_RCB *l2cu_find_rcb_by_psm (UINT16 psm);
|
/system/bt/stack/include/ |
H A D | l2c_api.h | 125 #define L2C_INVALID_PSM(psm) (((psm) & 0x0101) != 0x0001) 126 #define L2C_IS_VALID_PSM(psm) (((psm) & 0x0101) == 0x0001) 352 extern UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info); 364 extern void L2CA_Deregister (UINT16 psm); 390 extern UINT16 L2CA_ConnectReq (UINT16 psm, BD_ADDR p_bd_addr); 419 extern UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr, 612 extern UINT16 L2CA_LocalLoopbackReq (UINT16 psm, UINT16 handle, BD_ADDR p_bd_addr); 851 extern BOOLEAN L2CA_UcdRegister ( UINT16 psm, tL2CAP_UCD_CB_INF [all...] |
H A D | 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);
|
H A D | gap_api.h | 146 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg,
|
/system/bt/stack/mcap/ |
H A D | mca_l2c.c | 153 void mca_l2c_cconn_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) argument 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) argument 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, cons argument [all...] |
H A D | mca_int.h | 304 extern tMCA_HANDLE mca_handle_by_cpsm(UINT16 psm); 305 extern tMCA_HANDLE mca_handle_by_dpsm(UINT16 psm); 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);
|
H A D | mca_main.c | 68 tMCA_HANDLE mca_handle_by_cpsm(UINT16 psm) argument 76 if (p_rcb->p_cback && p_rcb->reg.ctrl_psm == psm) 95 tMCA_HANDLE mca_handle_by_dpsm(UINT16 psm) argument 103 if (p_rcb->p_cback && p_rcb->reg.data_psm == psm)
|
/system/bt/stack/btm/ |
H A D | btm_sec.c | 58 static tBTM_SEC_SERV_REC *btm_sec_find_first_serv (BOOLEAN is_originator, UINT16 psm); 60 static tBTM_SEC_SERV_REC *btm_sec_find_mx_serv (UINT8 is_originator, UINT16 psm, 79 static BOOLEAN btm_sec_queue_mx_request (BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_orig, 94 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, 101 static BOOLEAN btm_sec_is_serv_level0 (UINT16 psm); 470 ** psm - L2CAP PSM 478 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, 490 sec_level, psm, mx_proto_id, mx_chan_id)); 493 sec_level, psm, mx_proto_id, mx_chan_id)); 509 ** psm 477 BTM_SetSecurityLevel(BOOLEAN is_originator, char *p_name, UINT8 service_id, UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, UINT32 mx_chan_id) argument 516 btm_sec_set_security_level(CONNECTION_TYPE conn_type, char *p_name, UINT8 service_id, UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, UINT32 mx_chan_id) argument 786 btm_sec_clr_service_by_psm(UINT16 psm) argument 2127 btm_sec_l2cap_access_req(BD_ADDR bd_addr, UINT16 psm, UINT16 handle, CONNECTION_TYPE conn_type, tBTM_SEC_CALLBACK *p_callback, void *p_ref_data) argument 2515 btm_sec_mx_access_request(BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator, UINT32 mx_proto_id, UINT32 mx_chan_id, tBTM_SEC_CALLBACK *p_callback, void *p_ref_data) argument 5706 btm_sec_find_first_serv(CONNECTION_TYPE conn_type, UINT16 psm) argument 5779 btm_sec_find_mx_serv(UINT8 is_originator, UINT16 psm, UINT32 mx_proto_id, UINT32 mx_chan_id) argument 6044 btm_sec_queue_mx_request(BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_orig, UINT32 mx_proto_id, UINT32 mx_chan_id, tBTM_SEC_CALLBACK *p_callback, void *p_ref_data) argument 6263 btm_sec_is_serv_level0(UINT16 psm) argument [all...] |
H A D | btm_int.h | 431 UINT16 psm; /* L2CAP PSM value */ member in struct:__anon833 747 UINT16 psm; member in struct:__anon849 1055 extern tBTM_STATUS btm_sec_l2cap_access_req (BD_ADDR bd_addr, UINT16 psm, 1058 extern tBTM_STATUS btm_sec_mx_access_request (BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator, 1109 extern UINT8 btm_sec_clr_service_by_psm (UINT16 psm);
|
/system/bt/stack/gap/ |
H A D | gap_conn.c | 33 static void gap_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id); 108 ** psm - the PSM used for the connection 124 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, 181 if ((p_ccb->psm = L2CA_REGISTER (psm, &gap_cb.conn.reg_info, 184 GAP_TRACE_ERROR ("GAP_ConnOpen: Failure registering PSM 0x%04x", psm); 192 p_ccb->service_id, security, p_ccb->psm, 0, 0)) 238 if (p_rem_bda && ((cid = L2CA_CONNECT_REQ (p_ccb->psm, p_rem_bda, &p_ccb->ertm_info, &bt_uuid)) != 0)) 738 static void gap_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) argument 748 && (p_ccb->psm 123 GAP_ConnOpen(char *p_serv_name, UINT8 service_id, BOOLEAN is_server, BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, tL2CAP_ERTM_INFO *ertm_info, UINT16 security, UINT8 chan_mode_mask, tGAP_CONN_CALLBACK *p_cb) argument 1181 UINT16 psm = p_ccb->psm; local [all...] |
H A D | gap_int.h | 73 UINT16 psm; member in struct:__anon853
|
/system/bt/stack/avct/ |
H A D | 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) argument 109 UNUSED(psm);
|
/system/bt/stack/rfcomm/ |
H A D | rfc_l2cap_if.c | 42 static void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id); 90 void RFCOMM_ConnectInd (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) argument 93 UNUSED(psm);
|
/system/bt/stack/avdt/ |
H A D | 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) argument 182 UNUSED(psm);
|
/system/bt/bta/jv/ |
H A D | bta_jv_act.c | 408 p_cb->psm = 0; 610 BOOLEAN bta_jv_check_psm(UINT16 psm) argument 614 if (L2C_IS_VALID_PSM(psm)) 616 if (psm < 0x1001) 619 switch (psm) 711 UINT16 psm = bta_jv_cb.free_psm_list[i]; local 712 if (psm != 0) { 713 APPL_TRACE_DEBUG("%s(): Reusing PSM: 0x%04d", __func__, psm) 715 return psm; 721 static void bta_jv_set_free_psm(UINT16 psm) { argument 751 UINT16 psm = 0; local [all...] |
/system/bt/stack/sdp/ |
H A D | sdp_main.c | 56 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, 172 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) argument 174 UNUSED(psm);
|
/system/bt/stack/hid/ |
H A D | hidh_conn.c | 53 UINT16 psm, UINT8 l2cap_id); 205 static void hidh_l2cif_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) argument 212 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, l2cap_cid); 225 if (psm == HID_PSM_INTERRUPT) 260 if (psm == HID_PSM_CONTROL) 290 psm, l2cap_cid);
|
/system/bt/stack/bnep/ |
H A D | bnep_main.c | 61 static void bnep_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id); 121 static void bnep_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) argument 124 UNUSED(psm);
|
/system/bt/stack/gatt/ |
H A D | gatt_main.c | 53 UINT16 psm, UINT8 l2cap_id); 583 static void gatt_l2cif_connect_ind_cback (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) argument 589 UNUSED(psm);
|