buf 450 core/action_stack.c char buf[100]; buf 451 core/action_stack.c sprintf(buf,"AS Error - Not a Function. Aborting. %d %08x %08x.",active_stack->stack_ptr,id,f); buf 452 core/action_stack.c script_console_add_error((long)buf); buf 12 core/autoiso.h extern int live_histogram_read_y(unsigned short *buf); buf 1118 core/conf.c char *buf = umalloc(size); buf 1119 core/conf.c char *p = buf; buf 1152 core/conf.c write(fd, buf, p-buf); buf 1155 core/conf.c ufree(buf); buf 1203 core/conf.c char* buf = load_file(filename, &rcnt, 0); buf 1205 core/conf.c if (buf) buf 1207 core/conf.c if (*(int*)buf == CONF_MAGICK_VALUE) buf 1214 core/conf.c id = *((short*)(buf + offs)); buf 1219 core/conf.c size = *((short*)(buf + offs)); buf 1231 core/conf.c size = cfg->load(buf+offs); buf 1235 core/conf.c memcpy(ci[i].var, buf+offs, size); buf 1246 core/conf.c free(buf); buf 1257 core/conf.c char* buf = load_file(filename, &rcnt, 0); buf 1259 core/conf.c if (buf) buf 1261 core/conf.c if (*(int*)buf == CONF_MAGICK_VALUE) buf 1269 core/conf.c id = conf_map_1_2[*((short*)(buf + offs))]; buf 1274 core/conf.c size = *((short*)(buf + offs)); buf 1301 core/conf.c size = cfg->load(buf+offs); buf 1305 core/conf.c memcpy(ci[i].var, buf+offs, size); buf 1317 core/conf.c free(buf); buf 76 core/console.c char buf[MAX_CONSOLE_LINE_LENGTH+1]; buf 94 core/console.c strncpy(buf,console_buf[i],console_line_length); buf 95 core/console.c buf[console_line_length] = 0; buf 96 core/console.c draw_string_justified(x, y - c * FONT_HEIGHT, buf, col, 0, console_line_length * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); buf 205 core/gps.c void draw_txt_centered(int line, char *buf, int color) buf 207 core/gps.c draw_txt_string( (camera_screen.width/FONT_WIDTH-strlen(buf))>>1 , line, buf, color) ; buf 59 core/gui.c static char buf[256]; buf 306 core/gui.c char buf[64]; buf 320 core/gui.c sprintf(buf,"%4d is %8d was %8d",i,p,props[i]); buf 321 core/gui.c draw_string(16,FONT_HEIGHT*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 327 core/gui.c sprintf(buf,"%s","Waiting 15 Seconds"); buf 328 core/gui.c draw_string(16,FONT_HEIGHT*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 334 core/gui.c sprintf(buf,"%s","Press <ALT> to leave"); buf 335 core/gui.c draw_string(16,FONT_HEIGHT*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 930 core/gui.c sprintf(buf, lang_str(LANG_MSG_BUILD_INFO_TEXT), camera_info.chdk_ver, camera_info.build_number, camera_info.build_svnrev, camera_info.build_date, camera_info.build_time, camera_info.platform, camera_info.platformsub, comp); buf 931 core/gui.c gui_mbox_init(LANG_MSG_BUILD_INFO_TITLE, (int)buf, MBOX_FUNC_RESTORE|MBOX_TEXT_LEFT, NULL); buf 936 core/gui.c sprintf(buf, lang_str(LANG_MSG_MEMORY_INFO_TEXT), core_get_free_memory(), camera_info.memisosize, &_start, &_end); buf 937 core/gui.c gui_mbox_init(LANG_MSG_MEMORY_INFO_TITLE, (int)buf, MBOX_FUNC_RESTORE|MBOX_TEXT_CENTER, NULL); buf 1185 core/gui.c sprintf(buf, "%d%%", (conf.video_quality+1)*10); buf 1186 core/gui.c return buf; buf 1322 core/gui.c sprintf(buf, "%d.%02d", (int)prop_id/100, (int)prop_id%100 ); buf 1323 core/gui.c return buf; buf 1329 core/gui.c static char buf[9]; buf 1332 core/gui.c strcpy(buf," Inf."); buf 1344 core/gui.c sprintf(buf, "%7d", shooting_get_subject_distance_override_value()); buf 1347 core/gui.c return buf; buf 1405 core/gui.c sprintf(buf, "%01d.%05d", (int)(*v / 100000), (int)(*v % 100000)); buf 1407 core/gui.c return buf; buf 1443 core/gui.c sprintf(buf, "%1d:%02d:%02d", h, m, s); buf 1445 core/gui.c return buf; buf 2538 core/gui.c buf[0] = 0; buf 2541 core/gui.c sprintf(buf,"%-5s %20s",gui_shortcut_text(button),lang_str(func_str)); buf 2542 core/gui.c buf[26] = 0; buf 2543 core/gui.c sprintf(buf+strlen(buf)," [%6s",state); buf 2544 core/gui.c buf[34] = 0; buf 2545 core/gui.c strcat(buf,"]"); buf 2549 core/gui.c sprintf(buf,"%-5s %29s",gui_shortcut_text(button),lang_str(func_str)); buf 2553 core/gui.c sprintf(buf,"%-35s",lang_str(func_str)); buf 2555 core/gui.c buf[35] = 0; buf 2556 core/gui.c draw_string(x, y, buf, col); buf 2590 core/gui.c sprintf(buf,lang_str(LANG_HELP_HEADER), buf 2593 core/gui.c buf[35] = 0; buf 2594 core/gui.c draw_string(x, y, buf, hdr_col); buf 2599 core/gui.c sprintf(buf,lang_str(LANG_HELP_HEADER), buf 2602 core/gui.c buf[35] = 0; buf 2603 core/gui.c draw_string(x, y, buf, col); buf 2616 core/gui.c sprintf(buf,lang_str(LANG_HELP_FOCUS),gui_shortcut_text(SHORTCUT_SET_INFINITY),gui_shortcut_text(SHORTCUT_SET_HYPERFOCAL)); buf 2617 core/gui.c draw_string(x, y, buf, col); buf 2686 core/gui.c script_get_alt_text(buf); buf 2688 core/gui.c buf, MAKE_COLOR(COLOR_RED, COLOR_WHITE), 0, w, TEXT_CENTER) - camera_screen.disp_left; buf 86 core/gui_menu.c static char buf[8]; buf 87 core/gui_menu.c buf[0] = 0; buf 89 core/gui_menu.c sprintf(buf, "\xb1%dM",int_incr/1000000); buf 91 core/gui_menu.c sprintf(buf, "\xb1%dK",int_incr/1000); buf 93 core/gui_menu.c sprintf(buf, "\xb1%d",int_incr); buf 94 core/gui_menu.c return buf; buf 46 core/gui_osd.c static void sprintf_dist(char *buf, int dist) { buf 49 core/gui_osd.c sprintf(buf, " inf"); buf 54 core/gui_osd.c sprintf(buf, ".%03d", f); buf 56 core/gui_osd.c sprintf(buf, "%d.%02d", i, (f+5)/10); buf 58 core/gui_osd.c sprintf(buf, "%02d.%d", i, (f+50)/100); buf 60 core/gui_osd.c sprintf(buf, "%4d", i); buf 64 core/gui_osd.c static void sprintf_canon_values(char *buf, short dist) buf 67 core/gui_osd.c sprintf(buf, "%s%d.%02d", ((dist<0)?"-":""), v/96, v%96); buf 99 core/gui_script.c const char* get_token(const char *p, char *buf, int maxlen) buf 104 core/gui_script.c strncpy(buf, p, n); buf 105 core/gui_script.c buf[n] = 0; buf 424 core/gui_script.c const char *buf=0; buf 426 core/gui_script.c buf = load_file_to_length(conf.script_file, 0, 1, 4096); // Assumes parameters are in first 4K of script file buf 429 core/gui_script.c if (buf == 0) buf 441 core/gui_script.c const char *ptr = buf; buf 485 core/gui_script.c free((void*)buf); buf 570 core/gui_script.c char* buf = load_file(nm, 0, 1); buf 571 core/gui_script.c if (buf == 0) buf 574 core/gui_script.c buf = load_file(nm, 0, 1); buf 575 core/gui_script.c if (buf == 0) buf 579 core/gui_script.c const char* ptr = buf; buf 608 core/gui_script.c ptr = buf; buf 630 core/gui_script.c free(buf); buf 642 core/gui_script.c char buf[100]; buf 656 core/gui_script.c sprintf(buf,"#%s=%d\n",p->name,p->val); buf 657 core/gui_script.c write(fd, buf, strlen(buf)); buf 153 core/modules.c int module_restore_edge(void **buf) { *buf = saved_edgebuf; return saved_edgestate; } buf 154 core/modules.c void module_save_edge(void* buf, int state) { saved_edgebuf = buf; saved_edgestate = state; } buf 50 core/ptp.c char *buf; // buffer for transfer buf 71 core/ptp.c rs->buf = get_ptp_file_buf(); buf 102 core/ptp.c rs->buf = malloc(rs->buf_size); buf 103 core/ptp.c if(!rs->buf) { buf 107 core/ptp.c rs->buf = NULL; buf 125 core/ptp.c if(!rs->buf) { buf 154 core/ptp.c if(data->recv_data(data->handle,rs->buf,rsize,0,0) != 0) { buf 158 core/ptp.c memcpy(rs->dst_buf + rs->total_read,rs->buf,rsize); buf 170 core/ptp.c free(rs->buf); buf 180 core/ptp.c static int recv_ptp_data(ptp_data *data, char *buf, int size) buf 183 core/ptp.c if(!recv_ptp_data_init(&rs,size,buf)) { buf 198 core/ptp.c char *buf; buf 216 core/ptp.c sb->buf=malloc(buf_size); buf 217 core/ptp.c if(!sb->buf) { buf 230 core/ptp.c free(sb->buf); buf 231 core/ptp.c sb->buf=NULL; buf 270 core/ptp.c if(src >= sb.buf && src < sb.buf + send_size) { buf 272 core/ptp.c if(src + size < sb.buf + sb.size) { buf 277 core/ptp.c send_size = sb.size - (src - sb.buf); buf 281 core/ptp.c if(src < sb.buf && src + send_size > sb.buf) { buf 283 core/ptp.c send_size = sb.buf - src; buf 285 core/ptp.c copy_fn(sb.buf,src,send_size); buf 287 core/ptp.c if ( data->send_data(data->handle,sb.buf,send_size,tmpsize,0,0,0) ) buf 550 core/ptp.c unsigned *buf = malloc(s); buf 552 core/ptp.c if ( buf == NULL ) buf 558 core/ptp.c if ( recv_ptp_data(data,(char *) buf,s) ) buf 561 core/ptp.c ptp.param1 = call_func_ptr((void *)buf[0],(unsigned *)buf+1,(s-4)/4); buf 566 core/ptp.c free(buf); buf 648 core/ptp.c fn_len = *(unsigned *)rs.buf; buf 654 core/ptp.c memcpy(fn,rs.buf+4,fn_len); buf 662 core/ptp.c fwrite(rs.buf+4+fn_len,1,rs.last_read - 4 - fn_len,f); buf 664 core/ptp.c fwrite(rs.buf,1,rs.last_read,f); buf 736 core/ptp.c while ( (r = fread(sb.buf,1,(t<sb.size)?t:sb.size,f)) > 0 ) buf 739 core/ptp.c data->send_data(data->handle,sb.buf,r,tmp,0,0,0); buf 757 core/ptp.c char *buf; buf 771 core/ptp.c buf = (char *) malloc(s); buf 772 core/ptp.c if ( buf == NULL ) buf 778 core/ptp.c recv_ptp_data(data,buf,s); buf 787 core/ptp.c free(buf); buf 807 core/ptp.c if (script_start_ptp(buf) < 0) { buf 813 core/ptp.c free(buf); buf 32 core/ptp_chdk.h int (*send_data)(int handle, const char *buf, int part_size, int total_size, int, int, int); // (0xFF9F525C), total_size should be 0 except for the first call buf 33 core/ptp_chdk.h int (*recv_data)(int handle, char *buf, int size, int, int); // (0xFF9F5500) buf 148 core/script.c void script_get_alt_text(char *buf) buf 152 core/script.c sprintf(buf,"<EXIT=%s>",script_terminate_key_name); buf 156 core/script.c strcpy(buf,"<ALT>"); buf 76 core/suba.c char buf[200]; buf 77 core/suba.c sprintf(buf, "%s bad cell - %x %x", fn, c, suba); buf 78 core/suba.c DebugAssert(buf, ln); buf 150 core/suba.c char buf[200]; buf 153 core/suba.c sprintf(buf, "%x %d %x %d =>\n", c, suba->mincell, suba->largest_block, suba->largest_block->h.size); buf 154 core/suba.c fwrite(buf, strlen(buf), 1, fp); buf 157 core/suba.c sprintf(buf, "%x %d %x\n", c, c->h.size, c->next); buf 158 core/suba.c fwrite(buf, strlen(buf), 1, fp); buf 161 core/suba.c sprintf(buf, "%x %d %x\n", c, c->h.size, c->next); buf 162 core/suba.c fwrite(buf, strlen(buf), 1, fp); buf 180 core/suba.c char buf[200]; buf 185 core/suba.c sprintf(buf, "largest %x %d %x %d\n", suba->largest_block, suba->largest_block->h.size, largest, largest->h.size); buf 186 core/suba.c DebugAssert(buf, __LINE__); buf 191 core/suba.c sprintf(buf, "free_size %d %d\n", suba->free_size, free_size); buf 192 core/suba.c DebugAssert(buf, __LINE__); buf 197 core/suba.c sprintf(buf, "free_count %d %d\n", suba->free_block_count, count); buf 198 core/suba.c DebugAssert(buf, __LINE__); buf 199 core/usb_remote.c char buf[64]; buf 200 core/usb_remote.c sprintf(buf, "%d %d ", synch_delay_tick, t); buf 203 core/usb_remote.c write(fd, buf, strlen(buf)); buf 441 core/usb_remote.c char buf[64] ; buf 456 core/usb_remote.c sprintf(buf,"RESET ") ; buf 459 core/usb_remote.c sprintf(buf,"RELEASED ") ; buf 462 core/usb_remote.c sprintf(buf,"HALF PRESS ") ; buf 465 core/usb_remote.c sprintf(buf,"FULL PRESS ") ; buf 468 core/usb_remote.c sprintf(buf,"ERROR ") ; buf 471 core/usb_remote.c draw_string(2,FONT_HEIGHT,buf,MAKE_COLOR(COLOR_YELLOW,COLOR_RED)); buf 475 core/usb_remote.c sprintf(buf,"RMT=%d drv=%d lgc=%d sync=%d tmo=%d ", usb_remote_active, driver_state, logic_module_state, usb_sync_wait_flag, (bracketing_timeout?bracketing_timeout-get_tick_count():0)); buf 476 core/usb_remote.c draw_string(2,FONT_HEIGHT*3,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 481 core/usb_remote.c sprintf(buf,"switch=%d logic=%d sync=%s mode=%d ", switch_type, control_module, conf.synch_enable?"yes":"no", camera_mode) ; buf 482 core/usb_remote.c draw_string(2,FONT_HEIGHT*2,buf,MAKE_COLOR(COLOR_YELLOW,COLOR_BLACK)); buf 483 core/usb_remote.c sprintf(buf,"sync count=%d, pulse count=%d width=%d b=%d ", sync_counter, usb_count, usb_power, bracketing.shoot_counter); buf 484 core/usb_remote.c draw_string(2,FONT_HEIGHT*4,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 485 core/usb_remote.c sprintf(buf,"physw=%d err=%d %d %d ", physw_status[0]&0x03, debug_errors[0], debug_errors[1], debug_errors[2] ); buf 486 core/usb_remote.c draw_string(2,FONT_HEIGHT*5,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 496 core/usb_remote.c sprintf(&buf[buff_pos],"%d ", *buff_ptr) ; buf 497 core/usb_remote.c buff_pos = strlen(buf) ; buf 500 core/usb_remote.c buf[45] = 0 ; buf 505 core/usb_remote.c draw_string(2,FONT_HEIGHT*6,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); buf 8 include/fileutil.h typedef int (*callback_process_file)(char* buf, int size); buf 38 include/lolevel.h extern long _GetPropertyCase(long opt_id, void *buf, long bufsize); buf 39 include/lolevel.h extern long _SetPropertyCase(long opt_id, void *buf, long bufsize); buf 74 include/lolevel.h extern long _GetParameterData(long id, void *buf, long size); buf 75 include/lolevel.h extern long _SetParameterData(long id, void *buf, long size); buf 100 include/lolevel.h extern long _Fread_Fut(void *buf, long elsize, long count, long f); buf 101 include/lolevel.h extern long _Fwrite_Fut(const void *buf, long elsize, long count, long f); buf 106 include/lolevel.h extern char *_Fgets_Fut(char *buf, int n, long f); buf 139 include/lolevel.h extern int _vsprintf(char *buf, const char *fmt, __builtin_va_list va_list); buf 146 include/lolevel.h extern int _printf(char *buf, ...); buf 278 include/lolevel.h extern int _WriteSDCard(unsigned int drive, unsigned int start_sect, unsigned int num_sect, void *buf); buf 47 include/properties.h extern long get_property_case(long id, void *buf, long bufsize); buf 48 include/properties.h extern long set_property_case(long id, void *buf, long bufsize); buf 54 include/properties.h extern long get_parameter_data(long id, void *buf, long bufsize); buf 55 include/properties.h extern long set_parameter_data(long id, void *buf, long bufsize); buf 57 include/script.h extern void script_get_alt_text(char *buf); buf 32 include/std/stdio.h extern long fread(void *buf, long elsize, long count, FILE *f); buf 33 include/std/stdio.h extern long fwrite(const void *buf, long elsize, long count, FILE *f); buf 38 include/std/stdio.h extern char *fgets(char *buf, int n, FILE *f); buf 42 lib/armutil/reboot.c char *buf; buf 56 lib/armutil/reboot.c buf = umalloc(size); buf 57 lib/armutil/reboot.c if(!buf) { buf 62 lib/armutil/reboot.c rcnt = read(fd, buf, size); buf 65 lib/armutil/reboot.c ufree(buf); buf 75 lib/armutil/reboot.c ufree(buf); buf 80 lib/armutil/reboot.c canon_copy_and_restart((void *)0x1900,buf,size,(void *)0x1900); buf 21 lib/lang/fileutil.c char* buf = 0; // memory buffer to return buf 45 lib/lang/fileutil.c buf = malloc(ssize+add0); buf 46 lib/lang/fileutil.c if (buf != 0) buf 56 lib/lang/fileutil.c memcpy(buf+lsize,ubuf,len); buf 59 lib/lang/fileutil.c if (add0) buf[ssize] = 0; buf 72 lib/lang/fileutil.c return buf; buf 85 lib/lang/fileutil.c char* buf = _load_file(name, &rsize, &ssize, add0); buf 91 lib/lang/fileutil.c if (buf) free(buf); buf 92 lib/lang/fileutil.c buf = 0; buf 96 lib/lang/fileutil.c return buf; buf 121 lib/lang/fileutil.c char *buf = load_file(filename, &size, add0); buf 123 lib/lang/fileutil.c size = callback(buf, size); buf 125 lib/lang/fileutil.c if (buf) buf 126 lib/lang/fileutil.c free(buf); buf 138 lib/lang/fileutil.c char *buf; buf 140 lib/lang/fileutil.c buf = load_file(filename, 0, 1); buf 141 lib/lang/fileutil.c if (!buf) buf 145 lib/lang/fileutil.c *value_p = strtol(buf, NULL, 10 /*dec*/); buf 146 lib/lang/fileutil.c free(buf); buf 155 lib/lang/fileutil.c char* buf = umalloc(20); buf 156 lib/lang/fileutil.c if ( !buf ) buf 159 lib/lang/fileutil.c sprintf(buf,"%d", value); buf 164 lib/lang/fileutil.c write(fd, buf, strlen(buf)+1); buf 167 lib/lang/fileutil.c ufree(buf); buf 91 lib/lang/lang.c int lang_parse_from_mem(char *buf, int size) { buf 113 lib/lang/lang.c e = buf-1; buf 38 lib/lua/lbaselib.c char buf[128]; buf 39 lib/lua/lbaselib.c const int max_buf_chars=sizeof(buf)-1; buf 41 lib/lua/lbaselib.c buf[0] = 0; buf 62 lib/lua/lbaselib.c strcpy(buf+buf_chars," "); buf 66 lib/lua/lbaselib.c strncpy(buf+buf_chars,s,max_buf_chars-buf_chars); buf 67 lib/lua/lbaselib.c buf[max_buf_chars]=0; buf 70 lib/lua/lbaselib.c strcpy(buf+buf_chars,s); buf 71 lib/lua/lbaselib.c buf_chars = strlen(buf); buf 77 lib/lua/lbaselib.c fprintf(stdout,"%s\n",buf); buf 79 lib/lua/lbaselib.c script_console_add_line((long)buf); buf 100 lib/lua/lfmathlib.c char buf[100]; buf 122 lib/lua/lfmathlib.c sprintf(buf, fmt, w, d); buf 125 lib/lua/lfmathlib.c sprintf(buf, "%s%d", s, w); buf 127 lib/lua/lfmathlib.c lua_pushstring(L, buf); buf 969 lib/ubasic/ubasic.c static char buf[128]; buf 971 lib/ubasic/ubasic.c buf[0]=0; buf 977 lib/ubasic/ubasic.c sprintf(buf+strlen(buf), "%s", string); buf 980 lib/ubasic/ubasic.c strcat(buf, " "); buf 985 lib/ubasic/ubasic.c sprintf(buf+strlen(buf), "%d", expr()); buf 988 lib/ubasic/ubasic.c script_console_add_line((long)buf); buf 2754 lib/ubasic/ubasic.c char buf[100]; buf 2764 lib/ubasic/ubasic.c sprintf(buf, "uBASIC:%d %s ", ubasic_linenumber(), msg); buf 2766 lib/ubasic/ubasic.c script_console_add_error((long)buf); buf 69 modules/cpuinfo.c char buf[100]; buf 89 modules/cpuinfo.c sprintf(buf,"%-10s 0x%08X\n",cpuinfo_desc[i].name,wordval); buf 90 modules/cpuinfo.c fwrite(buf,1,strlen(buf),finfo); buf 92 modules/cpuinfo.c p=buf; buf 101 modules/cpuinfo.c fwrite(buf,1,strlen(buf),finfo); buf 106 modules/cpuinfo.c sprintf(buf, lang_str(LANG_CPUINFO_WROTE), "A/CPUINFO.TXT"); buf 107 modules/cpuinfo.c gui_mbox_init(LANG_MENU_DEBUG_CPU_INFO,(int)buf,MBOX_FUNC_RESTORE|MBOX_TEXT_CENTER, cpuinfo_finish); buf 1281 modules/cpuinfo_v7.c unsigned interpret_l1_table_entry(unsigned e, char *buf) { buf 1303 modules/cpuinfo_v7.c sprintf(buf,"Fault,"); buf 1346 modules/cpuinfo_v7.c sprintf(buf,"%s,%s,%s,%u,%s,%s,%s,%s,%s,%s,%s,",col.typ,col.pbit, buf 1358 modules/cpuinfo_v7.c unsigned interpret_l2_table_entry(unsigned e, char *buf) { buf 1389 modules/cpuinfo_v7.c sprintf(buf,"Fault,"); buf 1418 modules/cpuinfo_v7.c sprintf(buf,"%s,%s,%s,,%s,%s,%s,%s,%s,%s,%s,",col.typ,col.pbit, buf 68 modules/dbg_dump.c static dumpinfo buf; buf 70 modules/dbg_dump.c dumpinfo *pb = ADR_TO_UNCACHED(&buf); buf 162 modules/dbg_dump.c static char buf[128]; // could overflow if expr is long buf 163 modules/dbg_dump.c sprintf(buf,"ASSERT %s:%d %s",file,line,expr); buf 164 modules/dbg_dump.c script_console_add_error( (long)buf ); buf 165 modules/dbg_dump.c dbg_dump_write(dumpfile,0,sizeof(buf),buf); buf 793 modules/dng.c int *buf; buf 803 modules/dng.c buf=malloc(BUF_SIZE); buf 804 modules/dng.c if (buf) buf 810 modules/dng.c fread(buf, 1, 8, dng); buf 811 modules/dng.c if (buf[0]==0x2A4949 && buf[1]==8) buf 820 modules/dng.c fread(buf, 1, BUF_SIZE, dng); buf 821 modules/dng.c reverse_bytes_order2((char*)buf, (char*)buf, BUF_SIZE); buf 822 modules/dng.c fwrite(buf, 1, BUF_SIZE, raw); buf 824 modules/dng.c fread(buf, 1, camera_sensor.raw_size%BUF_SIZE, dng); buf 825 modules/dng.c reverse_bytes_order2((char*)buf, (char*)buf, camera_sensor.raw_size%BUF_SIZE); buf 826 modules/dng.c fwrite(buf, 1, camera_sensor.raw_size%BUF_SIZE, raw); buf 834 modules/dng.c free(buf); buf 901 modules/dng.c char *buf = thumbnail_buf; buf 928 modules/dng.c *buf++ = gamma[get_raw_pixel(x,y)>>shift]; // red pixel buf 931 modules/dng.c *buf++ = gamma[g+(g>>2)]; // green pixel was (6*g/10), now (g/2 + g/8) buf 932 modules/dng.c *buf++ = gamma[get_raw_pixel(x+1,y+1)>>shift]; // blue pixel buf 22 modules/edgeoverlay.h extern int module_restore_edge(void **buf); buf 23 modules/edgeoverlay.h extern void module_save_edge(void* buf, int state); buf 144 modules/eyefi.c unsigned char buf[EYEFI_BUF_SIZE]; // raw buffer data buf 153 modules/eyefi.c memset(eyefi_buf.buf, 0, EYEFI_BUF_SIZE); buf 255 modules/eyefi.c int bytesWritten = write(fd, eyefi_buf.buf, EYEFI_BUF_SIZE); buf 272 modules/eyefi.c int bytesRead = read(fd, eyefi_buf.buf, EYEFI_BUF_SIZE); buf 34 modules/eyefi.h void pbkdf2_sha1(const char *passphrase, const char *ssid, size_t ssid_len, int iterations, u8 *buf, size_t buflen); buf 113 modules/file_shelter.c int read_file_f(char *fn, void *buf, int size) buf 118 modules/file_shelter.c ret = fread(buf, 1, size, fd); buf 130 modules/file_shelter.c int read_file_o(char *fn, void *buf, int size) buf 135 modules/file_shelter.c ret = read(fd, buf, size); buf 147 modules/file_shelter.c int compute_file_crc_f(char *fn, void *buf, int size, int bufsize, unsigned long *crc) buf 150 modules/file_shelter.c if (!fn || !buf || !crc || !bufsize) { buf 157 modules/file_shelter.c long r = fread(buf, 1, chunk, fd); buf 164 modules/file_shelter.c crc32(buf, r, crc); buf 175 modules/file_shelter.c int compute_file_crc_o(char *fn, void *buf, int size, int bufsize, unsigned long *crc) buf 178 modules/file_shelter.c if (!fn || !buf || !crc || !bufsize) { buf 185 modules/file_shelter.c long r = read(fd, buf, chunk); buf 192 modules/file_shelter.c crc32(buf, r, crc); buf 203 modules/file_shelter.c int write_file_f(char *fn, void *buf, int size) buf 208 modules/file_shelter.c ret = fwrite(buf, 1, size, fd); buf 220 modules/file_shelter.c int write_file_o(char *fn, void *buf, int size) buf 225 modules/file_shelter.c ret = write(fd, buf, size); buf 239 modules/file_shelter.c int read_file(char *fn, void *buf, int size) buf 242 modules/file_shelter.c return read_file_o(fn, buf, size); buf 244 modules/file_shelter.c return read_file_f(fn, buf, size); buf 249 modules/file_shelter.c int write_file(char *fn, void *buf, int size) buf 252 modules/file_shelter.c return write_file_o(fn, buf, size); buf 254 modules/file_shelter.c return write_file_f(fn, buf, size); buf 259 modules/file_shelter.c int compute_file_crc(char *fn, void *buf, int size, int bufsize, unsigned long *crc) buf 262 modules/file_shelter.c return compute_file_crc_o(fn, buf, size, bufsize, crc); buf 264 modules/file_shelter.c return compute_file_crc_f(fn, buf, size, bufsize, crc); buf 654 modules/file_shelter.c char buf[64]; buf 655 modules/file_shelter.c sprintf(buf,"%s need %x got %x",exmemtypes[i],storageneed,ai.len); buf 656 modules/file_shelter.c console_add_line(buf); buf 660 modules/file_shelter.c char buf[64]; buf 661 modules/file_shelter.c sprintf(buf,"%s adr %x",exmemtypes[i],starea); buf 662 modules/file_shelter.c console_add_line(buf); buf 685 modules/file_shelter.c char buf[256]; buf 708 modules/file_shelter.c sprintf(buf,"%s/%s",dest,lastdir); buf 710 modules/file_shelter.c ret |= mkdir_if_not_exist(buf)?0x20000000:0; buf 711 modules/file_shelter.c if (stat(buf,0) == 0) { buf 749 modules/file_shelter.c sprintf(buf,"%s/%s",dest,fn); buf 752 modules/file_shelter.c if ( write_file(buf, fd, fh->size) ) { buf 760 modules/file_shelter.c if ( compute_file_crc(buf, tmpbuf, fh->size, tmpsiz, &crc) ) { buf 774 modules/file_shelter.c utime(buf, &t); buf 781 modules/file_shelter.c utime(buf, &t); buf 34 modules/games/gui_mastermind.c static char buf[128]; buf 272 modules/games/gui_mastermind.c sprintf(buf, "Time: %2u:%02u Batt:%3d%%", ttm->tm_hour, ttm->tm_min, get_batt_perc()); buf 274 modules/games/gui_mastermind.c buf, TEXT_COLOR, 0, camera_screen.disp_width-FONT_WIDTH, TEXT_RIGHT); buf 46 modules/games/gui_reversi.c static char buf[128]; buf 330 modules/games/gui_reversi.c sprintf(buf, " %d ", NumPl1); buf 331 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*2, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); buf 335 modules/games/gui_reversi.c sprintf(buf, " %d ", NumPl2); buf 336 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*6, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); buf 423 modules/games/gui_reversi.c sprintf(buf, "Batt:%3d%%", get_batt_perc()); buf 425 modules/games/gui_reversi.c buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE), 0, camera_screen.disp_width, TEXT_RIGHT); buf 160 modules/games/gui_sokoban.c char *buf; buf 172 modules/games/gui_sokoban.c buf=malloc(len+1); buf 173 modules/games/gui_sokoban.c if(!buf) { buf 180 modules/games/gui_sokoban.c free(buf); buf 183 modules/games/gui_sokoban.c fread(buf,1,len,fd); buf 184 modules/games/gui_sokoban.c buf[len]=0; buf 187 modules/games/gui_sokoban.c p=buf; buf 209 modules/games/gui_sokoban.c p=buf; buf 220 modules/games/gui_sokoban.c free(buf); buf 288 modules/games/gui_sokoban.c char *buf,*p; buf 299 modules/games/gui_sokoban.c buf=malloc(st.st_size+1); buf 300 modules/games/gui_sokoban.c if(!buf) { buf 305 modules/games/gui_sokoban.c fread(buf,1,st.st_size,fd); buf 306 modules/games/gui_sokoban.c buf[st.st_size]=0; buf 308 modules/games/gui_sokoban.c p = buf; buf 314 modules/games/gui_sokoban.c unsigned pos = p - buf; buf 322 modules/games/gui_sokoban.c unsigned len = p - (buf + level_start_list[num_levels]); buf 332 modules/games/gui_sokoban.c free(buf); buf 1016 modules/games/gui_sudoku.c char *buf = load_file("A/CHDK/GAMES/SUDOKU.SAV", 0, 0); buf 1017 modules/games/gui_sudoku.c if (buf) { //load last sudoku buf 1018 modules/games/gui_sudoku.c memcpy(user, buf, sizeof(user)); buf 1019 modules/games/gui_sudoku.c memcpy(field, buf+sizeof(user), sizeof(field)); buf 1020 modules/games/gui_sudoku.c free(buf); buf 684 modules/games/gui_tetris.c long buf; buf 685 modules/games/gui_tetris.c buf = game->stats.score; buf 689 modules/games/gui_tetris.c fwrite(&buf, 1, sizeof(buf), f); buf 774 modules/games/gui_tetris.c long buf; buf 784 modules/games/gui_tetris.c fread(&buf, 1, sizeof(buf), f); buf 785 modules/games/gui_tetris.c game->stats.high = buf; buf 43 modules/gui_bench.c static char buf[48]; buf 94 modules/gui_bench.c sprintf(buf, "%7d Kb/s %3d FPS", value/1024, (ss==0)?0:value/ss); buf 96 modules/gui_bench.c strcpy(buf, clearline); buf 97 modules/gui_bench.c draw_txt_string(17, pos, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 105 modules/gui_bench.c sprintf(buf, "%7d C, %6d UC Kb/s ", value/1024, value_uc/1024); buf 107 modules/gui_bench.c strcpy(buf, clearline); buf 108 modules/gui_bench.c draw_txt_string(17, pos, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 116 modules/gui_bench.c sprintf(buf, "%7d Kb/s ", value); buf 118 modules/gui_bench.c strcpy(buf, clearline); buf 119 modules/gui_bench.c draw_txt_string(17, pos, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 128 modules/gui_bench.c sprintf(buf, "%7d MIPS ", value); buf 130 modules/gui_bench.c strcpy(buf, clearline); buf 131 modules/gui_bench.c draw_txt_string(17, pos, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 142 modules/gui_bench.c sprintf(buf, " %d, %d c/s %d, %d FPS", value, valuen, s, sn); buf 145 modules/gui_bench.c strcpy(buf, clearline); buf 146 modules/gui_bench.c draw_txt_string(17, pos, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 272 modules/gui_bench.c add_to_log(log_run,"CPU :",buf); buf 275 modules/gui_bench.c add_to_log(log_run,"Screen write :",buf); buf 277 modules/gui_bench.c add_to_log(log_run,"Viewport read :",buf); buf 280 modules/gui_bench.c add_to_log(log_run,"Memory write :",buf); buf 282 modules/gui_bench.c add_to_log(log_run,"Memory read :",buf); buf 285 modules/gui_bench.c add_to_log(log_run,"Text drawing :",buf); buf 286 modules/gui_bench.c buf[0] = 0; // empty buffer before optional tests to avoid confusing output when those are not enabled buf 289 modules/gui_bench.c add_to_log(log_run,"Card write (RAW):",buf); buf 291 modules/gui_bench.c add_to_log(log_run,"Card write (MEM):",buf); buf 293 modules/gui_bench.c add_to_log(log_run,"Card write (64k):",buf); buf 295 modules/gui_bench.c add_to_log(log_run,"Card read (64k):",buf); buf 387 modules/gui_bench.c register char *buf = (char *)buff; buf 393 modules/gui_bench.c buf=ADR_TO_UNCACHED(buf); buf 405 modules/gui_bench.c :: "r" (buf), "r" (buf+0x10000), "r" (n) : "r0", "r1" buf 420 modules/gui_bench.c register char *buf = (char *)buff; buf 426 modules/gui_bench.c buf=ADR_TO_UNCACHED(buf); buf 438 modules/gui_bench.c :: "r" (buf), "r" (buf+0x10000), "r" (n) : "r0", "r1" buf 27 modules/gui_debug.c static char buf[32]; buf 48 modules/gui_debug.c sprintf(buf, "0x%08X (%10u)", *((unsigned int*)addr), *((unsigned int*)addr)); buf 49 modules/gui_debug.c draw_string(10*FONT_WIDTH, y, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 51 modules/gui_debug.c sprintf(buf, "0x%04X ( %5hu)", *((unsigned short*)addr), *((unsigned short*)addr)); buf 52 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 54 modules/gui_debug.c sprintf(buf, "0x%02X ( %3hu)", *((unsigned char*)addr), *((unsigned char*)addr)); buf 55 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+2*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 58 modules/gui_debug.c if (*((char*)(addr+i))) buf[i]=*((char*)(addr+i)); buf 62 modules/gui_debug.c buf[i++]=' '; buf 64 modules/gui_debug.c buf[i]=0; buf 65 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+3*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 98 modules/gui_debug.c sprintf(buf, "0x%08X", addr); buf 99 modules/gui_debug.c draw_string(10*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 100 modules/gui_debug.c sprintf(buf, "0x%08X", step); buf 101 modules/gui_debug.c draw_string(28*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 102 modules/gui_debug.c sprintf(buf,"%0d",debug_cont_update); buf 103 modules/gui_debug.c draw_string(44*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 68 modules/gui_fselect.c static char buf[MAX_PATH_LEN]; buf 1274 modules/gui_fselect.c char *p = buf + sprintf(buf,"%s %s\n",selected->name,lang_str(LANG_FSELECT_SUB_FROM)); buf 1296 modules/gui_fselect.c gui_mbox_init(LANG_FSELECT_SUBTRACT, (int)buf, buf 1338 modules/gui_fselect.c sprintf(buf, "%s/%s", items.dir, selected->name); buf 1339 modules/gui_fselect.c raw_prepare_develop(buf, 1); buf 1366 modules/gui_fselect.c sprintf(buf, "%s/%s", items.dir, name); buf 1367 modules/gui_fselect.c rename(selected_file, buf); buf 1401 modules/gui_fselect.c sprintf(buf, lang_str((marked_operation == MARKED_OP_CUT)?LANG_FSELECT_CUT_TEXT:LANG_FSELECT_COPY_TEXT), marked_items.count, marked_items.dir); buf 1403 modules/gui_fselect.c (int)buf, MBOX_TEXT_CENTER|MBOX_BTN_YES_NO|MBOX_DEF_BTN2, fselect_marked_paste_cb); buf 1406 modules/gui_fselect.c sprintf(buf, lang_str(LANG_FSELECT_DELETE_TEXT), fselect_marked_count()); buf 1407 modules/gui_fselect.c gui_mbox_init(LANG_FSELECT_DELETE_TITLE, (int)buf, buf 106 modules/gui_hexbox.c char buf[12]; buf 108 modules/gui_hexbox.c sprintf(buf, "0x%08X", hexnum); buf 109 modules/gui_hexbox.c draw_string(posx, posy, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 112 modules/gui_hexbox.c draw_char(posx+digit*FONT_WIDTH, posy, buf[digit], MAKE_COLOR(COLOR_RED, COLOR_WHITE)); buf 120 modules/gui_hexbox.c char buf[12]; buf 122 modules/gui_hexbox.c sprintf(buf, "%4dM%s", hexnum>>20, ((hexnum&0xfffff)>0)?"+":" " ); buf 125 modules/gui_hexbox.c sprintf(buf, "%4dk%s", hexnum>>10, ((hexnum&0x3ff)>0)?"+":" " ); buf 128 modules/gui_hexbox.c sprintf(buf, "%4d ", hexnum); buf 130 modules/gui_hexbox.c draw_string(posx, posy, buf, MAKE_COLOR(COLOR_WHITE, COLOR_BLACK)); buf 260 modules/gui_palette.c static char buf[64]; buf 282 modules/gui_palette.c sprintf(buf, " %s: 0x%02hX 0x%08X", lang_str(LANG_PALETTE_TEXT_COLOR), cl.col, pal[chdkColorToCanonColor(cl)]); buf 284 modules/gui_palette.c sprintf(buf, " %s: 0x%02hX", lang_str(LANG_PALETTE_TEXT_COLOR), cl.col ); buf 285 modules/gui_palette.c draw_string(xl, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); buf 651 modules/luascript.c void *buf; buf 655 modules/luascript.c buf = malloc(size); buf 656 modules/luascript.c if(!buf) { buf 659 modules/luascript.c if(get_property_case(prop_id,buf,size) == 0) { buf 660 modules/luascript.c lua_pushlstring( L, buf, size ); buf 664 modules/luascript.c free(buf); buf 868 modules/luascript.c char *buf = malloc(size); buf 869 modules/luascript.c if(!buf) { buf 872 modules/luascript.c get_parameter_data( id, buf, size ); buf 873 modules/luascript.c lua_pushlstring( L, buf, size ); buf 874 modules/luascript.c free(buf); buf 113 modules/md5.c u32 buf[4]; buf 120 modules/md5.c static void MD5Update(struct MD5Context *context, unsigned char const *buf, buf 124 modules/md5.c static void MD5Transform(u32 buf[4], u32 const in[16]); buf 168 modules/md5.c #define byteReverse(buf, len) /* Nothing */ buf 173 modules/md5.c static void byteReverse(unsigned char *buf, unsigned longs) buf 177 modules/md5.c t = (u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | buf 178 modules/md5.c ((unsigned) buf[1] << 8 | buf[0]); buf 179 modules/md5.c *(u32 *) buf = t; buf 180 modules/md5.c buf += 4; buf 191 modules/md5.c ctx->buf[0] = 0x67452301; buf 192 modules/md5.c ctx->buf[1] = 0xefcdab89; buf 193 modules/md5.c ctx->buf[2] = 0x98badcfe; buf 194 modules/md5.c ctx->buf[3] = 0x10325476; buf 204 modules/md5.c void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len) buf 224 modules/md5.c os_memcpy(p, buf, len); buf 227 modules/md5.c os_memcpy(p, buf, t); buf 229 modules/md5.c MD5Transform(ctx->buf, (u32 *) ctx->in); buf 230 modules/md5.c buf += t; buf 236 modules/md5.c os_memcpy(ctx->in, buf, 64); buf 238 modules/md5.c MD5Transform(ctx->buf, (u32 *) ctx->in); buf 239 modules/md5.c buf += 64; buf 245 modules/md5.c os_memcpy(ctx->in, buf, len); buf 273 modules/md5.c MD5Transform(ctx->buf, (u32 *) ctx->in); buf 287 modules/md5.c MD5Transform(ctx->buf, (u32 *) ctx->in); buf 288 modules/md5.c byteReverse((unsigned char *) ctx->buf, 4); buf 289 modules/md5.c os_memcpy(digest, ctx->buf, 16); buf 310 modules/md5.c static void MD5Transform(u32 buf[4], u32 const in[16]) buf 314 modules/md5.c a = buf[0]; buf 315 modules/md5.c b = buf[1]; buf 316 modules/md5.c c = buf[2]; buf 317 modules/md5.c d = buf[3]; buf 387 modules/md5.c buf[0] += a; buf 388 modules/md5.c buf[1] += b; buf 389 modules/md5.c buf[2] += c; buf 390 modules/md5.c buf[3] += d; buf 119 modules/module_load.c int b_read(int fd, char* buf, int len) buf 130 modules/module_load.c memcpy(buf+loaded, buf_load, now); buf 188 modules/module_load.c char buf[100]; buf 189 modules/module_load.c sprintf(buf, "Fail to load %s: %s", name, text); buf 192 modules/module_load.c console_add_line(buf); buf 208 modules/module_load.c unsigned char* buf = (unsigned char*)flat; // base address of module in memory buf 214 modules/module_load.c *(uint32_t*)(buf+rbuf[i]) += (uint32_t)buf; buf 251 modules/module_load.c unsigned char* buf = (unsigned char*)flat; // base address of module in memory buf 268 modules/module_load.c *(uint32_t*)(buf+offs) += importaddress; buf 302 modules/module_load.c static void module_writeline(char *buf) buf 310 modules/module_load.c write(fd, buf, strlen(buf)); buf 330 modules/module_load.c char buf[100]; buf 335 modules/module_load.c sprintf(buf, "Tick ,Op,Address ,Name (%04d:%02d:%02d %02d:%02d:%02d)\n", ttm->tm_year+1900, ttm->tm_mon+1, ttm->tm_mday, ttm->tm_hour, ttm->tm_min, ttm->tm_sec); buf 337 modules/module_load.c module_writeline(buf); buf 353 modules/module_load.c char buf[100]; buf 354 modules/module_load.c sprintf(buf,"%8d,LD,%08x,%s\n",get_tick_count(),adr,name); buf 357 modules/module_load.c module_writeline(buf); buf 366 modules/module_load.c char buf[100]; buf 367 modules/module_load.c sprintf(buf,"%8d,UN, ,%s\n",get_tick_count(),name); buf 370 modules/module_load.c module_writeline(buf); buf 718 modules/module_load.c char buf[100]; buf 719 modules/module_load.c sprintf(buf, lang_str(err), name); buf 720 modules/module_load.c gui_mbox_init(LANG_ERROR, (int)buf, MBOX_BTN_OK|MBOX_TEXT_CENTER, NULL); buf 346 modules/motion_detector.c char buf[200], fn[30]; buf 382 modules/motion_detector.c ln=sprintf(buf,"[%d] - %d\r\n",i,motion_detector.comp_calls[i]); buf 387 modules/motion_detector.c memcpy(big+big_ln,buf,ln+1); buf 18 modules/scrdump.c int (*send_data)(int handle, const char *buf, int part_size, int total_size, int, int, int); // total_size will be 0 except for the first call buf 23 modules/scrdump.c int send_data_to_file(int handle, const char *buf, int part_size, int total_size, __attribute__ ((unused))int u1, __attribute__ ((unused))int u2, __attribute__ ((unused))int u3) buf 30 modules/scrdump.c write(handle, buf, part_size); buf 127 modules/sha1.c const u8 *data, size_t data_len, u8 *buf, size_t buf_len) buf 150 modules/sha1.c &buf[pos]); buf 155 modules/sha1.c memcpy(&buf[pos], hash, plen); buf 178 modules/sha1.c const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) buf 207 modules/sha1.c memcpy(&buf[pos], hash, SHA1_MAC_LEN); buf 210 modules/sha1.c memcpy(&buf[pos], hash, plen); buf 353 modules/sha1.c int iterations, u8 *buf, size_t buflen) buf 356 modules/sha1.c unsigned char *pos = buf; buf 623 modules/user_menu_edit.c char* buf; buf 625 modules/user_menu_edit.c buf = load_file(fn, 0, 1); buf 627 modules/user_menu_edit.c if (buf) buf 630 modules/user_menu_edit.c register const char *ptr = buf; buf 662 modules/user_menu_edit.c free(buf); buf 109 modules/zebra.c static unsigned char *buf = NULL; buf 122 modules/zebra.c if (buf != scr_buf) free(buf); buf 123 modules/zebra.c buf = NULL; buf 140 modules/zebra.c if (!buf) buf 148 modules/zebra.c buf = malloc(buffer_size); buf 151 modules/zebra.c if (!buf) buf 153 modules/zebra.c buf = scr_buf; //without new buffer: directly into screen buffer: we got some flickering in OSD and histogram but it's usable buf 171 modules/zebra.c memset(buf,0,buffer_size); buf 175 modules/zebra.c if (buf) // if zebra was previously on, restore buf 180 modules/zebra.c return (buf != NULL); buf 188 modules/zebra.c buf[offset] = cl; buf 231 modules/zebra.c if (buf != scr_buf) buf 232 modules/zebra.c memcpy(scr_buf, buf, buffer_size); buf 233 modules/zebra.c memcpy(scr_buf+camera_screen.buffer_size, buf, buffer_size); buf 263 modules/zebra.c memset(buf, COLOR_TRANSPARENT, viewport_yoffset*camera_screen.buffer_width); buf 264 modules/zebra.c memset(buf+(viewport_yoffset+viewport_height)*camera_screen.buffer_width, COLOR_TRANSPARENT, viewport_yoffset*camera_screen.buffer_width); buf 273 modules/zebra.c memset(buf+sy, COLOR_TRANSPARENT, sx*2); buf 274 modules/zebra.c memset(buf+sy+(sx+viewport_width)*2, COLOR_TRANSPARENT, sx*2); buf 292 modules/zebra.c buf[s] = buf[s+1] = cls[sel]; buf 293 modules/zebra.c buf[s+2] = buf[s+3] = cls[sel]; buf 296 modules/zebra.c buf[s] = buf[s+1] = COLOR_TRANSPARENT; buf 298 modules/zebra.c buf[s] = buf[s+1] = (yy>over)?cl_over:(yy<conf.zebra_under)?cl_under:COLOR_TRANSPARENT; buf 300 modules/zebra.c if (buf[s] != COLOR_TRANSPARENT && !zebra_drawn) buf 317 modules/zebra.c memset(buf, COLOR_TRANSPARENT, buffer_size); buf 394 modules/zebra.c buf[s]=buf[s+1]=cls[sel]; buf 396 modules/zebra.c else if (((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) buf[s]=COLOR_TRANSPARENT; buf 397 modules/zebra.c else buf[s]=(yy>over)?cl_over:(yy<conf.zebra_under)?cl_under:COLOR_TRANSPARENT; buf 398 modules/zebra.c if (buf[s] != COLOR_TRANSPARENT && !zebra_drawn) zebra_drawn = 1; buf 401 modules/zebra.c if(get_cur_buf(s)!=COLOR_TRANSPARENT) buf[s]=get_cur_buf(s); buf 402 modules/zebra.c if(conf.zebra_multichannel && get_cur_buf(s+1)!=COLOR_TRANSPARENT) buf[s+1]=get_cur_buf(s+1); buf 407 modules/zebra.c memcpy(buf+s, buf+s-camera_screen.buffer_width, camera_screen.buffer_width); buf 422 modules/zebra.c memcpy(buf, cur_buf_top, camera_screen.buffer_width * ZFIX_TOP); buf 423 modules/zebra.c memcpy(buf + buffer_size - camera_screen.buffer_width * ZFIX_BOTTOM, cur_buf_bot, camera_screen.buffer_width * ZFIX_BOTTOM); buf 425 modules/zebra.c buf[s]=COLOR_TRANSPARENT; buf 429 modules/zebra.c memset(buf, COLOR_TRANSPARENT, buffer_size); buf 128 platform/g11/lib.c int buf = active_viewport_buffer-1; buf 129 platform/g11/lib.c if(buf < 0) { buf 130 platform/g11/lib.c buf = 2; buf 133 platform/g11/lib.c return viewport_buffers[buf]; buf 160 platform/g5x/shooting.c static char buf[32]; buf 162 platform/g5x/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 163 platform/g5x/shooting.c strncpy(out,buf,15); buf 161 platform/g7x2/shooting.c static char buf[32]; buf 163 platform/g7x2/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 164 platform/g7x2/shooting.c strncpy(out,buf,15); buf 41 platform/g7x2/wrappers.c long _GetPropertyCase(long opt_id, void *buf, long bufsize) buf 43 platform/g7x2/wrappers.c extern long _GetPropertyCase_FW(long opt_id, void *buf, long bufsize); buf 44 platform/g7x2/wrappers.c long rv = _GetPropertyCase_FW(opt_id, buf, bufsize); buf 47 platform/g7x2/wrappers.c if (*((short*)buf) == 4) buf 48 platform/g7x2/wrappers.c *((short*)buf) = 1; buf 210 platform/generic/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); buf 213 platform/generic/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) buf 218 platform/generic/main.c fwrite(buf, 1, len, fd); buf 222 platform/generic/main.c return _tyWriteOrig(hdr, buf, len); buf 239 platform/generic/main.c char buf[256]; buf 240 platform/generic/main.c int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); buf 241 platform/generic/main.c fwrite(buf, 1, buflen, fd); buf 75 platform/generic/wrappers.c long get_property_case(long id, void *buf, long bufsize) buf 80 platform/generic/wrappers.c int r=_GetPropertyCase(PROPCASE_SHOOTING_STATE, buf, bufsize); buf 85 platform/generic/wrappers.c if(*(char *)buf > 1) { buf 86 platform/generic/wrappers.c *(char *)buf = 1; buf 88 platform/generic/wrappers.c *(char *)buf = 0; buf 93 platform/generic/wrappers.c return _GetPropertyCase(id, buf, bufsize); buf 96 platform/generic/wrappers.c long set_property_case(long id, void *buf, long bufsize) buf 105 platform/generic/wrappers.c return _SetPropertyCase(id, buf, bufsize); buf 147 platform/generic/wrappers.c long get_parameter_data(long id, void *buf, long bufsize) buf 149 platform/generic/wrappers.c return _GetParameterData(id|PARAMETER_DATA_FLAG, buf, bufsize); buf 152 platform/generic/wrappers.c long set_parameter_data(long id, void *buf, long bufsize) buf 154 platform/generic/wrappers.c return _SetParameterData(id|PARAMETER_DATA_FLAG, buf, bufsize); buf 794 platform/generic/wrappers.c long fread(void *buf, long elsize, long count, FILE *f) { buf 795 platform/generic/wrappers.c return _Fread_Fut(buf,elsize,count,(long)f); buf 798 platform/generic/wrappers.c long fwrite(const void *buf, long elsize, long count, FILE *f) { buf 799 platform/generic/wrappers.c return _Fwrite_Fut(buf,elsize,count,(long)f); buf 814 platform/generic/wrappers.c char *fgets(char *buf, int n, FILE *f) { buf 815 platform/generic/wrappers.c return _Fgets_Fut(buf,n,(int)f); buf 987 platform/generic/wrappers.c int buf[6]; buf 988 platform/generic/wrappers.c buf[0] = year; buf 989 platform/generic/wrappers.c buf[1] = month; buf 990 platform/generic/wrappers.c buf[2] = day; buf 991 platform/generic/wrappers.c buf[3] = hour; buf 992 platform/generic/wrappers.c buf[4] = minute; buf 993 platform/generic/wrappers.c buf[5] = second; buf 994 platform/generic/wrappers.c _SetDate(buf); buf 131 platform/ixus100_sd780/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); buf 134 platform/ixus100_sd780/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) buf 139 platform/ixus100_sd780/main.c fwrite(buf, 1, len, fd); buf 143 platform/ixus100_sd780/main.c return _tyWriteOrig(hdr, buf, len); buf 159 platform/ixus100_sd780/main.c char buf[256]; buf 160 platform/ixus100_sd780/main.c int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); buf 161 platform/ixus100_sd780/main.c fwrite(buf, 1, buflen, fd); buf 149 platform/ixus132_elph115/shooting.c static char buf[32]; buf 151 platform/ixus132_elph115/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 152 platform/ixus132_elph115/shooting.c strncpy(out,buf,15); buf 149 platform/ixus135_elph120/shooting.c static char buf[32]; buf 151 platform/ixus135_elph120/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 152 platform/ixus135_elph120/shooting.c strncpy(out,buf,15); buf 112 platform/ixus145_elph135/shooting.c static char buf[32]; buf 114 platform/ixus145_elph135/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 115 platform/ixus145_elph135/shooting.c strncpy(out,buf,15); buf 111 platform/ixus155_elph150/shooting.c static char buf[32]; buf 113 platform/ixus155_elph150/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 114 platform/ixus155_elph150/shooting.c strncpy(out,buf,15); buf 441 platform/ixus240_elph320hs/kbd.c char buf[30]; buf 498 platform/ixus240_elph320hs/kbd.c strcpy(buf,(char*)keymap[i].chg_val(0,(int)keymap[i].conf_val)); buf 499 platform/ixus240_elph320hs/kbd.c buf[6] = 0; buf 500 platform/ixus240_elph320hs/kbd.c draw_string(x1+4, y1+25, buf, cl); buf 148 platform/ixus255_elph330hs/shooting.c static char buf[32]; buf 150 platform/ixus255_elph330hs/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 151 platform/ixus255_elph330hs/shooting.c strncpy(out,buf,15); buf 7 platform/ixus30_sd200/lib.c extern long _GetPropertyCase_orig(long opt_id, void *buf, long bufsize); buf 8 platform/ixus30_sd200/lib.c extern long _SetPropertyCase_orig(long opt_id, void *buf, long bufsize); buf 234 platform/ixus30_sd200/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); buf 237 platform/ixus30_sd200/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) buf 242 platform/ixus30_sd200/main.c fwrite(buf, 1, len, fd); buf 246 platform/ixus30_sd200/main.c return _tyWriteOrig(hdr, buf, len); buf 262 platform/ixus30_sd200/main.c char buf[256]; buf 263 platform/ixus30_sd200/main.c int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); buf 264 platform/ixus30_sd200/main.c fwrite(buf, 1, buflen, fd); buf 215 platform/ixus310_elph500hs/kbd.c char buf[30]; buf 253 platform/ixus310_elph500hs/kbd.c strcpy(buf,(char*)keymap[i].chg_val(0,(int)keymap[i].conf_val)); buf 254 platform/ixus310_elph500hs/kbd.c buf[6] = 0; buf 255 platform/ixus310_elph500hs/kbd.c xo = (58 - strlen(buf)*FONT_WIDTH*sc) / 2; buf 256 platform/ixus310_elph500hs/kbd.c draw_string(x1+xo, y1+yo+18, buf, cl); buf 6 platform/ixus40_sd300/lib.c extern long _GetPropertyCase_orig(long opt_id, void *buf, long bufsize); buf 7 platform/ixus40_sd300/lib.c extern long _SetPropertyCase_orig(long opt_id, void *buf, long bufsize); buf 234 platform/ixus40_sd300/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); buf 237 platform/ixus40_sd300/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) buf 242 platform/ixus40_sd300/main.c fwrite(buf, 1, len, fd); buf 246 platform/ixus40_sd300/main.c return _tyWriteOrig(hdr, buf, len); buf 262 platform/ixus40_sd300/main.c char buf[256]; buf 263 platform/ixus40_sd300/main.c int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); buf 264 platform/ixus40_sd300/main.c fwrite(buf, 1, buflen, fd); buf 34 platform/ixus80_sd1100/sub/100c/debug.c void write_crash(char* buf, int len) { buf 35 platform/ixus80_sd1100/sub/100c/debug.c write(crash_fd, buf, len); buf 34 platform/ixus80_sd1100/sub/101a/debug.c void write_crash(char* buf, int len) { buf 35 platform/ixus80_sd1100/sub/101a/debug.c write(crash_fd, buf, len); buf 128 platform/ixus95_sd1200/main.c int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len); buf 131 platform/ixus95_sd1200/main.c int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len) buf 136 platform/ixus95_sd1200/main.c fwrite(buf, 1, len, fd); buf 140 platform/ixus95_sd1200/main.c return _tyWriteOrig(hdr, buf, len); buf 156 platform/ixus95_sd1200/main.c char buf[256]; buf 157 platform/ixus95_sd1200/main.c int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); buf 158 platform/ixus95_sd1200/main.c fwrite(buf, 1, buflen, fd); buf 250 platform/n/kbd.c char buf[30]; buf 313 platform/n/kbd.c strcpy(buf,(char*)keymap[i].chg_val(0,(int)keymap[i].conf_val)); buf 314 platform/n/kbd.c buf[3] = 0; buf 315 platform/n/kbd.c draw_string(x1+4, y1+25, buf, c3); buf 250 platform/n_facebook/kbd.c char buf[30]; buf 313 platform/n_facebook/kbd.c strcpy(buf,(char*)keymap[i].chg_val(0,(int)keymap[i].conf_val)); buf 314 platform/n_facebook/kbd.c buf[3] = 0; buf 315 platform/n_facebook/kbd.c draw_string(x1+4, y1+25, buf, c3); buf 119 platform/sx170is/shooting.c static char buf[32]; buf 121 platform/sx170is/shooting.c _GetImageFolder(buf,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL)); buf 122 platform/sx170is/shooting.c strncpy(out,buf,15); buf 816 tools/code_gen.c char buf[1024]; buf 819 tools/code_gen.c x = fread(buf,1,1024,fp); buf 820 tools/code_gen.c if (x > 0) fwrite(buf,1,x,outfile); buf 98 tools/dumpchk.c char *buf; buf 105 tools/dumpchk.c buf=malloc(size); buf 106 tools/dumpchk.c if(!buf) { buf 111 tools/dumpchk.c fread(buf, 1, size, dumpfile); buf 114 tools/dumpchk.c if(memcmp(buf+i,vxworks_start_sig,sizeof(vxworks_start_sig)) == 0) { buf 119 tools/dumpchk.c if(memcmp(buf+i,dryos_start_sig,sizeof(dryos_start_sig)) == 0) { buf 146 tools/dumpchk.c fwrite(buf+i,1,size-i,dumpfile); buf 150 tools/dumpchk.c free(buf); buf 154 tools/dumpchk.c char *buf; buf 162 tools/dumpchk.c buf = malloc(sigsize); buf 163 tools/dumpchk.c if(!buf) { buf 168 tools/dumpchk.c if( (int)fread(buf,1,sigsize,dumpfile) != sigsize) { buf 172 tools/dumpchk.c retval = (memcmp(buf,sig,sigsize) == 0); buf 174 tools/dumpchk.c free(buf); buf 283 tools/elf2flt/elfflt.c static char buf[200]; buf 287 tools/elf2flt/elfflt.c sprintf(buf," LANGID %d",-offs); buf 288 tools/elf2flt/elfflt.c return buf; buf 294 tools/elf2flt/elfflt.c strncpy( buf, flat_buf+offs, sizeof(buf)-1); buf 295 tools/elf2flt/elfflt.c buf[sizeof(buf)-1]=0; buf 296 tools/elf2flt/elfflt.c return buf; buf 57 tools/elf2flt/fltdump.c static char buf[200]; buf 61 tools/elf2flt/fltdump.c sprintf(buf," LANGID %d",-offs); buf 62 tools/elf2flt/fltdump.c return buf; buf 68 tools/elf2flt/fltdump.c strncpy( buf, (char*)flat_buf+offs, sizeof(buf)-1); buf 69 tools/elf2flt/fltdump.c buf[sizeof(buf)-1]=0; buf 70 tools/elf2flt/fltdump.c return buf; buf 49 tools/elf2flt/myio.c int b_read (void* buf, int count) buf 53 tools/elf2flt/myio.c memcpy(buf, filebuf+filecuridx, count); buf 70 tools/elf2flt/myio.c int b_seek_read(long offset, char *buf, int len) buf 73 tools/elf2flt/myio.c return b_read(buf, len); buf 93 tools/elf2flt/myio.c static char buf[10]; buf 96 tools/elf2flt/myio.c import_buf=buf; buf 18 tools/elf2flt/myio.h int b_read (void* buf, int count); buf 22 tools/elf2flt/myio.h int b_seek_read(long offset, char *buf, int len); buf 3663 tools/finsig_dryos.c if ((sig->offset <= 1) || ((bfadr != fadr) && ((fw->buf[adr2idx(fw,fadr)] & 0xFFFF0000) == 0xE92D0000))) buf 4177 tools/finsig_dryos.c if ((fw->buf[n->off+i+s->value] & 0x0F000000) == 0x0A000000) // B buf 4183 tools/finsig_dryos.c p1 = &fw->buf[idx]; buf 4225 tools/finsig_dryos.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) buf 4233 tools/finsig_dryos.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) buf 4389 tools/finsig_dryos.c uint16_t *p = (uint16_t*)(&fw->buf[k]); buf 4432 tools/finsig_dryos.c if (isBX_LR(fw,k) && (fw->buf[k+4] == fadr)) buf 4454 tools/finsig_dryos.c if (fw->buf[k] == v1) buf 4464 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && (fw->buf[k+2] == 0xFFFF0002)) buf 4491 tools/finsig_dryos.c if ((fw->buf[k] & 0x0FFFF000) == 0x03C00000) // BIC buf 4542 tools/finsig_dryos.c if ((fw->buf[k1] & 0x0FFF0FFF) == 0x058D0034) // STRxx Rn, [SP,#0x34] buf 4544 tools/finsig_dryos.c if ((fw->buf[k1-1] & 0x0FFF0000) == 0x03A00000) // MOVxx Rn, #YYY buf 4549 tools/finsig_dryos.c else if ((fw->buf[k1-2] & 0x0FFF0000) == 0x03A00000)// MOVxx Rn, #YYY buf 4569 tools/finsig_dryos.c if ((fw->buf[k1] & 0x0FFF0FFF) == 0x058D0030) // STRxx Rn, [SP,#0x30] buf 4571 tools/finsig_dryos.c if ((fw->buf[k1-1] & 0x0FFF0000) == 0x03A00000) // MOVxx Rn, #YYY buf 4576 tools/finsig_dryos.c else if ((fw->buf[k1-2] & 0x0FFF0000) == 0x03A00000)// MOVxx Rn, #YYY buf 4591 tools/finsig_dryos.c if ((fw->buf[k1-1] & 0x0FFF0000) == 0x02400000) // SUBxx Rn, #YYY buf 4608 tools/finsig_dryos.c if ((fw->buf[k1] & 0xFFFFF000) == 0xE3A02000) // MOV R2, #nnn buf 4614 tools/finsig_dryos.c if (isLDR_PC(fw,k1) && ((fw->buf[k1]& 0x0000F000) == 0x00002000)) // LDR R2, =nnn buf 4623 tools/finsig_dryos.c if ((fw->buf[k1] & 0xFFFFF000) == 0xE3A03000) // MOV R3, #nnn buf 4629 tools/finsig_dryos.c if (isLDR_PC(fw,k1) && ((fw->buf[k1]& 0x0000F000) == 0x00003000)) // LDR R3, =nnn buf 4635 tools/finsig_dryos.c if ((fw->buf[k1] & 0xFFFFF000) == 0xE2423000) // SUB R3, R2, #nnn buf 4809 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901) // BIC Rn, Rn, #0x4000 buf 4811 tools/finsig_dryos.c uint32_t r = fw->buf[k] & 0x000F0000; // Register buf 4812 tools/finsig_dryos.c if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r)) // CMP, Rn #val buf 4814 tools/finsig_dryos.c bprintf("//int get_flash_params_count(void) { return 0x%02x; } // Found @0x%08x\n",fw->buf[k+1]&0xFFF,idx2adr(fw,k+1)); buf 4825 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFF00FFF) == 0xe3c00902) // BIC Rn, Rn, #0x8000 buf 4827 tools/finsig_dryos.c uint32_t r = fw->buf[k] & 0x000F0000; // Register buf 4828 tools/finsig_dryos.c if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r)) // CMP, Rn #val buf 4831 tools/finsig_dryos.c uint32_t fadr = fw->buf[k+1]&0xFFF; buf 4962 tools/finsig_dryos.c uint32_t reg = fw->buf[k+fbd[f][2]] & 0x000F0000; // Index register used buf 4964 tools/finsig_dryos.c if (((fw->buf[k+fbd[f][0]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][0]; } buf 4965 tools/finsig_dryos.c else if (((fw->buf[k+fbd[f][1]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][1]; } buf 4971 tools/finsig_dryos.c if (isSTR(fw,k1) && ((fw->buf[k1] & 0x000F0000) == reg)) buf 4973 tools/finsig_dryos.c uint32_t ofst = fw->buf[k1] & 0x00000FFF; buf 5143 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) buf 5158 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) && // ADR R1, =sub buf 5160 tools/finsig_dryos.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 buf 5165 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; buf 5173 tools/finsig_dryos.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 buf 5178 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; buf 5200 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5201 tools/finsig_dryos.c (fw->buf[k+1] == 0xE5D01000) && // LDRB R1, [R0] buf 5202 tools/finsig_dryos.c (fw->buf[k+2] == 0xE3811002) && // ORR R1, R1, #2 buf 5203 tools/finsig_dryos.c (fw->buf[k+3] == 0xE5C01000) && // STRB R1, [R0] buf 5214 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 5215 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) && // LDRB R0, [R1, #n] buf 5216 tools/finsig_dryos.c (fw->buf[k+2] == 0xE2800001) && // ADD R0, R0, #1 buf 5217 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) && // STRB R0, [R1, #n] buf 5221 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 5225 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5226 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) && // LDRB R1, [R0, #n] buf 5227 tools/finsig_dryos.c (fw->buf[k+2] == 0xE2811001) && // ADD R1, R1, #1 buf 5228 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) && // STRB R1, [R0, #n] buf 5232 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 5240 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 5241 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n] buf 5242 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5243 tools/finsig_dryos.c ((fw->buf[k+4] & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n] buf 5244 tools/finsig_dryos.c ((fw->buf[k+6] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 5245 tools/finsig_dryos.c ((fw->buf[k+9] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5246 tools/finsig_dryos.c ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 5247 tools/finsig_dryos.c ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5248 tools/finsig_dryos.c ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 5257 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 5291 tools/finsig_dryos.c if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && buf 5292 tools/finsig_dryos.c (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) && buf 5293 tools/finsig_dryos.c (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000)) buf 5297 tools/finsig_dryos.c else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && buf 5298 tools/finsig_dryos.c (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) && buf 5299 tools/finsig_dryos.c (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000)) buf 5527 tools/finsig_dryos.c if (fw->buf[k] == v1) buf 5537 tools/finsig_dryos.c if (fw->buf[k] == v1) buf 5562 tools/finsig_dryos.c uint32_t ofst = fw->buf[adr2idx(fw,fadr)] & 0x00000FFF; buf 5565 tools/finsig_dryos.c ofst = fw->buf[k+2] & 0x00000FFF; buf 5582 tools/finsig_dryos.c uint32_t ofst = fw->buf[k1] & 0x00000FFF; buf 5599 tools/finsig_dryos.c if ((fw->buf[k1] & 0xFFFF0000) == 0xE8BD0000) // LDMFD buf 5628 tools/finsig_dryos.c int ofst = fw->buf[idx2+2] & 0xFFF; buf 5642 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000) // LDMFD buf 5658 tools/finsig_dryos.c int ofst = fw->buf[k1+3] & 0xFFF; buf 5774 tools/finsig_dryos.c uint32_t ofst = fw->buf[k1] & 0x00000FFF; buf 5861 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 5879 tools/finsig_dryos.c uint32_t ofst = fw->buf[k-1] & 0x00000FFF; buf 5880 tools/finsig_dryos.c uint32_t reg = (fw->buf[k-1] & 0x000F0000) >> 16; buf 5884 tools/finsig_dryos.c if ((fw->buf[k1] & 0xFF1FF000) == ldr_inst) buf 5899 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 5900 tools/finsig_dryos.c (fw->buf[k+1] == 0xE5D00000) && // LDRB R0, [R0] buf 5901 tools/finsig_dryos.c (fw->buf[k+2] == 0xE1B00000) && // MOVS R0, R0 buf 5902 tools/finsig_dryos.c (fw->buf[k+3] == 0x13A00001) && // MOVNE R0, #1 buf 5940 tools/finsig_dryos.c if (fw->buf[k] == fw->sv->min_focus_len) buf 5943 tools/finsig_dryos.c if ((fw->buf[k+1] == 100) && (fw->buf[k+2] == 0)) mul = 3; buf 5944 tools/finsig_dryos.c if ((fw->buf[k+1] == 100) && (fw->buf[k+2] != 0)) mul = 2; buf 5945 tools/finsig_dryos.c if ((fw->buf[k+1] == 0) && (fw->buf[k+2] != 0)) mul = 2; buf 5946 tools/finsig_dryos.c for (k1 = k + mul; (k1 < fw->size) && (fw->buf[k1] > fw->buf[k1-mul]) && (fw->buf[k1] > fw->sv->min_focus_len) && (fw->buf[k1] < fw->sv->max_focus_len); k1 += mul) ; buf 5947 tools/finsig_dryos.c if (fw->buf[k1] == fw->sv->max_focus_len) buf 5986 tools/finsig_dryos.c if (isLDR_PC(fw,k1) && ((fw->buf[k1+1] & 0xFFFF0FFF) == 0xE3A00001) && isSTR(fw,k1+2) && buf 5987 tools/finsig_dryos.c ((fw->buf[k1+1] & 0x0000F000) == (fw->buf[k1+2] & 0x0000F000)) && buf 5988 tools/finsig_dryos.c ((fw->buf[k1] & 0x0000F000) == ((fw->buf[k1+2] & 0x000F0000) >> 4))) buf 5991 tools/finsig_dryos.c int ofst = fw->buf[k1+2] & 0x00000FFF; buf 6172 tools/finsig_dryos.c if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0) buf 6257 tools/finsig_dryos.c int ofst1 = fw->buf[k2] & 0x00000FFF; buf 7231 tools/finsig_dryos.c if (fw->buf[tidx+k+1] == ev) buf 7233 tools/finsig_dryos.c kval = fw->buf[tidx+k]; buf 7263 tools/finsig_dryos.c ev = fw->buf[tidx+k+1]; buf 7264 tools/finsig_dryos.c kval = fw->buf[tidx+k]; buf 7314 tools/finsig_dryos.c if (fw->buf[tidx+k+1] == ev) buf 7316 tools/finsig_dryos.c kval = fw->buf[tidx+k]; buf 7449 tools/finsig_dryos.c if (fw->buf[adr2idx(fw,tadr)+2] == 0) tsiz = 3; buf 7469 tools/finsig_dryos.c if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF)) buf 7992 tools/finsig_dryos.c fw->fw_build_date = (char*)&fw->buf[idx]; buf 8003 tools/finsig_dryos.c fw->fw_build_time = (char*)&fw->buf[idx]; buf 8011 tools/finsig_dryos.c char *buf=malloc(64); buf 8014 tools/finsig_dryos.c sprintf(buf,"handle_%s",nm); buf 8016 tools/finsig_dryos.c sprintf(buf,"handle_PTP_OC_0x%04x",op); buf 8019 tools/finsig_dryos.c add_func_name(buf,handler,NULL); buf 876 tools/finsig_thumb2.c char *buf=malloc(strlen(name)+7); buf 878 tools/finsig_thumb2.c sprintf(buf,"j%d_%s",v_cnt,name); buf 881 tools/finsig_thumb2.c sprintf(buf,"j_%s",name); buf 883 tools/finsig_thumb2.c add_func_name(fw,buf,adr,NULL); // this is the orignal named address buf 5827 tools/finsig_thumb2.c char *buf=malloc(strlen(name)+6); buf 5828 tools/finsig_thumb2.c sprintf(buf,"j_%s_FW",name); buf 5829 tools/finsig_thumb2.c add_func_name(fw,buf,adr,NULL); // this is the orignal named address buf 5984 tools/finsig_thumb2.c char *buf=malloc(64); buf 5986 tools/finsig_thumb2.c sprintf(buf,"task_%s",nm); buf 5988 tools/finsig_thumb2.c add_func_name(fw,buf,regs[3],NULL); buf 6000 tools/finsig_thumb2.c char *buf=malloc(64); buf 6003 tools/finsig_thumb2.c sprintf(buf,"handle_%s",nm); buf 6005 tools/finsig_thumb2.c sprintf(buf,"handle_PTP_OC_0x%04x",op); buf 6008 tools/finsig_thumb2.c add_func_name(fw,buf,handler,NULL); buf 3159 tools/finsig_vxworks.c if ((fw->buf[n->off+i+s->value] & 0x0F000000) == 0x0A000000) // B buf 3165 tools/finsig_vxworks.c p1 = &fw->buf[idx]; buf 3207 tools/finsig_vxworks.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) buf 3215 tools/finsig_vxworks.c if ((m >= 0) && (m < fw->size) && (strcmp((char*)(&fw->buf[m]),"Mounter.c") == 0)) buf 3369 tools/finsig_vxworks.c if (fw->buf[k] & 0xffff0000) buf 3372 tools/finsig_vxworks.c uint16_t *p = (uint16_t*)(&fw->buf[k]); buf 3397 tools/finsig_vxworks.c uint32_t *p = (uint32_t*)(&fw->buf[k]); buf 3506 tools/finsig_vxworks.c if (fw->buf[k] == v1) buf 3516 tools/finsig_vxworks.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && ((fw->buf[k+2] == 0xFFFF0000)||(fw->buf[k+2] == 0xFFFF0002))) buf 3522 tools/finsig_vxworks.c if ((fw->buf[k+1] > fw->base) && (fw->buf[k] == 0x00000000) && (fw->buf[k+2] == 0x00000001) && buf 3523 tools/finsig_vxworks.c (fw->buf[k+3] == 0x00000000) && (fw->buf[k+4] == 0xffffffff)) buf 3828 tools/finsig_vxworks.c if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901) // BIC Rn, Rn, #0x4000 buf 3830 tools/finsig_vxworks.c uint32_t r = (fw->buf[k] & 0x0000F000)<<4; // Register buf 3834 tools/finsig_vxworks.c if (((fw->buf[n] & 0xFFF00000) == 0xE3500000) && ((fw->buf[n] & 0x000F0000) == r)) // CMP, Rn #val buf 3837 tools/finsig_vxworks.c bprintf("//int get_flash_params_count(void) { return 0x%02x; } // Found @0x%08x\n",(fw->buf[n]&0xFFF)+1,idx2adr(fw,n)); buf 4172 tools/finsig_vxworks.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) buf 4187 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) && // ADR R1, =sub buf 4189 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 buf 4194 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; buf 4202 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 buf 4207 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; buf 4229 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 4230 tools/finsig_vxworks.c (fw->buf[k+1] == 0xE5D01000) && // LDRB R1, [R0] buf 4231 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE3811002) && // ORR R1, R1, #2 buf 4232 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE5C01000) && // STRB R1, [R0] buf 4243 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 4244 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) && // LDRB R0, [R1, #n] buf 4245 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE2800001) && // ADD R0, R0, #1 buf 4246 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) && // STRB R0, [R1, #n] buf 4250 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 4254 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 4255 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) && // LDRB R1, [R0, #n] buf 4256 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE2811001) && // ADD R1, R1, #1 buf 4257 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) && // STRB R1, [R0, #n] buf 4261 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 4269 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 4270 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n] buf 4271 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 4272 tools/finsig_vxworks.c ((fw->buf[k+4] & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n] buf 4273 tools/finsig_vxworks.c ((fw->buf[k+6] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 4274 tools/finsig_vxworks.c ((fw->buf[k+9] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 4275 tools/finsig_vxworks.c ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 4276 tools/finsig_vxworks.c ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base buf 4277 tools/finsig_vxworks.c ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base buf 4286 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; buf 4320 tools/finsig_vxworks.c if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && buf 4321 tools/finsig_vxworks.c (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) && buf 4322 tools/finsig_vxworks.c (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000)) buf 4326 tools/finsig_vxworks.c else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && buf 4327 tools/finsig_vxworks.c (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) && buf 4328 tools/finsig_vxworks.c (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000)) buf 4556 tools/finsig_vxworks.c if (fw->buf[k] == v1) buf 4566 tools/finsig_vxworks.c if (fw->buf[k] == v1) buf 4591 tools/finsig_vxworks.c uint32_t ofst = fw->buf[adr2idx(fw,fadr)] & 0x00000FFF; buf 4594 tools/finsig_vxworks.c ofst = fw->buf[k+2] & 0x00000FFF; buf 4611 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k1] & 0x00000FFF; buf 4628 tools/finsig_vxworks.c if ((fw->buf[k1] & 0xFFFF0000) == 0xE8BD0000) // LDMFD buf 4657 tools/finsig_vxworks.c int ofst = fw->buf[idx2+2] & 0xFFF; buf 4671 tools/finsig_vxworks.c if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000) // LDMFD buf 4687 tools/finsig_vxworks.c int ofst = fw->buf[k1+3] & 0xFFF; buf 4786 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k] & 0x00000FFF; buf 5235 tools/finsig_vxworks.c if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0) buf 5322 tools/finsig_vxworks.c int ofst1 = fw->buf[k2] & 0x00000FFF; buf 5458 tools/finsig_vxworks.c if (fw->buf[tidx+k+1] == ev) buf 5460 tools/finsig_vxworks.c kval = fw->buf[tidx+k]; buf 5514 tools/finsig_vxworks.c if (fw->buf[tidx+k+1] == ev) buf 5516 tools/finsig_vxworks.c kval = fw->buf[tidx+k]; buf 5649 tools/finsig_vxworks.c if (fw->buf[adr2idx(fw,tadr)+2] == 0) tsiz = 3; buf 5669 tools/finsig_vxworks.c if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF)) buf 6023 tools/finsig_vxworks.c fw->fw_build_date = (char*)&fw->buf[idx]; buf 6035 tools/finsig_vxworks.c fw->fw_build_time = (char*)&fw->buf[idx]; buf 6043 tools/finsig_vxworks.c char *buf=malloc(64); buf 6046 tools/finsig_vxworks.c sprintf(buf,"handle_%s",nm); buf 6048 tools/finsig_vxworks.c sprintf(buf,"handle_PTP_OC_0x%04x",op); buf 6051 tools/finsig_vxworks.c add_func_name(buf,handler,NULL); buf 56 tools/firmware_load.c n->p = fw->buf + o; buf 81 tools/firmware_load.c if (fw->buf[i] == 0xFFFFFFFF) // Possible start of block to skip buf 178 tools/firmware_load.c return ((char*)fw->buf) + (adr - fw->alt_base); buf 184 tools/firmware_load.c return ((char*)fw->buf) + (adr - fw->base); buf 226 tools/firmware_load.c return &fw->buf[i]; buf 231 tools/firmware_load.c return &fw->buf[i]; buf 241 tools/firmware_load.c return &fw->buf[0]; buf 681 tools/firmware_load.c if (strcmp(((char*)fw->buf)+k,str) == 0) buf 956 tools/firmware_load.c fw->buf = malloc((fw->size+32)*4); buf 957 tools/firmware_load.c k = fread(fw->buf, 4, fw->size, f); buf 961 tools/firmware_load.c memset(&fw->buf[fw->size],0xff,32*4); buf 984 tools/firmware_load.c fw->real_dryos_ver = fw->dryos_ver = atoi(((char*)&fw->buf[k])+28); buf 985 tools/firmware_load.c fw->dryos_ver_str = (char*)&fw->buf[k]; buf 1005 tools/firmware_load.c fw->firmware_ver_str = (char*)&fw->buf[k]; buf 1106 tools/firmware_load.c if (((fw->buf[0x10 + fw->main_offs] & 0xFFFFFF00) == 0xE3A00000) && (fw->buf[0x11 + fw->main_offs] == 0xEE060F12)) buf 1108 tools/firmware_load.c fw->maxram = (1 << (((fw->buf[0x10 + fw->main_offs] & 0x3E) >> 1) + 1)) - 1; buf 1110 tools/firmware_load.c else if (((fw->buf[0x14 + fw->main_offs] & 0xFFFFFF00) == 0xE3A00000) && (fw->buf[0x15 + fw->main_offs] == 0xEE060F12)) buf 1112 tools/firmware_load.c fw->maxram = (1 << (((fw->buf[0x14 + fw->main_offs] & 0x3E) >> 1) + 1)) - 1; buf 1119 tools/firmware_load.c if ((fw->buf[k] & 0xFFFF0FFF) == 0xEE060F12) // mcr 15, 0, rx, cr6, cr2, {0} buf 1121 tools/firmware_load.c fw->maxram = (1 << (((fw->buf[k-1] & 0x3E) >> 1) + 1)) - 1; buf 1333 tools/firmware_load.c fw->buf2 = &fw->buf[adr2idx(fw,fadr)]; buf 35 tools/firmware_load.h uint32_t *buf; // Firmware data buf 287 tools/firmware_load_ng.c return (r->buf)+(adr - r->start); buf 303 tools/firmware_load_ng.c return (r->buf)+(adr - r->start); buf 2198 tools/firmware_load_ng.c r->buf=fw->buf8 + (r->src_start - fw->base); buf 71 tools/firmware_load_ng.h uint8_t *buf; buf 13 tools/gen_conf_lua.c static int read_line(FILE *f, char *buf) buf 19 tools/gen_conf_lua.c if (fread(buf,1,1,f) != 1) { eof = 1; break; } buf 20 tools/gen_conf_lua.c if ((*buf == 0x0A) || (*buf == 0x0D)) break; buf 22 tools/gen_conf_lua.c buf++; buf 24 tools/gen_conf_lua.c *buf = 0; buf 278 tools/gensig_dryos.c uint32_t buf[1024]; buf 295 tools/gensig_dryos.c i = fread(buf, 4, size, f); buf 300 tools/gensig_dryos.c if ((buf[i] & instrs[j].mask) == instrs[j].inst){ buf 305 tools/gensig_dryos.c sprintf(tbuf, "\t{ %3d, 0x%08x, 0x%08x }, //", i, buf[i] & ignore, ignore); buf 306 tools/gensig_dryos.c sprintf(tbuf+strlen(tbuf), " %s:%d:0x%08X", instrs[j].cmd, bits(instrs[j].mask), buf[i]); buf 308 tools/gensig_dryos.c if ((buf[i] == 0xe1a0f00e) /* "mov pc,lr" aka "ret" */ buf 275 tools/gensig_vxworks.c uint32_t buf[1024]; buf 300 tools/gensig_vxworks.c i = fread(buf, 4, size, f); buf 308 tools/gensig_vxworks.c if ((buf[i] & instrs[j].mask) == instrs[j].inst){ buf 310 tools/gensig_vxworks.c sprintf(tbuf, "\t{ %3d, 0x%08x, 0x%08x }, //", i, buf[i] & ~instrs[j].ignore, ~instrs[j].ignore); buf 311 tools/gensig_vxworks.c sprintf(tbuf+strlen(tbuf), " %s:%d:0x%08X", instrs[j].cmd, bits(instrs[j].mask), buf[i]); buf 313 tools/gensig_vxworks.c if ((buf[i] == 0xe1a0f00e) /* "mov pc,lr" aka "ret" */ buf 63 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int GetPropertyCase(int opt_id, void *buf, int bufsize); buf 64 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int SetPropertyCase(int opt_id, void *buf, int bufsize); buf 97 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int GetParameterData(int id, void *buf, int size); buf 98 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int SetParameterData(int id, void *buf, int size); buf 121 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int Fread_Fut(void *buf, int elsize, int count, FILE *f); buf 122 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int Fwrite_Fut(const void *buf, int elsize, int count, FILE *f); buf 127 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall char * Fgets_Fut(char *buf, int n, FILE *f); buf 160 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int vsprintf(char *buf, const char *fmt, __builtin_va_list va_list); buf 270 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int WriteSDCard(unsigned int drive, unsigned int start_sect, unsigned int num_sect, void *buf); buf 442 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int fread_low(void *buf, int elsize, int count, FILE *f); buf 443 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int fwrite_low(const void *buf, int elsize, int count, FILE *f); buf 448 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall char * fgets_low(char *buf, int n, FILE *f); buf 535 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall PTM_RestoreUIProperty_FW(int id, void *buf, int size); // normally calls GetParameterData buf 104 tools/ghidra_scripts/datatypes/fw_types.h int (*send_data)(int handle, const char *buf, int part_size, int total_size, int, int, int); // (0xFF9F525C), total_size should be 0 except for the first call buf 105 tools/ghidra_scripts/datatypes/fw_types.h int (*recv_data)(int handle, char *buf, int size, int, int); // (0xFF9F5500) buf 233 tools/makeexport.c char *buf = 0; buf 239 tools/makeexport.c buf = (char*)malloc(size+1); buf 240 tools/makeexport.c if (buf) { buf 241 tools/makeexport.c size = read(f, buf, size); buf 242 tools/makeexport.c buf[size]=0; buf 247 tools/makeexport.c return buf; buf 16 tools/makelang.c void lang_load_from_mem(char *buf); buf 71 tools/makelang.c char buf[500]; buf 78 tools/makelang.c strcpy(buf,s); buf 79 tools/makelang.c s = strrchr(buf,'.'); buf 96 tools/makelang.c char* to = buf; buf 111 tools/makelang.c printf("#ifndef %s\n/*%3d*/ \"%s\"\n#endif\n \"\\0\"\n", iscond+1, i, buf); buf 113 tools/makelang.c printf("#ifdef %s\n/*%3d*/ \"%s\"\n#endif\n \"\\0\"\n", iscond, i, buf); buf 117 tools/makelang.c printf("/*%3d*/ \"%s\\0\"\n",i,buf); buf 138 tools/makelang.c void lang_load_from_mem(char *buf) buf 143 tools/makelang.c if ( !buf ) buf 146 tools/makelang.c e = buf-1; buf 188 tools/makelang.c char *buf = 0; buf 194 tools/makelang.c buf = malloc(size+1); buf 195 tools/makelang.c if (buf) { buf 196 tools/makelang.c size = read(f, buf, size); buf 197 tools/makelang.c buf[size]=0; buf 202 tools/makelang.c return buf; buf 213 tools/makelang.c char* next_token(char *p, char* buf) buf 215 tools/makelang.c *buf = 0; buf 218 tools/makelang.c while (*p && (*p != ' ') && (*p != '\t') && (*p != '\r') && (*p != '\n')) *buf++ = *p++; buf 219 tools/makelang.c *buf = 0; buf 227 tools/makelang.c char *buf = load_from_file(file); buf 229 tools/makelang.c if (!buf) buf 241 tools/makelang.c e = buf; buf 271 tools/makelang.c free(buf); buf 15 tools/packfi2/adler32.c #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} buf 16 tools/packfi2/adler32.c #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); buf 17 tools/packfi2/adler32.c #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); buf 18 tools/packfi2/adler32.c #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); buf 19 tools/packfi2/adler32.c #define DO16(buf) DO8(buf,0); DO8(buf,8); buf 57 tools/packfi2/adler32.c uLong ZEXPORT adler32(adler, buf, len) buf 59 tools/packfi2/adler32.c const Bytef *buf; buf 71 tools/packfi2/adler32.c adler += buf[0]; buf 81 tools/packfi2/adler32.c if (buf == Z_NULL) buf 87 tools/packfi2/adler32.c adler += *buf++; buf 101 tools/packfi2/adler32.c DO16(buf); /* 16 sums unrolled */ buf 102 tools/packfi2/adler32.c buf += 16; buf 112 tools/packfi2/adler32.c DO16(buf); buf 113 tools/packfi2/adler32.c buf += 16; buf 116 tools/packfi2/adler32.c adler += *buf++; buf 215 tools/packfi2/crc32.c #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) buf 219 tools/packfi2/crc32.c unsigned long ZEXPORT crc32(crc, buf, len) buf 221 tools/packfi2/crc32.c const unsigned char FAR *buf; buf 224 tools/packfi2/crc32.c if (buf == Z_NULL) return 0UL; buf 237 tools/packfi2/crc32.c return crc32_little(crc, buf, len); buf 239 tools/packfi2/crc32.c return crc32_big(crc, buf, len); buf 262 tools/packfi2/crc32.c local unsigned long crc32_little(crc, buf, len) buf 264 tools/packfi2/crc32.c const unsigned char FAR *buf; buf 272 tools/packfi2/crc32.c while (len && ((ptrdiff_t)buf & 3)) { buf 273 tools/packfi2/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8); buf 277 tools/packfi2/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf; buf 286 tools/packfi2/crc32.c buf = (const unsigned char FAR *)buf4; buf 289 tools/packfi2/crc32.c c = crc_table[0][(c ^ *buf++) & 0xff] ^ (c >> 8); buf 302 tools/packfi2/crc32.c local unsigned long crc32_big(crc, buf, len) buf 304 tools/packfi2/crc32.c const unsigned char FAR *buf; buf 312 tools/packfi2/crc32.c while (len && ((ptrdiff_t)buf & 3)) { buf 313 tools/packfi2/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8); buf 317 tools/packfi2/crc32.c buf4 = (const u4 FAR *)(const void FAR *)buf; buf 328 tools/packfi2/crc32.c buf = (const unsigned char FAR *)buf4; buf 331 tools/packfi2/crc32.c c = crc_table[4][(c >> 24) ^ *buf++] ^ (c << 8); buf 85 tools/packfi2/deflate.c local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); buf 956 tools/packfi2/deflate.c local int read_buf(strm, buf, size) buf 958 tools/packfi2/deflate.c Bytef *buf; buf 976 tools/packfi2/deflate.c zmemcpy(buf, strm->next_in, len); buf 284 tools/packfi2/deflate.h void _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, buf 287 tools/packfi2/deflate.h void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, buf 126 tools/packfi2/fi2enc.c unsigned char *buf = NULL; buf 173 tools/packfi2/fi2enc.c buf = (unsigned char*)malloc( i ); // allocate buffer for compressed block + blocksize buf 174 tools/packfi2/fi2enc.c if( !buf ){ buf 178 tools/packfi2/fi2enc.c memset( buf, 0xFF, i ); buf 180 tools/packfi2/fi2enc.c if( Z_OK != compress( buf + 4, &i, upkbuf, flen ) ){ buf 184 tools/packfi2/fi2enc.c store32_be( buf, i ); // store real compressed block size buf 189 tools/packfi2/fi2enc.c aes128_cbc_encrypt( buf, exkey, iv, fi2rec.len ); buf 190 tools/packfi2/fi2enc.c pblk = buf; buf 192 tools/packfi2/fi2enc.c uint32_t *wbuf = (uint32_t*)buf; buf 196 tools/packfi2/fi2enc.c for( i = 0; i < fi2rec.len; i++) cs += buf[i]; // update block checksum buf 207 tools/packfi2/fi2enc.c buf = (unsigned char*)malloc( i ); // allocate buffer for encrypted header buf 208 tools/packfi2/fi2enc.c if( !buf ){ buf 212 tools/packfi2/fi2enc.c memset( buf, 0, i ); buf 213 tools/packfi2/fi2enc.c memcpy( buf, &hdr, 32 ); buf 214 tools/packfi2/fi2enc.c memcpy( buf+32, &fi2rec, fi2rec_size(dryos_ver)); buf 215 tools/packfi2/fi2enc.c aes128_cbc_encrypt( buf, exkey, iv, i ); buf 226 tools/packfi2/fi2enc.c if ( i != fwrite(buf, 1, i, fo ) ){ buf 230 tools/packfi2/fi2enc.c free( buf ); buf 159 tools/packfi2/trees.c local void copy_block OF((deflate_state *s, charf *buf, unsigned len, buf 867 tools/packfi2/trees.c void _tr_stored_block(s, buf, stored_len, eof) buf 869 tools/packfi2/trees.c charf *buf; /* input block */ buf 878 tools/packfi2/trees.c copy_block(s, buf, (unsigned)stored_len, 1); /* with header */ buf 921 tools/packfi2/trees.c void _tr_flush_block(s, buf, stored_len, eof) buf 923 tools/packfi2/trees.c charf *buf; /* input block, or NULL if too old */ buf 965 tools/packfi2/trees.c Assert(buf != (char*)0, "lost buf"); buf 970 tools/packfi2/trees.c if (buf != (char*)0) { /* force stored block */ buf 972 tools/packfi2/trees.c if (stored_len+4 <= opt_lenb && buf != (char*)0) { buf 981 tools/packfi2/trees.c _tr_stored_block(s, buf, stored_len, eof); buf 1197 tools/packfi2/trees.c local void copy_block(s, buf, len, header) buf 1199 tools/packfi2/trees.c charf *buf; /* the input data */ buf 1217 tools/packfi2/trees.c put_byte(s, *buf++); buf 1106 tools/packfi2/zlib.h ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len)); buf 1115 tools/packfi2/zlib.h voidpc buf, unsigned len)); buf 1142 tools/packfi2/zlib.h ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); buf 1260 tools/packfi2/zlib.h ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); buf 1285 tools/packfi2/zlib.h ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); buf 218 tools/packfi2/zutil.c voidpf buf = opaque; /* just to make some compilers happy */ buf 225 tools/packfi2/zutil.c buf = farmalloc(bsize); buf 226 tools/packfi2/zutil.c if (*(ush*)&buf != 0) return buf; buf 228 tools/packfi2/zutil.c buf = farmalloc(bsize + 16L); buf 230 tools/packfi2/zutil.c if (buf == NULL || next_ptr >= MAX_PTR) return NULL; buf 231 tools/packfi2/zutil.c table[next_ptr].org_ptr = buf; buf 234 tools/packfi2/zutil.c *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4; buf 235 tools/packfi2/zutil.c *(ush*)&buf = 0; buf 236 tools/packfi2/zutil.c table[next_ptr++].new_ptr = buf; buf 237 tools/packfi2/zutil.c return buf; buf 156 tools/pakwif.c int crypt_fwrite(void *buf, int len, FILE *f) buf 174 tools/pakwif.c cbuf[i] = ((unsigned char*)buf)[i+rtot] ^ crypt1[c1++] ^ crypt2[c2++]; buf 192 tools/pakwif.c int crypt_fread(void *buf, int len, FILE *f) buf 211 tools/pakwif.c ((unsigned char*)buf)[i+rtot] = ((unsigned char*)cbuf)[i] ^ crypt1[c1++] ^ crypt2[c2++]; buf 284 tools/pakwif.c uint32_t checksumm_update(uint32_t cs, char *buf, int len) buf 289 tools/pakwif.c cs+=((unsigned short*)buf)[i]; buf 291 tools/pakwif.c cs+=buf[len-1]; buf 144 tools/rawconvert.c unsigned get_8_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y) buf 146 tools/rawconvert.c return buf[row_bytes*y+x]; buf 149 tools/rawconvert.c void set_8_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y, unsigned value) buf 151 tools/rawconvert.c buf[row_bytes*y+x] = (uint8_t)value; buf 154 tools/rawconvert.c unsigned get_16_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y) buf 156 tools/rawconvert.c return ((uint16_t *)buf)[(row_bytes/2)*y + x]; buf 159 tools/rawconvert.c void set_16_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y, unsigned value) buf 161 tools/rawconvert.c ((uint16_t *)buf)[(row_bytes/2)*y + x] = (uint16_t)value; buf 35 tools/stubs_load.c static int read_line(FILE *f, char *buf) buf 41 tools/stubs_load.c if (fread(buf,1,1,f) != 1) { eof = 1; break; } buf 42 tools/stubs_load.c if ((*buf == 0x0A) || (*buf == 0x0D)) break; buf 44 tools/stubs_load.c buf++; buf 46 tools/stubs_load.c *buf = 0;