| /RvlSDK-3.1/build/libraries/cx/src/ |
| D | CXUncompression.c | 125 u32 length = flags & 0x7fU; in CXUncompressRL() local 128 length++; in CXUncompressRL() 129 if ( length > destCount ) in CXUncompressRL() 132 length = destCount; in CXUncompressRL() 135 destCount -= length; in CXUncompressRL() 139 } while ( --length > 0 ); in CXUncompressRL() 145 length += 3; in CXUncompressRL() 146 if ( length > destCount ) in CXUncompressRL() 149 length = destCount; in CXUncompressRL() 152 destCount -= length; in CXUncompressRL() [all …]
|
| D | CXStreamingUncompression.c | 38 context->length = 0; in CXInitUncompContextRL() 60 context->length = 0; in CXInitUncompContextLZ() 190 while ( context->length > 0 ) in CXReadUncompRL() 193 context->length--; in CXReadUncompRL() 203 else if ( context->length > 0 ) in CXReadUncompRL() 208 while ( context->length > 0 ) in CXReadUncompRL() 211 context->length--; in CXReadUncompRL() 223 context->length = (u16)(context->flags & 0x7F); in CXReadUncompRL() 226 context->length += 3; in CXReadUncompRL() 230 context->length += 1; in CXReadUncompRL() [all …]
|
| D | CXSecureUncompression.c | 127 s32 length = flags & 0x7f; in CXSecureUncompressRL() local 135 length++; in CXSecureUncompressRL() 136 if ( length > destCount ) in CXSecureUncompressRL() 141 srcCount -= length; in CXSecureUncompressRL() 147 destCount -= length; in CXSecureUncompressRL() 151 } while ( --length > 0 ); in CXSecureUncompressRL() 157 length += 3; in CXSecureUncompressRL() 158 if ( length > destCount ) in CXSecureUncompressRL() 164 destCount -= length; in CXSecureUncompressRL() 173 } while ( --length > 0 ); in CXSecureUncompressRL() [all …]
|
| /RvlSDK-3.1/build/demos/arcdemo/src/ |
| D | arctest2.c | 62 u32 length; in chdirOpenAllocRead() local 112 length = ARCGetLength(&afinfo); in chdirOpenAllocRead() 116 length = DVDGetLength(&finfo); in chdirOpenAllocRead() 119 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead() 123 if (OSRoundUp32B(length) != in chdirOpenAllocRead() 124 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), in chdirOpenAllocRead() 133 if (OSRoundUp32B(length) != in chdirOpenAllocRead() 134 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead() 143 for (i = 0; i < length; i++) in chdirOpenAllocRead() 167 u32 length; in Read() local [all …]
|
| D | arctest1.c | 61 u32 length; in chdirOpenAllocRead() local 111 length = ARCGetLength(&afinfo); in chdirOpenAllocRead() 116 length = DVDGetLength(&finfo); in chdirOpenAllocRead() 117 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead() 119 if (OSRoundUp32B(length) != DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead() 128 for (i = 0; i < length; i++) in chdirOpenAllocRead() 151 u32 length; in Read() local 162 length = OSRoundUp32B(DVDGetLength(&finfo)); in Read() 164 buf = OSAlloc(OSRoundUp32B(length)); in Read() 166 if ( length != DVDRead(&finfo, buf, (s32)length, 0) ) in Read()
|
| D | arctest3.c | 131 u32 length; in Read() local 142 length = OSRoundUp32B(DVDGetLength(&finfo)); in Read() 144 buf = OSAlloc(OSRoundUp32B(length)); in Read() 146 if ( length != DVDRead(&finfo, buf, (s32)length, 0) ) in Read()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkMem2/src/ |
| D | static.c | 44 s32 length; in RsoLoad() local 52 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 53 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 54 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 72 s32 length; in RsoLoadMem2() local 80 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 81 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 82 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 100 s32 length; in StaticRsoLoad() local 107 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.1/build/demos/carddemo/src/ |
| D | save.c | 42 static void* LoadFile(char* name, s32* length) in LoadFile() argument 53 *length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in LoadFile() 54 data = OSAllocFromArenaLo((u32) *length, 32); in LoadFile() 55 result = DVDRead(&fileInfo, data, *length, 0); in LoadFile() 71 s32 length; in main() local 83 data = LoadFile(argv[1], &length); in main() 154 length = (s32) ROUND(length, sectorSize); in main() 163 result = CARDCreateAsync(CARD_CHAN, argv[1], (u32) length, &fileInfo, 0); in main() 185 OSReport("length %d\n", stat.length); in main() 190 result = CARDWriteAsync(&fileInfo, data, length, 0, 0); in main()
|
| D | cardutil.c | 63 s32 length; // the total transfer bytes for the current command member 202 CardControl.length = CARD_XFER_MOUNT; in DoMount() 263 CardControl.length = CARD_XFER_FORMAT; in DoFormat() 284 CardControl.length = CARD_XFER_DELETE; in DoErase() 346 s32 length; in DoList() local 391 … if (ent->stat.commentAddr <= ent->stat.length - CARD_COMMENT_SIZE && // Comment available? in DoList() 410 if (ent->stat.commentAddr <= ent->stat.length - CARD_COMMENT_SIZE) in DoList() 419 length = (s32) (ent->stat.commentAddr + CARD_COMMENT_SIZE - offset); in DoList() 420 length = (length + (CARD_READ_SIZE - 1)) & ~(CARD_READ_SIZE - 1); in DoList() 421 result = CARDRead(&fileInfo, ent, length, offset); in DoList() [all …]
|
| /RvlSDK-3.1/build/libraries/gd/src/ |
| D | GDBase.c | 47 void GDInitGDLObj(GDLObj *dl, void *start, u32 length) in GDInitGDLObj() argument 50 ASSERTMSG( (length & 31) == 0, "length must be aligned to 32 bytes"); in GDInitGDLObj() 54 dl->top = (u8*) start + length; in GDInitGDLObj() 55 dl->length = length; in GDInitGDLObj() 62 DCFlushRange(__GDCurrentDL->start, __GDCurrentDL->length); in GDFlushCurrToMem()
|
| D | GDFile.c | 98 static s32 myFwrite_u8s( FILE *fp, u8 *data, u32 length ) in myFwrite_u8s() argument 102 count = fwrite( data, 1, length, fp ); in myFwrite_u8s() 104 if (count != length) in myFwrite_u8s() 136 static s32 myFread_u8s( FILE *fp, u8 *data, u32 length ) in myFread_u8s() argument 140 count = fread( data, 1, length, fp ); in myFread_u8s() 142 if (count != length) in myFread_u8s() 304 u32 length; in GDReadDLFile() local 324 length = statbuf.st_size; in GDReadDLFile() 327 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile() 334 err = myFread_u8s( fp, buf, length ); in GDReadDLFile() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/MakeInc/src/ |
| D | static.c | 56 s32 length; in RsoLoad() local 64 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 65 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 66 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 84 s32 length; in StaticRsoLoad() local 91 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 92 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 93 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkJump/src/ |
| D | static.c | 63 s32 length; in RsoLoad() local 71 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 72 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 73 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 91 s32 length; in RsoLoadMem2() local 99 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 100 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 101 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 119 s32 length; in StaticRsoLoad() local 126 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.1/include/revolution/ |
| D | dvdeth.h | 54 s32 DVDWritePrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 57 BOOL DVDWriteAsyncPrio( DVDFileInfo* fileInfo, void* addr, s32 length, 61 #define DVDWrite(fileInfo, addr, length, offset) \ argument 62 DVDWritePrio((fileInfo), (addr), (length), (offset), 2) 64 #define DVDWriteAsync(fileInfo, addr, length, offset, callback) \ argument 65 DVDWriteAsyncPrio((fileInfo), (addr), (length), (offset), (callback), 2)
|
| D | dvd.h | 313 u32 length; member 344 u32 length; // File size in bytes member 414 ((fileInfo)->length) 422 s32 DVDReadPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 425 BOOL DVDReadAsyncPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 429 #define DVDRead(fileInfo, addr, length, offset) \ argument 430 DVDReadPrio((fileInfo), (addr), (length), (offset), 2) 431 #define DVDReadAsync(fileInfo, addr, length, offset, callback) \ argument 432 DVDReadAsyncPrio((fileInfo), (addr), (length), (offset), (callback), 2) 434 s32 DVDRead ( DVDFileInfo* fileInfo, void* addr, s32 length, [all …]
|
| D | nand.h | 269 u32 *length; member 332 s32 NANDRead (NANDFileInfo *info, void *buf, u32 length); 333 s32 NANDReadAsync (NANDFileInfo *info, void *buf, u32 length, NANDCallback cb, NANDCom… 334 s32 NANDWrite (NANDFileInfo *info, const void *buf, u32 length); 335 s32 NANDWriteAsync (NANDFileInfo *info, const void *buf, u32 length, NANDCallback cb, NANDCom… 340 s32 NANDGetLength (NANDFileInfo *info, u32 *length); 341 s32 NANDGetLengthAsync (NANDFileInfo *info, u32 *length, NANDCallback cb, NANDCommandBlock *block… 342 s32 NANDSafeOpen (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length); 343 s32 NANDSafeOpenAsync (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length, … 347 …feOpen (const char *path, NANDFileInfo *info, const u8 accType, void *buf, const u32 length); [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkFar/src/ |
| D | static.c | 108 s32 length; in RsoLoad() local 116 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 117 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 118 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 136 s32 length; in RsoLoadMem2() local 144 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 145 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 146 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 164 s32 length; in StaticRsoLoad() local 171 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkList/src/ |
| D | static.c | 44 s32 length; in RsoLoad() local 52 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 53 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 54 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 72 s32 length; in StaticRsoLoad() local 79 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 80 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 81 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/rsodemo/LinkListFixed0/src/ |
| D | static.c | 43 s32 length; in RsoLoadFixed() local 53 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadFixed() 54 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoadFixed() 55 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadFixed() 95 s32 length; in StaticRsoLoad() local 102 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 103 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 104 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/reldemo/src/ |
| D | static.c | 118 s32 length; in Load() local 127 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in Load() 128 module = OSAllocFromArenaLo((u32) length, 32); in Load() 129 result = DVDRead(&fileInfo, module, length, 0); in Load() 172 u32 length; in main() local 186 length = OSRoundUp32B(DVDGetLength(&fileInfo)); in main() 187 ptr = OSAllocFromArenaLo(length, 32); in main() 188 result = DVDRead(&fileInfo, ptr, (s32) length, 0); in main()
|
| /RvlSDK-3.1/build/tools/dls1wt/src/ |
| D | dls.c | 144 u32 count, length; in dls_colh() local 146 fread(&length, 1, 4, dlsFile); in dls_colh() 150 length -= 4; in dls_colh() 152 if (length) in dls_colh() 153 fseek(dlsFile, length, SEEK_CUR); in dls_colh() 162 u32 ms, ls, length; in dls_vers() local 164 fread(&length, 1, 4, dlsFile); in dls_vers() 169 length -= 8; in dls_vers() 171 if (length) in dls_vers() 172 fseek(dlsFile, length, SEEK_CUR); in dls_vers() [all …]
|
| /RvlSDK-3.1/build/demos/rsodemo/Manually/src/ |
| D | static.c | 46 s32 length; in RsoLoad() local 54 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 55 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 56 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 76 s32 length; in StaticRsoLoad() local 83 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 84 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 85 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.1/build/demos/videmo/src/ |
| D | viewer.c | 175 u32 length; in readConvertBmp() local 185 length = DVDGetLength(&finfo); in readConvertBmp() 187 OSReport("F %9d %s\n", length, fileName); in readConvertBmp() 189 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in readConvertBmp() 195 if (OSRoundUp32B(length) != in readConvertBmp() 196 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in readConvertBmp() 316 u32 length; in idle() local 326 length = DVDGetLength(&finfo); in idle() 328 OSReport("F %9d %s\n", length, dirent.name); in idle() 331 height = length / (640*2); in idle() [all …]
|
| /RvlSDK-3.1/build/tools/soundfile/src/ |
| D | aifffile.c | 248 u32 chunk, length, sample_position; in aiffReadHeader() local 257 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 268 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 275 length = reverse_endian_32(length); in aiffReadHeader() 276 length = 18 - length; in aiffReadHeader() 278 if (length) in aiffReadHeader() 279 fseek(infile, length, SEEK_CUR); in aiffReadHeader() 299 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 300 length = reverse_endian_32(length); in aiffReadHeader() 315 fseek(infile, length - 8, SEEK_CUR); in aiffReadHeader() [all …]
|
| /RvlSDK-3.1/build/demos/nanddemo/src/ |
| D | banner.c | 67 static BOOL getFileSize(const char *path, u32 *length); 154 u32 length = 0; in verify() local 164 if(getFileSize(path, &length)) in verify() 166 if(length==size) in verify() 340 BOOL getFileSize(const char *path, u32 *length) in getFileSize() argument 349 ret = NANDGetLength(&info, length); in getFileSize()
|