Lines Matching refs:buf
30 extern void P_RC4(unsigned char* buf, unsigned short len);
1050 char buf[MAX_LINE_LEN]; in parse471() local
1067 if (fscanf(file, OPT_PATH "%d=%[^\r^\n]", &index, buf) in parse471()
1071 fixPath(buf); in parse471()
1072 strcpy((char*)gOpts.code471Path[index], buf); in parse471()
1087 char buf[MAX_LINE_LEN]; in parse472() local
1104 if (fscanf(file, OPT_PATH "%d=%[^\r^\n]", &index, buf) in parse472()
1107 fixPath(buf); in parse472()
1109 strcpy((char*)gOpts.code472Path[index], buf); in parse472()
1124 char buf[MAX_LINE_LEN]; in parseLoader() local
1147 if (fscanf(file, OPT_LOADER_NAME "%d=%s", &index, buf) in parseLoader()
1150 strcpy(gOpts.loader[index].name, buf); in parseLoader()
1158 if (fscanf(file, "%[^=]=%[^\r^\n]", buf, buf2) in parseLoader()
1162 if (!strcmp(gOpts.loader[j].name, buf)) { in parseLoader()
1227 char buf[MAX_LINE_LEN]; in parseOpts() local
1249 while(fscanf(file, "%s", buf) == 1) { in parseOpts()
1250 if (!strcmp(buf, SEC_CHIP)) { in parseOpts()
1256 } else if (!strcmp(buf, SEC_VERSION)) { in parseOpts()
1262 } else if (!strcmp(buf, SEC_471)) { in parseOpts()
1268 } else if (!strcmp(buf, SEC_472)) { in parseOpts()
1274 } else if (!strcmp(buf, SEC_LOADER)) { in parseOpts()
1280 } else if (!strcmp(buf, SEC_OUT)) { in parseOpts()
1286 } else if (buf[0] == '#') { in parseOpts()
1289 printf("unknown sec: %s!\n", buf); in parseOpts()
1415 uint8_t* buf; in writeFile() local
1437 buf = gBuf; in writeFile()
1440 P_RC4(buf, fixSize < SMALL_PACKET ? fixSize : SMALL_PACKET); in writeFile()
1441 buf += SMALL_PACKET; in writeFile()