Lines Matching refs:pkt

81   tNFC_NCI_PKT* pkt = &msg->nci_packet;  in nfc_hal_open_sm()  local
90 util_nci_analyzer(pkt); in nfc_hal_open_sm()
91 if (NCI_MT(pkt) != NCI_MT_RSP || NCI_GID(pkt) != NCI_GID_PROP || in nfc_hal_open_sm()
92 NCI_OID(pkt) != NCI_PROP_FW_CFG) { in nfc_hal_open_sm()
95 if (NCI_STATUS(pkt) != NCI_STATUS_OK && in nfc_hal_open_sm()
96 NCI_STATUS(pkt) != NCI_STATUS_E_SYNTAX && in nfc_hal_open_sm()
97 NCI_STATUS(pkt) != NCI_CLOCK_STATUS_SYNTAX_ERROR && in nfc_hal_open_sm()
98 NCI_STATUS(pkt) != NCI_CLOCK_STATUS_MISMATCHED && in nfc_hal_open_sm()
99 NCI_STATUS(pkt) != NCI_CLOCK_STATUS_FULL) { in nfc_hal_open_sm()
100 OSI_loge("Failed to config FW, status: %d", NCI_STATUS(pkt)); in nfc_hal_open_sm()
103 if (NCI_STATUS(pkt) == NCI_STATUS_OK) { in nfc_hal_open_sm()
108 OSI_loge("Failed to config FW, status: %d", NCI_STATUS(pkt)); in nfc_hal_open_sm()
126 tNFC_NCI_PKT* pkt = &msg->nci_packet; in nfc_hal_postinit_sm() local
135 if (NCI_GID(pkt) == NCI_GID_CORE) { in nfc_hal_postinit_sm()
136 if (NCI_OID(pkt) == NCI_CORE_RESET && NCI_LEN(pkt) == 1) { in nfc_hal_postinit_sm()
143 } else if (NCI_OID(pkt) == NCI_CORE_INIT && in nfc_hal_postinit_sm()
144 (NCI_LEN(pkt) == 0 || NCI_LEN(pkt) == 2)) { in nfc_hal_postinit_sm()
158 if (NCI_GID(pkt) == NCI_GID_CORE) { in nfc_hal_postinit_sm()
159 if (NCI_OID(pkt) == NCI_CORE_RESET) { in nfc_hal_postinit_sm()
166 if ((NCI_LEN(pkt) == 0x03) && NCI_MT(pkt) == NCI_MT_RSP) in nfc_hal_postinit_sm()
172 } else if (NCI_OID(pkt) == NCI_CORE_INIT) { in nfc_hal_postinit_sm()
179 util_nci_analyzer(pkt); in nfc_hal_postinit_sm()
224 util_nci_analyzer(pkt); in nfc_hal_vs_sm()
244 tNFC_NCI_PKT* pkt = &msg->nci_packet; in nfc_hal_service_sm() local
257 if (nfc_hal_prehandler(pkt)) hal_nci_send(pkt); in nfc_hal_service_sm()
261 util_nci_analyzer(pkt); in nfc_hal_service_sm()
263 if (nfc_hal_prehandler(pkt)) nfc_data_callback(pkt); in nfc_hal_service_sm()
283 tNFC_NCI_PKT* pkt = &msg->nci_packet; in nfc_hal_grant_sm() local
291 util_nci_analyzer(pkt); in nfc_hal_grant_sm()
292 cback_ret = nfc_hal_info.grant_cback(pkt); in nfc_hal_grant_sm()
298 pkt = (tNFC_NCI_PKT*)OSI_queue_get(nfc_hal_info.nci_q); in nfc_hal_grant_sm()
299 if (pkt) { in nfc_hal_grant_sm()
301 hal_nci_send(pkt); in nfc_hal_grant_sm()
302 OSI_mem_free((tOSI_MEM_HANDLER)pkt); in nfc_hal_grant_sm()