offset 56 core/gui_draw.c void (*draw_pixel_proc)(unsigned int offset, color cl); offset 57 core/gui_draw.c void (*draw_pixel_proc_norm)(unsigned int offset, color cl); offset 61 core/gui_draw.c static void draw_pixel_std(unsigned int offset, color cl) offset 66 core/gui_draw.c bitmap_buffer[active_bitmap_buffer][offset] = cl; offset 68 core/gui_draw.c frame_buffer[0][offset] = frame_buffer[1][offset] = cl; offset 84 core/gui_draw.c obu[offset] = o; offset 85 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 86 core/gui_draw.c if (offset&1) // x is odd offset 97 core/gui_draw.c opacity_buffer[0][offset] = o; offset 98 core/gui_draw.c opacity_buffer[1][offset] = o; offset 99 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 100 core/gui_draw.c if (offset&1) // x is odd offset 180 core/gui_draw.c void draw_dblpixel_raw(unsigned int offset, unsigned int px, unsigned int op) offset 182 core/gui_draw.c offset >>= 2; offset 187 core/gui_draw.c if ((obu[offset] == 0xfdfd) || ((op != 0) && (obu[offset] == 0))) { offset 188 core/gui_draw.c bbu[offset] = px; offset 189 core/gui_draw.c obu[offset] = op; offset 196 core/gui_draw.c if ((obu0[offset] == 0xfdfd) || ((op != 0) && (obu0[offset] == 0))) { offset 197 core/gui_draw.c bbu0[offset] = px; offset 198 core/gui_draw.c obu0[offset] = op; offset 199 core/gui_draw.c bbu1[offset] = px; offset 200 core/gui_draw.c obu1[offset] = op; offset 208 core/gui_draw.c void draw_dblpixel_raw(__attribute__ ((unused))unsigned int offset, __attribute__ ((unused))unsigned int px, __attribute__ ((unused))unsigned int op) {} offset 215 core/gui_draw.c void draw_pixel_proc_rotated(unsigned int offset, color cl) offset 217 core/gui_draw.c draw_pixel_proc_norm(rotate_base - offset, cl); offset 220 core/gui_draw.c void draw_set_draw_proc(void (*pixel_proc)(unsigned int offset, color cl)) offset 272 core/gui_draw.c unsigned int offset = y * camera_screen.buffer_width + x; offset 276 core/gui_draw.c offset = rotate_base - offset; offset 281 core/gui_draw.c if (!offset) return; // skip guard pixel offset 285 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 292 core/gui_draw.c if (offset&1) // x is odd offset 297 core/gui_draw.c obu[offset] = yuvclr[fg+3]; offset 300 core/gui_draw.c opacity_buffer[0][offset] = yuvclr[fg+3]; offset 302 core/gui_draw.c opacity_buffer[1][offset] = yuvclr[fg+3]; offset 307 core/gui_draw.c offset += plus; offset 316 core/gui_draw.c obu[offset] = yuvclr[fg+3]; offset 321 core/gui_draw.c opacity_buffer[0][offset] = yuvclr[fg+3]; offset 325 core/gui_draw.c opacity_buffer[1][offset] = yuvclr[fg+3]; offset 332 core/gui_draw.c offset += plus; offset 345 core/gui_draw.c unsigned int offset = (y * camera_screen.buffer_width + x)>>1; offset 351 core/gui_draw.c offset = (rotate_base>>1) - offset; offset 364 core/gui_draw.c if (!offset) return; // skip guard pixel offset 376 core/gui_draw.c obu[offset] = co; offset 377 core/gui_draw.c bbu[offset] = yuv; offset 379 core/gui_draw.c ((unsigned short *)opacity_buffer[0])[offset] = co; offset 380 core/gui_draw.c ((unsigned int *)bitmap_buffer[0])[offset] = yuv; offset 381 core/gui_draw.c ((unsigned short *)opacity_buffer[1])[offset] = co; offset 382 core/gui_draw.c ((unsigned int *)bitmap_buffer[1])[offset] = yuv; offset 386 core/gui_draw.c offset += plus; offset 396 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + (x); offset 399 core/gui_draw.c offset = rotate_base - offset - len; offset 404 core/gui_draw.c if (!offset) offset 406 core/gui_draw.c offset++; offset 412 core/gui_draw.c if (offset & 1) offset 414 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 418 core/gui_draw.c obu[offset] = yuvclr[fg+3]; offset 421 core/gui_draw.c opacity_buffer[0][offset] = yuvclr[fg+3]; offset 423 core/gui_draw.c opacity_buffer[1][offset] = yuvclr[fg+3]; offset 426 core/gui_draw.c offset++; offset 434 core/gui_draw.c for (; len>0; len-=2, offset+=2) offset 436 core/gui_draw.c obud[offset>>1] = co; offset 437 core/gui_draw.c bbud[offset>>1] = yuv; offset 440 core/gui_draw.c for (; len>0; len-=2, offset+=2) offset 442 core/gui_draw.c ((unsigned short *)opacity_buffer[0])[offset>>1] = co; offset 443 core/gui_draw.c ((unsigned int *)bitmap_buffer[0])[offset>>1] = yuv; offset 444 core/gui_draw.c ((unsigned short *)opacity_buffer[1])[offset>>1] = co; offset 445 core/gui_draw.c ((unsigned int *)bitmap_buffer[1])[offset>>1] = yuv; offset 450 core/gui_draw.c offset--; offset 451 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 455 core/gui_draw.c obu[offset] = yuvclr[fg+3]; offset 458 core/gui_draw.c opacity_buffer[0][offset] = yuvclr[fg+3]; offset 460 core/gui_draw.c opacity_buffer[1][offset] = yuvclr[fg+3]; offset 570 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); offset 571 core/gui_draw.c draw_pixel_proc(offset, cl); offset 573 core/gui_draw.c draw_pixel_proc(offset+1, cl); // Draw second pixel if screen scaling is needed offset 587 core/gui_draw.c register unsigned int offset = py * camera_screen.buffer_width + ASPECT_XCORRECTION(px); offset 595 core/gui_draw.c if (bitmap_buffer[active_bitmap_buffer][offset] != cl) return; offset 597 core/gui_draw.c if (frame_buffer[0][offset] != cl) return; offset 603 core/gui_draw.c draw_pixel_proc_norm(offset, cl); offset 605 core/gui_draw.c draw_pixel_proc_norm(offset+1, cl); // Draw second pixel if screen scaling is needed offset 614 core/gui_draw.c if (opacity_buffer[active_bitmap_buffer&1][offset] != 254) return; offset 616 core/gui_draw.c if (opacity_buffer[0][offset] != 254) return; offset 630 core/gui_draw.c register unsigned int offs2 = (offset>>1)<<2; offset 635 core/gui_draw.c obu[offset] = o; offset 636 core/gui_draw.c if (offset&1) // x is odd offset 647 core/gui_draw.c opacity_buffer[0][offset] = o; offset 648 core/gui_draw.c opacity_buffer[1][offset] = o; offset 649 core/gui_draw.c if (offset&1) // x is odd offset 791 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); offset 793 core/gui_draw.c for (; len>0; len--, offset++) offset 794 core/gui_draw.c draw_pixel_proc(offset, cl); offset 876 core/gui_draw.c static unsigned char* get_cdata(unsigned int *offset, unsigned int *size, const char ch) offset 880 core/gui_draw.c *offset = f->skips >> 4; // # of blank lines at top offset 882 core/gui_draw.c if (*size == *offset) // special case for blank char (top == 15 && bottom == 1) offset 883 core/gui_draw.c *offset += 1; offset 885 core/gui_draw.c return (unsigned char*)f + sizeof(FontData) - *offset; offset 894 core/gui_draw.c unsigned int offset, size; offset 895 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); offset 898 core/gui_draw.c for (i=0; i<offset; i++) offset 943 core/gui_draw.c unsigned int offset, size; offset 944 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); offset 952 core/gui_draw.c for (i=0; i<offset; i++) offset 1028 core/gui_draw.c unsigned int offset, size; offset 1029 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); offset 1037 core/gui_draw.c for (i=0; i<offset; i++) offset 1100 core/gui_draw.c unsigned int offset, size; offset 1101 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); offset 1104 core/gui_draw.c if (offset > 0) offset 1105 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); offset 1109 core/gui_draw.c for (j=i=offset; i<size;) offset 1160 core/gui_draw.c unsigned int offset, size; offset 1161 core/gui_draw.c unsigned char *sym = get_cdata(&offset, &size, ch); offset 1166 core/gui_draw.c if (offset > 0) offset 1167 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); offset 1171 core/gui_draw.c for (j=i=offset; i<size;) offset 101 core/gui_draw.h extern void draw_set_draw_proc(void (*pixel_proc)(unsigned int offset, color cl)); offset 111 core/gui_draw.h extern void draw_dblpixel_raw(unsigned int offset, unsigned int px, unsigned int op); offset 790 core/gui_menu.c static void gui_set_int_cursor(int offset) offset 798 core/gui_menu.c offset--; offset 800 core/gui_menu.c rbf_enable_cursor(offset,offset); offset 137 core/gui_space.c int offset = 0; offset 144 core/gui_space.c offset = 2; offset 149 core/gui_space.c sprintf(osd_buf+offset, "???\0"); offset 155 core/gui_space.c sprintf(osd_buf+offset, "%3d%%\0", perc); offset 160 core/gui_space.c if (freemb < 10000) sprintf(osd_buf+offset, "%4dM\0",freemb); offset 161 core/gui_space.c else sprintf(osd_buf+offset, "%4dG\0",freemb/1024); // if 10 GiB or more free, print in GiB instead of MiB offset 79 include/lolevel.h extern void _UpdateMBROnFlash(int driveno, long offset, char *str); offset 88 include/lolevel.h extern int _lseek (int fd, long offset, int whence); offset 95 include/lolevel.h extern int _Lseek (int fd, long offset, int whence); offset 102 include/lolevel.h extern long _Fseek_Fut(long file, long offset, long whence); offset 34 include/std/stdio.h extern long fseek(FILE *file, long offset, long whence); offset 29 include/std/stdlib.h extern int lseek(int fd, long offset, int whence); offset 82 lib/lua/lcode.c int offset = dest-(pc+1); offset 84 lib/lua/lcode.c if (abs(offset) > MAXARG_sBx) offset 86 lib/lua/lcode.c SETARG_sBx(*jmp, offset); offset 101 lib/lua/lcode.c int offset = GETARG_sBx(fs->f->code[pc]); offset 102 lib/lua/lcode.c if (offset == NO_JUMP) /* point to itself represents end of list */ offset 105 lib/lua/lcode.c return (pc+1)+offset; /* turn offset into absolute position */ offset 517 lib/lua/liolib.c long offset = luaL_optlong(L, 3, 0); offset 518 lib/lua/liolib.c op = fseek(f, offset, mode[op]); offset 43 modules/dng.c unsigned int offset; offset 438 modules/dng.c add_to_buf((void*)e->offset, sizeof(int)); offset 442 modules/dng.c add_val_to_buf(e->offset, sizeof(int)); offset 466 modules/dng.c add_to_buf((void*)e->offset, size_ext); offset 490 modules/dng.c get_tag(IFD_0, DNG_VERSION_TAG)->offset = BE(0x01010000); offset 496 modules/dng.c get_tag(IFD_0, DNG_VERSION_TAG)->offset = BE(0x01030000); offset 569 modules/dng.c get_tag(IFD_0, CHDK_VER_TAG)->offset = (int)camera_info.chdk_dng_ver; offset 573 modules/dng.c get_tag(IFD_0, ORIENTATION_TAG)->offset = get_orientation_for_exif(exif_data.orientation); offset 575 modules/dng.c get_tag(IFD_EXIF, EXPOSURE_PROGRAM_TAG)->offset = get_exp_program_for_exif(exif_data.exp_program); offset 576 modules/dng.c get_tag(IFD_EXIF, METERING_MODE_TAG)->offset = get_metering_mode_for_exif(exif_data.metering_mode); offset 577 modules/dng.c get_tag(IFD_EXIF, FLASH_MODE_TAG)->offset = get_flash_mode_for_exif(exif_data.flash_mode, exif_data.flash_fired); offset 621 modules/dng.c get_tag(IFD_0, SUBIFDS_TAG)->offset = TIFF_HDR_SIZE + ifd_list[0].count * 12 + 6; // SubIFDs offset offset 622 modules/dng.c get_tag(IFD_0, EXIF_IFD_TAG)->offset = TIFF_HDR_SIZE + (ifd_list[0].count + ifd_list[1].count) * 12 + 6 + 6; // EXIF IFD offset offset 624 modules/dng.c get_tag(IFD_0, GPS_IFD_TAG)->offset = TIFF_HDR_SIZE + (ifd_list[0].count + ifd_list[1].count + ifd_list[2].count) * 12 + 6 + 6 + 6; // GPS IFD offset offset 626 modules/dng.c get_tag(IFD_0, THUMB_DATA_TAG)->offset = raw_offset; //StripOffsets for thumbnail offset 627 modules/dng.c get_tag(IFD_1, RAW_DATA_TAG)->offset = raw_offset + DNG_TH_BYTES; //StripOffsets for main image offset 104 modules/gui_tbox.c int maxlen, offset, fldlen, window_width; offset 147 modules/gui_tbox.c offset = 0; offset 212 modules/gui_tbox.c draw_string_justified(text_offset_x, text_offset_y, text+offset, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, fldlen*FONT_WIDTH, TEXT_LEFT|TEXT_FILL); offset 215 modules/gui_tbox.c draw_char(text_offset_x+fldlen*FONT_WIDTH, text_offset_y, ((strlen(text)-offset)>fldlen) ? '\20' : ' ', MAKE_COLOR(COLOR_GREY, COLOR_RED)); offset 216 modules/gui_tbox.c draw_char(text_offset_x-FONT_WIDTH, text_offset_y, (offset>0) ? '\21' : ' ', MAKE_COLOR(COLOR_GREY, COLOR_RED)); offset 263 modules/gui_tbox.c draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, cursor_to_draw ? COLOR_YELLOW : COLOR_GREY); offset 269 modules/gui_tbox.c draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, COLOR_BLACK); offset 275 modules/gui_tbox.c if (maxlen>MAX_TEXT_WIDTH && offset != 0 && cursor<offset) offset 276 modules/gui_tbox.c offset--; offset 284 modules/gui_tbox.c if (maxlen>MAX_TEXT_WIDTH && (cursor-offset)>=MAX_TEXT_WIDTH) offset 285 modules/gui_tbox.c offset++; offset 335 modules/gui_tbox.c if ((strlen(text) >= MAX_TEXT_WIDTH) && ((cursor-offset) >= MAX_TEXT_WIDTH-1)) offset 336 modules/gui_tbox.c offset--; offset 448 modules/gui_tbox.c if (offset<(strlen(text)-MAX_TEXT_WIDTH)) offset 450 modules/gui_tbox.c offset++; offset 451 modules/gui_tbox.c if ((cursor+1)<offset) cursor++; offset 456 modules/gui_tbox.c if (offset > 0) offset 458 modules/gui_tbox.c offset--; offset 459 modules/gui_tbox.c if ((cursor-offset)>=MAX_TEXT_WIDTH) cursor--; offset 277 modules/module_load.c static int module_do_action(int fd, flat_hdr* mod, uint32_t offset, uint32_t segment_size, int (*func)(flat_hdr*, void*, uint32_t)) offset 281 modules/module_load.c if (lseek(fd, offset, SEEK_SET) == (int)offset) offset 186 modules/zebra.c static void draw_pixel_buffered(unsigned int offset, color cl) offset 188 modules/zebra.c buf[offset] = cl; offset 224 platform/generic/filewrite.c int fwt_lseek(int fd, long offset, int whence) { offset 226 platform/generic/filewrite.c return _lseek(fd, offset, whence); offset 228 platform/generic/filewrite.c return (int)offset; // "file position set to the requested value" offset 529 platform/generic/wrappers.c int lseek (int fd, long offset, int whence) offset 531 platform/generic/wrappers.c return _lseek(fd, offset, whence); /* yes, it's lower-case lseek here since Lseek calls just lseek (A610) */ offset 802 platform/generic/wrappers.c long fseek(FILE *file, long offset, long whence) { offset 803 platform/generic/wrappers.c return _Fseek_Fut((long)file,offset,whence); offset 1295 platform/generic/wrappers.c int offset=0x10; // points to partition #2 offset 1304 platform/generic/wrappers.c while(offset>=0) { offset 1306 platform/generic/wrappers.c *part_start_sector=(*(unsigned short*)(mbr_sector+offset+0x1C8)<<16) | *(unsigned short*)(mbr_sector+offset+0x1C6); offset 1307 platform/generic/wrappers.c *part_length=(*(unsigned short*)(mbr_sector+offset+0x1CC)<<16) | *(unsigned short*)(mbr_sector+offset+0x1CA); offset 1312 platform/generic/wrappers.c ((mbr_sector[offset+0x1BE]==0) || (mbr_sector[offset+0x1BE]==0x80)); // status: 0x80 (active) or 0 (non-active) offset 1314 platform/generic/wrappers.c if (valid && ((mbr_sector[0x1C2+offset]==0x0B) || (mbr_sector[0x1C2+offset]==0x0C))) break; // FAT32 secondary partition offset 1316 platform/generic/wrappers.c offset-=0x10; offset 1005 tools/capdis.c unsigned offset=0xFFFFFFFF; offset 1025 tools/capdis.c offset=strtoul(argv[i]+3,NULL,0); offset 1206 tools/capdis.c if(offset != 0xFFFFFFFF) { offset 1211 tools/capdis.c dis_start = offset+load_addr; offset 78 tools/chdk_dasm.c int offset; /* offset from register in LDR or STR or similar */ offset 589 tools/chdk_dasm.c result.offset = 0x80000000; offset 1202 tools/chdk_dasm.c t_value offset; offset 1204 tools/chdk_dasm.c offset = (instr&255)<<2; offset 1207 tools/chdk_dasm.c else if (is_v4) offset = (instr&15) + ((instr&(15<<8))>>4); offset 1209 tools/chdk_dasm.c offset = instr&0xFFF; offset 1212 tools/chdk_dasm.c if ( offset == 0 ){ offset 1219 tools/chdk_dasm.c if (offset) *op++='-'; offset 1221 tools/chdk_dasm.c result.offset = -offset; offset 1223 tools/chdk_dasm.c else result.offset = offset; offset 1225 tools/chdk_dasm.c op = num(op, offset, 10); offset 1230 tools/chdk_dasm.c result.target = (instr&Ubit) ? addr+8 + offset offset 1231 tools/chdk_dasm.c : addr+8 - offset; offset 38 tools/elf2flt/elf-arm.c int32_t offset; offset 92 tools/elf2flt/elf-arm.c offset = (sign << 24) | ((~(j1 ^ sign) & 1) << 23) | offset 96 tools/elf2flt/elf-arm.c if (offset & 0x01000000) offset 97 tools/elf2flt/elf-arm.c offset -= 0x02000000; offset 98 tools/elf2flt/elf-arm.c offset += tgt_fulloffset - locoffset; offset 110 tools/elf2flt/elf-arm.c !(offset & 1)) || offset 111 tools/elf2flt/elf-arm.c offset <= (int32_t)0xff000000 || offset 112 tools/elf2flt/elf-arm.c offset >= (int32_t)0x01000000) { offset 124 tools/elf2flt/elf-arm.c tgt_sect->base_addr+rela->r_offset+offset, offset, offset 127 tools/elf2flt/elf-arm.c sign = (offset >> 24) & 1; offset 128 tools/elf2flt/elf-arm.c j1 = sign ^ (~(offset >> 23) & 1); offset 129 tools/elf2flt/elf-arm.c j2 = sign ^ (~(offset >> 22) & 1); offset 131 tools/elf2flt/elf-arm.c ((offset >> 12) & 0x03ff)); offset 134 tools/elf2flt/elf-arm.c ((offset >> 1) & 0x07ff)); offset 169 tools/elf2flt/elf-arm.c offset = (*(uint32_t *)loc & 0x00ffffff) << 2; offset 170 tools/elf2flt/elf-arm.c if (offset & 0x02000000) offset 171 tools/elf2flt/elf-arm.c offset -= 0x04000000; offset 173 tools/elf2flt/elf-arm.c offset += tgt_fulloffset - locoffset; offset 187 tools/elf2flt/elf-arm.c offset >>= 2; offset 194 tools/elf2flt/elf-arm.c base_sect->base_addr+rela->r_offset+offset*4, offset*4, offset 201 tools/elf2flt/elf-arm.c *(uint32_t *)loc |= offset & 0x00ffffff; offset 460 tools/elf2flt/elfflt.c text.offset = shdr.sh_offset; offset 468 tools/elf2flt/elfflt.c data.offset = shdr.sh_offset; offset 473 tools/elf2flt/elfflt.c rodata.offset = shdr.sh_offset; offset 494 tools/elf2flt/elfflt.c bss.offset = 0; offset 540 tools/elf2flt/elfflt.c b_seek_read(text.offset, text.address, text.size); offset 541 tools/elf2flt/elfflt.c b_seek_read(data.offset, data.address, data.size); offset 542 tools/elf2flt/elfflt.c b_seek_read(rodata.offset, rodata.address, rodata.size); offset 585 tools/elf2flt/elfflt.c int offset=sizeof(flat_hdr); offset 586 tools/elf2flt/elfflt.c text.flat_offset = offset; offset 587 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, text.address, text.size ); offset 588 tools/elf2flt/elfflt.c DEBUGPRINTF("load .txt to %x (%x->%x)\n",offset,text.size,text.size+align4(text.size)); offset 589 tools/elf2flt/elfflt.c offset+=text.size+div0hack_size+align4(text.size); offset 591 tools/elf2flt/elfflt.c rodata.flat_offset = offset; offset 592 tools/elf2flt/elfflt.c DEBUGPRINTF("load .rodata to %x (%x->%x)\n",offset,rodata.size,rodata.size+align4(rodata.size)); offset 593 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, rodata.address, rodata.size ); offset 594 tools/elf2flt/elfflt.c offset+=rodata.size+align4(rodata.size); offset 596 tools/elf2flt/elfflt.c data.flat_offset = offset; offset 597 tools/elf2flt/elfflt.c DEBUGPRINTF("load .data to %x (%x->%x)\n",offset,data.size,data.size+align4(data.size)); offset 598 tools/elf2flt/elfflt.c memcpy( flat_buf+offset, data.address, data.size ); offset 599 tools/elf2flt/elfflt.c offset+=data.size+align4(data.size); offset 601 tools/elf2flt/elfflt.c bss.flat_offset = offset; offset 602 tools/elf2flt/elfflt.c DEBUGPRINTF(".bss to %x (%x)\n",offset,bss.size); offset 31 tools/elf2flt/elfflt.h uint32_t offset; //start offset in .elf file offset 59 tools/elf2flt/myio.c int b_seek(long offset) offset 61 tools/elf2flt/myio.c filecuridx = offset; offset 62 tools/elf2flt/myio.c if ( offset < 0 ) offset 64 tools/elf2flt/myio.c else if ( offset > filesize) offset 70 tools/elf2flt/myio.c int b_seek_read(long offset, char *buf, int len) offset 72 tools/elf2flt/myio.c if (b_seek(offset) != offset) return -1; offset 19 tools/elf2flt/myio.h int b_seek(long offset); offset 22 tools/elf2flt/myio.h int b_seek_read(long offset, char *buf, int len); offset 719 tools/finsig_dryos.c int offset; // offset for following branches, or other tests offset 3235 tools/finsig_dryos.c if (sig->offset > 1) fadr = followBranch(fw, fadr, 1); offset 3237 tools/finsig_dryos.c fadr = followBranch2(fw, fadr, sig->offset); offset 3251 tools/finsig_dryos.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3258 tools/finsig_dryos.c uint32_t bfadr = followBranch2(fw, fadr, offset); offset 3259 tools/finsig_dryos.c if ((offset <= 1) || (bfadr != fadr)) offset 3271 tools/finsig_dryos.c return search_fw(fw, match_strsig2a, fw->base + j, sig->offset, 2); offset 3292 tools/finsig_dryos.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3325 tools/finsig_dryos.c if (offset > 1) fadr = followBranch(fw, fadr, 1); offset 3326 tools/finsig_dryos.c fadr = followBranch2(fw, fadr, offset); offset 3336 tools/finsig_dryos.c return search_fw(fw, match_strsig3a, idx2adr(fw,j), sig->offset, 3); offset 3345 tools/finsig_dryos.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3348 tools/finsig_dryos.c isADR_PC(fw,k+offset)) // ADR ? offset 3350 tools/finsig_dryos.c uint32_t padr = ADR2adr(fw,k+offset); offset 3362 tools/finsig_dryos.c return search_fw(fw, match_strsig4a, idx2adr(fw,j), sig->offset, sig->offset+1); offset 3381 tools/finsig_dryos.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3415 tools/finsig_dryos.c if (offset > 1) fadr = followBranch(fw, fadr, 1); offset 3416 tools/finsig_dryos.c fadr = followBranch2(fw, fadr, offset); offset 3433 tools/finsig_dryos.c return search_fw(fw, match_strsig5a, idx2adr(fw,j), sig->offset, 3); offset 3457 tools/finsig_dryos.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3472 tools/finsig_dryos.c fa = followBranch2(fw,fa,offset); offset 3482 tools/finsig_dryos.c return search_fw(fw, match_strsig7a, idx2adr(fw,j), sig->offset, 2); offset 3574 tools/finsig_dryos.c if ((sig->offset == -1) || (fadr != func_names[j].val+ofst*4)) offset 3577 tools/finsig_dryos.c if (sig->offset != -1) fadr2 = followBranch2(fw, fadr2, sig->offset); offset 3578 tools/finsig_dryos.c if ((sig->offset <= 0) || (fadr2 != fadr)) offset 3610 tools/finsig_dryos.c uint32_t bfadr = followBranch(fw,fadr,sig->offset); offset 3626 tools/finsig_dryos.c if (found && ((sig->offset == 0) || (bfadr != fadr))) offset 3662 tools/finsig_dryos.c uint32_t bfadr = followBranch2(fw,fadr,sig->offset); offset 3663 tools/finsig_dryos.c if ((sig->offset <= 1) || ((bfadr != fadr) && ((fw->buf[adr2idx(fw,fadr)] & 0xFFFF0000) == 0xE92D0000))) offset 3691 tools/finsig_dryos.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3707 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,j3-offset); offset 3720 tools/finsig_dryos.c return search_fw(fw, match_strsig13a, fw->base + j, sig->offset, 1); offset 3730 tools/finsig_dryos.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 3747 tools/finsig_dryos.c fa = followBranch2(fw,fa,offset); offset 3759 tools/finsig_dryos.c return search_fw(fw, match_strsig15a, idx2adr(fw,j), sig->offset, 1); offset 3951 tools/finsig_dryos.c return search_fw(fw, match_strsig23a, idx2adr(fw,j), sig->offset, 2); offset 3993 tools/finsig_dryos.c int j2 = find_Nth_inst_rev(fw,instid,j1-1,sig->offset,ninst); offset 4006 tools/finsig_dryos.c int j2 = find_Nth_inst_rev(fw,instid,j1-1,sig->offset,ninst); offset 4045 tools/finsig_dryos.c uint32_t fadr = followBranch2(fw,func_names[j].val,sig->offset); offset 4052 tools/finsig_dryos.c case 22: return ((int (*)(firmware*,int))(sig->ev_name))(fw,sig->offset); offset 6283 tools/finsig_dryos.c int isSTRw(firmware *fw, int offset) offset 6285 tools/finsig_dryos.c if ((fwval(fw,offset) & 0xfff00000) == (0xe5800000)) // STR Rx, [Ry, #offs] offset 6292 tools/finsig_dryos.c int isSTRB(firmware *fw, int offset) offset 6294 tools/finsig_dryos.c if ((fwval(fw,offset) & 0xfff00000) == (0xe5c00000)) // STRB Rx, [Ry, #offs] offset 7015 tools/finsig_dryos.c int match_propsig1a(firmware *fw, int k, uint32_t sadr, __attribute__ ((unused))uint32_t offset) offset 7083 tools/finsig_dryos.c return search_fw(fw, match_propsig1a, idx2adr(fw,j), sig->offset, 1); offset 606 tools/finsig_thumb2.c uint32_t offset; offset 685 tools/finsig_thumb2.c void save_misc_val(const char *name, uint32_t base, uint32_t offset, uint32_t ref_adr) offset 692 tools/finsig_thumb2.c p->val = base + offset; offset 694 tools/finsig_thumb2.c p->offset = offset; offset 705 tools/finsig_thumb2.c p->val = p->base = p->offset = 0; offset 6286 tools/finsig_thumb2.c if(mv->offset) { offset 6287 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",mv->base,mv->offset); offset 6580 tools/finsig_thumb2.c if(mv->offset) { offset 6581 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",mv->base,mv->offset); offset 7109 tools/finsig_thumb2.c else if(sig->base || sig->offset) offset 7112 tools/finsig_thumb2.c if(sig->offset || sig->ref_adr) { offset 7114 tools/finsig_thumb2.c if(sig->offset) { offset 7115 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",sig->base,sig->offset); offset 628 tools/finsig_vxworks.c int offset; // offset for following branches, or other tests offset 2148 tools/finsig_vxworks.c if (sig->offset > 1) fadr = followBranch(fw, fadr, 1); offset 2150 tools/finsig_vxworks.c fadr = followBranch2(fw, fadr, sig->offset); offset 2164 tools/finsig_vxworks.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2171 tools/finsig_vxworks.c uint32_t bfadr = followBranch2(fw, fadr, offset); offset 2172 tools/finsig_vxworks.c if ((offset <= 1) || (bfadr != fadr)) offset 2184 tools/finsig_vxworks.c return search_fw(fw, match_strsig2a, fw->base + j, sig->offset, 2); offset 2205 tools/finsig_vxworks.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2238 tools/finsig_vxworks.c if (offset > 1) fadr = followBranch(fw, fadr, 1); offset 2239 tools/finsig_vxworks.c fadr = followBranch2(fw, fadr, offset); offset 2249 tools/finsig_vxworks.c return search_fw(fw, match_strsig3a, idx2adr(fw,j), sig->offset, 3); offset 2258 tools/finsig_vxworks.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2261 tools/finsig_vxworks.c isADR_PC(fw,k+offset)) // ADR ? offset 2263 tools/finsig_vxworks.c uint32_t padr = ADR2adr(fw,k+offset); offset 2275 tools/finsig_vxworks.c return search_fw(fw, match_strsig4a, idx2adr(fw,j), sig->offset, sig->offset+1); offset 2294 tools/finsig_vxworks.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2328 tools/finsig_vxworks.c if (offset > 1) fadr = followBranch(fw, fadr, 1); offset 2329 tools/finsig_vxworks.c fadr = followBranch2(fw, fadr, offset); offset 2346 tools/finsig_vxworks.c return search_fw(fw, match_strsig5a, idx2adr(fw,j), sig->offset, 3); offset 2370 tools/finsig_vxworks.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2385 tools/finsig_vxworks.c fa = followBranch2(fw,fa,offset); offset 2395 tools/finsig_vxworks.c return search_fw(fw, match_strsig7a, idx2adr(fw,j), sig->offset, 2); offset 2485 tools/finsig_vxworks.c if ((sig->offset == -1) || (fadr != func_names[j].val+ofst*4)) offset 2488 tools/finsig_vxworks.c if (sig->offset != -1) fadr2 = followBranch2(fw, fadr2, sig->offset); offset 2489 tools/finsig_vxworks.c if ((sig->offset <= 0) || (fadr2 != fadr)) offset 2521 tools/finsig_vxworks.c uint32_t bfadr = followBranch(fw,fadr,sig->offset); offset 2537 tools/finsig_vxworks.c if (found && ((sig->offset == 0) || (bfadr != fadr))) offset 2602 tools/finsig_vxworks.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2618 tools/finsig_vxworks.c uint32_t fadr = idx2adr(fw,j3-offset); offset 2631 tools/finsig_vxworks.c return search_fw(fw, match_strsig13a, fw->base + j, sig->offset, 1); offset 2641 tools/finsig_vxworks.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset) offset 2656 tools/finsig_vxworks.c fa = followBranch2(fw,fa,offset); offset 2668 tools/finsig_vxworks.c return search_fw(fw, match_strsig15a, idx2adr(fw,j), sig->offset, 1); offset 2831 tools/finsig_vxworks.c return search_fw(fw, match_strsig23a, idx2adr(fw,j), sig->offset, 2); offset 2855 tools/finsig_vxworks.c uint32_t bfadr = followBranch(fw,fadr,sig->offset); offset 2856 tools/finsig_vxworks.c if ((sig->offset == 0) || (bfadr != fadr)) offset 2984 tools/finsig_vxworks.c int j2 = find_Nth_inst_rev(fw,instid,j1-1,sig->offset,ninst); offset 3023 tools/finsig_vxworks.c uint32_t fadr = followBranch2(fw,func_names[j].val,sig->offset); offset 3898 tools/finsig_vxworks.c int isMOVLRPC(firmware *fw, int offset) offset 3900 tools/finsig_vxworks.c return (fwval(fw,offset) == 0xE1A0E00F); // MOV LR, PC offset 5348 tools/finsig_vxworks.c int isADD_0x220000(firmware *fw, int offset) offset 5350 tools/finsig_vxworks.c return ((fwval(fw,offset) & 0xfff00fff) == (0xe2800822)); offset 5955 tools/finsig_vxworks.c int isLDR_PC_r0(firmware *fw, int offset) offset 5957 tools/finsig_vxworks.c return ((fwval(fw,offset) & 0xFE1FF000) == (0xE41F0000)); offset 5961 tools/finsig_vxworks.c int isLDR_PC_r3(firmware *fw, int offset) offset 5963 tools/finsig_vxworks.c return ((fwval(fw,offset) & 0xFE1FF000) == (0xE41F3000)); offset 285 tools/firmware_load.c uint32_t LDR2adr(firmware *fw, int offset) offset 287 tools/firmware_load.c uint32_t inst = fwval(fw,offset); offset 289 tools/firmware_load.c uint32_t fadr = (inst & 0x00800000)?idx2adr(fw,offset+2)+offst:idx2adr(fw,offset+2)-offst; offset 294 tools/firmware_load.c uint32_t LDR2idx(firmware *fw, int offset) offset 296 tools/firmware_load.c return adr2idx(fw,LDR2adr(fw,offset)); offset 300 tools/firmware_load.c uint32_t LDR2val(firmware *fw, int offset) offset 302 tools/firmware_load.c return fwval(fw,adr2idx(fw,LDR2adr(fw,offset))); offset 309 tools/firmware_load.c uint32_t ADR2adr(firmware *fw, int offset) offset 311 tools/firmware_load.c uint32_t inst = fwval(fw,offset); offset 318 tools/firmware_load.c fadr = idx2adr(fw,offset+2)-offst; offset 321 tools/firmware_load.c fadr = idx2adr(fw,offset+2)+offst; offset 334 tools/firmware_load.c uint32_t ALUop2(firmware *fw, int offset) offset 336 tools/firmware_load.c uint32_t inst = fwval(fw,offset); offset 354 tools/firmware_load.c uint32_t ALUop2a(firmware *fw, int offset) offset 356 tools/firmware_load.c uint32_t inst = fwval(fw,offset); offset 383 tools/firmware_load.c int idxFollowBranch(firmware *fw, int fidx, int offset) offset 385 tools/firmware_load.c if (offset) offset 387 tools/firmware_load.c uint32_t msk = ~(offset & 0xFF000000); offset 388 tools/firmware_load.c fidx += ((offset & 0x00FFFFFF) - 1); offset 406 tools/firmware_load.c uint32_t followBranch(firmware *fw, uint32_t fadr, int offset) offset 408 tools/firmware_load.c if (offset) offset 410 tools/firmware_load.c uint32_t msk = ~(offset & 0xFF000000); offset 412 tools/firmware_load.c fidx += ((offset & 0x00FFFFFF) - 1); offset 430 tools/firmware_load.c uint32_t followBranch2(firmware *fw, uint32_t fadr, int offset) offset 432 tools/firmware_load.c fadr = followBranch(fw, fadr, offset); offset 433 tools/firmware_load.c if ((offset & 0x00FFFFFF) == 1) offset 434 tools/firmware_load.c fadr = followBranch(fw, fadr, offset); offset 443 tools/firmware_load.c int isLDR_PC(firmware *fw, int offset) offset 445 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE1F0000) == 0xE41F0000); offset 449 tools/firmware_load.c int isLDR_PC_cond(firmware *fw, int offset) offset 451 tools/firmware_load.c return ((fwval(fw,offset) & 0x0E1F0000) == 0x041F0000); offset 455 tools/firmware_load.c int isLDR_SP(firmware *fw, int offset) offset 457 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFF0000) == 0xE59D0000); offset 461 tools/firmware_load.c int isLDR(firmware *fw, int offset) offset 463 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE100000) == 0xE4100000); offset 467 tools/firmware_load.c int isLDR_cond(firmware *fw, int offset) offset 469 tools/firmware_load.c return ((fwval(fw,offset) & 0x0E100000) == 0x04100000); offset 473 tools/firmware_load.c int isADR_PC(firmware *fw, int offset) offset 475 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE0F0000) == 0xE20F0000); offset 479 tools/firmware_load.c int isADR_PC_cond(firmware *fw, int offset) offset 481 tools/firmware_load.c return ((fwval(fw,offset) & 0x0E0F0000) == 0x020F0000); offset 485 tools/firmware_load.c int isADR(firmware *fw, int offset) offset 487 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE000000) == 0xE2000000); offset 491 tools/firmware_load.c int isLDMFD(firmware *fw, int offset) offset 493 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFF0000) == 0xE8BD0000); offset 497 tools/firmware_load.c int isLDMFD_PC(firmware *fw, int offset) offset 499 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFF8000) == 0xE8BD8000); offset 503 tools/firmware_load.c int isSTMFD(firmware *fw, int offset) offset 505 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFF0000) == 0xE92D0000); offset 509 tools/firmware_load.c int isSTMFD_LR(firmware *fw, int offset) offset 511 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFF4000) == 0xE92D4000); offset 515 tools/firmware_load.c int isSTR(firmware *fw, int offset) offset 517 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE100000) == 0xE4000000); offset 521 tools/firmware_load.c int isSTR_cond(firmware *fw, int offset) offset 523 tools/firmware_load.c return ((fwval(fw,offset) & 0x0E100000) == 0x04000000); offset 527 tools/firmware_load.c int isBX(firmware *fw, int offset) offset 529 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFFFFF0) == 0xE12FFF10); offset 533 tools/firmware_load.c int isBX_cond(firmware *fw, int offset) offset 535 tools/firmware_load.c return ((fwval(fw,offset) & 0x0FFFFFF0) == 0x012FFF10); offset 539 tools/firmware_load.c int isBX_LR(firmware *fw, int offset) offset 541 tools/firmware_load.c return (fwval(fw,offset) == 0xE12FFF1E); offset 545 tools/firmware_load.c int isBLX(firmware *fw, int offset) offset 547 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFFFFFF0) == 0xE12FFF30); offset 551 tools/firmware_load.c int isBL(firmware *fw, int offset) offset 553 tools/firmware_load.c return ((fwval(fw,offset) & 0xFF000000) == 0xEB000000); offset 557 tools/firmware_load.c int isBL_cond(firmware *fw, int offset) offset 559 tools/firmware_load.c return ((fwval(fw,offset) & 0x0F000000) == 0x0B000000); offset 563 tools/firmware_load.c int isBLEQ(firmware *fw, int offset) offset 565 tools/firmware_load.c return ((fwval(fw,offset) & 0xFF000000) == 0x0B000000); offset 569 tools/firmware_load.c int isB(firmware *fw, int offset) offset 571 tools/firmware_load.c return ((fwval(fw,offset) & 0xFF000000) == 0xEA000000); offset 575 tools/firmware_load.c int isBorBL(firmware *fw, int offset) offset 577 tools/firmware_load.c return ((fwval(fw,offset) & 0xFE000000) == 0xEA000000); offset 581 tools/firmware_load.c int isCMP(firmware *fw, int offset) offset 583 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFF00000) == 0xE3500000); offset 587 tools/firmware_load.c int isMOV(firmware *fw, int offset) offset 589 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFF00000) == 0xE1A00000); offset 593 tools/firmware_load.c int isMOV_immed(firmware *fw, int offset) offset 595 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFF00000) == 0xE3A00000); offset 599 tools/firmware_load.c int isORR(firmware *fw, int offset) offset 601 tools/firmware_load.c return ((fwval(fw,offset) & 0xFFF00000) == 0xE3800000); offset 605 tools/firmware_load.c int isADD(firmware *fw, int offset) offset 607 tools/firmware_load.c return ((fwval(fw,offset) & 0xfff00000) == 0xe2800000); offset 611 tools/firmware_load.c int isSUB(firmware *fw, int offset) offset 613 tools/firmware_load.c return ((fwval(fw,offset) & 0xfff00000) == 0xe2400000); offset 108 tools/firmware_load.h int idxFollowBranch(firmware *fw, int fidx, int offset); offset 109 tools/firmware_load.h uint32_t followBranch(firmware *fw, uint32_t fadr, int offset); offset 110 tools/firmware_load.h uint32_t followBranch2(firmware *fw, uint32_t fadr, int offset); offset 113 tools/firmware_load.h uint32_t LDR2adr(firmware *fw, int offset); offset 114 tools/firmware_load.h uint32_t LDR2idx(firmware *fw, int offset); offset 115 tools/firmware_load.h uint32_t LDR2val(firmware *fw, int offset); offset 116 tools/firmware_load.h uint32_t ADR2adr(firmware *fw, int offset); offset 117 tools/firmware_load.h uint32_t ALUop2(firmware *fw, int offset); offset 118 tools/firmware_load.h uint32_t ALUop2a(firmware *fw, int offset); offset 121 tools/firmware_load.h int isLDR_PC(firmware *fw, int offset); offset 122 tools/firmware_load.h int isLDR_SP(firmware *fw, int offset); offset 123 tools/firmware_load.h int isLDR_PC_cond(firmware *fw, int offset); offset 124 tools/firmware_load.h int isADR_PC(firmware *fw, int offset); offset 125 tools/firmware_load.h int isADR_PC_cond(firmware *fw, int offset); offset 126 tools/firmware_load.h int isLDMFD(firmware *fw, int offset); offset 127 tools/firmware_load.h int isLDMFD_PC(firmware *fw, int offset); offset 128 tools/firmware_load.h int isLDR(firmware *fw, int offset); offset 129 tools/firmware_load.h int isLDR_cond(firmware *fw, int offset); offset 130 tools/firmware_load.h int isADR(firmware *fw, int offset); offset 131 tools/firmware_load.h int isSTMFD(firmware *fw, int offset); offset 132 tools/firmware_load.h int isSTMFD_LR(firmware *fw, int offset); offset 133 tools/firmware_load.h int isSTR(firmware *fw, int offset); offset 134 tools/firmware_load.h int isSTR_cond(firmware *fw, int offset); offset 135 tools/firmware_load.h int isBX(firmware *fw, int offset); offset 136 tools/firmware_load.h int isBX_LR(firmware *fw, int offset); offset 137 tools/firmware_load.h int isBLX(firmware *fw, int offset); offset 138 tools/firmware_load.h int isBL(firmware *fw, int offset); offset 139 tools/firmware_load.h int isBL_cond(firmware *fw, int offset); offset 140 tools/firmware_load.h int isBLEQ(firmware *fw, int offset); offset 141 tools/firmware_load.h int isB(firmware *fw, int offset); offset 142 tools/firmware_load.h int isBorBL(firmware *fw, int offset); offset 143 tools/firmware_load.h int isCMP(firmware *fw, int offset); offset 144 tools/firmware_load.h int isMOV(firmware *fw, int offset); offset 145 tools/firmware_load.h int isMOV_immed(firmware *fw, int offset); offset 146 tools/firmware_load.h int isORR(firmware *fw, int offset); offset 147 tools/firmware_load.h int isADD(firmware *fw, int offset); offset 148 tools/firmware_load.h int isSUB(firmware *fw, int offset); offset 100 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void UpdateMBROnFlash(int driveno, int offset, char *str); offset 108 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int lseek (int fd, int offset, int whence); offset 123 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int Fseek_Fut(FILE *f, int offset, int whence); offset 444 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int fseek_low(FILE *f, int offset, int whence); offset 27 tools/packfi2/fi2enc.c uint32_t offset; // Offset in data block offset 186 tools/packfi2/fi2enc.c fi2rec.offset = 0; // save data block offset offset 1184 tools/packfi2/zlib.h z_off_t offset, int whence));