Home
last modified time | relevance | path

Searched refs:p_msg (Results 1 – 25 of 64) sorted by relevance

123

/external/libnfc-nci/src/nfa/rw/
Dnfa_rw_api.c65 tNFA_RW_OPERATION *p_msg; in NFA_RwDetectNDef() local
69 if ((p_msg = (tNFA_RW_OPERATION *) GKI_getbuf ((UINT16) (sizeof (tNFA_RW_OPERATION)))) != NULL) in NFA_RwDetectNDef()
71 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwDetectNDef()
72 p_msg->op = NFA_RW_OP_DETECT_NDEF; in NFA_RwDetectNDef()
74 nfa_sys_sendmsg (p_msg); in NFA_RwDetectNDef()
109 tNFA_RW_OPERATION *p_msg; in NFA_RwReadNDef() local
113 if ((p_msg = (tNFA_RW_OPERATION *) GKI_getbuf ((UINT16) (sizeof (tNFA_RW_OPERATION)))) != NULL) in NFA_RwReadNDef()
115 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in NFA_RwReadNDef()
116 p_msg->op = NFA_RW_OP_READ_NDEF; in NFA_RwReadNDef()
118 nfa_sys_sendmsg (p_msg); in NFA_RwReadNDef()
[all …]
Dnfa_rw_main.c160 tNFA_RW_MSG *p_msg; in nfa_rw_send_raw_frame() local
162 if ((p_msg = (tNFA_RW_MSG *) GKI_getbuf ((UINT16) sizeof(tNFA_RW_MSG))) != NULL) in nfa_rw_send_raw_frame()
164 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in nfa_rw_send_raw_frame()
165 p_msg->op_req.op = NFA_RW_OP_SEND_RAW_FRAME; in nfa_rw_send_raw_frame()
167 p_msg->op_req.params.send_raw_frame.p_data = p_data; in nfa_rw_send_raw_frame()
169 if (nfa_rw_handle_event ((BT_HDR *) p_msg)) in nfa_rw_send_raw_frame()
170 GKI_freebuf (p_msg); in nfa_rw_send_raw_frame()
186 BOOLEAN nfa_rw_handle_event(BT_HDR *p_msg) in nfa_rw_handle_event() argument
191 …_handle_event event: %s (0x%02x), flags: %08x", nfa_rw_evt_2_str (p_msg->event), p_msg->event, nfa… in nfa_rw_handle_event()
193 NFA_TRACE_EVENT2 ("nfa_rw_handle_event event: 0x%x, flags: %08x",p_msg->event, nfa_rw_cb.flags); in nfa_rw_handle_event()
[all …]
/external/libnfc-nci/src/nfa/dm/
Dnfa_dm_api.c100 tNFA_DM_API_ENABLE *p_msg; in NFA_Enable() local
111 if ((p_msg = (tNFA_DM_API_ENABLE *) GKI_getbuf (sizeof (tNFA_DM_API_ENABLE))) != NULL) in NFA_Enable()
113 p_msg->hdr.event = NFA_DM_API_ENABLE_EVT; in NFA_Enable()
114 p_msg->p_dm_cback = p_dm_cback; in NFA_Enable()
115 p_msg->p_conn_cback = p_conn_cback; in NFA_Enable()
117 nfa_sys_sendmsg (p_msg); in NFA_Enable()
147 tNFA_DM_API_DISABLE *p_msg; in NFA_Disable() local
151 if ((p_msg = (tNFA_DM_API_DISABLE *) GKI_getbuf (sizeof (tNFA_DM_API_DISABLE))) != NULL) in NFA_Disable()
153 p_msg->hdr.event = NFA_DM_API_DISABLE_EVT; in NFA_Disable()
154 p_msg->graceful = graceful; in NFA_Disable()
[all …]
/external/libnfc-nci/src/nfa/hci/
Dnfa_hci_api.c51 tNFA_HCI_API_REGISTER_APP *p_msg; in NFA_HciRegister() local
74 …&&((p_msg = (tNFA_HCI_API_REGISTER_APP *) GKI_getbuf (sizeof (tNFA_HCI_API_REGISTER_APP))) != NULL… in NFA_HciRegister()
76 p_msg->hdr.event = NFA_HCI_API_REGISTER_APP_EVT; in NFA_HciRegister()
79 memset (p_msg->app_name, 0, sizeof (p_msg->app_name)); in NFA_HciRegister()
80 … BCM_STRNCPY_S (p_msg->app_name, sizeof (p_msg->app_name), p_app_name, NFA_MAX_HCI_APP_NAME_LEN); in NFA_HciRegister()
81 p_msg->p_cback = p_cback; in NFA_HciRegister()
82 p_msg->b_send_conn_evts = b_send_conn_evts; in NFA_HciRegister()
84 nfa_sys_sendmsg (p_msg); in NFA_HciRegister()
109 tNFA_HCI_API_GET_APP_GATE_PIPE *p_msg; in NFA_HciGetGateAndPipeList() local
121 …&&((p_msg = (tNFA_HCI_API_GET_APP_GATE_PIPE *) GKI_getbuf (sizeof (tNFA_HCI_API_GET_APP_GATE_PIPE)… in NFA_HciGetGateAndPipeList()
[all …]
Dnfa_hci_ci.c43 tNFA_HCI_EVENT_DATA *p_msg; in nfa_nv_ci_read() local
45 if ((p_msg = (tNFA_HCI_EVENT_DATA *) GKI_getbuf (sizeof (tNFA_HCI_EVENT_DATA))) != NULL) in nfa_nv_ci_read()
47 p_msg->nv_read.hdr.event = NFA_HCI_RSP_NV_READ_EVT; in nfa_nv_ci_read()
51 p_msg->nv_read.status = NFA_STATUS_OK; in nfa_nv_ci_read()
53 p_msg->nv_read.status = NFA_STATUS_FAILED; in nfa_nv_ci_read()
55 p_msg->nv_read.size = num_bytes_read; in nfa_nv_ci_read()
56 p_msg->nv_read.block = block; in nfa_nv_ci_read()
57 nfa_sys_sendmsg (p_msg); in nfa_nv_ci_read()
72 tNFA_HCI_EVENT_DATA *p_msg; in nfa_nv_ci_write() local
74 if ((p_msg = (tNFA_HCI_EVENT_DATA *) GKI_getbuf (sizeof (tNFA_HCI_EVENT_DATA))) != NULL) in nfa_nv_ci_write()
[all …]
/external/libnfc-nci/src/nfa/ee/
Dnfa_ee_api.c51 tNFA_EE_API_DISCOVER *p_msg; in NFA_EeDiscover() local
66 else if ((p_msg = (tNFA_EE_API_DISCOVER *) GKI_getbuf (sizeof(tNFA_EE_API_DISCOVER))) != NULL) in NFA_EeDiscover()
68 p_msg->hdr.event = NFA_EE_API_DISCOVER_EVT; in NFA_EeDiscover()
69 p_msg->p_cback = p_cback; in NFA_EeDiscover()
71 nfa_sys_sendmsg (p_msg); in NFA_EeDiscover()
151 tNFA_EE_API_REGISTER *p_msg; in NFA_EeRegister() local
161 else if ((p_msg = (tNFA_EE_API_REGISTER *) GKI_getbuf (sizeof(tNFA_EE_API_REGISTER))) != NULL) in NFA_EeRegister()
163 p_msg->hdr.event = NFA_EE_API_REGISTER_EVT; in NFA_EeRegister()
164 p_msg->p_cback = p_cback; in NFA_EeRegister()
166 nfa_sys_sendmsg (p_msg); in NFA_EeRegister()
[all …]
/external/libnfc-nci/src/nfa/p2p/
Dnfa_p2p_api.c65 tNFA_P2P_API_REG_SERVER *p_msg; in NFA_P2pRegisterServer() local
84 if ((p_msg = (tNFA_P2P_API_REG_SERVER *) GKI_getbuf (sizeof (tNFA_P2P_API_REG_SERVER))) != NULL) in NFA_P2pRegisterServer()
86 p_msg->hdr.event = NFA_P2P_API_REG_SERVER_EVT; in NFA_P2pRegisterServer()
88 p_msg->server_sap = server_sap; in NFA_P2pRegisterServer()
89 p_msg->link_type = link_type; in NFA_P2pRegisterServer()
91 …BCM_STRNCPY_S (p_msg->service_name, sizeof (p_msg->service_name), p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pRegisterServer()
92 p_msg->service_name[LLCP_MAX_SN_LEN] = 0; in NFA_P2pRegisterServer()
94 p_msg->p_cback = p_cback; in NFA_P2pRegisterServer()
96 nfa_sys_sendmsg (p_msg); in NFA_P2pRegisterServer()
121 tNFA_P2P_API_REG_CLIENT *p_msg; in NFA_P2pRegisterClient() local
[all …]
Dnfa_p2p_act.c674 BOOLEAN nfa_p2p_reg_server (tNFA_P2P_MSG *p_msg) in nfa_p2p_reg_server() argument
681 server_sap = LLCP_RegisterServer (p_msg->api_reg_server.server_sap, in nfa_p2p_reg_server()
682 p_msg->api_reg_server.link_type, in nfa_p2p_reg_server()
683 p_msg->api_reg_server.service_name, in nfa_p2p_reg_server()
691 p_msg->api_reg_server.service_name, LLCP_MAX_SN_LEN); in nfa_p2p_reg_server()
694 p_msg->api_reg_server.p_cback (NFA_P2P_REG_SERVER_EVT, &evt_data); in nfa_p2p_reg_server()
709 nfa_p2p_cb.sap_cb[server_sap].p_cback = p_msg->api_reg_server.p_cback; in nfa_p2p_reg_server()
715 p_msg->api_reg_server.service_name, LLCP_MAX_SN_LEN); in nfa_p2p_reg_server()
745 BOOLEAN nfa_p2p_reg_client (tNFA_P2P_MSG *p_msg) in nfa_p2p_reg_client() argument
752 local_sap = LLCP_RegisterClient (p_msg->api_reg_client.link_type, in nfa_p2p_reg_client()
[all …]
/external/libnfc-nci/src/nfa/ce/
Dnfa_ce_api.c126 tNFA_CE_MSG *p_msg; in NFA_CeConfigureLocalTag() local
151 if ((p_msg = (tNFA_CE_MSG *) GKI_getbuf ((UINT16) sizeof(tNFA_CE_MSG))) != NULL) in NFA_CeConfigureLocalTag()
153 p_msg->local_tag.hdr.event = NFA_CE_API_CFG_LOCAL_TAG_EVT; in NFA_CeConfigureLocalTag()
156 p_msg->local_tag.protocol_mask = protocol_mask; in NFA_CeConfigureLocalTag()
157 p_msg->local_tag.p_ndef_data = p_ndef_data; in NFA_CeConfigureLocalTag()
158 p_msg->local_tag.ndef_cur_size = ndef_cur_size; in NFA_CeConfigureLocalTag()
159 p_msg->local_tag.ndef_max_size = ndef_max_size; in NFA_CeConfigureLocalTag()
160 p_msg->local_tag.read_only = read_only; in NFA_CeConfigureLocalTag()
161 p_msg->local_tag.uid_len = uid_len; in NFA_CeConfigureLocalTag()
164 memcpy (p_msg->local_tag.uid, p_uid, uid_len); in NFA_CeConfigureLocalTag()
[all …]
Dnfa_ce_main.c176 BOOLEAN nfa_ce_hdl_event (BT_HDR *p_msg) in nfa_ce_hdl_event() argument
182 …_handle_event event: %s (0x%02x), flags: %08x", nfa_ce_evt_2_str (p_msg->event), p_msg->event, nfa… in nfa_ce_hdl_event()
184 NFA_TRACE_EVENT2 ("nfa_ce_handle_event event: 0x%x, flags: %08x",p_msg->event, nfa_ce_cb.flags); in nfa_ce_hdl_event()
188 if ((act_idx = (p_msg->event & 0x00FF)) < NFA_CE_ACTION_TBL_SIZE) in nfa_ce_hdl_event()
190 freebuf = (*nfa_ce_action_tbl[act_idx]) ((tNFA_CE_MSG*) p_msg); in nfa_ce_hdl_event()
196 (*nfa_ce_cb.p_vs_evt_hdlr) (p_msg); in nfa_ce_hdl_event()
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/
Dnfc_hal_api.c156 NFC_HDR *p_msg; in HAL_NfcCoreInitialized() local
165 if ((p_msg = (NFC_HDR *)GKI_getbuf ((UINT16)(size + NFC_HDR_SIZE))) != NULL) in HAL_NfcCoreInitialized()
167 p_msg->event = NFC_HAL_EVT_POST_CORE_RESET; in HAL_NfcCoreInitialized()
168 p_msg->offset = 0; in HAL_NfcCoreInitialized()
169 p_msg->len = size; in HAL_NfcCoreInitialized()
170 p_msg->layer_specific = 0; in HAL_NfcCoreInitialized()
171 memcpy ((UINT8 *)(p_msg + 1) + p_msg->offset, p_core_init_rsp_params, size); in HAL_NfcCoreInitialized()
173 GKI_send_msg (NFC_HAL_TASK, NFC_HAL_TASK_MBOX, p_msg); in HAL_NfcCoreInitialized()
191 NFC_HDR *p_msg; in HAL_NfcWrite() local
203 if ((p_msg = (NFC_HDR *)GKI_getpoolbuf (NFC_HAL_NCI_POOL_ID)) != NULL) in HAL_NfcWrite()
[all …]
Dnfc_hal_hci_ci.c45 tNFC_HAL_HCI_EVENT_DATA *p_msg; in nfc_hal_nv_ci_read() local
48 if ((p_msg = (tNFC_HAL_HCI_EVENT_DATA *) GKI_getbuf (sizeof (tNFC_HAL_HCI_EVENT_DATA))) != NULL) in nfc_hal_nv_ci_read()
50 p_msg->nv_read.hdr.event = NFC_HAL_HCI_RSP_NV_READ_EVT; in nfc_hal_nv_ci_read()
51 p_msg->hdr.offset = 0; in nfc_hal_nv_ci_read()
52 p_msg->hdr.len = sizeof (tNFC_HAL_HCI_RSP_NV_READ_EVT); in nfc_hal_nv_ci_read()
53 p_msg->hdr.layer_specific = 0; in nfc_hal_nv_ci_read()
57 p_msg->nv_read.status = HAL_NFC_STATUS_OK; in nfc_hal_nv_ci_read()
59 p_msg->nv_read.status = HAL_NFC_STATUS_FAILED; in nfc_hal_nv_ci_read()
61 p_msg->nv_read.size = num_bytes_read; in nfc_hal_nv_ci_read()
62 p_msg->nv_read.block = block; in nfc_hal_nv_ci_read()
[all …]
Dnfc_hal_main.c343 NFC_HDR *p_msg; in nfc_hal_main_handle_terminate() local
367 while ((p_msg = (NFC_HDR *) GKI_read_mbox (NFC_HAL_TASK_MBOX)) != NULL) in nfc_hal_main_handle_terminate()
369 GKI_freebuf (p_msg); in nfc_hal_main_handle_terminate()
391 NFC_HDR *p_msg; in nfc_hal_main_start_quick_timer() local
400 if ((p_msg = (NFC_HDR *) GKI_getbuf (NFC_HDR_SIZE)) != NULL) in nfc_hal_main_start_quick_timer()
402 p_msg->event = NFC_HAL_EVT_TO_START_QUICK_TIMER; in nfc_hal_main_start_quick_timer()
403 GKI_send_msg (NFC_HAL_TASK, NFC_HAL_TASK_MBOX, p_msg); in nfc_hal_main_start_quick_timer()
482 void nfc_hal_send_nci_msg_to_nfc_task (NFC_HDR * p_msg) in nfc_hal_send_nci_msg_to_nfc_task() argument
486 p_msg->event = BT_EVT_TO_NFC_NCI; in nfc_hal_send_nci_msg_to_nfc_task()
487 GKI_send_msg (NFC_TASK, NFC_MBOX_ID, p_msg); in nfc_hal_send_nci_msg_to_nfc_task()
[all …]
Dnfc_hal_nci.c54 NFC_HDR *p_msg = nfc_hal_cb.ncit_cb.p_rcv_msg; in nfc_hal_nci_assemble_nci_msg() local
62 if ((p_msg == NULL) || (p_msg->len < NCI_MSG_HDR_SIZE)) in nfc_hal_nci_assemble_nci_msg()
66 DISP_NCI ((UINT8 *) (p_msg + 1) + p_msg->offset, (UINT16) (p_msg->len), TRUE); in nfc_hal_nci_assemble_nci_msg()
69 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in nfc_hal_nci_assemble_nci_msg()
88 STREAM_TO_UINT16 (p_msg->layer_specific, pp); in nfc_hal_nci_assemble_nci_msg()
92 if (nfc_hal_cb.ncit_cb.p_frag_msg->layer_specific != p_msg->layer_specific) in nfc_hal_nci_assemble_nci_msg()
95 …rent messages 0x%x, 0x%x!!", nfc_hal_cb.ncit_cb.p_frag_msg->layer_specific, p_msg->layer_specific); in nfc_hal_nci_assemble_nci_msg()
102 p_msg->offset += NCI_MSG_HDR_SIZE; in nfc_hal_nci_assemble_nci_msg()
103 p_msg->len -= NCI_MSG_HDR_SIZE; in nfc_hal_nci_assemble_nci_msg()
105 …DR_SIZE + nfc_hal_cb.ncit_cb.p_frag_msg->len + nfc_hal_cb.ncit_cb.p_frag_msg->offset + p_msg->len); in nfc_hal_nci_assemble_nci_msg()
[all …]
/external/libnfc-nci/src/nfc/llcp/
Dllcp_util.c270 tLLCP_STATUS llcp_util_send_ui (UINT8 ssap, UINT8 dsap, tLLCP_APP_CB *p_app_cb, BT_HDR *p_msg) in llcp_util_send_ui() argument
275 p_msg->offset -= LLCP_PDU_HEADER_SIZE; in llcp_util_send_ui()
276 p_msg->len += LLCP_PDU_HEADER_SIZE; in llcp_util_send_ui()
278 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in llcp_util_send_ui()
281 GKI_enqueue (&p_app_cb->ui_xmit_q, p_msg); in llcp_util_send_ui()
315 BT_HDR *p_msg; in llcp_util_send_disc() local
318 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_util_send_disc()
320 if (p_msg) in llcp_util_send_disc()
322 p_msg->len = LLCP_PDU_DISC_SIZE; in llcp_util_send_disc()
323 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_util_send_disc()
[all …]
Dllcp_link.c61 …c_ui_pdu (UINT8 local_sap, UINT8 remote_sap, UINT16 ui_pdu_length, UINT8 *p_ui_pdu, BT_HDR *p_msg);
62 static void llcp_link_proc_agf_pdu (BT_HDR *p_msg);
63 static void llcp_link_proc_rx_pdu (UINT8 dsap, UINT8 ptype, UINT8 ssap, BT_HDR *p_msg);
64 static void llcp_link_proc_rx_data (BT_HDR *p_msg);
68 static void llcp_link_send_to_lower (BT_HDR *p_msg);
821 BT_HDR *p_msg; in llcp_link_send_SYMM() local
824 p_msg = (BT_HDR*) GKI_getpoolbuf (LLCP_POOL_ID); in llcp_link_send_SYMM()
826 if (p_msg) in llcp_link_send_SYMM()
828 p_msg->len = LLCP_PDU_SYMM_SIZE; in llcp_link_send_SYMM()
829 p_msg->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in llcp_link_send_SYMM()
[all …]
/external/libnfc-nci/src/nfc/include/
Dndef_utils.h101 EXPORT_NDEF_API extern tNDEF_STATUS NDEF_MsgValidate (UINT8 *p_msg, UINT32 msg_len, BOOLEAN b_allow…
113 EXPORT_NDEF_API extern INT32 NDEF_MsgGetNumRecs (UINT8 *p_msg);
149 EXPORT_NDEF_API extern UINT8 *NDEF_MsgGetRecByIndex (UINT8 *p_msg, INT32 index);
161 EXPORT_NDEF_API extern UINT8 *NDEF_MsgGetLastRecInMsg (UINT8 *p_msg);
173 EXPORT_NDEF_API extern UINT8 *NDEF_MsgGetFirstRecByType (UINT8 *p_msg, UINT8 tnf, UINT8 *p_type, UI…
197 EXPORT_NDEF_API extern UINT8 *NDEF_MsgGetFirstRecById (UINT8 *p_msg, UINT8 *p_id, UINT8 ilen);
257 EXPORT_NDEF_API extern void NDEF_MsgInit (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size);
269 EXPORT_NDEF_API extern tNDEF_STATUS NDEF_MsgAddRec (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_s…
285 EXPORT_NDEF_API extern tNDEF_STATUS NDEF_MsgInsertRec (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cu…
300 EXPORT_NDEF_API extern tNDEF_STATUS NDEF_MsgAppendRec (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cu…
[all …]
Dnci_hmsgs.h35 BOOLEAN nci_proc_core_rsp (BT_HDR *p_msg);
36 void nci_proc_rf_management_rsp (BT_HDR *p_msg);
37 void nci_proc_ee_management_rsp (BT_HDR *p_msg);
38 void nci_proc_core_ntf (BT_HDR *p_msg);
39 void nci_proc_rf_management_ntf (BT_HDR *p_msg);
40 void nci_proc_ee_management_ntf (BT_HDR *p_msg);
41 void nci_proc_prop_rsp (BT_HDR *p_msg);
42 void nci_proc_prop_ntf (BT_HDR *p_msg);
/external/libnfc-nci/src/nfc/nci/
Dnci_hrcv.c46 BOOLEAN nci_proc_core_rsp (BT_HDR *p_msg) in nci_proc_core_rsp() argument
54 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in nci_proc_core_rsp()
68 nfc_ncif_proc_init_rsp (p_msg); in nci_proc_core_rsp()
73 nfc_ncif_proc_get_config_rsp (p_msg); in nci_proc_core_rsp()
81 nfc_ncif_proc_conn_create_rsp (p, p_msg->len, *p_old); in nci_proc_core_rsp()
105 void nci_proc_core_ntf (BT_HDR *p_msg) in nci_proc_core_ntf() argument
112 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in nci_proc_core_ntf()
157 void nci_proc_rf_management_rsp (BT_HDR *p_msg) in nci_proc_rf_management_rsp() argument
164 p = (UINT8 *) (p_msg + 1) + p_msg->offset; in nci_proc_rf_management_rsp()
228 void nci_proc_rf_management_ntf (BT_HDR *p_msg) in nci_proc_rf_management_ntf() argument
[all …]
/external/libnfc-nci/src/nfc/ndef/
Dndef_cho_utils.c35 static UINT8 *ndef_get_bt_oob_record (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size,
76 tNDEF_STATUS NDEF_MsgCreateWktHr (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size, in NDEF_MsgCreateWktHr() argument
81 NDEF_MsgInit (p_msg, max_size, p_cur_size); in NDEF_MsgCreateWktHr()
84 status = NDEF_MsgAddRec (p_msg, max_size, p_cur_size, in NDEF_MsgCreateWktHr()
100 tNDEF_STATUS NDEF_MsgCreateWktHs (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size, in NDEF_MsgCreateWktHs() argument
105 NDEF_MsgInit (p_msg, max_size, p_cur_size); in NDEF_MsgCreateWktHs()
108 status = NDEF_MsgAddRec (p_msg, max_size, p_cur_size, in NDEF_MsgCreateWktHs()
124 tNDEF_STATUS NDEF_MsgAddWktHc (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size, in NDEF_MsgAddWktHc() argument
149 status = NDEF_MsgAddRec (p_msg, max_size, p_cur_size, in NDEF_MsgAddWktHc()
164 tNDEF_STATUS NDEF_MsgAddWktAc (UINT8 *p_msg, UINT32 max_size, UINT32 *p_cur_size, in NDEF_MsgAddWktAc() argument
[all …]
Dndef_utils.c79 tNDEF_STATUS NDEF_MsgValidate (UINT8 *p_msg, UINT32 msg_len, BOOLEAN b_allow_chunks) in NDEF_MsgValidate() argument
81 UINT8 *p_rec = p_msg; in NDEF_MsgValidate()
82 UINT8 *p_end = p_msg + msg_len; in NDEF_MsgValidate()
88 if ( (p_msg == NULL) || (msg_len < 3) ) in NDEF_MsgValidate()
92 if ((*p_msg & NDEF_MB_MASK) == 0) in NDEF_MsgValidate()
96 if ((*p_msg & NDEF_TNF_MASK) == NDEF_TNF_UNCHANGED) in NDEF_MsgValidate()
220 INT32 NDEF_MsgGetNumRecs (UINT8 *p_msg) in NDEF_MsgGetNumRecs() argument
222 UINT8 *p_rec = p_msg; in NDEF_MsgGetNumRecs()
364 UINT8 *NDEF_MsgGetRecByIndex (UINT8 *p_msg, INT32 index) in NDEF_MsgGetRecByIndex() argument
366 UINT8 *p_rec = p_msg; in NDEF_MsgGetRecByIndex()
[all …]
/external/libnfc-nci/src/nfc/nfc/
Dnfc_task.c61 BT_HDR *p_msg; in nfc_start_timer() local
70 if ((p_msg = (BT_HDR *) GKI_getbuf (BT_HDR_SIZE)) != NULL) in nfc_start_timer()
72 p_msg->event = BT_EVT_TO_START_TIMER; in nfc_start_timer()
73 GKI_send_msg (NFC_TASK, NFC_MBOX_ID, p_msg); in nfc_start_timer()
183 BT_HDR *p_msg; in nfc_start_quick_timer() local
192 if ((p_msg = (BT_HDR *) GKI_getbuf (BT_HDR_SIZE)) != NULL) in nfc_start_quick_timer()
194 p_msg->event = BT_EVT_TO_START_QUICK_TIMER; in nfc_start_quick_timer()
195 GKI_send_msg (NFC_TASK, NFC_MBOX_ID, p_msg); in nfc_start_quick_timer()
316 BT_HDR *p_msg; in nfc_task_shutdown_nfcc() local
319 while ((p_msg = (BT_HDR *) GKI_read_mbox (NFC_MBOX_ID)) != NULL) in nfc_task_shutdown_nfcc()
[all …]
Dnfc_main.c353 void nfc_main_handle_hal_evt (tNFC_HAL_EVT_MSG *p_msg) in nfc_main_handle_hal_evt() argument
357 NFC_TRACE_DEBUG1 ("nfc_main_handle_hal_evt(): HAL event=0x%x", p_msg->hal_evt); in nfc_main_handle_hal_evt()
359 switch (p_msg->hal_evt) in nfc_main_handle_hal_evt()
401 if (p_msg->status == HAL_NFC_STATUS_OK) in nfc_main_handle_hal_evt()
435 if (p_msg->status == HAL_NFC_STATUS_ERR_CMD_TIMEOUT) in nfc_main_handle_hal_evt()
452 if (p_msg->status == HAL_NFC_STATUS_ERR_CMD_TIMEOUT) in nfc_main_handle_hal_evt()
458 switch (p_msg->status) in nfc_main_handle_hal_evt()
491 NFC_TRACE_ERROR1 ("nfc_main_handle_hal_evt (): unhandled event (0x%x).", p_msg->hal_evt); in nfc_main_handle_hal_evt()
508 BT_HDR *p_msg; in nfc_main_flush_cmd_queue() local
519 while ((p_msg = (BT_HDR *)GKI_dequeue (&nfc_cb.nci_cmd_xmit_q)) != NULL) in nfc_main_flush_cmd_queue()
[all …]
/external/libnfc-nci/src/nfa/int/
Dnfa_p2p_int.h136 BT_HDR *p_msg; member
144 BT_HDR *p_msg; member
312 BOOLEAN nfa_p2p_reg_server (tNFA_P2P_MSG *p_msg);
313 BOOLEAN nfa_p2p_reg_client (tNFA_P2P_MSG *p_msg);
314 BOOLEAN nfa_p2p_dereg (tNFA_P2P_MSG *p_msg);
315 BOOLEAN nfa_p2p_accept_connection (tNFA_P2P_MSG *p_msg);
316 BOOLEAN nfa_p2p_reject_connection (tNFA_P2P_MSG *p_msg);
317 BOOLEAN nfa_p2p_disconnect (tNFA_P2P_MSG *p_msg);
318 BOOLEAN nfa_p2p_create_data_link_connection (tNFA_P2P_MSG *p_msg);
319 BOOLEAN nfa_p2p_send_ui (tNFA_P2P_MSG *p_msg);
[all …]
Dnfa_snep_int.h263 BOOLEAN nfa_snep_start_default_server (tNFA_SNEP_MSG *p_msg);
264 BOOLEAN nfa_snep_stop_default_server (tNFA_SNEP_MSG *p_msg);
282 BOOLEAN nfa_snep_reg_server (tNFA_SNEP_MSG *p_msg);
283 BOOLEAN nfa_snep_reg_client (tNFA_SNEP_MSG *p_msg);
284 BOOLEAN nfa_snep_dereg (tNFA_SNEP_MSG *p_msg);
285 BOOLEAN nfa_snep_connect (tNFA_SNEP_MSG *p_msg);
286 BOOLEAN nfa_snep_put_resp (tNFA_SNEP_MSG *p_msg);
287 BOOLEAN nfa_snep_get_resp (tNFA_SNEP_MSG *p_msg);
288 BOOLEAN nfa_snep_put_req (tNFA_SNEP_MSG *p_msg);
289 BOOLEAN nfa_snep_get_req (tNFA_SNEP_MSG *p_msg);
[all …]

123