/system/nfc/src/nfc/llcp/ |
D | llcp_dlc.cc | 624 static void llcp_dlc_proc_connect_pdu(uint8_t dsap, uint8_t ssap, in llcp_dlc_proc_connect_pdu() argument 634 p_app_cb = llcp_util_get_app_cb(dsap); in llcp_dlc_proc_connect_pdu() 638 LOG(ERROR) << StringPrintf("Unregistered SAP:0x%x", dsap); in llcp_dlc_proc_connect_pdu() 639 llcp_util_send_dm(ssap, dsap, LLCP_SAP_DM_REASON_NO_SERVICE); in llcp_dlc_proc_connect_pdu() 655 llcp_util_send_dm(ssap, dsap, LLCP_SAP_DM_REASON_NO_SERVICE); in llcp_dlc_proc_connect_pdu() 657 llcp_util_send_dm(ssap, dsap, LLCP_SAP_DM_REASON_NO_SERVICE); in llcp_dlc_proc_connect_pdu() 663 if (dsap == LLCP_SAP_SDP) { in llcp_dlc_proc_connect_pdu() 666 dsap = llcp_sdp_get_sap_by_name(params.sn, (uint8_t)strlen(params.sn)); in llcp_dlc_proc_connect_pdu() 679 if (dsap == LLCP_SAP_SDP) { in llcp_dlc_proc_connect_pdu() 685 } else if (dsap == 0) { in llcp_dlc_proc_connect_pdu() [all …]
|
D | llcp_link.cc | 71 static void llcp_link_proc_rx_pdu(uint8_t dsap, uint8_t ptype, uint8_t ssap, 1094 uint8_t dsap, ptype, ssap; in llcp_link_proc_agf_pdu() local 1150 dsap = LLCP_GET_DSAP(pdu_hdr); in llcp_link_proc_agf_pdu() 1157 dsap, llcp_pdu_type(ptype).c_str(), ptype, ssap); in llcp_link_proc_agf_pdu() 1159 if ((ptype == LLCP_PDU_DISC_TYPE) && (dsap == LLCP_SAP_LM) && in llcp_link_proc_agf_pdu() 1174 llcp_link_proc_ui_pdu(dsap, ssap, pdu_length, p, nullptr); in llcp_link_proc_agf_pdu() 1176 llcp_dlc_proc_i_pdu(dsap, ssap, pdu_length, p, nullptr); in llcp_link_proc_agf_pdu() 1179 llcp_dlc_proc_rx_pdu(dsap, ptype, ssap, in llcp_link_proc_agf_pdu() 1200 static void llcp_link_proc_rx_pdu(uint8_t dsap, uint8_t ptype, uint8_t ssap, in llcp_link_proc_rx_pdu() argument 1211 if ((dsap == LLCP_SAP_LM) && (ssap == LLCP_SAP_LM)) { in llcp_link_proc_rx_pdu() [all …]
|
D | llcp_api.cc | 638 tLLCP_STATUS LLCP_SendUI(uint8_t ssap, uint8_t dsap, NFC_HDR* p_buf) { in LLCP_SendUI() argument 643 << StringPrintf("SSAP=0x%x, DSAP=0x%x", ssap, dsap); in LLCP_SendUI() 658 status = llcp_util_send_ui(ssap, dsap, p_app_cb, p_buf); in LLCP_SendUI() 839 tLLCP_STATUS LLCP_ConnectReq(uint8_t reg_sap, uint8_t dsap, in LLCP_ConnectReq() argument 847 << StringPrintf("reg_sap=0x%x, DSAP=0x%x", reg_sap, dsap); in LLCP_ConnectReq() 870 if (dsap == LLCP_SAP_LM) { in LLCP_ConnectReq() 872 dsap); in LLCP_ConnectReq() 876 if (dsap == LLCP_SAP_SDP) { in LLCP_ConnectReq() 904 p_dlcb = llcp_util_allocate_data_link(reg_sap, dsap); in LLCP_ConnectReq()
|
D | llcp_util.cc | 276 tLLCP_STATUS llcp_util_send_ui(uint8_t ssap, uint8_t dsap, in llcp_util_send_ui() argument 285 UINT16_TO_BE_STREAM(p, LLCP_GET_PDU_HEADER(dsap, LLCP_PDU_UI_TYPE, ssap)); in llcp_util_send_ui() 320 void llcp_util_send_disc(uint8_t dsap, uint8_t ssap) { in llcp_util_send_disc() argument 331 UINT16_TO_BE_STREAM(p, LLCP_GET_PDU_HEADER(dsap, LLCP_PDU_DISC_TYPE, ssap)); in llcp_util_send_disc() 689 void llcp_util_send_dm(uint8_t dsap, uint8_t ssap, uint8_t reason) { in llcp_util_send_dm() argument 700 UINT16_TO_BE_STREAM(p, LLCP_GET_PDU_HEADER(dsap, LLCP_PDU_DM_TYPE, ssap)); in llcp_util_send_dm()
|
/system/nfc/src/nfc/include/ |
D | llcp_int.h | 316 tLLCP_STATUS llcp_util_send_ui(uint8_t ssap, uint8_t dsap, 318 void llcp_util_send_disc(uint8_t dsap, uint8_t ssap); 329 void llcp_util_send_dm(uint8_t dsap, uint8_t ssap, uint8_t reason); 342 void llcp_dlc_proc_i_pdu(uint8_t dsap, uint8_t ssap, uint16_t i_pdu_length, 344 void llcp_dlc_proc_rx_pdu(uint8_t dsap, uint8_t ptype, uint8_t ssap,
|
D | llcp_defs.h | 37 #define LLCP_GET_PDU_HEADER(dsap, ptype, ssap) \ argument 38 (((uint16_t)(dsap) << 10) | ((uint16_t)(ptype) << 6) | (uint16_t)(ssap))
|
D | llcp_api.h | 410 extern tLLCP_STATUS LLCP_SendUI(uint8_t ssap, uint8_t dsap, NFC_HDR* p_buf); 455 extern tLLCP_STATUS LLCP_ConnectReq(uint8_t reg_sap, uint8_t dsap,
|
/system/nfc/src/nfa/p2p/ |
D | nfa_p2p_api.cc | 391 p_msg->dsap = LLCP_INVALID_SAP; in NFA_P2pConnectByName() 418 tNFA_STATUS NFA_P2pConnectBySap(tNFA_HANDLE client_handle, uint8_t dsap, in NFA_P2pConnectBySap() argument 425 client_handle, dsap, miu, rw); in NFA_P2pConnectBySap() 447 p_msg->dsap = dsap; in NFA_P2pConnectBySap() 475 tNFA_STATUS NFA_P2pSendUI(tNFA_HANDLE handle, uint8_t dsap, uint16_t length, in NFA_P2pSendUI() argument 482 "handle:0x%X, DSAP:0x%02X, length:%d", handle, dsap, length); in NFA_P2pSendUI() 515 p_msg->dsap = dsap; in NFA_P2pSendUI()
|
D | nfa_p2p_act.cc | 900 if (p_msg->api_connect.dsap != LLCP_INVALID_SAP) { in nfa_p2p_create_data_link_connection() 902 status = LLCP_ConnectReq(local_sap, p_msg->api_connect.dsap, &conn_params); in nfa_p2p_create_data_link_connection() 949 LLCP_SendUI(local_sap, p_msg->api_send_ui.dsap, p_msg->api_send_ui.p_msg); in nfa_p2p_send_ui()
|
/system/nfc/src/nfa/include/ |
D | nfa_p2p_api.h | 329 extern tNFA_STATUS NFA_P2pConnectBySap(tNFA_HANDLE client_handle, uint8_t dsap, 347 extern tNFA_STATUS NFA_P2pSendUI(tNFA_HANDLE handle, uint8_t dsap,
|
D | nfa_p2p_int.h | 113 uint8_t dsap; member 122 uint8_t dsap; member
|