Home
last modified time | relevance | path

Searched refs:psm (Results 1 – 25 of 27) sorted by relevance

12

/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/include/stack/
Dl2c_api.h126 #define L2C_INVALID_PSM(psm) (((psm) & 0x0101) != 0x0001) argument
127 #define L2C_IS_VALID_PSM(psm) (((psm) & 0x0101) == 0x0001) argument
128 #define L2C_IS_VALID_LE_PSM(psm) (((psm) > 0x0000) && ((psm) < 0x0100)) argument
363 extern UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info);
375 extern void L2CA_Deregister (UINT16 psm);
401 extern UINT16 L2CA_ConnectReq (UINT16 psm, BD_ADDR p_bd_addr);
430 extern UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr,
517 extern UINT16 L2CA_RegisterLECoc (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info);
529 extern void L2CA_DeregisterLECoc (UINT16 psm);
543 extern UINT16 L2CA_ConnectLECocReq (UINT16 psm, BD_ADDR p_bd_addr, tL2CAP_LE_CFG_INFO *p_cfg);
[all …]
Dl2cap_client.h61 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm);
Dgap_api.h144 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg,
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/l2cap/
Dl2c_ucd.c88 UINT16 psm; in l2c_ucd_data_ind_cback() local
94 STREAM_TO_UINT16(psm, p) in l2c_ucd_data_ind_cback()
99 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) { in l2c_ucd_data_ind_cback()
100 L2CAP_TRACE_ERROR ("L2CAP - no RCB for l2c_ucd_data_ind_cback, PSM: 0x%04x", psm); in l2c_ucd_data_ind_cback()
128 is_congested, p_rcb->psm, in l2c_ucd_congestion_status_cback()
191 BOOLEAN L2CA_UcdRegister ( UINT16 psm, tL2CAP_UCD_CB_INFO *p_cb_info ) in L2CA_UcdRegister() argument
195 L2CAP_TRACE_API ("L2CA_UcdRegister() PSM: 0x%04x", psm); in L2CA_UcdRegister()
199 L2CAP_TRACE_ERROR ("L2CAP - no callback registering PSM(0x%04x) on UCD", psm); in L2CA_UcdRegister()
203 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) { in L2CA_UcdRegister()
204 L2CAP_TRACE_ERROR ("L2CAP - no RCB for L2CA_UcdRegister, PSM: 0x%04x", psm); in L2CA_UcdRegister()
[all …]
Dl2c_api.c55 UINT16 L2CA_Register (UINT16 psm, tL2CAP_APPL_INFO *p_cb_info) in L2CA_Register() argument
58 UINT16 vpsm = psm; in L2CA_Register()
70 L2CAP_TRACE_ERROR ("L2CAP - no cb registering PSM: 0x%04x", psm); in L2CA_Register()
75 if (L2C_INVALID_PSM(psm)) { in L2CA_Register()
76 L2CAP_TRACE_ERROR ("L2CAP - invalid PSM value, PSM: 0x%04x", psm); in L2CA_Register()
82 if ( (psm >= 0x1001) && (p_cb_info->pL2CA_ConnectInd_Cb == NULL) ) { in L2CA_Register()
95 L2CAP_TRACE_WARNING ("L2CAP - no RCB available, PSM: 0x%04x vPSM: 0x%04x", psm, vpsm); in L2CA_Register()
101 p_rcb->real_psm = psm; in L2CA_Register()
118 void L2CA_Deregister (UINT16 psm) in L2CA_Deregister() argument
125 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) != NULL) { in L2CA_Deregister()
[all …]
Dl2c_main.c65 void l2c_bcst_msg( BT_HDR *p_buf, UINT16 psm )
97 UINT16_TO_STREAM (p, psm);
129 UINT16 psm; in l2c_rcv_acl_data() local
236 STREAM_TO_UINT16 (psm, p); in l2c_rcv_acl_data()
238 L2CAP_TRACE_DEBUG( "GOT CONNECTIONLESS DATA PSM:%d", psm ) ; in l2c_rcv_acl_data()
441 STREAM_TO_UINT16 (con_info.psm, p); in process_l2cap_cmd()
443 if ((p_rcb = l2cu_find_rcb_by_psm (con_info.psm)) == NULL) { in process_l2cap_cmd()
444 L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for unknown PSM: %d", con_info.psm); in process_l2cap_cmd()
449 … L2CAP_TRACE_WARNING ("L2CAP - rcvd conn req for outgoing-only connection PSM: %d", con_info.psm); in process_l2cap_cmd()
Dl2cap_client.c136 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm) in l2cap_client_connect() argument
140 assert(psm != 0); in l2cap_client_connect()
145 assert(!L2C_INVALID_PSM(psm)); in l2cap_client_connect()
147 client->local_channel_id = L2CA_ConnectReq(psm, (uint8_t *)remote_bdaddr); in l2cap_client_connect()
Dl2c_csm.c166 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
199 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
249 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
315 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_orig_w4_sec_comp()
408 p_ccb->p_rcb->psm, p_ccb->remote_id); in l2c_csm_term_w4_sec_comp()
461 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_term_w4_sec_comp()
641 p_ccb->p_rcb->psm, in l2c_csm_w4_l2ca_connect_rsp()
Dl2c_utils.c1680 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb()
1681 btm_sec_clr_service_by_psm(p_rcb->psm); in l2cu_release_ccb()
1778 tL2C_RCB *l2cu_allocate_rcb (UINT16 psm) in l2cu_allocate_rcb() argument
1786 p_rcb->psm = psm; in l2cu_allocate_rcb()
1809 tL2C_RCB *l2cu_allocate_ble_rcb (UINT16 psm) in l2cu_allocate_ble_rcb() argument
1819 p_rcb->psm = psm; in l2cu_allocate_ble_rcb()
1844 p_rcb->psm = 0; in l2cu_release_rcb()
1887 tL2C_RCB *l2cu_find_rcb_by_psm (UINT16 psm) in l2cu_find_rcb_by_psm() argument
1893 if ((p_rcb->in_use) && (p_rcb->psm == psm)) { in l2cu_find_rcb_by_psm()
1913 tL2C_RCB *l2cu_find_ble_rcb_by_psm (UINT16 psm) in l2cu_find_ble_rcb_by_psm() argument
[all …]
Dl2c_ble.c1528 l2ble_sec_access_req(p_bda, p_buf->psm, p_buf->is_originator, in l2cble_sec_comp()
1547 BOOLEAN l2ble_sec_access_req(BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator, tL2CAP_SEC_CBACK *… in l2ble_sec_access_req() argument
1575 p_buf->psm = psm; in l2ble_sec_access_req()
1580 status = btm_ble_start_sec_check(bd_addr, psm, is_originator, &l2cble_sec_comp, p_ref_data); in l2ble_sec_access_req()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gap/
Dgap_conn.c36 static void gap_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id);
127 BD_ADDR p_rem_bda, UINT16 psm, tL2CAP_CFG_INFO *p_cfg, in GAP_ConnOpen() argument
185 if ((p_ccb->psm = L2CA_REGISTER (psm, &gap_cb.conn.reg_info, in GAP_ConnOpen()
187 GAP_TRACE_ERROR ("GAP_ConnOpen: Failure registering PSM 0x%04x", psm); in GAP_ConnOpen()
195 p_ccb->service_id, security, p_ccb->psm, 0, 0)) { in GAP_ConnOpen()
237 …if (p_rem_bda && ((cid = L2CA_CONNECT_REQ (p_ccb->psm, p_rem_bda, &p_ccb->ertm_info, &bt_uuid)) !=… in GAP_ConnOpen()
719 static void gap_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) in gap_connect_ind() argument
728 && (p_ccb->psm == psm) in gap_connect_ind()
835 btm_sec_mx_access_request (p_ccb->rem_dev_address, p_ccb->psm, TRUE, in gap_connect_cfm()
1150 UINT16 psm = p_ccb->psm; in gap_release_ccb() local
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/btm/
Dbtm_sec.c61 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,
95 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id,
102 static BOOLEAN btm_sec_is_serv_level0 (UINT16 psm);
471 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, in BTM_SetSecurityLevel() argument
484 sec_level, psm, mx_proto_id, mx_chan_id)); in BTM_SetSecurityLevel()
487 sec_level, psm, mx_proto_id, mx_chan_id)); in BTM_SetSecurityLevel()
511 UINT16 sec_level, UINT16 psm, UINT32 mx_proto_id, in btm_sec_set_security_level() argument
550 if (p_srec->psm == psm && in btm_sec_set_security_level()
558 if (p_srec->psm == psm && in btm_sec_set_security_level()
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/jv/
Dbta_jv_act.c454 p_cb->psm = 0; in bta_jv_free_l2c_cb()
644 BOOLEAN bta_jv_check_psm(UINT16 psm) in bta_jv_check_psm() argument
648 if (L2C_IS_VALID_PSM(psm)) { in bta_jv_check_psm()
649 if (psm < 0x1001) { in bta_jv_check_psm()
651 switch (psm) { in bta_jv_check_psm()
754 UINT16 psm = bta_jv_cb.free_psm_list[i]; in bta_jv_get_free_psm() local
755 if (psm != 0) { in bta_jv_get_free_psm()
756 APPL_TRACE_DEBUG("%s(): Reusing PSM: 0x%04d", __func__, psm) in bta_jv_get_free_psm()
758 return psm; in bta_jv_get_free_psm()
764 static void bta_jv_set_free_psm(UINT16 psm) in bta_jv_set_free_psm() argument
[all …]
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/l2cap/include/
Dl2c_int.h248 UINT16 psm; member
263 UINT16 psm; member
545 UINT16 psm; /* PSM of the connection */ member
691 extern tL2C_RCB *l2cu_allocate_rcb (UINT16 psm);
692 extern tL2C_RCB *l2cu_find_rcb_by_psm (UINT16 psm);
694 extern tL2C_RCB *l2cu_allocate_ble_rcb (UINT16 psm);
695 extern tL2C_RCB *l2cu_find_ble_rcb_by_psm (UINT16 psm);
800 extern BOOLEAN l2ble_sec_access_req(BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator, tL2CAP_SEC_…
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/avct/
Davct_l2c.c42 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) in avct_l2c_connect_ind_cback() argument
109 UNUSED(psm); in avct_l2c_connect_ind_cback()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/rfcomm/
Drfc_l2cap_if.c42 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) in RFCOMM_ConnectInd() argument
93 UNUSED(psm); in RFCOMM_ConnectInd()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/btm/include/
Dbtm_int.h497 UINT16 psm; /* L2CAP PSM value */ member
790 UINT16 psm; member
1153 tBTM_STATUS btm_sec_l2cap_access_req (BD_ADDR bd_addr, UINT16 psm,
1156 tBTM_STATUS btm_sec_mx_access_request (BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator,
1192 extern BOOLEAN btm_ble_start_sec_check(BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_originator,
1196 extern tBTM_SEC_SERV_REC *btm_sec_find_first_serv (CONNECTION_TYPE conn_type, UINT16 psm);
1211 UINT8 btm_sec_clr_service_by_psm (UINT16 psm);
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/hid/
Dhidh_conn.c56 UINT16 psm, UINT8 l2cap_id);
201 static void hidh_l2cif_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) in hidh_l2cif_connect_ind() argument
208 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, l2cap_cid); in hidh_l2cif_connect_ind()
220 if (psm == HID_PSM_INTERRUPT) { in hidh_l2cif_connect_ind()
248 if (psm == HID_PSM_CONTROL) { in hidh_l2cif_connect_ind()
276 psm, l2cap_cid); in hidh_l2cif_connect_ind()
Dhidd_conn.c41 static void hidd_l2cif_connect_ind(BD_ADDR bd_addr, uint16_t cid, uint16_t psm, uint8_t id);
152 static void hidd_l2cif_connect_ind(BD_ADDR bd_addr, uint16_t cid, uint16_t psm, uint8_t id) in hidd_l2cif_connect_ind() argument
157 HIDD_TRACE_EVENT("%s: psm=%04x cid=%04x id=%02x", __func__, psm, cid, id); in hidd_l2cif_connect_ind()
174 switch (psm) { in hidd_l2cif_connect_ind()
201 if (psm == HID_PSM_CONTROL) { in hidd_l2cif_connect_ind()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/avdt/
Davdt_l2c.c41 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id);
173 void avdt_l2c_connect_ind_cback(BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in avdt_l2c_connect_ind_cback() argument
180 UNUSED(psm); in avdt_l2c_connect_ind_cback()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/sdp/
Dsdp_main.c59 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm,
186 static void sdp_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) in sdp_connect_ind() argument
188 UNUSED(psm); in sdp_connect_ind()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gap/include/
Dgap_int.h70 UINT16 psm; member
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_main.c52 UINT16 psm, UINT8 l2cap_id);
610 static void gatt_l2cif_connect_ind_cback (BD_ADDR bd_addr, UINT16 lcid, UINT16 psm, UINT8 id) in gatt_l2cif_connect_ind_cback() argument
616 UNUSED(psm); in gatt_l2cif_connect_ind_cback()
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/jv/include/
Dbta_jv_int.h135 UINT16 psm; /* the psm used for this server connection */ member
/hal_espressif-3.4.0/components/bt/host/bluedroid/bta/include/bta/
Dbta_jv_api.h394 UINT16 psm; /* BTA_JV_GET_PSM_EVT */ member

12