Lines Matching refs:status

845   p_cb_data->status = pInfo->wStatus;  in hal_write_cb()
862 NFCSTATUS status; in hal_read_cb() local
867 p_cb_data->status = NFCSTATUS_RESPONSE_TIMEOUT; in hal_read_cb()
868 status = phTmlNfc_ReadAbort(); in hal_read_cb()
870 NFCSTATUS status = phOsalNfc_Timer_Stop(timeoutTimerId); in hal_read_cb() local
872 if (NFCSTATUS_SUCCESS == status) { in hal_read_cb()
876 p_cb_data->status = NFCSTATUS_FAILED; in hal_read_cb()
880 p_cb_data->status = NFCSTATUS_FAILED; in hal_read_cb()
884 p_cb_data->status = NFCSTATUS_SUCCESS; in hal_read_cb()
887 p_cb_data->status = NFCSTATUS_FAILED; in hal_read_cb()
890 p_cb_data->status = pInfo->wStatus; in hal_read_cb()
896 p_cb_data->status = NFCSTATUS_SUCCESS; in hal_read_cb()
898 p_cb_data->status = NFCSTATUS_FAILED; in hal_read_cb()
904 p_cb_data->status = NFCSTATUS_SUCCESS; in hal_read_cb()
906 p_cb_data->status = NFCSTATUS_FAILED; in hal_read_cb()
976 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_readLocked() local
985 status = NFCSTATUS_FAILED; in phNxpNciHal_readLocked()
990 status = in phNxpNciHal_readLocked()
994 if (status != NFCSTATUS_PENDING) { in phNxpNciHal_readLocked()
995 NXPLOG_NCIHAL_E("TML Read status error status = %x", status); in phNxpNciHal_readLocked()
996 status = NFCSTATUS_FAILED; in phNxpNciHal_readLocked()
1000 status = phOsalNfc_Timer_Start(timeoutTimerId, HAL_WRITE_RSP_TIMEOUT, in phNxpNciHal_readLocked()
1003 if (NFCSTATUS_SUCCESS == status) { in phNxpNciHal_readLocked()
1007 status = NFCSTATUS_FAILED; in phNxpNciHal_readLocked()
1014 status = NFCSTATUS_FAILED; in phNxpNciHal_readLocked()
1018 if (cb_data.status == NFCSTATUS_RESPONSE_TIMEOUT) { in phNxpNciHal_readLocked()
1020 status = NFCSTATUS_RESPONSE_TIMEOUT; in phNxpNciHal_readLocked()
1024 if (cb_data.status != NFCSTATUS_SUCCESS) { in phNxpNciHal_readLocked()
1026 status = NFCSTATUS_FAILED; in phNxpNciHal_readLocked()
1033 return status; in phNxpNciHal_readLocked()
1048 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_writeLocked() local
1060 status = in phNxpNciHal_writeLocked()
1064 if (status != NFCSTATUS_PENDING) { in phNxpNciHal_writeLocked()
1072 status = NFCSTATUS_FAILED; in phNxpNciHal_writeLocked()
1076 if (cb_data.status != NFCSTATUS_SUCCESS && retryCnt < HAL_WRITE_MAX_RETRY) { in phNxpNciHal_writeLocked()
1084 status = cb_data.status; in phNxpNciHal_writeLocked()
1089 return status; in phNxpNciHal_writeLocked()
1103 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_performTest() local
1111 status = phNxpNciHal_writeLocked(pData); in phNxpNciHal_performTest()
1113 if (status == NFCSTATUS_RESPONSE_TIMEOUT) { in phNxpNciHal_performTest()
1116 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_performTest()
1120 status = phNxpNciHal_readLocked(pData); in phNxpNciHal_performTest()
1122 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_performTest()
1127 status = phNxpNciHal_readLocked(pData); in phNxpNciHal_performTest()
1129 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_performTest()
1136 return status; in phNxpNciHal_performTest()
1157 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_TestMode_open() local
1194 status = phTmlNfc_Init(&tTmlConfig); in phNxpNciHal_TestMode_open()
1195 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_TestMode_open()
1250 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_TestMode_close() local
1256 status = phTmlNfc_ReadAbort(); in phNxpNciHal_TestMode_close()
1257 status = phTmlNfc_WriteAbort(); in phNxpNciHal_TestMode_close()
1261 status = phTmlNfc_Shutdown(); in phNxpNciHal_TestMode_close()
1263 NXPLOG_NCIHAL_D("phNxpNciHal_close return status = %d", status); in phNxpNciHal_TestMode_close()
1269 status = phOsalNfc_Timer_Delete(timeoutTimerId); in phNxpNciHal_TestMode_close()
1292 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_SwpTest() local
1302 status = phNxpNciHal_performTest(&(swp1_test_data[cnt])); in phNxpNciHal_SwpTest()
1303 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_SwpTest()
1311 status = phNxpNciHal_performTest(&(swp2_test_data[cnt])); in phNxpNciHal_SwpTest()
1312 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_SwpTest()
1317 status = NFCSTATUS_FAILED; in phNxpNciHal_SwpTest()
1320 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_SwpTest()
1328 return status; in phNxpNciHal_SwpTest()
1348 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_PrbsTestStart() local
1368 status = in phNxpNciHal_PrbsTestStart()
1372 if (status == NFCSTATUS_FAILED) { in phNxpNciHal_PrbsTestStart()
1382 status = phNxpNciHal_performTest(&(prbs_test_data[cnt])); in phNxpNciHal_PrbsTestStart()
1383 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_PrbsTestStart()
1390 status = phNxpNciHal_performTest(&prbs_cmd_data); in phNxpNciHal_PrbsTestStart()
1393 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_PrbsTestStart()
1401 return status; in phNxpNciHal_PrbsTestStart()
1419 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_PrbsTestStop() local
1421 status = phTmlNfc_IoCtl(phTmlNfc_e_ResetDevice); in phNxpNciHal_PrbsTestStop()
1423 if (NFCSTATUS_SUCCESS == status) { in phNxpNciHal_PrbsTestStop()
1430 return status; in phNxpNciHal_PrbsTestStop()
1446 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_getPrbsCmd() local
1453 return status; in phNxpNciHal_getPrbsCmd()
1514 status = NFCSTATUS_FAILED; in phNxpNciHal_getPrbsCmd()
1517 return status; in phNxpNciHal_getPrbsCmd()
1530 NFCSTATUS status = NFCSTATUS_SUCCESS; in phNxpNciHal_RfFieldTest() local
1540 status = phNxpNciHal_performTest(&(rf_field_on_test_data[cnt])); in phNxpNciHal_RfFieldTest()
1541 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_RfFieldTest()
1549 status = phNxpNciHal_performTest(&(rf_field_off_test_data[cnt])); in phNxpNciHal_RfFieldTest()
1550 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_RfFieldTest()
1555 status = NFCSTATUS_FAILED; in phNxpNciHal_RfFieldTest()
1558 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_RfFieldTest()
1566 return status; in phNxpNciHal_RfFieldTest()
1579 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_AntennaTest() local
1581 return status; in phNxpNciHal_AntennaTest()
1594 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_DownloadPinTest() local
1603 status = phNxpNciHal_performTest(&(download_pin_test_data1[cnt])); in phNxpNciHal_DownloadPinTest()
1604 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_DownloadPinTest()
1609 if (status != NFCSTATUS_SUCCESS) { in phNxpNciHal_DownloadPinTest()
1611 return status; in phNxpNciHal_DownloadPinTest()
1614 status = NFCSTATUS_FAILED; in phNxpNciHal_DownloadPinTest()
1615 status = phTmlNfc_IoCtl(phTmlNfc_e_EnableDownloadMode); in phNxpNciHal_DownloadPinTest()
1616 if (NFCSTATUS_SUCCESS != status) { in phNxpNciHal_DownloadPinTest()
1618 return status; in phNxpNciHal_DownloadPinTest()
1621 status = NFCSTATUS_FAILED; in phNxpNciHal_DownloadPinTest()
1625 status = phNxpNciHal_performTest(&(download_pin_test_data2[cnt])); in phNxpNciHal_DownloadPinTest()
1626 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_DownloadPinTest()
1631 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_DownloadPinTest()
1639 return status; in phNxpNciHal_DownloadPinTest()
1652 NFCSTATUS status = NFCSTATUS_FAILED; in phNxpNciHal_AntennaSelfTest() local
1662 status = phNxpNciHal_performTest(&(antenna_self_test_data[cnt])); in phNxpNciHal_AntennaSelfTest()
1663 if (status == NFCSTATUS_RESPONSE_TIMEOUT || status == NFCSTATUS_FAILED) { in phNxpNciHal_AntennaSelfTest()
1670 if (status == NFCSTATUS_SUCCESS) { in phNxpNciHal_AntennaSelfTest()