Lines Matching refs:status

99 static void phNxpNciHal_open_complete(NFCSTATUS status);
100 static void phNxpNciHal_MinOpen_complete(NFCSTATUS status);
105 static void phNxpNciHal_close_complete(NFCSTATUS status);
106 static void phNxpNciHal_core_initialized_complete(NFCSTATUS status);
107 static void phNxpNciHal_power_cycle_complete(NFCSTATUS status);
339 NFCSTATUS status = NFCSTATUS_REJECTED; in phNxpNciHal_fw_download() local
344 status = phTmlNfc_IoCtl(phTmlNfc_e_EnableDownloadMode); in phNxpNciHal_fw_download()
345 if (NFCSTATUS_SUCCESS != status) { in phNxpNciHal_fw_download()
352 status = phNxpNciHal_getChipInfoInFwDnldMode(); in phNxpNciHal_fw_download()
353 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_fw_download()
355 return status; in phNxpNciHal_fw_download()
362 status = phNxpNciHal_fw_download_seq(nxpprofile_ctrl.bClkSrcVal, in phNxpNciHal_fw_download()
364 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_fw_download()
376 status = NFCSTATUS_FAILED; in phNxpNciHal_fw_download()
383 } while ((fw_retry_count < 3) && (status != NFCSTATUS_SUCCESS)); in phNxpNciHal_fw_download()
385 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_fw_download()
390 status = NFCSTATUS_FAILED; in phNxpNciHal_fw_download()
395 status = NFCSTATUS_SUCCESS; in phNxpNciHal_fw_download()
412 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_fw_download()
413 status = phNxpNciHal_nfcc_core_reset_init(); in phNxpNciHal_fw_download()
414 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_fw_download()
421 return status; in phNxpNciHal_fw_download()
437 NFCSTATUS status = NFCSTATUS_NOT_ALLOWED; in phNxpNciHal_CheckValidFwVersion() local
448 status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckValidFwVersion()
454 status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckValidFwVersion()
469 status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckValidFwVersion()
482 status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckValidFwVersion()
486 status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckValidFwVersion()
491 return status; in phNxpNciHal_CheckValidFwVersion()
567 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_MinOpen() local
665 status = phTmlNfc_Read( in phNxpNciHal_MinOpen()
668 if (status != NFCSTATUS_PENDING) { in phNxpNciHal_MinOpen()
669 NXPLOG_NCIHAL_E("TML Read status error status = %x", status); in phNxpNciHal_MinOpen()
678 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_MinOpen()
679 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
691 || ((status != NFCSTATUS_SUCCESS) && in phNxpNciHal_MinOpen()
697 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
711 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci2_0), cmd_init_nci2_0); in phNxpNciHal_MinOpen()
713 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci), cmd_init_nci); in phNxpNciHal_MinOpen()
719 if ((status == NFCSTATUS_SUCCESS) && in phNxpNciHal_MinOpen()
722 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_MinOpen()
723 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
724 status = in phNxpNciHal_MinOpen()
726 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
732 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
746 status = phDnldNfc_InitImgInfo(); in phNxpNciHal_MinOpen()
747 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen()
757 status = phNxpNciHal_fw_download(); in phNxpNciHal_MinOpen()
758 if (NFCSTATUS_FAILED == status) { in phNxpNciHal_MinOpen()
762 } else if (NFCSTATUS_REJECTED == status) { in phNxpNciHal_MinOpen()
803 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_open() local
809 status = phNxpNciHal_MinOpen(); in phNxpNciHal_open()
810 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_open()
847 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_fw_mw_ver_check() local
850 status = NFCSTATUS_SUCCESS; in phNxpNciHal_fw_mw_ver_check()
853 status = NFCSTATUS_SUCCESS; in phNxpNciHal_fw_mw_ver_check()
856 status = NFCSTATUS_SUCCESS; in phNxpNciHal_fw_mw_ver_check()
858 return status; in phNxpNciHal_fw_mw_ver_check()
869 static void phNxpNciHal_MinOpen_complete(NFCSTATUS status) { in phNxpNciHal_MinOpen_complete() argument
870 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_MinOpen_complete()
886 static void phNxpNciHal_open_complete(NFCSTATUS status) { in phNxpNciHal_open_complete() argument
889 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_open_complete()
938 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_write_internal() local
964 status = in phNxpNciHal_write_internal()
967 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_write_internal()
986 status = phNxpNciHal_send_ext_cmd(3, cmd_icode_eof); in phNxpNciHal_write_internal()
987 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_write_internal()
1009 NFCSTATUS status = NFCSTATUS_INVALID_PARAMETER; in phNxpNciHal_write_unlocked() local
1041 status = phTmlNfc_Write( in phNxpNciHal_write_unlocked()
1045 if (status != NFCSTATUS_PENDING) { in phNxpNciHal_write_unlocked()
1058 if (cb_data.status != NFCSTATUS_SUCCESS) { in phNxpNciHal_write_unlocked()
1074 status = phTmlNfc_IoCtl(phTmlNfc_e_ResetDevice); in phNxpNciHal_write_unlocked()
1076 if (NFCSTATUS_SUCCESS == status) { in phNxpNciHal_write_unlocked()
1119 p_cb_data->status = pInfo->wStatus; in phNxpNciHal_write_complete()
1142 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_read_complete() local
1166 status = phNxpNciHal_process_ext_rsp(nxpncihal_ctrl.p_rx_data, in phNxpNciHal_read_complete()
1179 if (status == NFCSTATUS_FAILED) { in phNxpNciHal_read_complete()
1181 nxpncihal_ctrl.ext_cb_data.status = status; in phNxpNciHal_read_complete()
1206 (status == NFCSTATUS_SUCCESS)) { in phNxpNciHal_read_complete()
1236 status = phTmlNfc_Read( in phNxpNciHal_read_complete()
1239 if (status != NFCSTATUS_PENDING) { in phNxpNciHal_read_complete()
1240 NXPLOG_NCIHAL_E("read status error status = %x", status); in phNxpNciHal_read_complete()
1260 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_core_initialized() local
1312 status = phTmlNfc_IoCtl(phTmlNfc_e_ResetDevice); in phNxpNciHal_core_initialized()
1313 if (NFCSTATUS_SUCCESS == status) { in phNxpNciHal_core_initialized()
1319 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_core_initialized()
1320 if ((status != NFCSTATUS_SUCCESS) && in phNxpNciHal_core_initialized()
1325 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1336 status = in phNxpNciHal_core_initialized()
1339 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci), cmd_init_nci); in phNxpNciHal_core_initialized()
1341 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1364 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1365 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1372 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_ven_pulld_enable_nci), in phNxpNciHal_core_initialized()
1374 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1385 status = phNxpNciHal_get_mw_eeprom(); in phNxpNciHal_core_initialized()
1386 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1393 status = phNxpNciHal_check_clock_config(); in phNxpNciHal_core_initialized()
1394 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1428 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_dpll_set_reg_nci), in phNxpNciHal_core_initialized()
1430 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1450 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1451 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1469 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1470 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1480 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1481 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1491 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1492 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1508 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1509 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1510 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1512 if (status == 0x09) { in phNxpNciHal_core_initialized()
1517 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1529 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1530 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1531 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1533 if (status == 0x09) { in phNxpNciHal_core_initialized()
1538 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1550 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1551 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1552 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1554 if (status == 0x09) { in phNxpNciHal_core_initialized()
1559 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1571 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1572 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1573 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1575 if (status == 0x09) { in phNxpNciHal_core_initialized()
1580 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1592 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1593 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1594 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1596 if (status == 0x09) { in phNxpNciHal_core_initialized()
1601 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1613 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1614 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1615 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1617 if (status == 0x09) { in phNxpNciHal_core_initialized()
1622 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1635 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1636 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1649 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1650 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1651 status = phNxpNciHal_CheckRFCmdRespStatus(); in phNxpNciHal_core_initialized()
1653 if (status == 0x09) { in phNxpNciHal_core_initialized()
1658 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1684 status = phNxpNciHal_send_ext_cmd(sizeof(swp_switch_timeout_cmd), in phNxpNciHal_core_initialized()
1686 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1696 status = phNxpNciHal_china_tianjin_rf_setting(); in phNxpNciHal_core_initialized()
1697 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1703 status = phNxpNciHal_set_mw_eeprom(); in phNxpNciHal_core_initialized()
1704 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1715 status = phNxpNciHal_send_ext_cmd(retlen, buffer); in phNxpNciHal_core_initialized()
1716 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1729 status = phNxpNciHal_send_ext_cmd(sizeof(p2p_listen_mode_routing_cmd), in phNxpNciHal_core_initialized()
1731 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1744 status = phNxpNciHal_send_ext_cmd(sizeof(swp_full_pwr_mode_on_cmd), in phNxpNciHal_core_initialized()
1746 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1753 status = phNxpNciHal_send_ext_cmd(sizeof(swp_full_pwr_mode_on_cmd), in phNxpNciHal_core_initialized()
1755 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1768 status = in phNxpNciHal_core_initialized()
1771 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1778 status = in phNxpNciHal_core_initialized()
1781 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1801 status = phNxpNciHal_send_ext_cmd(sizeof(nfcc_core_conn_create), in phNxpNciHal_core_initialized()
1804 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1812 status = in phNxpNciHal_core_initialized()
1815 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1822 status = phNxpNciHal_send_ext_cmd(sizeof(uicc_set_mode), uicc_set_mode); in phNxpNciHal_core_initialized()
1823 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1833 status = in phNxpNciHal_core_initialized()
1835 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1846 status = phNxpNciHal_send_ext_cmd(p_core_init_rsp_params[2], in phNxpNciHal_core_initialized()
1848 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1857 status = in phNxpNciHal_core_initialized()
1859 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1895 status = phNxpNciHal_write_ext( in phNxpNciHal_core_initialized()
1898 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1917 status = phNxpNciHal_send_ext_cmd( in phNxpNciHal_core_initialized()
1919 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized()
1939 phNxpNciHal_core_initialized_complete(status); in phNxpNciHal_core_initialized()
1963 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_isFactoryOTAModeActive() local
1966 status = phNxpNciHal_send_ext_cmd(sizeof(check_factoryOTA), check_factoryOTA); in phNxpNciHal_isFactoryOTAModeActive()
1968 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_isFactoryOTAModeActive()
1989 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_disableFactoryOTAMode() local
1991 status = phNxpNciHal_send_ext_cmd(sizeof(nfcc_system_gpio), nfcc_system_gpio); in phNxpNciHal_disableFactoryOTAMode()
1992 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_disableFactoryOTAMode()
1995 status = in phNxpNciHal_disableFactoryOTAMode()
1997 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_disableFactoryOTAMode()
2000 return status; in phNxpNciHal_disableFactoryOTAMode()
2016 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_CheckRFCmdRespStatus() local
2020 status = INVALID_PARAM; in phNxpNciHal_CheckRFCmdRespStatus()
2022 status = NFCSTATUS_FAILED; in phNxpNciHal_CheckRFCmdRespStatus()
2025 return status; in phNxpNciHal_CheckRFCmdRespStatus()
2046 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHalRFConfigCmdRecSequence() local
2056 status = phTmlNfc_IoCtl(phTmlNfc_e_ResetDevice); in phNxpNciHalRFConfigCmdRecSequence()
2060 status = phNxpNciHal_fw_download(); in phNxpNciHalRFConfigCmdRecSequence()
2061 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHalRFConfigCmdRecSequence()
2064 status = phTmlNfc_Read( in phNxpNciHalRFConfigCmdRecSequence()
2067 if (status != NFCSTATUS_PENDING) { in phNxpNciHalRFConfigCmdRecSequence()
2068 NXPLOG_NCIHAL_E("TML Read status error status = %x", status); in phNxpNciHalRFConfigCmdRecSequence()
2071 status = NFCSTATUS_FAILED; in phNxpNciHalRFConfigCmdRecSequence()
2078 return status; in phNxpNciHalRFConfigCmdRecSequence()
2091 static void phNxpNciHal_core_initialized_complete(NFCSTATUS status) { in phNxpNciHal_core_initialized_complete() argument
2094 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_core_initialized_complete()
2132 NFCSTATUS status; in phNxpNciHal_close() local
2153 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_ven_disable_nci), in phNxpNciHal_close()
2155 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_close()
2175 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_close()
2176 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_close()
2185 status = phTmlNfc_ReadAbort(); in phNxpNciHal_close()
2186 status = phTmlNfc_WriteAbort(); in phNxpNciHal_close()
2190 status = phTmlNfc_Shutdown(); in phNxpNciHal_close()
2222 NFCSTATUS status; in phNxpNciHal_Minclose() local
2227 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_Minclose()
2228 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_Minclose()
2235 status = phTmlNfc_ReadAbort(); in phNxpNciHal_Minclose()
2236 status = phTmlNfc_WriteAbort(); in phNxpNciHal_Minclose()
2240 status = phTmlNfc_Shutdown(); in phNxpNciHal_Minclose()
2273 void phNxpNciHal_close_complete(NFCSTATUS status) { in phNxpNciHal_close_complete() argument
2276 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_close_complete()
2298 NFCSTATUS status; in phNxpNciHal_configDiscShutdown() local
2301 status = phNxpNciHal_close(true); in phNxpNciHal_configDiscShutdown()
2302 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_configDiscShutdown()
2506 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_power_cycle() local
2511 status = phTmlNfc_IoCtl(phTmlNfc_e_ResetDevice); in phNxpNciHal_power_cycle()
2513 if (NFCSTATUS_SUCCESS == status) { in phNxpNciHal_power_cycle()
2531 static void phNxpNciHal_power_cycle_complete(NFCSTATUS status) { in phNxpNciHal_power_cycle_complete() argument
2534 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_power_cycle_complete()
2558 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_check_ncicmd_write_window() local
2576 status = NFCSTATUS_SUCCESS; in phNxpNciHal_check_ncicmd_write_window()
2580 status = NFCSTATUS_SUCCESS; in phNxpNciHal_check_ncicmd_write_window()
2582 return status; in phNxpNciHal_check_ncicmd_write_window()
2603 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_ioctl() local
2604 status = phNxpNciHal_MinOpen(); in phNxpNciHal_ioctl()
2605 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_ioctl()
2703 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_get_mw_eeprom() local
2713 status = in phNxpNciHal_get_mw_eeprom()
2715 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_get_mw_eeprom()
2726 return status; in phNxpNciHal_get_mw_eeprom()
2738 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_set_mw_eeprom() local
2753 status = in phNxpNciHal_set_mw_eeprom()
2755 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_set_mw_eeprom()
2760 return status; in phNxpNciHal_set_mw_eeprom()
2773 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_set_clock() local
2810 status = phNxpNciHal_send_ext_cmd(sizeof(set_clock_cmd), set_clock_cmd); in phNxpNciHal_set_clock()
2811 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_set_clock()
2817 status = phNxpNciHal_send_ext_cmd(sizeof(set_clock_cmd), set_clock_cmd); in phNxpNciHal_set_clock()
2818 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_set_clock()
2852 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_check_clock_config() local
2858 status = phNxpNciHal_send_ext_cmd(sizeof(get_clock_cmd), get_clock_cmd); in phNxpNciHal_check_clock_config()
2860 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_check_clock_config()
2862 return status; in phNxpNciHal_check_clock_config()
2873 return status; in phNxpNciHal_check_clock_config()
2885 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_china_tianjin_rf_setting() local
2900 status = phNxpNciHal_send_ext_cmd(sizeof(get_rf_cmd), get_rf_cmd); in phNxpNciHal_china_tianjin_rf_setting()
2901 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_china_tianjin_rf_setting()
2910 return status; in phNxpNciHal_china_tianjin_rf_setting()
2929 status = phNxpNciHal_send_ext_cmd(sizeof(set_rf_cmd), set_rf_cmd); in phNxpNciHal_china_tianjin_rf_setting()
2930 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_china_tianjin_rf_setting()
2938 return status; in phNxpNciHal_china_tianjin_rf_setting()
2950 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_gpio_restore() local
2961 status = phNxpNciHal_send_ext_cmd(sizeof(get_gpio_values_cmd), in phNxpNciHal_gpio_restore()
2963 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_gpio_restore()
2973 status = phNxpNciHal_send_ext_cmd(sizeof(set_gpio_values_cmd), in phNxpNciHal_gpio_restore()
2975 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_gpio_restore()
2982 status = phNxpNciHal_send_ext_cmd(sizeof(get_gpio_values_cmd), in phNxpNciHal_gpio_restore()
2984 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_gpio_restore()
2995 status = phNxpNciHal_send_ext_cmd(9, set_gpio_values_cmd); in phNxpNciHal_gpio_restore()
2996 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_gpio_restore()
3014 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_nfcc_core_reset_init() local
3019 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_nfcc_core_reset_init()
3020 if ((status != NFCSTATUS_SUCCESS) && (retry_cnt < 3)) { in phNxpNciHal_nfcc_core_reset_init()
3024 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_nfcc_core_reset_init()
3026 return status; in phNxpNciHal_nfcc_core_reset_init()
3034 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci2_0), cmd_init_nci2_0); in phNxpNciHal_nfcc_core_reset_init()
3036 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci), cmd_init_nci); in phNxpNciHal_nfcc_core_reset_init()
3039 if ((status != NFCSTATUS_SUCCESS) && (retry_cnt < 3)) { in phNxpNciHal_nfcc_core_reset_init()
3043 } else if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_nfcc_core_reset_init()
3045 return status; in phNxpNciHal_nfcc_core_reset_init()
3048 return status; in phNxpNciHal_nfcc_core_reset_init()
3060 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_getChipInfoInFwDnldMode() local
3066 status = in phNxpNciHal_getChipInfoInFwDnldMode()
3068 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_getChipInfoInFwDnldMode()
3080 NXPLOG_NCIHAL_D("%s:exit status: 0x%02x", __func__, status); in phNxpNciHal_getChipInfoInFwDnldMode()
3081 return status; in phNxpNciHal_getChipInfoInFwDnldMode()
3124 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_enable_i2c_fragmentation() local
3143 status = phNxpNciHal_send_ext_cmd(sizeof(get_i2c_fragmentation_cmd), in phNxpNciHal_enable_i2c_fragmentation()
3145 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_enable_i2c_fragmentation()
3159 status = in phNxpNciHal_enable_i2c_fragmentation()
3162 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_enable_i2c_fragmentation()
3168 status = in phNxpNciHal_enable_i2c_fragmentation()
3171 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_enable_i2c_fragmentation()
3175 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_reset_nci), cmd_reset_nci); in phNxpNciHal_enable_i2c_fragmentation()
3176 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_enable_i2c_fragmentation()
3180 status = in phNxpNciHal_enable_i2c_fragmentation()
3183 status = phNxpNciHal_send_ext_cmd(sizeof(cmd_init_nci), cmd_init_nci); in phNxpNciHal_enable_i2c_fragmentation()
3185 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_enable_i2c_fragmentation()
3208 NFCSTATUS status = phNxpNciHal_send_ext_cmd( in phNxpNciHal_do_se_session_reset() local
3210 NXPLOG_NCIHAL_D("%s status = %x ", __func__, status); in phNxpNciHal_do_se_session_reset()
3211 return status; in phNxpNciHal_do_se_session_reset()
3223 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_do_factory_reset() local
3225 status = phNxpNciHal_MinOpen(); in phNxpNciHal_do_factory_reset()
3226 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_do_factory_reset()
3231 status = phNxpNciHal_do_se_session_reset(); in phNxpNciHal_do_factory_reset()
3232 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_do_factory_reset()
3233 NXPLOG_NCIHAL_E("%s failed. status = %x ", __func__, status); in phNxpNciHal_do_factory_reset()
3251 NFCSTATUS status = phNxpNciHal_do_se_session_reset(); in phNxpNciHal_hci_network_reset() local
3253 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_hci_network_reset()