| /RvlSDK-3.3/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.3/build/libraries/cx/src/ |
| 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() 228 context->length = (u16)(context->flags & 0x7F); in CXReadUncompRL() 231 context->length += 3; in CXReadUncompRL() 235 context->length += 1; in CXReadUncompRL() [all …]
|
| 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 | 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.3/build/demos/rsodemo/LinkMem2/src/ |
| D | static.c | 43 s32 length; in RsoLoad() local 51 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 52 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 53 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 71 s32 length; in RsoLoadMem2() local 79 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 80 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 81 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 99 s32 length; in StaticRsoLoad() local 106 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.3/build/demos/rsodemo/MakeInc/src/ |
| D | static.c | 55 s32 length; in RsoLoad() local 63 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 64 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 65 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 83 s32 length; in StaticRsoLoad() local 90 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 91 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 92 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.3/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 | 104 static s32 myFwrite_u8s( FILE *fp, u8 *data, u32 length ) in myFwrite_u8s() argument 108 count = fwrite( data, 1, length, fp ); in myFwrite_u8s() 110 if (count != length) in myFwrite_u8s() 142 static s32 myFread_u8s( FILE *fp, u8 *data, u32 length ) in myFread_u8s() argument 146 count = fread( data, 1, length, fp ); in myFread_u8s() 148 if (count != length) in myFread_u8s() 313 u32 length; in GDReadDLFile() local 336 length = statbuf.st_size; in GDReadDLFile() 339 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile() 346 err = myFread_u8s( fp, buf, length ); in GDReadDLFile() [all …]
|
| /RvlSDK-3.3/build/demos/rsodemo/LinkJump/src/ |
| D | static.c | 64 s32 length; in RsoLoad() local 72 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 73 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 74 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 92 s32 length; in RsoLoadMem2() local 100 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 101 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 103 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 121 s32 length; in StaticRsoLoad() local 128 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.3/build/demos/rsodemo/LinkFar/src/ |
| D | static.c | 113 s32 length; in RsoLoad() local 121 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 122 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 123 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 141 s32 length; in RsoLoadMem2() local 149 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2() 150 module = OSAllocFromMEM2ArenaLo((u32) length, 32); in RsoLoadMem2() 151 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadMem2() 169 s32 length; in StaticRsoLoad() local 176 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() [all …]
|
| /RvlSDK-3.3/build/demos/rsodemo/LinkList/src/ |
| D | static.c | 43 s32 length; in RsoLoad() local 51 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 52 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 53 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 71 s32 length; in StaticRsoLoad() local 78 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 79 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 80 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.3/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.3/build/demos/rsodemo/LinkListFixed0/src/ |
| D | static.c | 42 s32 length; in RsoLoadFixed() local 52 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadFixed() 53 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoadFixed() 54 result = DVDRead(&fileInfo, module, length, 0); in RsoLoadFixed() 94 s32 length; in StaticRsoLoad() local 101 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 102 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 103 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.3/build/demos/reldemo/src/ |
| D | static.c | 121 s32 length; in Load() local 130 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in Load() 131 module = OSAllocFromArenaLo((u32) length, 32); in Load() 132 result = DVDRead(&fileInfo, module, length, 0); in Load() 175 u32 length; in main() local 189 length = OSRoundUp32B(DVDGetLength(&fileInfo)); in main() 190 ptr = OSAllocFromArenaLo(length, 32); in main() 191 result = DVDRead(&fileInfo, ptr, (s32) length, 0); in main()
|
| /RvlSDK-3.3/include/revolution/ |
| D | dvd.h | 319 u32 length; member 350 u32 length; // file size in bytes member 420 ((fileInfo)->length) 428 s32 DVDReadPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 431 BOOL DVDReadAsyncPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 435 #define DVDRead(fileInfo, addr, length, offset) \ argument 436 DVDReadPrio((fileInfo), (addr), (length), (offset), 2) 437 #define DVDReadAsync(fileInfo, addr, length, offset, callback) \ argument 438 DVDReadAsyncPrio((fileInfo), (addr), (length), (offset), (callback), 2) 440 s32 DVDRead ( DVDFileInfo* fileInfo, void* addr, s32 length, [all …]
|
| D | nand.h | 281 u32 *length; member 344 s32 NANDRead (NANDFileInfo *info, void *buf, u32 length); 345 s32 NANDReadAsync (NANDFileInfo *info, void *buf, u32 length, NANDCallback cb, NANDCom… 346 s32 NANDWrite (NANDFileInfo *info, const void *buf, u32 length); 347 s32 NANDWriteAsync (NANDFileInfo *info, const void *buf, u32 length, NANDCallback cb, NANDCom… 352 s32 NANDGetLength (NANDFileInfo *info, u32 *length); 353 s32 NANDGetLengthAsync (NANDFileInfo *info, u32 *length, NANDCallback cb, NANDCommandBlock *block… 355 …feOpen (const char *path, NANDFileInfo *info, const u8 accType, void *buf, const u32 length); 356 …t char *path, NANDFileInfo *info, const u8 accType, void *buf, const u32 length, NANDCallback cb, …
|
| D | cnt.h | 164 u32 length; member 226 s32 contentReadNAND ( CNTFileInfoNAND* cf, void* addr, u32 length, s32 offset ); 227 s32 contentReadNANDModified ( CNTFileInfoNAND* cf, void* addr, u32 length ); 258 s32 contentReadDVD ( CNTFileInfoDVD* cf, void* addr, u32 length, s32 offset ); 259 s32 contentReadDVDModified ( CNTFileInfoDVD* cf, void* addr, u32 length ); 295 s32 CNTRead ( CNTFileInfo* cf, void* addr, u32 length ); 296 s32 CNTReadWithOffset ( CNTFileInfo* cf, void* addr, u32 length, s32 offset );
|
| /RvlSDK-3.3/build/demos/rsodemo/Manually/src/ |
| D | static.c | 45 s32 length; in RsoLoad() local 53 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad() 54 module = OSAllocFromArenaLo((u32) length, 32); in RsoLoad() 55 result = DVDRead(&fileInfo, module, length, 0); in RsoLoad() 75 s32 length; in StaticRsoLoad() local 82 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad() 83 module = OSAllocFromArenaLo((u32) length, 32); in StaticRsoLoad() 84 result = DVDRead(&fileInfo, module, length, 0); in StaticRsoLoad()
|
| /RvlSDK-3.3/build/tools/soundfile/src/ |
| D | aifffile.c | 298 u32 chunk, length, sample_position; in aiffReadHeader() local 311 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 326 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 333 length = reverse_endian_32(length); in aiffReadHeader() 334 length = 18 - length; in aiffReadHeader() 336 if (length) in aiffReadHeader() 338 fseek(infile, length, SEEK_CUR); in aiffReadHeader() 359 fread(&length, 1, sizeof(u32), infile); in aiffReadHeader() 360 length = reverse_endian_32(length); in aiffReadHeader() 377 fseek(infile, length - 8, SEEK_CUR); in aiffReadHeader() [all …]
|
| /RvlSDK-3.3/build/demos/videmo/src/ |
| D | viewer.c | 178 u32 length; in readConvertBmp() local 188 length = DVDGetLength(&finfo); in readConvertBmp() 190 OSReport("F %9d %s\n", length, fileName); in readConvertBmp() 192 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in readConvertBmp() 198 if (OSRoundUp32B(length) != in readConvertBmp() 199 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in readConvertBmp() 319 u32 length; in idle() local 329 length = DVDGetLength(&finfo); in idle() 331 OSReport("F %9d %s\n", length, dirent.name); in idle() 334 height = length / (640*2); in idle() [all …]
|
| /RvlSDK-3.3/build/demos/axdemo/src/ |
| D | axstream2.c | 639 s32 length; in STRMPrepare() local 741 length = sizeof(DSPADPCM); in STRMPrepare() 743 if (length != DVDRead(&strm->finfoL, strm->headerBufferL, length, 0) || in STRMPrepare() 744 length != DVDRead(&strm->finfoR, strm->headerBufferR, length, 0)) in STRMPrepare() 944 s32 length; in STRMStart() local 989 length = STRM_BUFFER_SIZE; in STRMStart() 991 if (length != DVDRead(&strm->finfoL, in STRMStart() 993 length, in STRMStart() 995 length != DVDRead(&strm->finfoR, in STRMStart() 997 length, in STRMStart() [all …]
|
| D | axstream.c | 212 s32 length; in getDataR() local 218 length = strm.rest > size? size: strm.rest; in getDataR() 219 rlength = length & ~0x1f; in getDataR() 255 s32 length; in getDataL() local 263 length = strm.rest > size? size: strm.rest; in getDataL() 264 rlength = length & ~0x1f; in getDataL() 394 s32 length; in startStreamPcm16() local 419 length = strm.rest > STREAMBUFFER_BYTES? STREAMBUFFER_BYTES: strm.rest; in startStreamPcm16() 420 rlength = length & ~0x1f; in startStreamPcm16() 502 s32 length; in startStreamPcm8() local [all …]
|
| /RvlSDK-3.3/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()
|