| /RvlSDK-3.1/build/demos/carddemo/src/ |
| D | save.c | 45 BOOL result; in LoadFile() local 48 result = DVDOpen(name, &fileInfo); in LoadFile() 49 if (!result) in LoadFile() 55 result = DVDRead(&fileInfo, data, *length, 0); in LoadFile() 56 if (!result) in LoadFile() 67 s32 result; in main() local 98 result = CARDMountAsync(CARD_CHAN, CardWorkArea, 0, 0); in main() 99 if (result < 0) in main() 101 OSReport("failed. (%d)\n", result); in main() 104 while ((result = CARDGetResultCode(CARD_CHAN)) == CARD_RESULT_BUSY) in main() [all …]
|
| D | format.c | 46 s32 result; in main() local 63 result = CARDMountAsync(CARD_CHAN, CardWorkArea, 0, 0); in main() 64 if (result < 0) in main() 66 OSReport("failed. (%d)\n", result); in main() 69 while ((result = CARDGetResultCode(CARD_CHAN)) == CARD_RESULT_BUSY) in main() 73 switch (result) in main() 76 OSReport("done. (%d)\n", result); in main() 80 OSReport("failed. (%d)\n", result); in main() 83 OSReport("failed. (%d)\n", result); in main() 90 result = CARDFormatAsync(CARD_CHAN, 0); in main() [all …]
|
| D | create.c | 55 s32 result; in main() local 78 result = CARDMountAsync(CARD_CHAN, CardWorkArea, 0, 0); in main() 79 if (result < 0) in main() 81 OSReport("failed. (%d)\n", result); in main() 84 while ((result = CARDGetResultCode(CARD_CHAN)) == CARD_RESULT_BUSY) in main() 88 switch (result) in main() 92 OSReport("done. (%d)\n", result); in main() 94 result = CARDCheckAsync(CARD_CHAN, 0); in main() 95 if (result < 0) in main() 98 OSReport("failed. (%d)\n", result); in main() [all …]
|
| D | list.c | 67 s32 result; in main() local 87 result = CARDMountAsync(CARD_CHAN, CardWorkArea, 0, 0); in main() 88 if (result < 0) in main() 90 OSReport("failed. (%d)\n", result); in main() 93 while ((result = CARDGetResultCode(CARD_CHAN)) == CARD_RESULT_BUSY) in main() 97 switch (result) in main() 101 OSReport("done. (%d)\n", result); in main() 103 result = CARDCheckAsync(CARD_CHAN, 0); in main() 104 if (result < 0) in main() 107 OSReport("failed. (%d)\n", result); in main() [all …]
|
| D | create-bnr-4icon.c | 52 static void PrintResult(s32 result); 155 s32 result; in CreateFile() local 166 result = CARDCreate(chan, FileName, secSize*blockSize, &FileInfo); in CreateFile() 167 if (result < 0) in CreateFile() 170 PrintResult(result); in CreateFile() 178 result = CARDGetStatus(chan, FileInfo.fileNo, &stat); in CreateFile() 179 if (result < 0) in CreateFile() 182 PrintResult(result); in CreateFile() 197 result = CARDWrite(&FileInfo, CARDData, (s32) stat.length, 0); in CreateFile() 198 if (result < 0) in CreateFile() [all …]
|
| D | create-1icon.c | 57 static void PrintResult(s32 result); 186 s32 result; in CreateFile() local 197 result = CARDCreate(chan, FileName, secSize*blockSize, &FileInfo); in CreateFile() 198 if (result < 0) in CreateFile() 201 PrintResult(result); in CreateFile() 209 result = CARDGetStatus(chan, FileInfo.fileNo, &stat); in CreateFile() 210 if (result < 0) in CreateFile() 213 PrintResult(result); in CreateFile() 239 result = CARDWrite(&FileInfo, CARDData, (s32) stat.length, 0); in CreateFile() 240 if (result < 0) in CreateFile() [all …]
|
| D | create-8icon.c | 57 static void PrintResult(s32 result); 201 s32 result; in CreateFile() local 212 result = CARDCreate(chan, FileName, secSize*blockSize, &FileInfo); in CreateFile() 213 if (result < 0) in CreateFile() 216 PrintResult(result); in CreateFile() 224 result = CARDGetStatus(chan, FileInfo.fileNo, &stat); in CreateFile() 225 if (result < 0) in CreateFile() 228 PrintResult(result); in CreateFile() 254 result = CARDWrite(&FileInfo, CARDData, (s32) stat.length, 0); in CreateFile() 255 if (result < 0) in CreateFile() [all …]
|
| D | cardutil.c | 56 s32 result; member 192 s32 result; in DoMount() local 203 result = CARDMount(slot, workArea, 0); in DoMount() 204 switch (result) in DoMount() 213 result = CARDCheck(slot); in DoMount() 228 if (result == CARD_RESULT_READY) in DoMount() 230 result = CARDFreeBlocks(slot, &CardControl.byteNotUsed, &CardControl.filesNotUsed); in DoMount() 232 return result; in DoMount() 256 s32 result; in DoFormat() local 264 result = CARDFormat(slot); in DoFormat() [all …]
|
| /RvlSDK-3.1/build/demos/nanddemo/src/ |
| D | async.c | 53 static void callback(s32 result, NANDCommandBlock *block); 57 static void openCallback (s32 result, NANDCommandBlock *block); 58 static void writeCallback (s32 result, NANDCommandBlock *block); 59 static void closeCallback (s32 result, NANDCommandBlock *block); 60 static void deleteCallback(s32 result, NANDCommandBlock *block); 61 static void finishCallback(s32 result, NANDCommandBlock *block); 82 static void callback(s32 result, NANDCommandBlock *block) in callback() argument 85 ((struct UserDataType*)NANDGetUserData(block))->resultCode = result; in callback() 110 static void openCallback(s32 result, NANDCommandBlock*) in openCallback() argument 112 if(result==NAND_RESULT_OK) in openCallback() [all …]
|
| D | directory.c | 136 s32 result = NANDCreateDir(path, PERM, ATTR); in createDir() local 137 if(result != NAND_RESULT_OK) in createDir() 139 printErrMsg(result); in createDir() 147 s32 result = NANDDelete(path); in deleteDir() local 148 if(result != NAND_RESULT_OK) in deleteDir() 150 printErrMsg(result); in deleteDir() 158 s32 result = NANDChangeDir(path); in changeDir() local 159 if(result != NAND_RESULT_OK) in changeDir() 161 printErrMsg(result); in changeDir() 170 s32 result = NANDGetCurrentDir(path); in printCurrentDir() local [all …]
|
| /RvlSDK-3.1/build/demos/encdemo/src/ |
| D | validate.c | 32 ENCResult result = (*func)(NULL, &dstlen, mbs, &srclen); in ValidateFuncToUnicode() local 33 if (result != ENC_OK) in ValidateFuncToUnicode() 35 OSReport("ERROR: %d\n", result); in ValidateFuncToUnicode() 43 result = (*func)(dst, &dstlen, mbs, &srclen); in ValidateFuncToUnicode() 44 if (result != ENC_OK) in ValidateFuncToUnicode() 46 OSReport("ERROR: %d\n", result); in ValidateFuncToUnicode() 74 ENCResult result = (*func)(NULL, &dstlen, wcs, &srclen); in ValidateFuncFromUnicode() local 75 if (result != ENC_OK) in ValidateFuncFromUnicode() 77 OSReport("ERROR: %d\n", result); in ValidateFuncFromUnicode() 85 result = (*func)(dst, &dstlen, wcs, &srclen); in ValidateFuncFromUnicode() [all …]
|
| D | sample.c | 80 ENCResult result; in main() local 95 result = ENCConvertFromInternalEncoding(&lenContext, NULL, &dstlen, wcs, &srclen); in main() 96 OSReport("result: %d, dstlen: %d, srclen: %d\n", result, dstlen, srclen); in main() 97 result = ENCConvertFromInternalEncoding(&convContext, buffer8, &dstlen, wcs, &srclen); in main() 98 OSReport("result: %d, dstlen: %d, srclen: %d\n", result, dstlen, srclen); in main() 116 result = ENCConvertToInternalEncoding(&lenContext, NULL, &dstlen, mbs, &srclen); in main() 117 OSReport("result: %d, dstlen: %d, srclen: %d\n", result, dstlen, srclen); in main() 118 result = ENCConvertToInternalEncoding(&convContext, buffer16, &dstlen, mbs, &srclen); in main() 119 OSReport("result: %d, dstlen: %d, srclen: %d\n", result, dstlen, srclen); in main()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkMem2/src/ |
| D | static.c | 45 BOOL result; in RsoLoad() local 49 result = DVDOpen(moduleName, &fileInfo); in RsoLoad() 50 if (!result) in RsoLoad() 54 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 55 if (!result) in RsoLoad() 73 BOOL result; in RsoLoadMem2() local 77 result = DVDOpen(moduleName, &fileInfo); in RsoLoadMem2() 78 if (!result) in RsoLoadMem2() 82 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 83 if (!result) in RsoLoadMem2() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/MakeInc/src/ |
| D | static.c | 57 BOOL result; in RsoLoad() local 61 result = DVDOpen(moduleName, &fileInfo); in RsoLoad() 62 if (!result) in RsoLoad() 66 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 67 if (!result) in RsoLoad() 85 BOOL result; in StaticRsoLoad() local 88 result = DVDOpen(moduleName, &fileInfo); in StaticRsoLoad() 89 if (!result) in StaticRsoLoad() 93 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad() 94 if (!result) in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkJump/src/ |
| D | static.c | 64 BOOL result; in RsoLoad() local 68 result = DVDOpen(moduleName, &fileInfo); in RsoLoad() 69 if (!result) in RsoLoad() 73 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 74 if (!result) in RsoLoad() 92 BOOL result; in RsoLoadMem2() local 96 result = DVDOpen(moduleName, &fileInfo); in RsoLoadMem2() 97 if (!result) in RsoLoadMem2() 101 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 102 if (!result) in RsoLoadMem2() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkFar/src/ |
| D | static.c | 109 BOOL result; in RsoLoad() local 113 result = DVDOpen(moduleName, &fileInfo); in RsoLoad() 114 if (!result) in RsoLoad() 118 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 119 if (!result) in RsoLoad() 137 BOOL result; in RsoLoadMem2() local 141 result = DVDOpen(moduleName, &fileInfo); in RsoLoadMem2() 142 if (!result) in RsoLoadMem2() 146 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 147 if (!result) in RsoLoadMem2() [all …]
|
| /RvlSDK-3.1/build/tools/soundfile/src/ |
| D | soundfile.c | 147 u32 data, result; in getFileType() local 152 result = SOUND_FILE_FORMAT_ERROR; in getFileType() 164 result = SOUND_FILE_AIFF; in getFileType() 174 result = SOUND_FILE_WAVE; in getFileType() 181 return result; in getFileType() 189 u32 result = getFileType(path, soundinfo); in getSoundInfo() local 191 switch (result) in getSoundInfo() 195 result = getAiffInfo(path, soundinfo, NULL); in getSoundInfo() 201 result = getWaveInfo(path, soundinfo, NULL); in getSoundInfo() 206 return result; in getSoundInfo() [all …]
|
| /RvlSDK-3.1/build/demos/arcdemo/src/ |
| D | arctest1.c | 37 void callback(s32 result, DVDFileInfo* finfo); 58 BOOL result; in chdirOpenAllocRead() local 70 result = ARCChangeDir(&Arc, dirName); in chdirOpenAllocRead() 74 result = DVDChangeDir(dirName); in chdirOpenAllocRead() 79 if (result) in chdirOpenAllocRead() 91 result = ARCOpen(&Arc, pathName, &afinfo); in chdirOpenAllocRead() 95 result = DVDOpen(pathName, &finfo); in chdirOpenAllocRead() 100 if (result) in chdirOpenAllocRead() 149 BOOL result; in Read() local 155 result = DVDFastOpen(entrynum, &finfo); in Read() [all …]
|
| D | arctest2.c | 37 void callback(s32 result, DVDFileInfo* finfo); 60 BOOL result; in chdirOpenAllocRead() local 71 result = ARCChangeDir(&Arc, dirName); in chdirOpenAllocRead() 75 result = DVDChangeDir(dirName); in chdirOpenAllocRead() 80 if (result) in chdirOpenAllocRead() 92 result = ARCOpen(&Arc, pathName, &afinfo); in chdirOpenAllocRead() 96 result = DVDOpen(pathName, &finfo); in chdirOpenAllocRead() 101 if (result) in chdirOpenAllocRead() 166 BOOL result; in Read() local 170 result = DVDFastOpen(entrynum, &finfo); in Read() [all …]
|
| /RvlSDK-3.1/build/demos/dvddemo/src/ |
| D | errorhandling.c | 142 static void MNU_read(DEMOWinMenuInfo *menu, u32 item, u32 *result); 143 static void MNU_seek(DEMOWinMenuInfo *menu, u32 item, u32 *result); 144 static void MNU_cancel(DEMOWinMenuInfo *menu, u32 item, u32 *result); 145 static void MNU_change_disk(DEMOWinMenuInfo *menu, u32 item, u32 *result); 146 static void MNU_get_disk_id(DEMOWinMenuInfo *menu, u32 item, u32 *result); 148 static void MNU_pick_number(DEMOWinMenuInfo *menu, u32 item, u32 *result); 379 static void MNU_cancel(DEMOWinMenuInfo *menu, u32 item, u32 *result) in MNU_cancel() argument 381 #pragma unused(menu, item, result) in MNU_cancel() 386 static void readCallback(s32 result, DVDFileInfo* fileInfo) in readCallback() argument 390 if (result == DVD_RESULT_FATAL_ERROR) in readCallback() [all …]
|
| D | selectfile.c | 45 static void MNU_select_file(DEMOWinMenuInfo *menu, u32 item, u32 *result); 46 static void MNU_change_dir_up(DEMOWinMenuInfo *menu, u32 item, u32 *result); 47 static void MNU_change_dir(DEMOWinMenuInfo *menu, u32 item, u32 *result); 83 static void MNU_select_file(DEMOWinMenuInfo *menu, u32 item, u32 *result) in MNU_select_file() argument 87 *result = (u32)menu->items[item].name; in MNU_select_file() 120 static void MNU_change_dir_up(DEMOWinMenuInfo *menu, u32 item, u32 *result) in MNU_change_dir_up() argument 124 #pragma unused(result) in MNU_change_dir_up() 132 *result = 0; in MNU_change_dir_up() 143 static void MNU_change_dir(DEMOWinMenuInfo *menu, u32 item, u32 *result) in MNU_change_dir() argument 145 #pragma unused(result) in MNU_change_dir() [all …]
|
| /RvlSDK-3.1/build/demos/wpaddemo/src/ |
| D | memory.c | 106 static void ExtensionCallback( s32 chan, s32 result ) in ExtensionCallback() argument 111 if (result == WPAD_DEV_CORE || result == WPAD_DEV_FREESTYLE || result == WPAD_DEV_CLASSIC) in ExtensionCallback() 113 WPADControlDpd (chan, dpd[result], NULL); in ExtensionCallback() 114 WPADSetDataFormat(chan, fmt[result]); in ExtensionCallback() 146 static void ReadCallback( s32 chan, s32 result ) in ReadCallback() argument 157 …OSReport("chan[%d] result ==> err = %d, bytes: %d, time(ms): %d\n", chan, result, WPAD_MEM_GAMEDAT… in ReadCallback() 183 static void WriteCallback( s32 chan, s32 result ) in WriteCallback() argument 189 …OSReport("chan[%d] result ==> err = %d, bytes: %d, time(ms): %d\n", chan, result, WPAD_MEM_GAMEDAT… in WriteCallback() 206 s32 result; in memory() local 214 case WDATA: result = WPADWriteGameData(chan, p_buf, len, 0, WriteCallback); break; in memory() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkList/src/ |
| D | static.c | 45 BOOL result; in RsoLoad() local 49 result = DVDOpen(moduleName, &fileInfo); in RsoLoad() 50 if (!result) in RsoLoad() 54 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 55 if (!result) in RsoLoad() 73 BOOL result; in StaticRsoLoad() local 76 result = DVDOpen(moduleName, &fileInfo); in StaticRsoLoad() 77 if (!result) in StaticRsoLoad() 81 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad() 82 if (!result) in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkListFixed0/src/ |
| D | static.c | 44 BOOL result; in RsoLoadFixed() local 50 result = DVDOpen(moduleName, &fileInfo); in RsoLoadFixed() 51 if (!result) in RsoLoadFixed() 55 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadFixed() 56 if (!result) in RsoLoadFixed() 96 BOOL result; in StaticRsoLoad() local 99 result = DVDOpen(moduleName, &fileInfo); in StaticRsoLoad() 100 if (!result) in StaticRsoLoad() 104 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad() 105 if (!result) in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/reldemo/src/ |
| D | static.c | 119 BOOL result; in Load() local 124 result = DVDOpen(moduleName, &fileInfo); in Load() 125 if (!result) in Load() 129 result = DVDRead(&fileInfo, module, length, 0); in Load() 130 if (!result) in Load() 170 BOOL result; in main() local 183 result = DVDOpen(STRING_TABLE, &fileInfo); in main() 184 if (!result) in main() 188 result = DVDRead(&fileInfo, ptr, (s32) length, 0); in main() 189 if (!result) in main()
|