Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 169) sorted by relevance

1234567

/TwlSDK-5.1.0/build/libraries/wm/ARM9/src/
Dwm_etc.c52 WMErrCode result; in WM_StartTestMode() local
55 result = WMi_CheckState(WM_STATE_IDLE); in WM_StartTestMode()
56 WM_CHECK_RESULT(result); in WM_StartTestMode()
70 result = WMi_SendCommandDirect(&Req, sizeof(Req)); in WM_StartTestMode()
71 if (result != WM_ERRCODE_SUCCESS) in WM_StartTestMode()
73 return result; in WM_StartTestMode()
93 WMErrCode result; in WM_StopTestMode() local
96 result = WMi_CheckState(WM_STATE_TESTMODE); in WM_StopTestMode()
97 WM_CHECK_RESULT(result); in WM_StopTestMode()
103 result = WMi_SendCommand(WM_APIID_STOP_TESTMODE, 0); in WM_StopTestMode()
[all …]
Dwm_standard.c86 WMErrCode result; in WMi_EnableEx() local
89 result = WMi_CheckState(WM_STATE_READY); in WMi_EnableEx()
90 WM_CHECK_RESULT(result); in WMi_EnableEx()
102 result = WMi_SendCommand(WM_APIID_ENABLE, 4, in WMi_EnableEx()
104 WM_CHECK_RESULT(result); in WMi_EnableEx()
125 WMErrCode result; in WM_Disable() local
128 result = WMi_CheckState(WM_STATE_STOP); in WM_Disable()
129 WM_CHECK_RESULT(result); in WM_Disable()
135 result = WMi_SendCommand(WM_APIID_DISABLE, 0); in WM_Disable()
136 WM_CHECK_RESULT(result); in WM_Disable()
[all …]
Dwm_dcf.c38 WMErrCode result; in WM_StartDCF() local
42 result = WMi_CheckState(WM_STATE_CHILD); in WM_StartDCF()
43 WM_CHECK_RESULT(result); in WM_StartDCF()
77 result = WMi_SendCommand(WM_APIID_START_DCF, 2, (u32)recvBuf, (u32)recvBufSize); in WM_StartDCF()
78 WM_CHECK_RESULT(result); in WM_StartDCF()
102 WMErrCode result; in WM_SetDCFData() local
107 result = WMi_CheckState(WM_STATE_DCF_CHILD); in WM_SetDCFData()
108 WM_CHECK_RESULT(result); in WM_SetDCFData()
140 result = WMi_SendCommand(WM_APIID_SET_DCF_DATA, 4, in WM_SetDCFData()
142 WM_CHECK_RESULT(result); in WM_SetDCFData()
[all …]
Dwm_sync.c34 WMErrCode result; in WM_SetIndCallback() local
41 result = WMi_CheckInitialized(); in WM_SetIndCallback()
42 if (result != WM_ERRCODE_SUCCESS) in WM_SetIndCallback()
46 return result; in WM_SetIndCallback()
71 WMErrCode result; in WM_SetPortCallback() local
103 result = WMi_CheckInitialized(); in WM_SetPortCallback()
104 if (result != WM_ERRCODE_SUCCESS) in WM_SetPortCallback()
108 return result; in WM_SetPortCallback()
143 WMErrCode result; in WM_ReadStatus() local
147 result = WMi_CheckInitialized(); in WM_ReadStatus()
[all …]
/TwlSDK-5.1.0/build/demos/math/misc-1/src/
Dmain.c178 int result; in MathTest() local
179 result = MATH_ABS(a[i]); in MathTest()
180 PrintResultEq(result, result_abs[i], flag); in MathTest()
181 OS_TPrintf("MATH_ABS(%d) = %d\n", a[i], result); in MathTest()
185 int result; in MathTest() local
186 result = MATH_IAbs(a[i]); in MathTest()
187 PrintResultEq(result, result_abs[i], flag); in MathTest()
188 OS_TPrintf("MATH_IAbs(%d) = %d\n", a[i], result); in MathTest()
198 double result; in MathTest() local
199 result = MATH_ABS(a[i]); in MathTest()
[all …]
/TwlSDK-5.1.0/build/demos/math/dgt-1/src/
Dmain.c204 u8 result; in DigestTest() local
206 result = MATH_CalcChecksum8(a[i], l[i]); in DigestTest()
207 PrintResultEq(result, result_checksum8[i], flag); in DigestTest()
208 OS_TPrintf("MATH_Checksum8[%d] = %02x\n", i, result); in DigestTest()
212 MATH_Checksum8Update(&context, &result, sizeof(result)); in DigestTest()
214 result = MATH_Checksum8GetHash(&context); in DigestTest()
215 PrintResultEq(result, 0, flag); in DigestTest()
216 OS_TPrintf(" Check Value = %02x\n", result); in DigestTest()
243 u8 result; in DigestTest() local
246 result = MATH_CalcChecksum8(((u8 *)sBigArray) + offset[i], l[i]); in DigestTest()
[all …]
/TwlSDK-5.1.0/build/libraries/snd/ARM9.TWL/src/
Dsndex.c92 static void SyncCallback (SNDEXResult result, void* arg);
96 static void ReplyCallback (SNDEXResult result);
180 SNDEXResult result = CheckState(); in SNDEXi_GetMuteAsync() local
181 if (result != SNDEX_RESULT_SUCCESS) in SNDEXi_GetMuteAsync()
183 return result; in SNDEXi_GetMuteAsync()
211 SNDEXResult result; in SNDEXi_GetMute() local
226 result = SNDEXi_GetMuteAsync(mute, SyncCallback, (void*)(&msgQ)); in SNDEXi_GetMute()
227 if (result == SNDEX_RESULT_SUCCESS) in SNDEXi_GetMute()
229 (void)OS_ReceiveMessage(&msgQ, (OSMessage*)(&result), OS_MESSAGE_BLOCK); in SNDEXi_GetMute()
231 return result; in SNDEXi_GetMute()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/camera/camera-4/src/
Dmain.c31 static void CameraIntrVsync(CAMERAResult result);
32 static void CameraIntrError(CAMERAResult result);
33 static void CameraIntrReboot(CAMERAResult result);
92 CAMERAResult result; in TwlMain() local
205 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
206 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
211 result = CAMERA_I2CActivate(current); in TwlMain()
212 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
217 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
222 result = CAMERA_I2CFlip(current, CAMERA_FLIP_VERTICAL); in TwlMain()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/camera/camera-1/src/
Dmain.c31 static void CameraIntrVsync(CAMERAResult result);
32 static void CameraIntrError(CAMERAResult result);
33 static void CameraIntrReboot(CAMERAResult result);
80 CAMERAResult result; in TwlMain() local
206 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
207 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
210 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
217 result = CAMERA_I2CActivate(current); in TwlMain()
218 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
220 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/mp_shared/wh/
Dwh.c452 #define WH_REPORT_FAILURE(result) \ argument
455 #result, \
456 WH_GetWMErrCodeName(result)); \
457 WH_SetError(result); }while(0)
466 #define WH_REPORT_FAILURE(result) WH_SetError(result) argument
489 static const char *WH_GetWMErrCodeName(int result) in WH_GetWMErrCodeName() argument
518 if (0 <= result && result < sizeof(errnames) / sizeof(char *)) in WH_GetWMErrCodeName()
520 return errnames[result]; in WH_GetWMErrCodeName()
700 #define WH_GetWMErrCodeName(result) ("") argument
701 #define WH_GetWMStateCodeName(result) ("") argument
[all …]
/TwlSDK-5.1.0/build/libraries/os/ARM9.TWL/src/
Dos_msJump.c116 int result; in OSi_JumpToMachineSetting() local
121 result = OS_SetSysParamToDeliverArg( (u16)dest ); in OSi_JumpToMachineSetting()
123 if(result != OS_DELIVER_ARG_SUCCESS ) in OSi_JumpToMachineSetting()
128 result = OS_EncodeDeliverArg(); in OSi_JumpToMachineSetting()
129 if(result != OS_DELIVER_ARG_SUCCESS ) in OSi_JumpToMachineSetting()
247 BOOL result = FALSE; in OS_JumpToInternetSetting() local
251 result = OSi_JumpToNetworkSettngDirect(); in OS_JumpToInternetSetting()
258 return result; in OS_JumpToInternetSetting()
275 BOOL result = FALSE; in OS_JumpToEULAViewer() local
279 result = OSi_JumpToEulaDirect(); in OS_JumpToEULAViewer()
[all …]
/TwlSDK-5.1.0/build/libraries/fs/common/src/
Dfs_archive_fatfs.c475 FS_NotifyArchiveAsyncEnd(context->arc, FSi_ConvertError(buffer->header.result)); in FSi_FATFSAsyncDone()
509 FSResult result = FS_RESULT_ERROR; in FSi_FATFS_GetPathInfo() local
518 result = FS_RESULT_INVALID_PARAMETER; in FSi_FATFS_GetPathInfo()
532 result = FS_RESULT_SUCCESS; in FSi_FATFS_GetPathInfo()
536 result = FSi_ConvertError(tls->result); in FSi_FATFS_GetPathInfo()
540 return result; in FSi_FATFS_GetPathInfo()
557 FSResult result = FS_RESULT_ERROR; in FSi_FATFS_SetPathInfo() local
571 result = FS_RESULT_INVALID_PARAMETER; in FSi_FATFS_SetPathInfo()
575 result = FS_RESULT_INVALID_PARAMETER; in FSi_FATFS_SetPathInfo()
579 result = FS_RESULT_SUCCESS; in FSi_FATFS_SetPathInfo()
[all …]
/TwlSDK-5.1.0/build/libraries/ctrdg/ARM9/src/
Dctrdg_flash_AT29LV512.c120 u32 result; in CTRDGi_EraseFlashChipCoreAT() local
146 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_CHIP_ERASE, (u8 *)CTRDG_AGB_FLASH_ADR, 0xff); in CTRDGi_EraseFlashChipCoreAT()
154 return result; in CTRDGi_EraseFlashChipCoreAT()
163 u32 result; in CTRDGi_EraseFlashSectorCoreAT() local
194 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_PROGRAM, dst, 0xff); in CTRDGi_EraseFlashSectorCoreAT()
195 if (result) in CTRDGi_EraseFlashSectorCoreAT()
196 result = (u16)((result & 0xff00) | CTRDG_BACKUP_PHASE_SECTOR_ERASE); in CTRDGi_EraseFlashSectorCoreAT()
203 return result; in CTRDGi_EraseFlashSectorCoreAT()
208 u32 result; in CTRDGi_EraseFlash4KBCoreAT() local
224 result = CTRDGi_EraseFlashSectorAT(p_secNo); in CTRDGi_EraseFlash4KBCoreAT()
[all …]
Dctrdg_flash_LE39FW512.c126 u32 result; in CTRDGi_EraseFlashChipCoreLE() local
151 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_CHIP_ERASE, (u8 *)CTRDG_AGB_FLASH_ADR, 0xff); in CTRDGi_EraseFlashChipCoreLE()
157 return result; in CTRDGi_EraseFlashChipCoreLE()
165 u32 result; in CTRDGi_EraseFlashSectorCoreLE() local
197 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_SECTOR_ERASE, adr, 0xff); in CTRDGi_EraseFlashSectorCoreLE()
204 return result; in CTRDGi_EraseFlashSectorCoreLE()
209 u16 result; in CTRDGi_ProgramFlashByteLE() local
215 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_PROGRAM, dst, *src); in CTRDGi_ProgramFlashByteLE()
216 return result; in CTRDGi_ProgramFlashByteLE()
225 u32 result; in CTRDGi_WriteFlashSectorCoreLE() local
[all …]
Dctrdg_flash_MX29L010.c108 u32 result; in CTRDGi_EraseFlashChipCoreMX() local
134 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_CHIP_ERASE, (u8 *)CTRDG_AGB_FLASH_ADR, 0xff); in CTRDGi_EraseFlashChipCoreMX()
142 return result; in CTRDGi_EraseFlashChipCoreMX()
150 u32 result; in CTRDGi_EraseFlashSectorCoreMX() local
188 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_SECTOR_ERASE, adr, 0xff); in CTRDGi_EraseFlashSectorCoreMX()
189 if (((result & (CTRDG_BACKUP_RESULT_ERROR | CTRDG_BACKUP_RESULT_Q5TIMEOUT)) != 0) && in CTRDGi_EraseFlashSectorCoreMX()
202 return result; in CTRDGi_EraseFlashSectorCoreMX()
207 u16 result; in CTRDGi_ProgramFlashByteMX() local
217 result = CTRDGi_PollingSR(CTRDG_BACKUP_PHASE_PROGRAM, dst, *src); in CTRDGi_ProgramFlashByteMX()
222 return result; in CTRDGi_ProgramFlashByteMX()
[all …]
Dctrdg_flash_common.c145 u16 result; in CTRDGi_PollingSR512kCOMMON() local
150 result = CTRDG_BACKUP_RESULT_OK; in CTRDGi_PollingSR512kCOMMON()
171 result = (u16)(CTRDG_BACKUP_RESULT_ERROR | CTRDG_BACKUP_RESULT_TIMEOUT | phase); in CTRDGi_PollingSR512kCOMMON()
177 result = CTRDG_BACKUP_RESULT_PULLEDOUT; in CTRDGi_PollingSR512kCOMMON()
181 return result; in CTRDGi_PollingSR512kCOMMON()
189 u16 result; in CTRDGi_PollingSR1MCOMMON() local
194 result = CTRDG_BACKUP_RESULT_OK; in CTRDGi_PollingSR1MCOMMON()
216 result = in CTRDGi_PollingSR1MCOMMON()
231 result = (u16)(CTRDG_BACKUP_RESULT_ERROR | CTRDG_BACKUP_RESULT_TIMEOUT | phase); in CTRDGi_PollingSR1MCOMMON()
237 result = CTRDG_BACKUP_RESULT_PULLEDOUT; in CTRDGi_PollingSR1MCOMMON()
[all …]
/TwlSDK-5.1.0/build/demos/wireless_shared/wh/
Dwh.c505 #define WH_REPORT_FAILURE(result) \ argument
508 #result, \
509 WH_GetWMErrCodeName(result)); \
510 WH_SetError(result); }while(0)
519 #define WH_REPORT_FAILURE(result) WH_SetError(result) argument
542 static const char *WH_GetWMErrCodeName(int result) in WH_GetWMErrCodeName() argument
571 if (0 <= result && result < sizeof(errnames) / sizeof(char *)) in WH_GetWMErrCodeName()
573 return errnames[result]; in WH_GetWMErrCodeName()
758 #define WH_GetWMErrCodeName(result) ("") argument
759 #define WH_GetWMStateCodeName(result) ("") argument
[all …]
/TwlSDK-5.1.0/build/demos.TWL/camera/simpleShoot-1/src/
Dmain.c35 static void CameraIntrVsync(CAMERAResult result);
36 static void CameraIntrError(CAMERAResult result);
37 static void CameraIntrReboot(CAMERAResult result);
97 CAMERAResult result; in CameraInit() local
98 result = CAMERA_Init(); in CameraInit()
99 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
101 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
104 result = CAMERA_I2CEffect(current_camera, CAMERA_EFFECT_NONE); in CameraInit()
105 if (result != CAMERA_RESULT_SUCCESS) in CameraInit()
107 OS_TPrintf("CAMERA_I2CEffect was failed. (%d)\n", result); in CameraInit()
[all …]
/TwlSDK-5.1.0/build/demos/gx/UnitTours/DEMOLib/src/
DDEMOHostio.c297 FSResult result = FS_RESULT_ERROR; in DEMOi_HIO_GetPathInfo() local
303 result = DEMOi_HIO_ConvertError(ISTDFIOGetAttribute(tmppath, stat)); in DEMOi_HIO_GetPathInfo()
304 if (result == FS_RESULT_ERROR) in DEMOi_HIO_GetPathInfo()
317 return result; in DEMOi_HIO_GetPathInfo()
331 FSResult result = FS_RESULT_ERROR; in DEMOi_HIO_CreateFile() local
339 result = FS_RESULT_NO_MORE_RESOURCE; in DEMOi_HIO_CreateFile()
348 result = DEMOi_HIO_ConvertError(ISTDFIOOpen(file, tmppath, flags)); in DEMOi_HIO_CreateFile()
349 if (result == FS_RESULT_SUCCESS) in DEMOi_HIO_CreateFile()
355 return result; in DEMOi_HIO_CreateFile()
369 FSResult result = FS_RESULT_ERROR; in DEMOi_HIO_DeleteFile() local
[all …]
/TwlSDK-5.1.0/build/demos.TWL/camera/camera-2/src/
Dmain.c33 static void CameraIntrVsync(CAMERAResult result);
34 static void CameraIntrError(CAMERAResult result);
35 static void CameraIntrReboot(CAMERAResult result);
205 CAMERAResult result; in TwlMain() local
208 result = CAMERA_I2CActivateAsync(current, NULL, NULL); in TwlMain()
209 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
230 CAMERAResult result; in CameraInit() local
231 result = CAMERA_Init(); in CameraInit()
232 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
234 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
[all …]
/TwlSDK-5.1.0/build/demos/crypto/rc4-3/src/
Dmain.c261 u8 result[TEST_BUFFER_SIZE]; in RC4EncText() local
269 encoded_len = EncodeRC4(&enc_context, d[i], len, result, sizeof(result)); in RC4EncText()
274 PrintBinary(result, encoded_len); in RC4EncText()
278 decoded_len = DecodeRC4(&dec_context, result, encoded_len, result2, sizeof(result2)); in RC4EncText()
293 u8 result[TEST_BUFFER_SIZE]; in RC4EncText() local
307 encoded_len = EncodeRC4(&enc_context, d, len, result, 0); in RC4EncText()
311 encoded_len = EncodeRC4(&enc_context, d, len, result, 1); in RC4EncText()
315 encoded_len = EncodeRC4(&enc_context, d, len, result, len + RC4ENC_ADDITIONAL_SIZE - 1); in RC4EncText()
319 encoded_len = EncodeRC4(&enc_context, d, len, result, len + RC4ENC_ADDITIONAL_SIZE); in RC4EncText()
327 decoded_len = DecodeRC4(&dec_context, result, encoded_len, result2, 0); in RC4EncText()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/camera/camera-3/src/
Dmain.c31 static void CameraIntrVsync(CAMERAResult result);
32 static void CameraIntrError(CAMERAResult result);
33 static void CameraIntrReboot(CAMERAResult result);
154 CAMERAResult result; in TwlMain() local
269 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
270 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
275 result = CAMERA_I2CActivate(current); in TwlMain()
276 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
281 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
301 CAMERAResult result; in CameraInit() local
[all …]
/TwlSDK-5.1.0/build/libraries/wfs/common/src/
Dwfs_archive.c36 FSResult result = FS_RESULT_ERROR; in WFSi_ArchiveReadCallback() local
42 result = FS_RESULT_SUCCESS; in WFSi_ArchiveReadCallback()
44 return result; in WFSi_ArchiveReadCallback()
61 FSResult result = FS_RESULT_ERROR; in WFSi_ArchiveReadDoneCallback() local
65 result = FS_RESULT_SUCCESS; in WFSi_ArchiveReadDoneCallback()
67 FS_NotifyArchiveAsyncEnd(FS_GetAttachedArchive(file), result); in WFSi_ArchiveReadDoneCallback()
83 FSResult result = FS_RESULT_ERROR; in WFSi_RomArchiveProc() local
93 result = FS_RESULT_SUCCESS; in WFSi_RomArchiveProc()
104 result = FS_RESULT_PROC_ASYNC; in WFSi_RomArchiveProc()
110 result = FS_RESULT_UNSUPPORTED; in WFSi_RomArchiveProc()
[all …]
/TwlSDK-5.1.0/build/libraries/mb/common/src/
Dmb_wm.c118 WMErrCode result; in MBi_WMStartConnect() local
131 result = WM_StartConnect(MBi_WMStateOutStartConnect, bssDesc, NULL); in MBi_WMStartConnect()
133 if (result != WM_ERRCODE_OPERATING) in MBi_WMStartConnect()
191 WMErrCode result; in MBi_ChildStartMP() local
196 result = WM_SetPortCallback(WM_PORT_BT, ChildPortCallback, NULL); in MBi_ChildStartMP()
197 if (result != WM_ERRCODE_SUCCESS) in MBi_ChildStartMP()
199 MBi_WMApiErrorCallback(WM_APIID_START_MP, result); in MBi_ChildStartMP()
203result = WM_StartMPEx(ChildStateOutStartMP, recvBuf, wmWork->recvBufSize, sendBuf, wmWork->sendBuf… in MBi_ChildStartMP()
210 if (result != WM_ERRCODE_OPERATING) in MBi_ChildStartMP()
212 MBi_WMApiErrorCallback(WM_APIID_START_MP, result); in MBi_ChildStartMP()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/dsp/yuvToRgb/src/
Dmain.c47 static void CameraIntrVsync(CAMERAResult result);
48 static void CameraIntrError(CAMERAResult result);
49 static void CameraIntrReboot(CAMERAResult result);
159 void CameraIntrError(CAMERAResult result) in CameraIntrError() argument
161 #pragma unused(result) in CameraIntrError()
171 void CameraIntrReboot(CAMERAResult result) in CameraIntrReboot() argument
173 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraIntrReboot()
185 void CameraIntrVsync(CAMERAResult result) in CameraIntrVsync() argument
187 #pragma unused(result) in CameraIntrVsync()
261 CAMERAResult result; in InitializeCamera() local
[all …]

1234567