Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 24 of 24) sorted by relevance

/RvlSDK-3.2.2/build/demos/arcdemo/src/
Darctest2.c63 char* buf; in chdirOpenAllocRead() local
119 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead()
124 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), in chdirOpenAllocRead()
134 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead()
142 ptr = buf; in chdirOpenAllocRead()
151 OSFree(buf); in chdirOpenAllocRead()
157 OSFree(buf); in chdirOpenAllocRead()
168 void* buf; in Read() local
188 buf = OSAlloc(length); in Read()
190 if ( length != DVDRead(&finfo, buf, (s32)length, 0) ) in Read()
[all …]
Darctest1.c62 char* buf; in chdirOpenAllocRead() local
112 buf = (char*)ARCGetStartAddrInMem(&afinfo); in chdirOpenAllocRead()
117 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead()
119 if (OSRoundUp32B(length) != DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead()
127 ptr = buf; in chdirOpenAllocRead()
140 OSFree(buf); in chdirOpenAllocRead()
152 void* buf; in Read() local
164 buf = OSAlloc(OSRoundUp32B(length)); in Read()
166 if ( length != DVDRead(&finfo, buf, (s32)length, 0) ) in Read()
173 return buf; in Read()
Darctest3.c132 void* buf; in Read() local
144 buf = OSAlloc(OSRoundUp32B(length)); in Read()
146 if ( length != DVDRead(&finfo, buf, (s32)length, 0) ) in Read()
153 return buf; in Read()
/RvlSDK-3.2.2/build/demos/cxdemo/src/
Dcx_uncompress.c221 void* buf; in LoadTexData() local
225 buf = DEMOAlloc( OSRoundUp32B( fileInfo.length ) ); in LoadTexData()
226 DVDRead( &fileInfo, buf, (s32)OSRoundUp32B( fileInfo.length ), 0 ); in LoadTexData()
229 return buf; in LoadTexData()
245 void* buf; in LoadTexDataRL() local
250 buf = LoadTexData( path ); in LoadTexDataRL()
253 uncompSize = CXGetUncompressedSize( buf ); in LoadTexDataRL()
257 CXUncompressRL( buf, uncompData ); in LoadTexDataRL()
261 DEMOFree( buf ); in LoadTexDataRL()
279 void* buf; in LoadTexDataLZ() local
[all …]
Dcx_uncompress_stream.c216 void* buf; in LoadTexData() local
220 buf = DEMOAlloc( OSRoundUp32B( fileInfo.length ) ); in LoadTexData()
221 DVDRead( &fileInfo, buf, (s32)OSRoundUp32B( fileInfo.length ), 0 ); in LoadTexData()
224 return buf; in LoadTexData()
/RvlSDK-3.2.2/build/demos/mididemo/src/
Dmain.c74 char buf[16] = ""; in main() local
75 sprintf(buf, "%02x", s_midiSequence[i]); in main()
76 DEMOPrintf((s16)(i%16*18+14), (s16)(i/16*13+26), 0, buf); in main()
92 u8 buf[4]={0x00, 0x00, 0x00, 0x00}; in midiThread() local
107 ret = MIDIRead(CHAN, buf, &stat); in midiThread()
123 push(buf[i]); in midiThread()
124 s_midiSequence[(s_index++)%LOG_SIZE] = buf[i]; in midiThread()
/RvlSDK-3.2.2/build/demos/nanddemo/src/
Ddirectory.c73 char *buf = 0; in printDir() local
76 buf = (char*)alloc32((num*(NAND_MAX_NAME+1)+31)/32*32); in printDir()
77 if(!buf) in printDir()
83 NANDReadDir(path, buf, &num); // Get directory list. in printDir()
91 while(buf[idx] != '\0') in printDir()
93 name[n] = buf[idx]; in printDir()
130 free32(buf); in printDir()
Dbasic.c73 char *buf=0; in main() local
78 buf = (char*)alloc32(SIZE); in main()
141 ret = NANDRead(&info, buf, SIZE); in main()
151 OSReport("Read data: %s\n", buf); in main()
169 free32(buf); in main()
Dgamesave.c529 char buf[SCREEN_LINE_SIZE]; in DrawStatic() local
535 vsnprintf(buf, SCREEN_LINE_SIZE, msg, marker); // should check later for truncation in DrawStatic()
536 len = strlen(buf)+1; // including '\0' in DrawStatic()
539 OSReport(buf); in DrawStatic()
554 strncpy((void*) ScreenStatic, (void*)buf, len); in DrawStatic()
562 char buf[SCREEN_LINE_SIZE]; in DrawDynamic() local
563 char *bufPtr = buf; in DrawDynamic()
569 vsnprintf(buf, SCREEN_LINE_SIZE, msg, marker); // should check later for truncation in DrawDynamic()
570 len = strlen(buf)+1; // including '\0' in DrawDynamic()
573 OSReport(buf); in DrawDynamic()
[all …]
Dbanner.c209 u8 buf[SAVEFILE_SIZE] ATTRIBUTE_ALIGN(32); in createSaveFile() local
210 memset(buf, 0, SAVEFILE_SIZE); in createSaveFile()
228 ret = NANDWrite(&info, buf, SAVEFILE_SIZE); in createSaveFile()
/RvlSDK-3.2.2/build/libraries/gd/src/
DGDFile.c315 u8 *buf; in GDReadDLFile() local
339 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile()
346 err = myFread_u8s( fp, buf, length ); in GDReadDLFile()
350 OSFree(buf); in GDReadDLFile()
356 hdr = (GDLFileHeader *) buf; in GDReadDLFile()
362 OSFree(buf); in GDReadDLFile()
428 u8 *buf; in GDReadDLFile() local
442 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile()
450 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in GDReadDLFile()
454 OSFree(buf); in GDReadDLFile()
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/G2D/
DG2D-testEditor.c64 u8 *buf = aEditStamp; in MapEditor() local
177 buf = aEditStamp; in MapEditor()
183 *buf++ = map[nZ + ((nX + nStampLeft) & (nMapWidth-1))]; in MapEditor()
222 buf = aEditStamp; in MapEditor()
231 map[nZ + ((nX + nStaticX) & (nMapWidth-1))] = *buf++; in MapEditor()
374 u8 *buf; in RenderEditorMode() local
377 buf = aEditBack; in RenderEditorMode()
383 *buf++ = map[nZ + ((nX + nStaticX) & (nMapWidth-1))]; in RenderEditorMode()
388 buf = aEditStamp; in RenderEditorMode()
394 map[nZ + ((nX + nStaticX) & (nMapWidth-1))] = *buf++; in RenderEditorMode()
[all …]
/RvlSDK-3.2.2/build/demos/wpaddemo/src/
Ddummy_checker.c464 char buf[] = "___________"; in renderStatus() local
509 if( wpad_ptr->button & WPAD_BUTTON_LEFT ) buf[ 0] = '<'; in renderStatus()
510 if( wpad_ptr->button & WPAD_BUTTON_UP ) buf[ 1] = '^'; in renderStatus()
511 if( wpad_ptr->button & WPAD_BUTTON_DOWN ) buf[ 2] = 'v'; in renderStatus()
512 if( wpad_ptr->button & WPAD_BUTTON_RIGHT ) buf[ 3] = '>'; in renderStatus()
513 if( wpad_ptr->button & WPAD_BUTTON_A ) buf[ 4] = 'A'; in renderStatus()
514 if( wpad_ptr->button & WPAD_BUTTON_B ) buf[ 5] = 'B'; in renderStatus()
515 if( wpad_ptr->button & WPAD_BUTTON_1 ) buf[ 6] = '1'; in renderStatus()
516 if( wpad_ptr->button & WPAD_BUTTON_2 ) buf[ 7] = '2'; in renderStatus()
517 if( wpad_ptr->button & WPAD_BUTTON_MINUS ) buf[ 8] = '-'; in renderStatus()
[all …]
/RvlSDK-3.2.2/include/revolution/
Dnand.h338 s32 NANDRead (NANDFileInfo *info, void *buf, u32 length);
339 s32 NANDReadAsync (NANDFileInfo *info, void *buf, u32 length, NANDCallback cb, NANDCom…
340 s32 NANDWrite (NANDFileInfo *info, const void *buf, u32 length);
341 s32 NANDWriteAsync (NANDFileInfo *info, const void *buf, u32 length, NANDCallback cb, NANDCom…
348 s32 NANDSafeOpen (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length);
349 s32 NANDSafeOpenAsync (const char *path, NANDFileInfo *info, u8 accType, void *buf, u32 length, …
353 s32 NANDSimpleSafeOpen (const char *path, NANDFileInfo *info, const u8 accType, void *buf, …
354 s32 NANDSimpleSafeOpenAsync (const char *path, NANDFileInfo *info, const u8 accType, void *buf, …
Dfnt.h129 void FNTUntileTexture(FNTHeader* font, void* buf);
130 void FNTTileTexture(FNTHeader* font, void* buf);
Dwpad.h647 void WPADSetAutoSamplingBuf ( s32 chan, void *buf, u32 length);
678 s32 WPADSendStreamData ( s32 chan, void *buf, u16 len );
/RvlSDK-3.2.2/build/demos/videmo/src/
Dviewer.c179 u8* buf; in readConvertBmp() local
192 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in readConvertBmp()
199 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in readConvertBmp()
205 if (FALSE == openBmp(&bInfo, buf)) in readConvertBmp()
220 if (FALSE == bmpToYCbCr(&bInfo, buf, dest)) in readConvertBmp()
230 OSFree(buf); in readConvertBmp()
/RvlSDK-3.2.2/build/demos/scdemo/src/
Dmain.c61 char buf[256]; in myDEMORFPrintf() local
72 vsprintf(buf, fmt, vlist); in myDEMORFPrintf()
76 DEMORFPuts(X_POS, (s16)(Y_POS + i * incValue), Z_POS, buf); in myDEMORFPrintf()
/RvlSDK-3.2.2/build/demos/cntdemo/src/
Dstrapcntdemo.c89 static void *LoadTexDataLZ ( void* buf );
276 static void* LoadTexDataLZ( void* buf ) in LoadTexDataLZ() argument
282 uncompSize = CXGetUncompressedSize( buf ); in LoadTexDataLZ()
286 CXUncompressLZ( buf, uncompData ); in LoadTexDataLZ()
290 MEMFreeToAllocator( &DemoAllocator1, buf ); in LoadTexDataLZ()
/RvlSDK-3.2.2/build/libraries/demo/src/
DDEMOPuts.c405 char buf[256]; in DEMOPrintf() local
410 stringSize = vsnprintf( buf, 256, fmt, vlist ); in DEMOPrintf()
416 DEMOPuts( x, y, z, buf ); in DEMOPrintf()
730 char buf[256]; in DEMORFPrintf() local
735 stringSize = vsnprintf( buf, 256, fmt, vlist ); in DEMORFPrintf()
741 return DEMORFPuts(x, y, z, buf); in DEMORFPrintf()
/RvlSDK-3.2.2/build/demos/gxdemo/
Dmakefile129 Management/mgt-single-buf.c \
130 Management/mgt-triple-buf.c \
181 mgt-single-buf mgt-triple-buf mgt-fifo-brkpt mgt-fifo-dual
471 $(FULLBIN_ROOT)/mgt-single-buf$(BINSUFFIX): Management/mgt-single-buf.o \
474 $(FULLBIN_ROOT)/mgt-triple-buf$(BINSUFFIX): Management/mgt-triple-buf.o \
/RvlSDK-3.2.2/build/demos/kpaddemo/src/
Dsample.c728 MyDpdCallbackStatus buf[MY_DPD_START_COUNTS_MAX]; in draw_dpd_callback_status() local
738 buf[i] = MyDpdCallbackStatusBuf[i]; in draw_dpd_callback_status()
745 buf[i].count) { in draw_dpd_callback_status()
746 sprintf(str, "DPDCB %d", buf[i].reason); in draw_dpd_callback_status()
747 draw_kfont_letter( (f32)(buf[i].reason == KPAD_STATE_CTRL_DPD_START in draw_dpd_callback_status()
750 buf[i].count * 0.05f + 0.5f, white_clr, str ); in draw_dpd_callback_status()
/RvlSDK-3.2.2/build/libraries/kpad/src/
DKPAD.c120 static void *get_ring_buffer_by_kpad1_style( s32 chan, void *buf, u32 size ) ;
146 static void *get_ring_buffer_by_kpad1_style( s32 chan, void *buf, u32 dev )
172 return buf ;
212 memcpy((u8 *)buf + idx2 * size,
221 return buf ;
/RvlSDK-3.2.2/
Dindex.allpl155 build/demos/gxdemo/src/Management/mgt-single-buf.c ca1971a1934a2674daaf77651c8ca04c54f5d9606f35dfe6…
156 build/demos/gxdemo/src/Management/mgt-triple-buf.c 4e59f5f698a1a25294be256372be372384e33c6f5a15f655…
2268 man/en_US/gx/sampledemos/Management/mgt-single-buf.html 23d150e6e0a2e0336384f130e62853d199b7738d711…
2269 man/en_US/gx/sampledemos/Management/mgt-triple-buf.html 835acbce5cc09c66bdb9a13cdb81084a83f9d72d7d1…