Home
last modified time | relevance | path

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

12

/system/bt/stack/l2cap/
Dl2c_api.cc61 uint16_t L2CA_Register(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info, in L2CA_Register() argument
64 uint16_t vpsm = psm; in L2CA_Register()
66 L2CAP_TRACE_API("L2CAP - L2CA_Register() called for PSM: 0x%04x", psm); in L2CA_Register()
75 L2CAP_TRACE_ERROR("L2CAP - no cb registering PSM: 0x%04x", psm); in L2CA_Register()
80 if (L2C_INVALID_PSM(psm)) { in L2CA_Register()
81 L2CAP_TRACE_ERROR("L2CAP - invalid PSM value, PSM: 0x%04x", psm); in L2CA_Register()
87 if ((psm >= 0x1001) && (p_cb_info->pL2CA_ConnectInd_Cb == NULL)) { in L2CA_Register()
94 psm, vpsm); in L2CA_Register()
103 psm, vpsm); in L2CA_Register()
110 p_rcb->real_psm = psm; in L2CA_Register()
[all …]
Dl2c_int.h245 uint16_t psm; member
260 uint16_t psm; member
539 uint16_t psm; /* PSM of the connection */ member
676 extern tL2C_RCB* l2cu_allocate_rcb(uint16_t psm);
677 extern tL2C_RCB* l2cu_find_rcb_by_psm(uint16_t psm);
680 extern tL2C_RCB* l2cu_allocate_ble_rcb(uint16_t psm);
681 extern tL2C_RCB* l2cu_find_ble_rcb_by_psm(uint16_t psm);
805 uint16_t psm,
Dl2c_csm.cc160 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
165 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, true, in l2c_csm_closed()
185 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
199 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, in l2c_csm_closed()
243 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, false, in l2c_csm_closed()
268 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, in l2c_csm_closed()
332 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_orig_w4_sec_comp()
336 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, true, in l2c_csm_orig_w4_sec_comp()
431 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_term_w4_sec_comp()
491 btm_sec_l2cap_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_term_w4_sec_comp()
[all …]
Dl2c_ble.cc565 STREAM_TO_UINT16(con_info.psm, p); in l2cble_process_sig_cmd()
587 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd()
590 con_info.psm); in l2cble_process_sig_cmd()
597 con_info.psm); in l2cble_process_sig_cmd()
1203 l2ble_sec_access_req(p_bda, p_buf->psm, p_buf->is_originator, in l2cble_sec_comp()
1221 uint16_t psm, bool is_originator, in l2ble_sec_access_req() argument
1248 p_buf->psm = psm; in l2ble_sec_access_req()
1253 result = btm_ble_start_sec_check(bd_addr, psm, is_originator, in l2ble_sec_access_req()
Dl2cap_client.cc129 const RawAddress& remote_bdaddr, uint16_t psm) { in l2cap_client_connect() argument
131 CHECK(psm != 0); in l2cap_client_connect()
136 CHECK(!L2C_INVALID_PSM(psm)); in l2cap_client_connect()
138 client->local_channel_id = L2CA_ConnectReq(psm, remote_bdaddr); in l2cap_client_connect()
Dl2c_main.cc373 STREAM_TO_UINT16(con_info.psm, p); in process_l2cap_cmd()
375 tL2C_RCB* p_rcb = l2cu_find_rcb_by_psm(con_info.psm); in process_l2cap_cmd()
378 con_info.psm); in process_l2cap_cmd()
385 con_info.psm); in process_l2cap_cmd()
400 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
440 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
Dl2c_utils.cc1576 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb()
1577 btm_sec_clr_service_by_psm(p_rcb->psm); in l2cu_release_ccb()
1683 tL2C_RCB* l2cu_allocate_rcb(uint16_t psm) { in l2cu_allocate_rcb() argument
1690 p_rcb->psm = psm; in l2cu_allocate_rcb()
1709 tL2C_RCB* l2cu_allocate_ble_rcb(uint16_t psm) { in l2cu_allocate_ble_rcb() argument
1716 p_rcb->psm = psm; in l2cu_allocate_ble_rcb()
1736 p_rcb->psm = 0; in l2cu_release_rcb()
1749 L2CA_FreeLePSM(p_rcb->psm); in l2cu_release_ble_rcb()
1751 p_rcb->psm = 0; in l2cu_release_ble_rcb()
1793 tL2C_RCB* l2cu_find_rcb_by_psm(uint16_t psm) { in l2cu_find_rcb_by_psm() argument
[all …]
/system/bt/stack/include/
Dl2c_api.h130 #define L2C_INVALID_PSM(psm) (((psm)&0x0101) != 0x0001) argument
131 #define L2C_IS_VALID_PSM(psm) (((psm)&0x0101) == 0x0001) argument
132 #define L2C_IS_VALID_LE_PSM(psm) (((psm) > 0x0000) && ((psm) < 0x0100)) argument
365 extern uint16_t L2CA_Register(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info,
378 extern void L2CA_Deregister(uint16_t psm);
413 extern void L2CA_FreeLePSM(uint16_t psm);
428 extern uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr);
457 extern uint16_t L2CA_ErtmConnectReq(uint16_t psm, const RawAddress& p_bd_addr,
474 extern uint16_t L2CA_RegisterLECoc(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info);
486 extern void L2CA_DeregisterLECoc(uint16_t psm);
[all …]
Dl2cap_client.h63 const RawAddress& remote_bdaddr, uint16_t psm);
Dgap_api.h178 uint16_t psm, uint16_t le_mps,
/system/bt/stack/test/common/
Dmock_l2cap_layer.cc27 uint16_t L2CA_Register(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info, in L2CA_Register() argument
29 VLOG(1) << __func__ << ": psm=" << psm << ", p_cb_info=" << p_cb_info in L2CA_Register()
31 return l2cap_interface->Register(psm, p_cb_info, enable_snoop); in L2CA_Register()
34 uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& bd_addr) { in L2CA_ConnectReq() argument
35 return l2cap_interface->ConnectRequest(psm, bd_addr); in L2CA_ConnectReq()
Dmock_l2cap_layer.h29 virtual uint16_t Register(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info,
31 virtual uint16_t ConnectRequest(uint16_t psm, const RawAddress& bd_addr) = 0;
45 MOCK_METHOD3(Register, uint16_t(uint16_t psm, tL2CAP_APPL_INFO* p_cb_info,
48 uint16_t(uint16_t psm, const RawAddress& bd_addr));
Dmock_btm_layer.cc33 tBTM_STATUS btm_sec_mx_access_request(const RawAddress& bd_addr, uint16_t psm, in btm_sec_mx_access_request() argument
39 bd_addr, psm, is_originator, mx_proto_id, mx_chan_id, p_callback, in btm_sec_mx_access_request()
Dmock_btm_layer.h31 const RawAddress& bd_addr, uint16_t psm, bool is_originator,
41 tBTM_STATUS(const RawAddress& bd_addr, uint16_t psm,
/system/bt/stack/gap/
Dgap_conn.cc57 uint16_t psm; member
88 uint16_t psm, uint8_t l2cap_id);
169 bool is_server, const RawAddress* p_rem_bda, uint16_t psm, in GAP_ConnOpen() argument
238 p_ccb->psm = L2CA_REGISTER(psm, &conn.reg_info, false /* enable_snoop */); in GAP_ConnOpen()
239 if (p_ccb->psm == 0) { in GAP_ConnOpen()
241 psm); in GAP_ConnOpen()
248 p_ccb->psm = L2CA_REGISTER_COC( in GAP_ConnOpen()
249 psm, &conn.reg_info, AMP_AUTOSWITCH_ALLOWED | AMP_USE_AMP_IF_POSSIBLE); in GAP_ConnOpen()
250 if (p_ccb->psm == 0) { in GAP_ConnOpen()
252 psm); in GAP_ConnOpen()
[all …]
/system/bt/stack/btm/
Dbtm_sec.cc64 tBTM_SEC_SERV_REC* btm_sec_find_first_serv(bool is_originator, uint16_t psm);
67 uint16_t psm,
83 static bool btm_sec_queue_mx_request(const RawAddress& bd_addr, uint16_t psm,
103 uint16_t sec_level, uint16_t psm,
112 static bool btm_sec_is_serv_level0(uint16_t psm);
464 uint8_t service_id, uint16_t sec_level, uint16_t psm, in BTM_SetSecurityLevel() argument
467 sec_level, psm, mx_proto_id, mx_chan_id)); in BTM_SetSecurityLevel()
492 uint16_t sec_level, uint16_t psm, in btm_sec_set_security_level() argument
513 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
522 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
[all …]
Dbtm_int.h218 uint16_t psm, uint16_t handle,
223 uint16_t psm, bool is_originator,
270 uint16_t psm);
272 const RawAddress& bd_addr, uint16_t psm, bool is_originator,
283 extern uint8_t btm_sec_clr_service_by_psm(uint16_t psm);
/system/bt/bta/jv/
Dbta_jv_act.cc360 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
[all …]
/system/bt/btif/include/
Dbtif_sock_l2cap.h21 void on_l2cap_psm_assigned(int id, int psm);
/system/bt/stack/hid/
Dhidh_conn.cc55 uint16_t l2cap_cid, uint16_t psm,
205 uint16_t l2cap_cid, uint16_t psm, in hidh_l2cif_connect_ind() argument
212 HIDH_TRACE_EVENT("HID-Host Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, in hidh_l2cif_connect_ind()
225 if (psm == HID_PSM_INTERRUPT) { in hidh_l2cif_connect_ind()
255 if (psm == HID_PSM_CONTROL) { in hidh_l2cif_connect_ind()
288 psm, l2cap_cid); in hidh_l2cif_connect_ind()
Dhidd_conn.cc48 uint16_t psm, uint8_t id);
179 uint16_t psm, uint8_t id) { in hidd_l2cif_connect_ind() argument
184 HIDD_TRACE_EVENT("%s: psm=%04x cid=%04x id=%02x", __func__, psm, cid, id); in hidd_l2cif_connect_ind()
197 switch (psm) { in hidd_l2cif_connect_ind()
234 if (psm == HID_PSM_CONTROL) { in hidd_l2cif_connect_ind()
/system/bt/stack/avct/
Davct_l2c_br.cc74 uint16_t psm, uint8_t id);
120 UNUSED_ATTR uint16_t psm, uint8_t id) { in avct_l2c_br_connect_ind_cback() argument
Davct_l2c.cc41 uint16_t psm, uint8_t id);
102 UNUSED_ATTR uint16_t psm, uint8_t id) { in avct_l2c_connect_ind_cback() argument
/system/bt/stack/rfcomm/
Drfc_l2cap_if.cc45 uint16_t psm, uint8_t id);
90 UNUSED_ATTR uint16_t psm, uint8_t id) { in RFCOMM_ConnectInd() argument
/system/bt/stack/avdt/
Davdt_l2c.cc42 uint16_t psm, uint8_t id);
166 UNUSED_ATTR uint16_t psm, uint8_t id) { in avdt_l2c_connect_ind_cback() argument

12