| /RvlSDK-2.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-2.1/build/libraries/cx/src/ |
| D | CXStreamingUncompression.c | 37 context->length = 0; in CXInitUncompContextRL() 58 context->length = 0; in CXInitUncompContextLZ() 127 while ( context->length > 0 ) in CXReadUncompRL() 130 context->length--; in CXReadUncompRL() 140 else if ( context->length > 0 ) in CXReadUncompRL() 145 while ( context->length > 0 ) in CXReadUncompRL() 148 context->length--; in CXReadUncompRL() 160 context->length = (u16)(context->flags & 0x7F); in CXReadUncompRL() 163 context->length += 3; in CXReadUncompRL() 167 context->length += 1; in CXReadUncompRL() [all …]
|
| D | CXUncompression.c | 118 s32 length = flags & 0x7f; in CXUncompressRL() local 121 length++; in CXUncompressRL() 122 destCount -= length; in CXUncompressRL() 126 } while ( --length > 0 ); in CXUncompressRL() 132 length += 3; in CXUncompressRL() 133 destCount -= length; in CXUncompressRL() 138 } while ( --length > 0 ); in CXUncompressRL() 189 s32 length = (*pSrc >> 4) + 3; in CXUncompressLZ() local 192 destCount -= length; in CXUncompressLZ() 196 } while ( --length > 0); in CXUncompressLZ()
|
| /RvlSDK-2.1/build/demos/carddemo/src/ |
| D | save.c | 39 static void* LoadFile(char* name, s32* length) in LoadFile() argument 50 *length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in LoadFile() 51 data = OSAllocFromArenaLo((u32) *length, 32); in LoadFile() 52 result = DVDRead(&fileInfo, data, *length, 0); in LoadFile() 68 s32 length; in main() local 80 data = LoadFile(argv[1], &length); in main() 151 length = (s32) ROUND(length, sectorSize); in main() 160 result = CARDCreateAsync(CARD_CHAN, argv[1], (u32) length, &fileInfo, 0); in main() 182 OSReport("length %d\n", stat.length); in main() 187 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-2.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-2.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 | 310 u32 length; member 341 u32 length; // file size in bytes member 411 ((fileInfo)->length) 419 s32 DVDReadPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 422 BOOL DVDReadAsyncPrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 426 #define DVDRead(fileInfo, addr, length, offset) \ argument 427 DVDReadPrio((fileInfo), (addr), (length), (offset), 2) 428 #define DVDReadAsync(fileInfo, addr, length, offset, callback) \ argument 429 DVDReadAsyncPrio((fileInfo), (addr), (length), (offset), (callback), 2) 431 s32 DVDRead ( DVDFileInfo* fileInfo, void* addr, s32 length, [all …]
|
| D | nand.h | 224 u32 *length; member 279 s32 NANDRead (NANDFileInfo *info, void *buf, u32 length); 280 s32 NANDReadAsync (NANDFileInfo *info, void *buf, u32 length, NANDCallback cb, NANDCom… 281 s32 NANDWrite (NANDFileInfo *info, const void *buf, u32 length); 282 s32 NANDWriteAsync (NANDFileInfo *info, const void *buf, u32 length, NANDCallback cb, NANDCom… 287 s32 NANDGetLength (NANDFileInfo *info, u32 *length); 288 s32 NANDGetLengthAsync (NANDFileInfo *info, u32 *length, NANDCallback cb, NANDCommandBlock *block… 289 s32 NANDSafeOpen (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length); 290 s32 NANDSafeOpenAsync (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length, …
|
| D | card.h | 189 s32 length; member 198 u32 length; member 307 s32 CARDRead ( CARDFileInfo* fileInfo, void* addr, s32 length, s32 offset ); 308 s32 CARDReadAsync ( CARDFileInfo* fileInfo, void* addr, s32 length, s32 offset, CARDCallba… 309 s32 CARDWrite ( CARDFileInfo* fileInfo, const void* addr, s32 length, s32 offset ); 310 s32 CARDWriteAsync ( CARDFileInfo* fileInfo, const void* addr, s32 length, s32 offset, CARD…
|
| /RvlSDK-2.1/build/demos/reldemo/src/ |
| D | static.c | 112 s32 length; in Load() local 120 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in Load() 121 module = OSAllocFromArenaLo((u32) length, 32); in Load() 122 result = DVDRead(&fileInfo, module, length, 0); in Load() 154 u32 length; in main() local 168 length = OSRoundUp32B(DVDGetLength(&fileInfo)); in main() 169 ptr = OSAllocFromArenaLo(length, 32); in main() 170 result = DVDRead(&fileInfo, ptr, (s32) length, 0); in main()
|
| /RvlSDK-2.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-2.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-2.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-2.1/build/libraries/wpad/src/ |
| D | WPADClamp.c | 479 int length; in __ClampStickCircle() local 525 length = (int) sqrtf(squared); in __ClampStickCircle() 526 x = (x * radius) / length; in __ClampStickCircle() 527 y = (y * radius) / length; in __ClampStickCircle() 648 f32 length; in __ClampSphere() local 654 length = sqrtf(squared); in __ClampSphere() 655 x = x * max / length; in __ClampSphere() 656 y = y * max / length; in __ClampSphere() 657 z = z * max / length; in __ClampSphere()
|
| /RvlSDK-2.1/build/libraries/pad/src/ |
| D | Padclamp.c | 227 int length; in ClampCircle() local 262 length = (int) sqrtf(squared); in ClampCircle() 263 x = (x * radius) / length; in ClampCircle() 264 y = (y * radius) / length; in ClampCircle()
|
| /RvlSDK-2.1/include/ |
| D | demo.h | 103 (*pal) = (TPLPalettePtr)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(dfi.length)); in TPLGetPalette() 104 (void)DVDRead(&dfi, (*pal), (s32)OSRoundUp32B(dfi.length), 0); in TPLGetPalette()
|
| /RvlSDK-2.1/build/libraries/seq/src/ |
| D | seq.c | 149 u32 length; in __SEQHandleSysExEvent() local 153 length = __SEQGetIntTrack(track); in __SEQHandleSysExEvent() 154 track->current += length; in __SEQHandleSysExEvent() 224 u32 length; in __SEQHandleMetaEvent() local 241 length = __SEQGetIntTrack(track); in __SEQHandleMetaEvent() 248 length = __SEQGetIntTrack(track); in __SEQHandleMetaEvent() 249 track->current += length; in __SEQHandleMetaEvent()
|
| /RvlSDK-2.1/build/demos/gddemo/src/ |
| D | gd-init-gc.c | 245 u32 length; in DrawInit() local 257 length = GDGetCurrOffset(); // preserve the offset! in DrawInit() 265 GDSetCurrOffset(length); in DrawInit()
|
| /RvlSDK-2.1/build/libraries/arc/src/ |
| D | arc.c | 121 af->length = fileLength(FSTEntries, entry); in ARCOpen() 151 af->length = fileLength(FSTEntries, entrynum); in ARCFastOpen() 192 s32 length; // must be signed in ARCConvertPathToEntrynum() local 252 length = (s32)(ptr - pathPtr); in ARCConvertPathToEntrynum() 293 pathPtr += length + 1; in ARCConvertPathToEntrynum() 463 return af->length; in ARCGetLength()
|
| /RvlSDK-2.1/include/revolution/cx/ |
| D | CXStreamingUncompression.h | 66 u16 length; // Remaining size of continuous write 2B member 80 u8 length; // Remaining length of continuous write 1B member
|
| /RvlSDK-2.1/include/revolution/gd/ |
| D | GDBase.h | 63 u32 length; member 77 void GDInitGDLObj(GDLObj *dl, void *start, u32 length); 159 return dl->length; in GDGetGDLObjLength() 224 return __GDCurrentDL->length; in GDGetCurrLength()
|