base 102 core/modules.c &default_librawop.base, base 164 core/modules.c &default_libedgeovr.base, base 220 core/modules.c &default_libmotiondetect.base, base 268 core/modules.c &default_libscriptapi.base, base 354 core/modules.c &default_libzebra.base, base 390 core/modules.c &default_libhisto.base, base 443 core/modules.c &default_libcurves.base, base 499 core/modules.c &default_libgrids.base, base 541 core/modules.c &default_libpalette.base, base 574 core/modules.c &default_libmpopup.base, base 607 core/modules.c &default_libfselect.base, base 640 core/modules.c &default_libdng.base, base 709 core/modules.c &default_libtextbox.base, base 745 core/modules.c &default_libhexbox.base, base 781 core/modules.c &default_libtxtread.base, base 817 core/modules.c &default_libshothisto.base, base 130 include/lolevel.h extern long _strtol(const char *nptr, char **endptr, int base); base 131 include/lolevel.h extern unsigned long _strtoul(const char *nptr, char **endptr, int base); base 134 include/lolevel.h extern long _strtolx(const char *nptr, char **endptr, int base, int mode); base 18 include/std/stdlib.h extern long strtol(const char *nptr, char **endptr, int base); base 19 include/std/stdlib.h extern unsigned long strtoul(const char *nptr, char **endptr, int base); base 41 lib/lua/lapi.c #define api_checknelems(L, n) api_check(L, (n) <= (L->top - L->base)) base 51 lib/lua/lapi.c TValue *o = L->base + (idx - 1); base 52 lib/lua/lapi.c api_check(L, idx <= L->ci->top - L->base); base 57 lib/lua/lapi.c api_check(L, idx != 0 && -idx <= L->top - L->base); base 98 lib/lua/lapi.c if (size > LUAI_MAXCSTACK || (L->top - L->base + size) > LUAI_MAXCSTACK) base 160 lib/lua/lapi.c return cast_int(L->top - L->base); base 167 lib/lua/lapi.c api_check(L, idx <= L->stack_last - L->base); base 168 lib/lua/lapi.c while (L->top < L->base + idx) base 170 lib/lua/lapi.c L->top = L->base + idx; base 173 lib/lua/lapi.c api_check(L, -(idx+1) <= (L->top - L->base)); base 995 lib/lua/lapi.c luaV_concat(L, n, cast_int(L->top - L->base) - 1); base 87 lib/lua/lbaselib.c int base = luaL_optint(L, 2, 10); base 88 lib/lua/lbaselib.c if (base == 10) { /* standard conversion */ base 99 lib/lua/lbaselib.c luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); base 100 lib/lua/lbaselib.c n = strtoul(s1, &s2, base); base 819 lib/lua/lcode.c LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { base 824 lib/lua/lcode.c luaK_codeABC(fs, OP_SETLIST, base, b, c); base 826 lib/lua/lcode.c luaK_codeABC(fs, OP_SETLIST, base, b, 0); base 829 lib/lua/lcode.c fs->freereg = base + 1; /* free registers with list values */ base 73 lib/lua/lcode.h LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); base 119 lib/lua/ldebug.c if (limit - ci->base >= n && n > 0) /* is 'n' inside 'ci' stack? */ base 132 lib/lua/ldebug.c luaA_pushobject(L, ci->base + (n - 1)); base 143 lib/lua/ldebug.c setobjs2s(L, ci->base + (n - 1), L->top - 1); base 561 lib/lua/ldebug.c for (p = ci->base; p < ci->top; p++) base 571 lib/lua/ldebug.c getobjname(L, L->ci, cast_int(o - L->base), &name) : base 83 lib/lua/ldo.c L->base = L->ci->base; base 84 lib/lua/ldo.c luaF_close(L, L->base); /* close eventual pending closures */ base 85 lib/lua/ldo.c luaD_seterrorobj(L, status, L->base); base 134 lib/lua/ldo.c ci->base = (ci->base - oldstack) + L->stack; base 137 lib/lua/ldo.c L->base = (L->base - oldstack) + L->stack; base 212 lib/lua/ldo.c StkId base, fixed; base 230 lib/lua/ldo.c base = L->top; /* final position of first argument */ base 240 lib/lua/ldo.c return base; base 275 lib/lua/ldo.c StkId st, base; base 280 lib/lua/ldo.c base = func + 1; base 281 lib/lua/ldo.c if (L->top > base + p->numparams) base 282 lib/lua/ldo.c L->top = base + p->numparams; base 286 lib/lua/ldo.c base = adjust_varargs(L, p, nargs); base 291 lib/lua/ldo.c L->base = ci->base = base; base 292 lib/lua/ldo.c ci->top = L->base + p->maxstacksize; base 313 lib/lua/ldo.c L->base = ci->base = ci->func + 1; base 352 lib/lua/ldo.c L->base = (ci - 1)->base; /* restore base */ base 388 lib/lua/ldo.c lua_assert(ci == L->base_ci && firstArg > L->base); base 403 lib/lua/ldo.c L->base = L->ci->base; base 410 lib/lua/ldo.c L->top = L->ci->base; base 449 lib/lua/ldo.c L->base = L->top - nresults; /* protect stack slots below */ base 471 lib/lua/ldo.c L->base = L->ci->base; base 166 lib/lua/lobject.c luaV_concat(L, n+1, cast_int(L->top - L->base) - 1); base 224 lib/lua/lparser.c static int singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { base 233 lib/lua/lparser.c if (!base) base 612 lib/lua/lparser.c int base, nparams; base 643 lib/lua/lparser.c base = f->u.s.info; /* base register for call */ base 649 lib/lua/lparser.c nparams = fs->freereg - (base+1); base 651 lib/lua/lparser.c init_exp(f, VCALL, luaK_codeABC(fs, OP_CALL, base, nparams+1, 2)); base 653 lib/lua/lparser.c fs->freereg = base+1; /* call remove function and arguments and leaves base 1046 lib/lua/lparser.c static void forbody (LexState *ls, int base, int line, int nvars, int isnum) { base 1053 lib/lua/lparser.c prep = isnum ? luaK_codeAsBx(fs, OP_FORPREP, base, NO_JUMP) : luaK_jump(fs); base 1060 lib/lua/lparser.c endfor = (isnum) ? luaK_codeAsBx(fs, OP_FORLOOP, base, NO_JUMP) : base 1061 lib/lua/lparser.c luaK_codeABC(fs, OP_TFORLOOP, base, 0, nvars); base 1070 lib/lua/lparser.c int base = fs->freereg; base 1085 lib/lua/lparser.c forbody(ls, base, line, 1, 1); base 1095 lib/lua/lparser.c int base = fs->freereg; base 1108 lib/lua/lparser.c forbody(ls, base, line, nvars - 3, 0); base 56 lib/lua/lstate.c L1->base = L1->ci->base = L1->top; base 207 lib/lua/lstate.c L->base = L->top = L->ci->base; base 49 lib/lua/lstate.h StkId base; /* base for this function */ base 104 lib/lua/lstate.h StkId base; /* base of current function */ base 98 lib/lua/lua.c int base = lua_gettop(L) - narg; /* function index */ base 100 lib/lua/lua.c lua_insert(L, base); /* put it under chunk and args */ base 102 lib/lua/lua.c status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base); base 104 lib/lua/lua.c lua_remove(L, base); /* remove traceback function */ base 300 lib/lua/lvm.c StkId top = L->base + last + 1; base 363 lib/lua/lvm.c #define RA(i) (base+GETARG_A(i)) base 365 lib/lua/lvm.c #define RB(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgR, base+GETARG_B(i)) base 366 lib/lua/lvm.c #define RC(i) check_exp(getCMode(GET_OPCODE(i)) == OpArgR, base+GETARG_C(i)) base 368 lib/lua/lvm.c ISK(GETARG_B(i)) ? k+INDEXK(GETARG_B(i)) : base+GETARG_B(i)) base 370 lib/lua/lvm.c ISK(GETARG_C(i)) ? k+INDEXK(GETARG_C(i)) : base+GETARG_C(i)) base 377 lib/lua/lvm.c #define Protect(x) { L->savedpc = pc; {x;}; base = L->base; } base 395 lib/lua/lvm.c StkId base; base 402 lib/lua/lvm.c base = L->base; base 415 lib/lua/lvm.c base = L->base; base 419 lib/lua/lvm.c lua_assert(base == L->base && L->base == L->ci->base); base 420 lib/lua/lvm.c lua_assert(base <= L->top && L->top <= L->stack + L->stacksize); base 554 lib/lua/lvm.c setobjs2s(L, RA(i), base+b); base 615 lib/lua/lvm.c base = L->base; base 635 lib/lua/lvm.c if (L->openupval) luaF_close(L, ci->base); base 636 lib/lua/lvm.c L->base = ci->base = ci->func + ((ci+1)->base - pfunc); base 640 lib/lua/lvm.c lua_assert(L->top == L->base + clvalue(func)->l.p->maxstacksize); base 647 lib/lua/lvm.c base = L->base; base 658 lib/lua/lvm.c if (L->openupval) luaF_close(L, base); base 752 lib/lua/lvm.c ncl->l.upvals[j] = luaF_findupval(L, base + GETARG_B(*pc)); base 763 lib/lua/lvm.c int n = cast_int(ci->base - ci->func) - cl->p->numparams - 1; base 772 lib/lua/lvm.c setobjs2s(L, ra + j, ci->base - n + j); base 132 modules/cpuinfo.c &_librun.base, base 456 modules/curves.c &_libcurves.base, base 13 modules/curves.h base_interface_t base; base 1416 modules/dng.c &_libdng.base, base 17 modules/dng.h base_interface_t base; base 956 modules/edgeoverlay.c &_libedgeovr.base, base 14 modules/edgeoverlay.h base_interface_t base; base 63 modules/exmem_inspector.c &_librun.base, base 675 modules/eyefi.c &_libeyefi.base, base 71 modules/file_shelter.c &_librun.base, base 240 modules/firmware_crc.c &_libfirmwarecrc.base, base 436 modules/games/gui_4wins.c &_librun.base, base 305 modules/games/gui_mastermind.c &_librun.base, base 445 modules/games/gui_reversi.c &_librun.base, base 490 modules/games/gui_snake.c &_librun.base, base 543 modules/games/gui_sokoban.c &_librun.base, base 1110 modules/games/gui_sudoku.c &_librun.base, base 862 modules/games/gui_tetris.c &_librun.base, base 695 modules/gui_bench.c &_librun.base, base 198 modules/gui_calendar.c &_librun.base, base 220 modules/gui_debug.c &_librun.base, base 1695 modules/gui_fselect.c &_libfselect.base, base 11 modules/gui_fselect.h base_interface_t base; base 333 modules/gui_grid.c &_libgrids.base, base 11 modules/gui_grid.h base_interface_t base; base 256 modules/gui_hexbox.c &_libhexbox.base, base 16 modules/gui_hexbox.h base_interface_t base; base 234 modules/gui_mpopup.c &_libmpopup.base, base 23 modules/gui_mpopup.h base_interface_t base; base 273 modules/gui_osd_edit.c &_librun.base, base 391 modules/gui_palette.c &_libpalette.base, base 19 modules/gui_palette.h base_interface_t base; base 374 modules/gui_read.c &_libtxtread.base, base 11 modules/gui_read.h base_interface_t base; base 544 modules/gui_tbox.c &_libtextbox.base, base 26 modules/gui_tbox.h base_interface_t base; base 549 modules/histogram.c &_libhisto.base, base 32 modules/histogram.h base_interface_t base; base 3169 modules/luascript.c &_liblua.base, base 57 modules/module_inspector.c &_librun.base, base 709 modules/module_load.c { (base_interface_t**)&librun[0], &default_librun[0].base, ANY_VERSION, h_name[0] }, base 710 modules/module_load.c { (base_interface_t**)&librun[1], &default_librun[1].base, ANY_VERSION, h_name[1] }, base 711 modules/module_load.c { (base_interface_t**)&librun[2], &default_librun[2].base, ANY_VERSION, h_name[2] }, base 712 modules/module_load.c { (base_interface_t**)&librun[3], &default_librun[3].base, ANY_VERSION, h_name[3] } base 911 modules/motion_detector.c &_libmotiondetect.base, base 87 modules/motion_detector.h base_interface_t base; base 612 modules/raw_merge.c &_librawop.base, base 14 modules/raw_merge.h base_interface_t base; base 337 modules/scrdump.c &_libscrdump.base, base 24 modules/script_api.h base_interface_t base; base 163 modules/shot_histogram.c &_libshothisto.base, base 17 modules/shot_histogram.h base_interface_t base; base 12 modules/simple_module.h base_interface_t base; base 90 modules/ubasic.c &_libubasic.base, base 845 modules/user_menu_edit.c &_librun.base, base 798 modules/zebra.c &_libzebra.base, base 22 modules/zebra.h base_interface_t base; base 883 platform/generic/wrappers.c long strtol(const char *nptr, char **endptr, int base) { base 884 platform/generic/wrappers.c return _strtol(nptr, endptr, base); base 887 platform/generic/wrappers.c unsigned long strtoul(const char *nptr, char **endptr, int base) { base 889 platform/generic/wrappers.c return (unsigned long)_strtolx(nptr, endptr, base, 0); base 891 platform/generic/wrappers.c return _strtoul(nptr, endptr, base); base 104 platform/ixus65_sd630/kbd.c #define IN(base, value) ((value < base + 20) && (value > base - 20)) base 257 tools/capdis.c const char *reg=cs_reg_name(handle,insn->detail->arm.operands[i].mem.base); base 1255 tools/capdis.c if(dis_start < fw.base) { base 398 tools/chdk_dasm.c if (w >= fw->base) base 12 tools/dumputil.c if(ptr < dump->base) // warn base 14 tools/dumputil.c return ptr - dump->base; base 21 tools/dumputil.c return off + dump->base; base 75 tools/dumputil.c int load_dump(const char *dumpname,const char *base, dump_t *dump) base 82 tools/dumputil.c dump->base=strtoul(base,NULL,0); base 83 tools/dumputil.c if(dump->base != 0xFFC00000 base 84 tools/dumputil.c && dump->base != 0xFF810000 base 85 tools/dumputil.c && dump->base != 0xFF000000 base 86 tools/dumputil.c && dump->base != 0xF8000000 base 87 tools/dumputil.c && dump->base != 0xFC000000 base 88 tools/dumputil.c && dump->base != 0xE0000000) { base 89 tools/dumputil.c fprintf(stderr,"error base '%s' %x\n",base,dump->base); base 11 tools/dumputil.h unsigned base; base 21 tools/dumputil.h int load_dump(const char *dumpname,const char *base, dump_t *dump); base 44 tools/extract_error_table.c printf("error_table 0x%X\n",(i-1)*4+dump->base); base 72 tools/extract_error_table.c printf("error_table 0x%X\n",i*4+dump->base); base 96 tools/extract_error_table.c const char *base=NULL; base 109 tools/extract_error_table.c } else if(!base) { base 110 tools/extract_error_table.c base=argv[i]; base 117 tools/extract_error_table.c if(!dumpname || !base) { base 121 tools/extract_error_table.c if(!load_dump(dumpname,base,&dump)) base 26 tools/find_eventproc.c if(pfunc > dump->base && deref_word_ptr(dump,i*4+4) != 0) { base 56 tools/find_eventproc.c const char *base=NULL; base 67 tools/find_eventproc.c } else if(!base) { base 68 tools/find_eventproc.c base=argv[i]; base 74 tools/find_eventproc.c if(!dumpname || !base || !num_procs) { base 78 tools/find_eventproc.c if(!load_dump(dumpname,base,&dump)) base 46 tools/find_levent.c printf("DEF(levent_table,0x%X)\n",j*4+dump->base); base 49 tools/find_levent.c printf("levent_table 0x%X\n",j*4+dump->base); base 77 tools/find_levent.c const char *base=NULL; base 93 tools/find_levent.c } else if(!base) { base 94 tools/find_levent.c base=argv[i]; base 101 tools/find_levent.c if(!dumpname || !base) { base 105 tools/find_levent.c if(!load_dump(dumpname,base,&dump)) base 1712 tools/finsig_dryos.c if ( u1 > fw->base ) base 1870 tools/finsig_dryos.c if ( u1 > fw->base ) base 3271 tools/finsig_dryos.c return search_fw(fw, match_strsig2a, fw->base + j, sig->offset, 2); base 3496 tools/finsig_dryos.c if ((u1 >= fw->base) || ((u1 >= fw->base2) && (u1 < fw->base2 + fw->size2*4))) // pointer ?? base 3720 tools/finsig_dryos.c return search_fw(fw, match_strsig13a, fw->base + j, sig->offset, 1); base 4464 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && (fw->buf[k+2] == 0xFFFF0002)) base 4882 tools/finsig_dryos.c if ((a>fw->base) && ((a&3) == 0)) base 5080 tools/finsig_dryos.c else if (us==0 && u>fw->base && u<fw->base+fw->size*4-4 && (u&3)==0) base 5143 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) base 5162 tools/finsig_dryos.c (LDR2val(fw,k) < fw->base)) base 5164 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5166 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 5175 tools/finsig_dryos.c (LDR2val(fw,k+1) < fw->base)) base 5177 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k+1); base 5179 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 5188 tools/finsig_dryos.c (LDR2val(fw,k) < fw->base)) base 5190 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5192 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 5206 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5207 tools/finsig_dryos.c print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k)); base 5220 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5222 tools/finsig_dryos.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); base 5231 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5233 tools/finsig_dryos.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); base 5256 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5258 tools/finsig_dryos.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); base 5282 tools/finsig_dryos.c uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))); base 5283 tools/finsig_dryos.c if (base < fw->base) base 5284 tools/finsig_dryos.c print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1)); base 5560 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5563 tools/finsig_dryos.c print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k)); base 5566 tools/finsig_dryos.c print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k)); base 5576 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5583 tools/finsig_dryos.c print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k)); base 5627 tools/finsig_dryos.c int base = LDR2val(fw,idx2+1); base 5629 tools/finsig_dryos.c print_stubs_min(fw,"zoom_busy",base+ofst-4,fadr); base 5657 tools/finsig_dryos.c int base = LDR2val(fw,k1+1); base 5659 tools/finsig_dryos.c print_stubs_min(fw,"focus_busy",base+ofst-4,idx2adr(fw,k1)); base 5768 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5776 tools/finsig_dryos.c print_stubs_min(fw,"cameracon_state",base+ofst,idx2adr(fw,k)); base 5860 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5862 tools/finsig_dryos.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); base 5886 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k1); base 5887 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base+ofst,idx2adr(fw,k)); base 5905 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); base 5906 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base,idx2adr(fw,k)); base 5922 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k+k1); base 5923 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base+0x20,idx2adr(fw,k+k1)); base 5990 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k1); base 5992 tools/finsig_dryos.c print_stubs_min(fw,"recreview_hold",base+ofst,idx2adr(fw,k1)); base 6103 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k2); base 6104 tools/finsig_dryos.c print_stubs_min(fw,"active_raw_buffer",base+ofst,idx2adr(fw,k1)); base 6174 tools/finsig_dryos.c bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k); base 7451 tools/finsig_dryos.c uint32_t madr = fw->base + (fw->size*4-4); base 7452 tools/finsig_dryos.c for (k=0; k<(int)(tadr-fw->base)/4; k++) base 7745 tools/finsig_dryos.c if ((k2 > fw->base) && (k2 < (fw->base + fw->size*4 - 1))) base 8067 tools/finsig_dryos.c && fwval(fw,k+1) > fw->base && !(fwval(fw,k+1) & 0x3) base 8068 tools/finsig_dryos.c && fwval(fw,k+3) > fw->base && !(fwval(fw,k+1) & 0x3) base 8069 tools/finsig_dryos.c && fwval(fw,k+5) > fw->base && !(fwval(fw,k+1) & 0x3)) base 8184 tools/finsig_dryos.c bprintf("// Possible corrupt firmware dump - file size too small for start address 0x%08x\n",fw->base); base 8279 tools/finsig_dryos.c uint32_t u = fw->base+fw->fsize*4; base 8284 tools/finsig_dryos.c bprintf("// %-8s 0x%08x - 0x%08x (%7d bytes)\n","ROM",fw->base,u,fw->fsize*4); base 605 tools/finsig_thumb2.c uint32_t base; // if stub is found as ptr + offset, record base 685 tools/finsig_thumb2.c void save_misc_val(const char *name, uint32_t base, uint32_t offset, uint32_t ref_adr) base 692 tools/finsig_thumb2.c p->val = base + offset; base 693 tools/finsig_thumb2.c p->base = base; base 705 tools/finsig_thumb2.c p->val = p->base = p->offset = 0; base 1531 tools/finsig_thumb2.c uint32_t base=LDR_PC2val(fw,is->insn); base 1540 tools/finsig_thumb2.c if(is->insn->detail->arm.operands[1].mem.base != reg) { base 1546 tools/finsig_thumb2.c save_misc_val("imager_active",base,off,(uint32_t)is->insn->address); base 1914 tools/finsig_thumb2.c && insn->detail->arm.operands[1].mem.base != ARM_REG_PC) { base 1915 tools/finsig_thumb2.c ptr_reg = insn->detail->arm.operands[1].mem.base; base 2419 tools/finsig_thumb2.c if(is->insn->detail->arm.operands[2].mem.base == ARM_REG_SP) { base 3384 tools/finsig_thumb2.c if ((u<fw->base+fw->size8) && (u>fw->rom_code_search_max_adr)) { base 4231 tools/finsig_thumb2.c uint32_t base=LDR_PC2val(fw,is->insn); base 4246 tools/finsig_thumb2.c || is->insn->detail->arm.operands[1].mem.base != rb) { base 4250 tools/finsig_thumb2.c save_misc_val(rule->name,base,is->insn->detail->arm.operands[1].mem.disp,(uint32_t)is->insn->address); base 4276 tools/finsig_thumb2.c uint32_t base=LDR_PC2val(fw,is->insn); base 4297 tools/finsig_thumb2.c if(is->insn->detail->arm.operands[1].mem.base != rb) { base 4301 tools/finsig_thumb2.c save_misc_val(rule->name,base,is->insn->detail->arm.operands[1].mem.disp,(uint32_t)is->insn->address); base 4744 tools/finsig_thumb2.c if (is->insn->id == ARM_INS_LDR && is->insn->detail->arm.operands[1].mem.base == ptr_reg) { base 4768 tools/finsig_thumb2.c if (is->insn->id == ARM_INS_LDR && is->insn->detail->arm.operands[1].mem.base == ptr_reg) { base 4818 tools/finsig_thumb2.c uint32_t base = LDR_PC2val(fw,is->insn); base 4835 tools/finsig_thumb2.c save_misc_val(rule->name,base,is->insn->detail->arm.operands[2].mem.disp + 4,(uint32_t)is->insn->address); base 5868 tools/finsig_thumb2.c if ((u<fw->base+fw->size8) && (u>adr) && (!isASCIIstring(fw,u))) { base 6035 tools/finsig_thumb2.c || insn->detail->arm.operands[1].mem.base == ARM_REG_PC base 6040 tools/finsig_thumb2.c ptr_reg = insn->detail->arm.operands[1].mem.base; base 6137 tools/finsig_thumb2.c disasm_iter_init(fw, is, fw->base + fw->main_offs + 12 + fw->thumb_default); base 6248 tools/finsig_thumb2.c int match_count = find_bytes_all(fw,ctypes,sizeof(ctypes),fw->base,ctypes_matches,10); base 6260 tools/finsig_thumb2.c uint32_t maxadr = (fw->rom_code_search_max_adr > fw->base + 0x400000)?fw->base + 0x100000:fw->rom_code_search_max_adr; base 6287 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",mv->base,mv->offset); base 6299 tools/finsig_thumb2.c bprintf("// Main firmware start: 0x%08x\n",fw->base+fw->main_offs); base 6581 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",mv->base,mv->offset); base 7109 tools/finsig_thumb2.c else if(sig->base || sig->offset) base 7115 tools/finsig_thumb2.c bprintf(" (0x%x+0x%x)",sig->base,sig->offset); base 7164 tools/finsig_thumb2.c uint32_t adr = fw->base + (pos << 2); base 2184 tools/finsig_vxworks.c return search_fw(fw, match_strsig2a, fw->base + j, sig->offset, 2); base 2407 tools/finsig_vxworks.c if (fwval(fw,j1) >= fw->base) // pointer ?? base 2631 tools/finsig_vxworks.c return search_fw(fw, match_strsig13a, fw->base + j, sig->offset, 1); base 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))) base 3522 tools/finsig_vxworks.c if ((fw->buf[k+1] > fw->base) && (fw->buf[k] == 0x00000000) && (fw->buf[k+2] == 0x00000001) && base 3928 tools/finsig_vxworks.c if ((a>fw->base) && ((a&3) == 0)) base 4114 tools/finsig_vxworks.c if (u>fw->base && u<fw->base+fw->size*4-4 && (u&3)==0) base 4172 tools/finsig_vxworks.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) base 4191 tools/finsig_vxworks.c (LDR2val(fw,k) < fw->base)) base 4193 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4195 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 4204 tools/finsig_vxworks.c (LDR2val(fw,k+1) < fw->base)) base 4206 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k+1); base 4208 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 4217 tools/finsig_vxworks.c (LDR2val(fw,k) < fw->base)) base 4219 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4221 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); base 4235 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4236 tools/finsig_vxworks.c print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k)); base 4249 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4251 tools/finsig_vxworks.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); base 4260 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4262 tools/finsig_vxworks.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); base 4285 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4287 tools/finsig_vxworks.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); base 4311 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))); base 4312 tools/finsig_vxworks.c if (base < fw->base) base 4313 tools/finsig_vxworks.c print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1)); base 4589 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4592 tools/finsig_vxworks.c print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k)); base 4595 tools/finsig_vxworks.c print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k)); base 4605 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4612 tools/finsig_vxworks.c print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k)); base 4656 tools/finsig_vxworks.c int base = LDR2val(fw,idx2+1); base 4658 tools/finsig_vxworks.c print_stubs_min(fw,"zoom_busy",base+ofst-4,fadr); base 4686 tools/finsig_vxworks.c int base = LDR2val(fw,k1+1); base 4688 tools/finsig_vxworks.c print_stubs_min(fw,"focus_busy",base+ofst-4,idx2adr(fw,k1)); base 4784 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); base 4789 tools/finsig_vxworks.c print_stubs_min(fw,"cameracon_state",base,idx2adr(fw,k)); base 5237 tools/finsig_vxworks.c bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k); base 5651 tools/finsig_vxworks.c uint32_t madr = fw->base + (fw->size*4-4); base 5652 tools/finsig_vxworks.c for (k=0; k<(int)(tadr-fw->base)/4; k++) base 5835 tools/finsig_vxworks.c if ((k2 > fw->base) && (k2 < (fw->base + fw->size*4 - 1))) base 6147 tools/finsig_vxworks.c && fwval(fw,k+1) > fw->base base 6148 tools/finsig_vxworks.c && fwval(fw,k+3) > fw->base base 6149 tools/finsig_vxworks.c && fwval(fw,k+5) > fw->base) base 6250 tools/finsig_vxworks.c bprintf("// Possible corrupt firmware dump - file size too small for start address 0x%08x\n",fw->base); base 6295 tools/finsig_vxworks.c uint32_t u = fw->base+fw->fsize*4; base 6300 tools/finsig_vxworks.c bprintf("// %-8s 0x%08x - 0x%08x (%7d bytes)\n","ROM",fw->base,u,fw->fsize*4); base 142 tools/firmware_load.c i = ((i * 4) - (fw->alt_base - fw->base)) / 4; base 148 tools/firmware_load.c int i2 = ((i * 4) + (fw->base - fw->base2)) / 4; base 152 tools/firmware_load.c if (idx2adr(fw,i)>=fw->base && idx2adr(fw,i)<(fw->base+fw->size*4)) base 161 tools/firmware_load.c return fw->base + (idx << 2); base 167 tools/firmware_load.c if (adr < fw->base) base 168 tools/firmware_load.c return -((fw->base - adr) >> 2); base 170 tools/firmware_load.c return (adr - fw->base) >> 2; base 180 tools/firmware_load.c if ((fw->dryos_ver >= 50) && (adr < fw->base)) base 184 tools/firmware_load.c return ((char*)fw->buf) + (adr - fw->base); base 229 tools/firmware_load.c i = ((i * 4) - (fw->alt_base - fw->base)) / 4; base 235 tools/firmware_load.c i = ((i * 4) + (fw->base - fw->base2)) / 4; base 682 tools/firmware_load.c return fw->base+k; base 948 tools/firmware_load.c fw->base = strtoul(base_addr, NULL, 0); base 1010 tools/firmware_load.c fw->fsize = -((int)fw->base)/4; base 1034 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF000000)?0xFFF40170:0xFFFE0170); base 1035 tools/firmware_load.c fw->pid_adr = (fw->base==0xFF000000)?0xFFF40040:0xFFFE0040; base 1050 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF000000)?0xFFF40190:0xFFFE0170); base 1051 tools/firmware_load.c fw->pid_adr = (fw->base==0xFF000000)?0xFFF40040:0xFFFE0040; base 1053 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF000000)?0xFFF40170:0xFFFE0170); base 1057 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF010000)?0xFFF40170:0xFFFF0170); base 1058 tools/firmware_load.c fw->pid_adr = (fw->base==0xFF010000)?0xFFF40040:0xFFFF0040; base 1062 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF010000)?0xFFFE0170:0xFFFF0170); base 1063 tools/firmware_load.c fw->pid_adr = (fw->base==0xFF010000)?0xFFFE0040:0xFFFF0040; base 1067 tools/firmware_load.c fw->cam_idx = adr2idx(fw,(fw->base==0xFF010000)?0xFFFE03A0:0xFFFF03A0); base 1068 tools/firmware_load.c fw->pid_adr = (fw->base==0xFF010000)?0xFFFE0270:0xFFFF0270; base 1152 tools/firmware_load.c if ((fadr > fw->base) && (dadr < fw->base)) base 1331 tools/firmware_load.c if ((fadr > fw->base) && (dadr < fw->base)) base 1355 tools/firmware_load.c if ((fadr > fw->base) && (dadr < fw->base)) base 40 tools/firmware_load.h uint32_t base; // Base address of the firmware in the camera base 135 tools/firmware_load_ng.c start_adr = fw->base; base 137 tools/firmware_load_ng.c if(start_adr < fw->base || start_adr >= fw->base + fw->size8) { base 142 tools/firmware_load_ng.c max_adr = fw->base + fw->size8-1; base 144 tools/firmware_load_ng.c if(max_adr < fw->base || max_adr >= fw->base + fw->size8) { base 148 tools/firmware_load_ng.c int end_k = (max_adr - fw->base); base 149 tools/firmware_load_ng.c BufRange *p = getBufRangeForIndex(fw,(start_adr - fw->base)/4); base 153 tools/firmware_load_ng.c int k = start_adr - fw->base; base 160 tools/firmware_load_ng.c return fw->base+k; base 201 tools/firmware_load_ng.c if(fw->base + fw->size8 - 4096 > fw->rom_code_search_max_adr) { base 204 tools/firmware_load_ng.c max_adr = fw->base + fw->size8; base 225 tools/firmware_load_ng.c return find_next_str_bytes(fw,str,fw->base); base 275 tools/firmware_load_ng.c return (ptr-fw->buf8)+fw->base; base 377 tools/firmware_load_ng.c start=fw->base; base 407 tools/firmware_load_ng.c return find_u32_adr_range(fw,val,start, fw->base + (fw->size8 -4)); base 428 tools/firmware_load_ng.c if(n >= fw->size8 - (adr - fw->base)) { base 498 tools/firmware_load_ng.c && insn->detail->arm.operands[1].mem.base == ARM_REG_PC; base 857 tools/firmware_load_ng.c if(!(is->insn->id == ARM_INS_TBH || is->insn->id == ARM_INS_TBB) || is->insn->detail->arm.operands[0].mem.base != ARM_REG_PC) { base 2018 tools/firmware_load_ng.c if(insn->detail->arm.operands[i].mem.base != match->operands[i].reg1) { base 2170 tools/firmware_load_ng.c if(src_start < fw->base) { base 2171 tools/firmware_load_ng.c fprintf(stderr,"fw_add_adr_range: src_start 0x%08x < base 0x%08x\n",src_start,fw->base); base 2174 tools/firmware_load_ng.c if(src_start >= fw->base+fw->size8) { base 2175 tools/firmware_load_ng.c fprintf(stderr,"fw_add_adr_range: src_start 0x%08x outside dump end 0x%08x\n",src_start,fw->base+fw->size8); base 2187 tools/firmware_load_ng.c if(len > fw->size8 - (start - fw->base)) { base 2198 tools/firmware_load_ng.c r->buf=fw->buf8 + (r->src_start - fw->base); base 2206 tools/firmware_load_ng.c fw->dryos_ver_count = find_bytes_all(fw,sig,strlen(sig),fw->base,fw->dryos_ver_list,FW_MAX_DRYOS_VERS); base 2225 tools/firmware_load_ng.c uint32_t maxadr = (fw->rom_code_search_max_adr - 0x800000 > fw->base)?fw->base + 0x800000:fw->rom_code_search_max_adr; base 2295 tools/firmware_load_ng.c fw->base = base_adr; base 2308 tools/firmware_load_ng.c fw_add_adr_range(fw,fw->base, fw->base+fw->size8, fw->base, ADR_RANGE_ROM, ADR_RANGE_FL_NONE); base 2320 tools/firmware_load_ng.c if(fw_memcmp(fw,fw->base+0x20004,"gaonisoy",8) == 0) { base 2322 tools/firmware_load_ng.c } else if (fw_memcmp(fw,fw->base+0x10004,"gaonisoy",8) == 0) { // newer armv5 firmwares base ff81000 start at ff820000 base 2329 tools/firmware_load_ng.c fw->rom_code_search_min_adr = fw->base + fw->main_offs; // 0 if not found base 2330 tools/firmware_load_ng.c fw->rom_code_search_max_adr=fw->base+fw->size8 - 4; // default == end of fw, may be adjusted by firmware_init_data_ranges base 2444 tools/firmware_load_ng.c if(*pv > fw->base) { base 2448 tools/firmware_load_ng.c if(*pv < fw->base) { base 2454 tools/firmware_load_ng.c if(*pv < fw->base && *pv > *dptr) { base 2488 tools/firmware_load_ng.c disasm_iter_init(fw, is, fw->base + fw->main_offs + 12 + fw->thumb_default); base 2560 tools/firmware_load_ng.c iter_state_t *is=disasm_iter_new(fw, fw->base + fw->main_offs + 12 + fw->thumb_default); base 2655 tools/firmware_load_ng.c if(*pv < fw->base) { base 96 tools/firmware_load_ng.h uint32_t base; // Base address of the firmware in the camera base 329 tools/gensig_dryos.c uint32_t base; base 345 tools/gensig_dryos.c base = strtoul(argv[2], NULL, 0); base 347 tools/gensig_dryos.c pos = strtoul(argv[4], NULL, 0) - base; base 350 tools/gensig_dryos.c if (lnk_pos != 0) lnk_pos -= base; base 277 tools/gensig_vxworks.c uint32_t base; base 293 tools/gensig_vxworks.c base = strtoul(argv[2], NULL, 0); base 295 tools/gensig_vxworks.c pos = strtoul(argv[4], NULL, 0) - base; base 151 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int strtol(const char *nptr, char **endptr, int base); base 152 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall unsigned strtoul(const char *nptr, char **endptr, int base); base 155 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall int strtolx(const char *nptr, char **endptr, int base, int mode); base 498 tools/packfi2/trees.c int base = desc->stat_desc->extra_base; base 525 tools/packfi2/trees.c if (n >= base) xbits = extra[n-base];