Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 25) sorted by relevance

/TwlSDK-5.1.0/build/tools/ppmconv/
Dppmconvbg.c100 static void OutputByte(FILE * fp, int val);
101 static void OutputHalf(FILE * fp, int val);
102 static void OutputIndex(FILE * fp, char *label, int max_colors, int width, int height, u8 *pixel);
103 static void OutputCLUT(FILE * fp, char *label, ColorTable * cp);
119 static int ReadHeader(FILE * fp, int *pwidth, int *pheight, int *pdepth) in ReadHeader() argument
129 while (buffer == fgets(buffer, sizeof(buffer), fp)) in ReadHeader()
197 static int ReadBody(FILE * fp, u8 *buffer, int size) in ReadBody() argument
199 return size == fread(buffer, sizeof(u8), size, fp); in ReadBody()
326 static void OutputByte(FILE * fp, int val) in OutputByte() argument
329 fprintf(fp, "\t"); in OutputByte()
[all …]
Dppmconv.c66 static int ReadHeader(FILE * fp, int *pwidth, int *pheight, int *pdepth) in ReadHeader() argument
76 while (buffer == fgets(buffer, sizeof(buffer), fp)) in ReadHeader()
144 static int ReadBody(FILE * fp, u8 *buffer, int size) in ReadBody() argument
146 return size == fread(buffer, sizeof(u8), size, fp); in ReadBody()
157 FILE *fp; in main() local
173 if (NULL != (fp = fopen(argv[1], "rb"))) in main()
175 if (ReadHeader(fp, &width, &height, &depth) && depth == 255) in main()
182 if (ReadBody(fp, buffer, size)) in main()
206 fclose(fp); in main()
Dppmconv8.c76 static int ReadHeader(FILE * fp, int *pwidth, int *pheight, int *pdepth) in ReadHeader() argument
86 while (buffer == fgets(buffer, sizeof(buffer), fp)) in ReadHeader()
154 static int ReadBody(FILE * fp, u8 *buffer, int size) in ReadBody() argument
156 return size == fread(buffer, sizeof(u8), size, fp); in ReadBody()
236 FILE *fp; in main() local
253 if (NULL != (fp = fopen(argv[1], "rb"))) in main()
255 if (ReadHeader(fp, &width, &height, &depth) && depth == 255) in main()
260 if (ReadBody(fp, buffer, size)) in main()
312 fclose(fp); in main()
/TwlSDK-5.1.0/build/tools/bin2obj/
Doutput.c19 static BOOL output_region(FILE * fp, u32 offset, const u8 *ptr, u32 size);
33 FILE *fp; in output_object() local
41 if (NULL == (fp = fopen(filename, "wb"))) in output_object()
63 if (!output_region(fp, offset, ptr, size)) in output_object()
72 if (!output_region(fp, offset, ptr, size)) in output_object()
82 if (!output_region(fp, offset, ptr, size)) in output_object()
92 if (!output_region(fp, offset, ptr, size)) in output_object()
102 if (!output_region(fp, offset, ptr, size)) in output_object()
114 if (!output_region(fp, offset, ptr, size)) in output_object()
134 static BOOL output_region(FILE * fp, u32 offset, const u8 *ptr, u32 size) in output_region() argument
[all …]
Dsection.c97 FILE *fp; in read_datasec() local
106 || NULL == (fp = fopen(filename, "rb"))) in read_datasec()
117 fclose(fp); in read_datasec()
121 if (s->size != fread(s->ptr, sizeof(u8), s->size, fp)) in read_datasec()
125 fclose(fp); in read_datasec()
128 fclose(fp); in read_datasec()
/TwlSDK-5.1.0/build/libraries/el/common/src/
Dimport.c34 void* fp; in EL_LoadImportTable() local
38 fp = EL_GetGlobalAdr(dlld, entries[i].fn); in EL_LoadImportTable()
39 if (fp) in EL_LoadImportTable()
41 entries[i].fp = fp; in EL_LoadImportTable()
55 entries[i].fp = ELi_UnresolvedFunc; in EL_UnloadImportTable()
/TwlSDK-5.1.0/build/tools/defval/
Dmisc.c170 FILE *fp; in Fopen() local
176 fp = (mode[0] == 'r') ? stdin : stdout; in Fopen()
180 if (NULL == (fp = fopen(filename, mode))) in Fopen()
187 DebugPrintf("fp=[%x] stdin=[%x] stdout=[%x]\n", fp, stdin, stdout); in Fopen()
189 return fp; in Fopen()
202 void Fclose(FILE * fp) in Fclose() argument
204 if (fp != NULL && fp != stdin && fp != stdout && fp != stderr) in Fclose()
206 fclose(fp); in Fclose()
229 char *Fgets(char **pbuffer, int *pbuffer_size, FILE * fp) in Fgets() argument
249 while (NULL != fgets(buffer + buffer_gets, buffer_size - buffer_gets, fp)) in Fgets()
Dset_defval.c141 FILE *fp; in add_dvalue_from_file() local
148 fp = stdin; in add_dvalue_from_file()
150 else if (NULL == (fp = fopen(filename, "r"))) in add_dvalue_from_file()
161 while (NULL != Fgets(&buffer, &buffer_size, fp)) in add_dvalue_from_file()
170 if (fp != stdin) in add_dvalue_from_file()
171 fclose(fp); in add_dvalue_from_file()
Dmisc.h43 void Fclose(FILE * fp);
44 char *Fgets(char **pbuffer, int *pbuffer_size, FILE * fp);
Dget_defval.c164 BOOL puts_modified_dvalue(FILE * fp, const char *str) in puts_modified_dvalue() argument
197 result = fputs(value, fp); in puts_modified_dvalue()
215 if (EOF == fputc(*str, fp)) in puts_modified_dvalue()
Ddefval.h49 BOOL puts_modified_dvalue(FILE * fp, const char *str);
/TwlSDK-5.1.0/build/tools/showversion/
Dmain.c74 int findMagicNumber(FILE *fp, u32 magic_code, u32 *buffer, u32 buffer_len);
87 int findMagicNumber(FILE *fp, u32 magic_code, u32 *buffer, u32 buffer_len) in findMagicNumber() argument
90 while (1 == fread(buffer, sizeof(u32), 1, fp)) in findMagicNumber()
108 FILE *fp; in main() local
134 if (NULL == (fp = fopen(argv[1], "rb"))) in main()
140 if (1 != fread(&romHeader, sizeof(romHeader), 1, fp)) in main()
142 fclose(fp); in main()
160 rewind(fp); in main()
173 while (findMagicNumber(fp, magicCodeBE, buffer, 3)) in main()
271 if ((u32)ftell(fp) - romHeader.rom_offset < romHeader.size) in main()
[all …]
/TwlSDK-5.1.0/build/demos.TWL/nandApp/backup/src/
Dmain.c288 FSFile fp; in DeleteData() local
295 FS_InitFile(&fp); in DeleteData()
296 bSuccess = FS_OpenDirectory(&fp, path, FS_PERMIT_W | FS_PERMIT_R); in DeleteData()
303 while(FS_ReadDirectory(&fp, &entry)) in DeleteData()
336 bSuccess = FS_CloseDirectory(&fp); in DeleteData()
383 FSFile fp; in ReadData() local
392 FS_InitFile(&fp); in ReadData()
393 bSuccess = FS_OpenDirectory(&fp, arc_name, FS_PERMIT_W | FS_PERMIT_R); in ReadData()
401 while(FS_ReadDirectory(&fp, &entry)) in ReadData()
425 bSuccess = FS_CloseDirectory(&fp); in ReadData()
/TwlSDK-5.1.0/build/tools/makelcf.TWL/
Ddefval.c46 FILE *fp; in AddDefValFromFile() local
50 fp = stdin; in AddDefValFromFile()
52 else if (NULL == (fp = fopen(filename, "rb"))) in AddDefValFromFile()
68 while (NULL != fgets(buffer + read_size, buffer_size - read_size, fp)) in AddDefValFromFile()
88 if (fp != stdin) in AddDefValFromFile()
90 fclose(fp); in AddDefValFromFile()
Dspec.l224 FILE *fp;
227 if ( NULL == ( fp = fopen( filename, "r" ) ) )
233 spec_yyin = fp;
235 fclose( fp );
Dtlcf.l412 FILE *fp; variable
415 if ( NULL == ( fp = fopen( filename, "r" ) ) )
421 tlcf_yyin = fp;
423 fclose( fp );
/TwlSDK-5.1.0/build/tools/makelcf/
Ddefval.c83 FILE *fp; in AddDefValFromFile() local
87 fp = stdin; in AddDefValFromFile()
89 else if (NULL == (fp = fopen(filename, "rb"))) in AddDefValFromFile()
105 while (NULL != fgets(buffer + read_size, buffer_size - read_size, fp)) in AddDefValFromFile()
125 if (fp != stdin) in AddDefValFromFile()
127 fclose(fp); in AddDefValFromFile()
Dspec.l303 FILE *fp;
306 if ( NULL == ( fp = fopen( filename, "r" ) ) )
312 spec_yyin = fp;
314 fclose( fp );
Dtlcf.l434 FILE *fp;
437 if ( NULL == ( fp = fopen( filename, "r" ) ) )
443 tlcf_yyin = fp;
445 fclose( fp );
/TwlSDK-5.1.0/build/demos.TWL/nandApp/other_backup/src/
Dmain.c308 FSFile fp; in DeleteData() local
314 FS_InitFile(&fp); in DeleteData()
315 bSuccess = FS_OpenDirectory(&fp, path, FS_PERMIT_W | FS_PERMIT_R); in DeleteData()
322 while(FS_ReadDirectory(&fp, &entry)) in DeleteData()
349 bSuccess = FS_CloseDirectory(&fp); in DeleteData()
402 FSFile fp; in ReadData() local
411 FS_InitFile(&fp); in ReadData()
412 bSuccess = FS_OpenDirectory(&fp, arc_name, FS_PERMIT_W | FS_PERMIT_R); in ReadData()
420 while(FS_ReadDirectory(&fp, &entry)) in ReadData()
439 bSuccess = FS_CloseDirectory(&fp); in ReadData()
/TwlSDK-5.1.0/include/twl/el/common/
Dimport.h36 void* fp; member
/TwlSDK-5.1.0/build/libraries/math/common/src/asm/
Dsha256.s26 ;fp .req r11
Dsha1.s31 ;fp .req r11
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_CharBg_Direct/pictures/
Dpicture_256_256.ppm844 AZP_Ue[i^m br"fv$jx$lz%n}&p'r�'t�(u�'t�'s'r}'p{&ny%mw$ju$hr#fp"dn bj^f[aW]TYPUMSJPFJ…
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_BmpBg_MainRam/pictures/
Dpicture_256_192_d.ppm589 …��w�\v�3a�;d$lx@��\�ň��������ȥ�]��-��&m�!��+p�#��8r�3SU-do<Ob1ct8Rt1Yw+r�:fp<TV9EH.GN,@L-AJ-8A'h�…