Lines Matching refs:result

62         FSStatus result = FSAddClient(&_DEMOFSClient, FS_RET_ALL_ERROR);  in _DemoInitFS()  local
63 if (result != FS_STATUS_OK) in _DemoInitFS()
65 DEMOPrintf("DEMOFS Error: FSAddClient() returned: %d!\n", result); in _DemoInitFS()
95 FSStatus result = FS_STATUS_OK; in DEMOFSOpenFileMode() local
104 result = _DemoInitFS(); in DEMOFSOpenFileMode()
105 if (DEMO_FS_RESULT_OK != result) in DEMOFSOpenFileMode()
126 result = FSOpenFile(&_DEMOFSClient, pCmd, openPath, mode, info, FS_RET_ALL_ERROR); in DEMOFSOpenFileMode()
130 if (FS_STATUS_OK != result) in DEMOFSOpenFileMode()
132 DEMOPrintf("DEMOFS Error: FSOpenFile(%s) returned %d!\n", path, result); in DEMOFSOpenFileMode()
144 FSStatus result; in DEMOFSGetLength() local
155 result = FSGetStatFile(&_DEMOFSClient, pCmd, *fileInfo, &stat, FS_RET_ALL_ERROR); in DEMOFSGetLength()
159 if(result != FS_STATUS_OK) in DEMOFSGetLength()
161 DEMOPrintf("DEMOFS Error: FSStatFile returned %d\n", result); in DEMOFSGetLength()
173 FSStatus result; in DEMOFSRead() local
184result = FSReadFileWithPos(&_DEMOFSClient, pCmd, addr, (u32)length, 1, (u32)offset, *fileInfo, 0, … in DEMOFSRead()
188 if( 0 > result ) in DEMOFSRead()
190 DEMOPrintf("DEMOFS Error: FSReadFile returned: %d\n", result); in DEMOFSRead()
198 FSStatus result; in DEMOFSWrite() local
209result = FSWriteFile(&_DEMOFSClient, pCmd, (void *)addr, 1, (u32)length, *fileInfo, 0, FS_RET_ALL_… in DEMOFSWrite()
213 if( 0 > result ) in DEMOFSWrite()
215 DEMOPrintf("DEMOFS Error: FSWriteFile returned: %d\n", result); in DEMOFSWrite()
218 else if (result != length) in DEMOFSWrite()
220 …("DEMOFS Error: FSWriteFile actual write count %d != requested write count %d.\n", result, length); in DEMOFSWrite()
228 FSStatus result; in DEMOFSCloseFile() local
239 result = FSCloseFile(&_DEMOFSClient, pCmd, *fileInfo, FS_RET_ALL_ERROR); in DEMOFSCloseFile()
243 if(FS_STATUS_OK != result ) in DEMOFSCloseFile()
245 DEMOPrintf("DEMOFS Error: FSCloseFile returned %d\n", result); in DEMOFSCloseFile()
315 FSStatus result; in DEMOFSScanDir() local
329 result = _DemoInitFS(); in DEMOFSScanDir()
330 if (DEMO_FS_RESULT_OK != result) in DEMOFSScanDir()
359 result = FSOpenDir(&_DEMOFSClient, pCmd, dirPath, &dh, FS_RET_ALL_ERROR); in DEMOFSScanDir()
360 if(result != FS_STATUS_OK) in DEMOFSScanDir()
363 DEMOPrintf("DEMO Error: FSOpenDir(%s) returned: %d!\n", dirPath, result); in DEMOFSScanDir()
371 (result = FSReadDir(&_DEMOFSClient, pCmd, dh, &dirent, FS_RET_ALL_ERROR)) ) in DEMOFSScanDir()
373 if (FS_STATUS_OK != result) in DEMOFSScanDir()
376 DEMOPrintf("DEMO Error: FSReadDir(%s) returned: %d!\n", dirPath, result); in DEMOFSScanDir()
416 result = FSCloseDir(&_DEMOFSClient, pCmd, dh, FS_RET_ALL_ERROR); in DEMOFSScanDir()
420 if(result != FS_STATUS_OK) in DEMOFSScanDir()
436 FSStatus result = FS_STATUS_OK; in DEMOFSRename() local
446 result = _DemoInitFS(); in DEMOFSRename()
447 if (DEMO_FS_RESULT_OK != result) in DEMOFSRename()
475 result = FSRename(&_DEMOFSClient, pCmd, prefixedOldPath, prefixedNewPath, FS_RET_ALL_ERROR); in DEMOFSRename()
479 if (FS_STATUS_OK != result) in DEMOFSRename()
481 DEMOPrintf("DEMOFS Error: FSRename(%s,%s) returned %d!\n", oldpath, newpath, result); in DEMOFSRename()
490 FSStatus result = FS_STATUS_OK; in DEMOFSRemove() local
499 result = _DemoInitFS(); in DEMOFSRemove()
500 if (DEMO_FS_RESULT_OK != result) in DEMOFSRemove()
521 result = FSRemove(&_DEMOFSClient, pCmd, prefixedPath, FS_RET_ALL_ERROR); in DEMOFSRemove()
525 if (FS_STATUS_OK != result && !ignoreError) in DEMOFSRemove()
527 DEMOPrintf("DEMOFS Error: FSRemove(%s) returned %d!\n", path, result); in DEMOFSRemove()