k 544 lib/lua/lapi.c LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { k 550 lib/lua/lapi.c setsvalue(L, &key, luaS_new(L, k)); k 657 lib/lua/lapi.c LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { k 664 lib/lua/lapi.c setsvalue(L, &key, luaS_new(L, k)); k 31 lib/lua/lcode.c return (e->k == VKNUM && e->t == NO_JUMP && e->f == NO_JUMP); k 224 lib/lua/lcode.c if (e->k == VNONRELOC) k 229 lib/lua/lcode.c static int addk (FuncState *fs, TValue *k, TValue *v) { k 231 lib/lua/lcode.c TValue *idx = luaH_set(L, fs->h, k); k 235 lib/lua/lcode.c lua_assert(luaO_rawequalObj(&fs->f->k[cast_int(nvalue(idx))], v)); k 240 lib/lua/lcode.c luaM_growvector(L, f->k, fs->nk, f->sizek, TValue, k 242 lib/lua/lcode.c while (oldsize < f->sizek) setnilvalue(&f->k[oldsize++]); k 243 lib/lua/lcode.c setobj(L, &f->k[fs->nk], v); k 272 lib/lua/lcode.c TValue k, v; k 275 lib/lua/lcode.c sethvalue(fs->L, &k, fs->h); k 276 lib/lua/lcode.c return addk(fs, &k, &v); k 281 lib/lua/lcode.c if (e->k == VCALL) { /* expression is an open function call? */ k 284 lib/lua/lcode.c else if (e->k == VVARARG) { k 293 lib/lua/lcode.c if (e->k == VCALL) { /* expression is an open function call? */ k 294 lib/lua/lcode.c e->k = VNONRELOC; k 297 lib/lua/lcode.c else if (e->k == VVARARG) { k 299 lib/lua/lcode.c e->k = VRELOCABLE; /* can relocate its simple result */ k 305 lib/lua/lcode.c switch (e->k) { k 307 lib/lua/lcode.c e->k = VNONRELOC; k 312 lib/lua/lcode.c e->k = VRELOCABLE; k 317 lib/lua/lcode.c e->k = VRELOCABLE; k 324 lib/lua/lcode.c e->k = VRELOCABLE; k 345 lib/lua/lcode.c switch (e->k) { k 351 lib/lua/lcode.c luaK_codeABC(fs, OP_LOADBOOL, reg, e->k == VTRUE, 0); k 373 lib/lua/lcode.c lua_assert(e->k == VVOID || e->k == VJMP); k 378 lib/lua/lcode.c e->k = VNONRELOC; k 383 lib/lua/lcode.c if (e->k != VNONRELOC) { k 392 lib/lua/lcode.c if (e->k == VJMP) k 399 lib/lua/lcode.c int fj = (e->k == VJMP) ? NO_JUMP : luaK_jump(fs); k 410 lib/lua/lcode.c e->k = VNONRELOC; k 424 lib/lua/lcode.c if (e->k == VNONRELOC) { k 446 lib/lua/lcode.c switch (e->k) { k 452 lib/lua/lcode.c e->u.s.info = (e->k == VNIL) ? nilK(fs) : k 453 lib/lua/lcode.c (e->k == VKNUM) ? luaK_numberK(fs, e->u.nval) : k 454 lib/lua/lcode.c boolK(fs, (e->k == VTRUE)); k 455 lib/lua/lcode.c e->k = VK; k 473 lib/lua/lcode.c switch (var->k) { k 512 lib/lua/lcode.c e->k = VNONRELOC; k 525 lib/lua/lcode.c if (e->k == VRELOCABLE) { k 542 lib/lua/lcode.c switch (e->k) { k 566 lib/lua/lcode.c switch (e->k) { k 588 lib/lua/lcode.c switch (e->k) { k 590 lib/lua/lcode.c e->k = VTRUE; k 594 lib/lua/lcode.c e->k = VFALSE; k 606 lib/lua/lcode.c e->k = VRELOCABLE; k 621 lib/lua/lcode.c LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) { k 622 lib/lua/lcode.c t->u.s.aux = luaK_exp2RK(fs, k); k 623 lib/lua/lcode.c t->k = VINDEXED; k 668 lib/lua/lcode.c e1->k = VRELOCABLE; k 685 lib/lua/lcode.c e1->k = VJMP; k 691 lib/lua/lcode.c e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0; k 755 lib/lua/lcode.c if (e2->k == VRELOCABLE && GET_OPCODE(getcode(fs, e2)) == OP_CONCAT) { k 759 lib/lua/lcode.c e1->k = VRELOCABLE; e1->u.s.info = e2->u.s.info; k 59 lib/lua/lcode.h LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); k 394 lib/lua/ldebug.c check(ttisstring(&pt->k[b])); k 490 lib/lua/ldebug.c if (ISK(c) && ttisstring(&p->k[INDEXK(c)])) k 491 lib/lua/ldebug.c return svalue(&p->k[INDEXK(c)]); k 511 lib/lua/ldebug.c lua_assert(ttisstring(&p->k[g])); k 512 lib/lua/ldebug.c *name = svalue(&p->k[g]); k 523 lib/lua/ldebug.c int k = GETARG_C(i); /* key index */ k 524 lib/lua/ldebug.c *name = kname(p, k); k 533 lib/lua/ldebug.c int k = GETARG_C(i); /* key index */ k 534 lib/lua/ldebug.c *name = kname(p, k); k 86 lib/lua/ldump.c const TValue* o=&f->k[i]; k 118 lib/lua/lfunc.c f->k = NULL; k 144 lib/lua/lfunc.c luaM_freearray(L, f->k, f->sizek, TValue); k 207 lib/lua/lgc.c markvalue(g, &f->k[i]); k 603 lib/lua/liolib.c static void createstdfile (lua_State *L, FILE *f, int k, const char *fname) { k 605 lib/lua/liolib.c if (k > 0) { k 607 lib/lua/liolib.c lua_rawseti(L, LUA_ENVIRONINDEX, k); k 233 lib/lua/lobject.h TValue *k; /* constants used by the function */ k 30 lib/lua/lparser.c #define hasmultret(k) ((k) == VCALL || (k) == VVARARG) k 126 lib/lua/lparser.c static void init_exp (expdesc *e, expkind k, int i) { k 128 lib/lua/lparser.c e->k = k; k 188 lib/lua/lparser.c if (fs->upvalues[i].k == v->k && fs->upvalues[i].info == v->u.s.info) { k 200 lib/lua/lparser.c lua_assert(v->k == VLOCAL || v->k == VUPVAL); k 201 lib/lua/lparser.c fs->upvalues[f->nups].k = cast_byte(v->k); k 241 lib/lua/lparser.c var->k = VUPVAL; /* upvalue in this level */ k 259 lib/lua/lparser.c if (hasmultret(e->k)) { k 266 lib/lua/lparser.c if (e->k != VVOID) luaK_exp2nextreg(fs, e); /* close last expression */ k 322 lib/lua/lparser.c OpCode o = (func->upvalues[i].k == VLOCAL) ? OP_MOVE : OP_GETUPVAL; k 366 lib/lua/lparser.c luaM_reallocvector(L, f->k, f->sizek, fs->nk, TValue); k 465 lib/lua/lparser.c if (cc->v.k == VVOID) return; /* there is no list item */ k 467 lib/lua/lparser.c cc->v.k = VVOID; k 477 lib/lua/lparser.c if (hasmultret(cc->v.k)) { k 483 lib/lua/lparser.c if (cc->v.k != VVOID) k 511 lib/lua/lparser.c lua_assert(cc.v.k == VVOID || cc.tostore > 0); k 620 lib/lua/lparser.c args.k = VVOID; k 642 lib/lua/lparser.c lua_assert(f->k == VNONRELOC); k 644 lib/lua/lparser.c if (hasmultret(args.k)) k 647 lib/lua/lparser.c if (args.k != VVOID) k 913 lib/lua/lparser.c if (lh->v.k == VINDEXED) { k 933 lib/lua/lparser.c check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED, k 939 lib/lua/lparser.c if (nv.v.k == VLOCAL) k 969 lib/lua/lparser.c if (v.k == VNIL) v.k = VFALSE; /* `falses' are all equal here */ k 1038 lib/lua/lparser.c int k; k 1040 lib/lua/lparser.c k = e.k; k 1042 lib/lua/lparser.c return k; k 1190 lib/lua/lparser.c e.k = VVOID; k 1229 lib/lua/lparser.c if (v.v.k == VCALL) /* stat -> func */ k 1248 lib/lua/lparser.c if (hasmultret(e.k)) { k 1250 lib/lua/lparser.c if (e.k == VCALL && nret == 1) { /* tail call? */ k 38 lib/lua/lparser.h expkind k; k 49 lib/lua/lparser.h lu_byte k; k 123 lib/lua/ltable.c int k; k 124 lib/lua/ltable.c lua_number2int(k, n); k 125 lib/lua/ltable.c if (luai_numeq(cast_num(k), n)) k 126 lib/lua/ltable.c return k; k 212 lib/lua/ltable.c int k = arrayindex(key); k 213 lib/lua/ltable.c if (0 < k && k <= MAXASIZE) { /* is `key' an appropriate array index? */ k 214 lib/lua/ltable.c nums[ceillog2(k)]++; /* count as such */ k 474 lib/lua/ltable.c int k; k 476 lib/lua/ltable.c lua_number2int(k, n); k 477 lib/lua/ltable.c if (luai_numeq(cast_num(k), nvalue(key))) /* index is int? */ k 478 lib/lua/ltable.c return luaH_getnum(t, k); /* use specialized version */ k 513 lib/lua/ltable.c TValue k; k 514 lib/lua/ltable.c setnvalue(&k, cast_num(key)); k 515 lib/lua/ltable.c return newkey(L, t, &k); k 525 lib/lua/ltable.c TValue k; k 526 lib/lua/ltable.c setsvalue(L, &k, key); k 527 lib/lua/ltable.c return newkey(L, t, &k); k 178 lib/lua/lua.h LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); k 191 lib/lua/lua.h LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); k 104 lib/lua/lundump.c f->k=luaM_newvector(S->L,n,TValue); k 106 lib/lua/lundump.c for (i=0; i<n; i++) setnilvalue(&f->k[i]); k 109 lib/lua/lundump.c TValue* o=&f->k[i]; k 368 lib/lua/lvm.c ISK(GETARG_B(i)) ? k+INDEXK(GETARG_B(i)) : base+GETARG_B(i)) k 370 lib/lua/lvm.c ISK(GETARG_C(i)) ? k+INDEXK(GETARG_C(i)) : base+GETARG_C(i)) k 371 lib/lua/lvm.c #define KBx(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgK, k+GETARG_Bx(i)) k 396 lib/lua/lvm.c TValue *k; k 403 lib/lua/lvm.c k = cl->p->k; k 53 lib/lua/print.c const TValue* o=&f->k[i]; k 116 lib/lua/print.c printf("\t; %s",svalue(&f->k[bx])); k 196 lib/ubasic/ubasic.c int k; k 199 lib/ubasic/ubasic.c k = script_keyid_by_name(string); k 200 lib/ubasic/ubasic.c if (k <= 0) k 202 lib/ubasic/ubasic.c return k; k 1621 lib/ubasic/ubasic.c int k; k 1623 lib/ubasic/ubasic.c k = ubasic_get_key_arg(); k 1624 lib/ubasic/ubasic.c if (k > 0) { k 1625 lib/ubasic/ubasic.c action_push_click(k); k 1636 lib/ubasic/ubasic.c int k; k 1638 lib/ubasic/ubasic.c k = ubasic_get_key_arg(); k 1639 lib/ubasic/ubasic.c if (k > 0) { k 1640 lib/ubasic/ubasic.c action_push_press(k); k 1650 lib/ubasic/ubasic.c int k; k 1652 lib/ubasic/ubasic.c k = ubasic_get_key_arg(); k 1653 lib/ubasic/ubasic.c if (k > 0) { k 1654 lib/ubasic/ubasic.c action_push_release(k); k 2030 lib/ubasic/ubasic.c int k; k 2035 lib/ubasic/ubasic.c k = script_keyid_by_name(string); k 2036 lib/ubasic/ubasic.c if (k <= 0) k 2043 lib/ubasic/ubasic.c script_set_terminate_key(k,string); k 363 modules/luascript.c int k = script_keyid_by_name( luaL_checkstring( L, narg ) ); k 364 modules/luascript.c if(!k) k 366 modules/luascript.c return k; k 8 modules/script_key_funcs.c __attribute__((short_call)) int script_key_is_pressed(int k) k 10 modules/script_key_funcs.c if (k==0xFF) k 12 modules/script_key_funcs.c if (k > 0) k 13 modules/script_key_funcs.c return kbd_is_key_pressed(k); k 17 modules/script_key_funcs.c __attribute__((short_call)) int script_key_is_clicked(int k) k 19 modules/script_key_funcs.c if (k > 0) k 20 modules/script_key_funcs.c return (camera_info.state.kbd_last_clicked == k); k 411 modules/sha1.c int i, j, m, k; k 446 modules/sha1.c for (k = 19; k >= 0; k--) { k 447 modules/sha1.c carry += xkey[k] + xpos[k]; k 448 modules/sha1.c xkey[k] = carry & 0xff; k 891 tools/capdis.c int k; k 892 tools/capdis.c for(k=0;k<is->insn->size;k++) { k 893 tools/capdis.c printf(" %02x",is->insn->bytes[k]); k 642 tools/finsig_dryos.c int k = get_saved_sig(fw, sig); k 643 tools/finsig_dryos.c if (k >= 0) k 645 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[k].val); k 646 tools/finsig_dryos.c for (k=idx+ofst; k<idx+ofst+len; k++) k 648 tools/finsig_dryos.c int rv = func(fw, k, v); k 752 tools/finsig_dryos.c int match_apex2us(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 754 tools/finsig_dryos.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2))) k 756 tools/finsig_dryos.c k = find_inst_rev(fw, isSTMFD_LR, k, 200); k 757 tools/finsig_dryos.c if (k != -1) k 759 tools/finsig_dryos.c if (fwval(fw,k-2) == 0xE3700D09) // CMN R0, #0x240 k 760 tools/finsig_dryos.c k -= 2; k 761 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,k); k 768 tools/finsig_dryos.c int match_apex2us2(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) // r52+? k 770 tools/finsig_dryos.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2))) k 772 tools/finsig_dryos.c k = find_inst_rev(fw, isSTMFD_LR, k, 200); k 773 tools/finsig_dryos.c if (k != -1) k 775 tools/finsig_dryos.c if (fwval(fw,k+1) != 0xe3700d0f) // CMN R0, #0x3c0 k 777 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,k); k 812 tools/finsig_dryos.c int find_mkdir(firmware *fw, __attribute__ ((unused))string_sig *sig, int k) k 814 tools/finsig_dryos.c if (fwval(fw,k) == 0x12CEA600) k 819 tools/finsig_dryos.c kk = k-26; k 823 tools/finsig_dryos.c kk = k-20; k 825 tools/finsig_dryos.c k = find_inst_rev(fw, isSTMFD_LR, kk, 200); k 826 tools/finsig_dryos.c if (k != -1) k 828 tools/finsig_dryos.c if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) || k 829 tools/finsig_dryos.c (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020))) k 832 tools/finsig_dryos.c if (isBL(fw,k+47)) k 834 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001); k 836 tools/finsig_dryos.c else if (isBL(fw,k+48)) k 838 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001); k 906 tools/finsig_dryos.c int k = find_inst_rev(fw, isBX_LR,j1-1,15); k 907 tools/finsig_dryos.c if (k >= 0) k 909 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw, k+1); k 967 tools/finsig_dryos.c int k = find_inst_rev(fw, isSTMFD_LR, j-1, 8); k 968 tools/finsig_dryos.c if(k < 0) { k 973 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw, k); k 986 tools/finsig_dryos.c int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100); k 987 tools/finsig_dryos.c if (isB(fw,k-1) && isBL(fw,k-2)) k 989 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001); k 1001 tools/finsig_dryos.c int k = -1; k 1008 tools/finsig_dryos.c k = find_inst(fw, isBL, j+1, 6); k 1009 tools/finsig_dryos.c if (k > j) k 1011 tools/finsig_dryos.c k = adr2idx(fw, followBranch(fw, idx2adr(fw, k), 0x01000001)); k 1012 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw, k); k 1017 tools/finsig_dryos.c k = find_Nth_inst(fw, isBL, j+1, 6, 2); k 1022 tools/finsig_dryos.c if (k > j) k 1024 tools/finsig_dryos.c k = adr2idx(fw, followBranch(fw, idx2adr(fw, k), 0x01000001)); k 1025 tools/finsig_dryos.c j = find_inst(fw, isBLEQ, k+1, 30); k 1035 tools/finsig_dryos.c k = find_Nth_inst_rev(fw, isBL, j-1, 14, 2); k 1036 tools/finsig_dryos.c j = adr2idx(fw, followBranch(fw, idx2adr(fw, k), 0x01000001)); k 1045 tools/finsig_dryos.c k = find_Nth_inst(fw, isBL, k+1, 20, 2); k 1046 tools/finsig_dryos.c if (k == -1) k 1050 tools/finsig_dryos.c j = adr2idx(fw, followBranch2(fw, idx2adr(fw, k), 0x01000001)); // followBranch2 to support s110 k 1053 tools/finsig_dryos.c k = find_inst(fw, isBL, k+1, 8); k 1054 tools/finsig_dryos.c if (k == -1) k 1058 tools/finsig_dryos.c j = adr2idx(fw, followBranch(fw, idx2adr(fw, k), 0x01000001)); k 1070 tools/finsig_dryos.c k = find_inst(fw, isBL, k+1, 8); k 1071 tools/finsig_dryos.c if (k == -1) k 1075 tools/finsig_dryos.c j = adr2idx(fw, followBranch(fw, idx2adr(fw, k), 0x01000001)); k 1285 tools/finsig_dryos.c int k = find_Nth_inst_rev(fw, isBL, j-1, 5, 1); k 1286 tools/finsig_dryos.c if(k < 0) { k 1289 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw, k), 0x01000001); k 1297 tools/finsig_dryos.c int k = find_Nth_inst_rev(fw, isBL, j-1, 5, 1); k 1298 tools/finsig_dryos.c if(k < 0) { k 1301 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw, k), 0x01000001); k 1314 tools/finsig_dryos.c int k = find_Nth_inst(fw, isBL, adr2idx(fw,func_names[j].val)+1, 6, 2); k 1315 tools/finsig_dryos.c if (k > 0) k 1318 tools/finsig_dryos.c if ( (fwval(fw, k+1) & 0xffff0fff) != 0xe1b00000 ) // movs rx, r0 k 1321 tools/finsig_dryos.c uint32_t cmpinst = ((fwval(fw, k+1) & 0x0000f000)<<4) + 0xe3500004; // cmp rx, #4 k 1326 tools/finsig_dryos.c if ( fwval(fw, k+1+l) == cmpinst ) k 1332 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw, k), 0x01000001); k 1347 tools/finsig_dryos.c int k = get_saved_sig(fw,"StopWDT_FW"); k 1348 tools/finsig_dryos.c if (k >= 0) k 1358 tools/finsig_dryos.c if (func_names[k].val == fadr) k 1373 tools/finsig_dryos.c int find_add_ptp_handler(firmware *fw, __attribute__ ((unused))string_sig *sig, int k) k 1379 tools/finsig_dryos.c while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i])) k 1381 tools/finsig_dryos.c k = find_inst(fw, isBL, k+1, 5); k 1382 tools/finsig_dryos.c if (k == -1) return 0; k 1384 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw,k), 0x01000001); k 1385 tools/finsig_dryos.c k = find_inst(fw, isLDR_PC, k+1, 5); k 1387 tools/finsig_dryos.c if (k == -1 && vals[i] != 0) return 0; k 1402 tools/finsig_dryos.c int j, k; k 1410 tools/finsig_dryos.c k = find_inst(fw, isBL, j+1, 4); k 1411 tools/finsig_dryos.c if (k >= 0) k 1413 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001); k 1416 tools/finsig_dryos.c k = find_inst(fw, isB, k+1, 10); k 1417 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw, k), 1); k 1431 tools/finsig_dryos.c int k = find_str_ref(fw,"%3d_%02d%02d"); k 1432 tools/finsig_dryos.c if (k >= 0) k 1434 tools/finsig_dryos.c k = find_inst_rev(fw, isLDMFD_PC, k-1, 16); k 1435 tools/finsig_dryos.c if (k >= 0) k 1437 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,k+1); k 1444 tools/finsig_dryos.c k = find_str_ref(fw,"___%02d"); k 1445 tools/finsig_dryos.c if (k >= 0) k 1447 tools/finsig_dryos.c k = find_inst_rev(fw, isLDMFD_PC, k-1, 18); k 1448 tools/finsig_dryos.c if (k >= 0) k 1450 tools/finsig_dryos.c if (isMOV(fw,k+1) && isMOV(fw,k+2)) // sanity check k 1452 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,k+1); k 1465 tools/finsig_dryos.c int match_GetImageFolder(firmware *fw, int k, uint32_t a_getImageDirName, uint32_t a_TakeSemaphore) k 1469 tools/finsig_dryos.c if (isBL(fw,k)) k 1471 tools/finsig_dryos.c uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0x01000001); k 1474 tools/finsig_dryos.c int s = find_inst_rev(fw, isSTMFD_LR, k-1, 80); k 1475 tools/finsig_dryos.c int e = find_inst(fw, isLDMFD_PC, k+1, 80); k 1479 tools/finsig_dryos.c for (k1=s+1; k1<k-1; k1++) k 1493 tools/finsig_dryos.c for (k1=k+1; k1<e-1; k1++) k 1521 tools/finsig_dryos.c int k = get_saved_sig(fw,"getImageDirName"); k 1522 tools/finsig_dryos.c if ((k >= 0) && (j >= 0)) k 1524 tools/finsig_dryos.c return search_fw(fw, match_GetImageFolder, func_names[k].val, func_names[j].val, 1); k 1532 tools/finsig_dryos.c int match_GetDrive_ClusterSize(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 1534 tools/finsig_dryos.c if (isBL_cond(fw,k)) k 1536 tools/finsig_dryos.c uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0xF1000001); k 1540 tools/finsig_dryos.c if (isLDR_cond(fw,k-1) && idx_valid(fw,adr2idx(fw,LDR2val(fw,k-1))) && (strcmp(adr2ptr(fw,LDR2val(fw,k-1)),"Mounter.c") == 0)) k 1544 tools/finsig_dryos.c else if (isLDR_cond(fw,k-2) && idx_valid(fw,adr2idx(fw,LDR2val(fw,k-2))) && (strcmp(adr2ptr(fw,LDR2val(fw,k-2)),"Mounter.c") == 0)) k 1548 tools/finsig_dryos.c else if (isLDR_cond(fw,k-3) && idx_valid(fw,adr2idx(fw,LDR2val(fw,k-3))) && (strcmp(adr2ptr(fw,LDR2val(fw,k-3)),"Mounter.c") == 0)) k 1552 tools/finsig_dryos.c else if (isADR_PC_cond(fw,k-1) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-1)),"Mounter.c") == 0)) k 1556 tools/finsig_dryos.c else if (isADR_PC_cond(fw,k-2) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-2)),"Mounter.c") == 0)) k 1561 tools/finsig_dryos.c isLDR_PC(fw,k+1) && k 1562 tools/finsig_dryos.c ((fwval(fw,k+2) & 0xFFF00FF0) == 0xE0800200) && ((fwval(fw,k+3) & 0xFFF00FF0) == 0xE0800100) && k 1563 tools/finsig_dryos.c (fwval(fw,k+4) == 0xE5901004) && (fwval(fw,k+5) == 0xE5900008) && (fwval(fw,k+6) == 0xE0000091) && k 1564 tools/finsig_dryos.c isLDMFD_PC(fw,k+7)) k 1566 tools/finsig_dryos.c k = find_inst_rev(fw,isSTMFD_LR,k-1,8); k 1567 tools/finsig_dryos.c if (k >= 0) k 1569 tools/finsig_dryos.c if (fwval(fw,k-1) == 0xE3500001) // CMP R0, #1 k 1570 tools/finsig_dryos.c k--; k 1571 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 1582 tools/finsig_dryos.c int k = get_saved_sig(fw,"DebugAssert"); k 1583 tools/finsig_dryos.c if (k >= 0) k 1585 tools/finsig_dryos.c return search_fw(fw, match_GetDrive_ClusterSize, func_names[k].val, 0, 16); k 1600 tools/finsig_dryos.c int k = adr2idx(fw,j); k 1601 tools/finsig_dryos.c k = find_inst_rev(fw,isLDMFD_PC,k-1,2); k 1602 tools/finsig_dryos.c if ((k > 0) && ( (fwval(fw,k-1)&0xfffff0f0)==0xe0810090 )) // umull r0, r1, rx, ry k 1604 tools/finsig_dryos.c if (isBL(fw,k-2)) k 1606 tools/finsig_dryos.c k = idxFollowBranch(fw,k-2,0x01000001); k 1607 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 1619 tools/finsig_dryos.c int k = get_saved_sig(fw,"rand"); k 1620 tools/finsig_dryos.c if (k >= 0) k 1622 tools/finsig_dryos.c k = adr2idx(fw, func_names[k].val) - 3; k 1623 tools/finsig_dryos.c if (isLDR_PC(fw,k) && isSTR(fw,k+1) && isBX_LR(fw,k+2)) k 1624 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 1687 tools/finsig_dryos.c int m2, k; k 1696 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); k 1707 tools/finsig_dryos.c for (k=-1; k>-3; k--) k 1709 tools/finsig_dryos.c if ((fwval(fw,m1+k) & 0xFE1FF000) == 0xE41F0000) // ldr r0, =func k 1711 tools/finsig_dryos.c uint32_t u1 = LDR2val(fw, m1+k); k 1718 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); k 1732 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); k 1733 tools/finsig_dryos.c if ((k <= 0)||(k-m2 >= 22)) k 1738 tools/finsig_dryos.c k = find_nxt_str_ref(fw, s1, m2); k 1743 tools/finsig_dryos.c if ((k > 0)&&(k-m2 < 22)) k 1746 tools/finsig_dryos.c idx_createdialogbox = find_inst_rev(fw, isBL, k-1, 4); k 1750 tools/finsig_dryos.c idx_adduitodialog = find_inst(fw, isBL, k+1, 7); k 1752 tools/finsig_dryos.c for (m3=k; m3<k+128; m3++) k 1787 tools/finsig_dryos.c m3 = find_inst(fw, isLDMFD_PC, k+30, 64); k 1799 tools/finsig_dryos.c m3 = find_inst(fw, isLDMFD, k+30, 20); k 1844 tools/finsig_dryos.c int k; k 1845 tools/finsig_dryos.c for (k=j; k<j+24; k++) k 1847 tools/finsig_dryos.c if (isBL_cond(fw,k)&&(idx2adr(fw,idxFollowBranch(fw,k,0xe1000001))==a1)) // BLEQ k 1864 tools/finsig_dryos.c int k; k 1865 tools/finsig_dryos.c for (k=-1; k>-3; k--) k 1867 tools/finsig_dryos.c if ((fwval(fw,m1+k) & 0xFE1FF000) == 0x041F0000) // ldreq r0, =func k 1869 tools/finsig_dryos.c uint32_t u1 = LDR2val(fw, m1+k); k 2202 tools/finsig_dryos.c int k = 0; k 2224 tools/finsig_dryos.c k = idxFollowBranch(fw,j3,0x01000001); k 2225 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 2261 tools/finsig_dryos.c k = idxFollowBranch(fw,j3+m,0x01000001); k 2262 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 2268 tools/finsig_dryos.c if (k) k 2274 tools/finsig_dryos.c if (k) k 2278 tools/finsig_dryos.c if (k && k1) k 2280 tools/finsig_dryos.c k1 = k+1; k 2281 tools/finsig_dryos.c while (k1>0 && k1<k+20) k 2297 tools/finsig_dryos.c if (k) k 2309 tools/finsig_dryos.c int k=adr2idx(fw,func_names[j].val); k 2310 tools/finsig_dryos.c int k_max=k+80; k 2314 tools/finsig_dryos.c for(; k < k_max;k++) { k 2318 tools/finsig_dryos.c if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) { k 2319 tools/finsig_dryos.c adr = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 2329 tools/finsig_dryos.c k_max = k+6; k 2330 tools/finsig_dryos.c for(; k < k_max;k++) { k 2331 tools/finsig_dryos.c if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) { k 2332 tools/finsig_dryos.c uint32_t adr2 = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 2371 tools/finsig_dryos.c int k; k 2372 tools/finsig_dryos.c k = idxFollowBranch(fw,n,0x01000001); k 2373 tools/finsig_dryos.c if ( idx2adr(fw, k) == idx2adr(fw, j) ) k 2376 tools/finsig_dryos.c k = find_inst(fw, isBL, s1+2, 6); k 2377 tools/finsig_dryos.c if (k != -1) k 2380 tools/finsig_dryos.c int l = idxFollowBranch(fw,k,0x01000001); k 2385 tools/finsig_dryos.c k = idxFollowBranch(fw,l,0x01000001); k 2386 tools/finsig_dryos.c if ( isB(fw, k) ) k 2388 tools/finsig_dryos.c int m = idxFollowBranch(fw,k,0x01000001); k 2390 tools/finsig_dryos.c add_func_name("j_GetBaseSv", idx2adr(fw,k), ""); k 2396 tools/finsig_dryos.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 3251 tools/finsig_dryos.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3253 tools/finsig_dryos.c if (fwval(fw,k) == sadr) // pointer to string? k 3255 tools/finsig_dryos.c uint32_t fadr = fwval(fw,k+1); // function address k 3292 tools/finsig_dryos.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3294 tools/finsig_dryos.c if (isADR_PC(fw,k+1) && // ADR ? k 3295 tools/finsig_dryos.c isBorBL(fw,k+2)) // B or BL ? k 3297 tools/finsig_dryos.c uint32_t padr = ADR2adr(fw,k+1); // get address pointed to by 2nd ADR instructioin k 3300 tools/finsig_dryos.c int j2 = k; k 3302 tools/finsig_dryos.c if (isADR_PC(fw,k)) // ADR ? k 3307 tools/finsig_dryos.c for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--) k 3314 tools/finsig_dryos.c if (adr2idx(fw,fa) == k+1) k 3345 tools/finsig_dryos.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3347 tools/finsig_dryos.c if (isSTMFD(fw,k) && // STMFD k 3348 tools/finsig_dryos.c isADR_PC(fw,k+offset)) // ADR ? k 3350 tools/finsig_dryos.c uint32_t padr = ADR2adr(fw,k+offset); k 3353 tools/finsig_dryos.c uint32_t fadr = idx2adr(fw,k); k 3381 tools/finsig_dryos.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3383 tools/finsig_dryos.c if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) && // LDR or ADR ? k 3384 tools/finsig_dryos.c isBorBL(fw,k+2)) // B or BL ? k 3387 tools/finsig_dryos.c if (isLDR_PC(fw,k+1)) // LDR ? k 3388 tools/finsig_dryos.c padr = LDR2val(fw,k+1); k 3390 tools/finsig_dryos.c padr = ADR2adr(fw,k+1); k 3393 tools/finsig_dryos.c int j2 = k; k 3395 tools/finsig_dryos.c if (isLDR_PC(fw,k)) // LDR ? k 3399 tools/finsig_dryos.c for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--) k 3404 tools/finsig_dryos.c if (idxFollowBranch(fw,j2+1,1) == k+1) k 3457 tools/finsig_dryos.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3459 tools/finsig_dryos.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 3462 tools/finsig_dryos.c if (isLDR_PC_cond(fw,k)) // LDR ? k 3463 tools/finsig_dryos.c padr = LDR2val(fw,k); k 3465 tools/finsig_dryos.c padr = ADR2adr(fw,k); k 3468 tools/finsig_dryos.c int j2 = find_inst(fw, isBL, k+1, 10); k 3691 tools/finsig_dryos.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3693 tools/finsig_dryos.c if (fwval(fw,k) == sadr) // string ptr k 3695 tools/finsig_dryos.c uint32_t padr = idx2adr(fw,k); // string ptr address k 3697 tools/finsig_dryos.c for (j2 = k-1; j2 >= 0; j2--) k 3730 tools/finsig_dryos.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 3732 tools/finsig_dryos.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 3735 tools/finsig_dryos.c if (isLDR_PC_cond(fw,k)) // LDR ? k 3736 tools/finsig_dryos.c padr = LDR2val(fw,k); k 3738 tools/finsig_dryos.c padr = ADR2adr(fw,k); k 3741 tools/finsig_dryos.c int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst); k 3801 tools/finsig_dryos.c int k = 0; k 3806 tools/finsig_dryos.c k = adr2idx(fw,LDR2val(fw,idx-3)); k 3810 tools/finsig_dryos.c k = adr2idx(fw,ADR2adr(fw,idx-2)); k 3820 tools/finsig_dryos.c k = adr2idx(fw,LDR2val(fw,l-2)); k 3824 tools/finsig_dryos.c if (k != 0) k 3828 tools/finsig_dryos.c fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 3831 tools/finsig_dryos.c k = find_inst(fw, isLDMFD, k+1, 60); k 3834 tools/finsig_dryos.c fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001); k 3838 tools/finsig_dryos.c k = find_inst_rev(fw, isBL, k-1, 4); k 3839 tools/finsig_dryos.c if (k > 0) k 3841 tools/finsig_dryos.c fadr = followBranch(fw,idx2adr(fw,k),0x01000001); k 3883 tools/finsig_dryos.c int k = 0; k 3886 tools/finsig_dryos.c case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break; k 3887 tools/finsig_dryos.c case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break; k 3888 tools/finsig_dryos.c case 2: k = ((fwval(fw, adr2idx(fw, fadr)-1-addoffs) & 0x0f000000) == 0x0a000000); break; // B cond. k 3889 tools/finsig_dryos.c case 3: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE1A0F00E); break; // mov pc, lr k 3890 tools/finsig_dryos.c case 4: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE12FFF1E); break; // bx lr k 3893 tools/finsig_dryos.c if (k) k 3913 tools/finsig_dryos.c int match_strsig23a(firmware *fw, int k, uint32_t sadr, uint32_t maxdist) k 3915 tools/finsig_dryos.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 3918 tools/finsig_dryos.c if (isLDR_PC_cond(fw,k)) // LDR ? k 3919 tools/finsig_dryos.c padr = LDR2val(fw,k); k 3921 tools/finsig_dryos.c padr = ADR2adr(fw,k); k 3927 tools/finsig_dryos.c j2 = find_Nth_inst_rev(fw, isBorBL, k, maxdist, -dryos_ofst); k 3931 tools/finsig_dryos.c j2 = find_Nth_inst(fw, isBorBL, k+1, maxdist, dryos_ofst+1); k 4275 tools/finsig_dryos.c void print_results(firmware *fw, const char *curr_name, int k) k 4281 tools/finsig_dryos.c if (func_names[k].flags & DONT_EXPORT) return; k 4293 tools/finsig_dryos.c func_names[k].flags |= BAD_MATCH; k 4297 tools/finsig_dryos.c if (func_names[k].flags & UNUSED) return; k 4309 tools/finsig_dryos.c if (func_names[k].flags & OPTIONAL) return; k 4316 tools/finsig_dryos.c if (ostub2 || (func_names[k].flags & UNUSED)) k 4381 tools/finsig_dryos.c void output_modemap(firmware *fw, int k) k 4385 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 4387 tools/finsig_dryos.c k = adr2idx(fw,LDR2val(fw,k)); k 4388 tools/finsig_dryos.c bprintf("%08x\n",idx2adr(fw,k)); k 4389 tools/finsig_dryos.c uint16_t *p = (uint16_t*)(&fw->buf[k]); k 4390 tools/finsig_dryos.c k = 0; k 4391 tools/finsig_dryos.c while ((*p != 0xFFFF) && (k < 50)) k 4411 tools/finsig_dryos.c k++; k 4430 tools/finsig_dryos.c int match_modelist(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 4432 tools/finsig_dryos.c if (isBX_LR(fw,k) && (fw->buf[k+4] == fadr)) k 4434 tools/finsig_dryos.c fadr = fwval(fw,k+1); k 4436 tools/finsig_dryos.c for (k1=k-1; k1>k-20; k1--) k 4452 tools/finsig_dryos.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4454 tools/finsig_dryos.c if (fw->buf[k] == v1) k 4456 tools/finsig_dryos.c FlashParamsTable_address = idx2adr(fw,k); k 4462 tools/finsig_dryos.c int match_FlashParamsTable(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4464 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && (fw->buf[k+2] == 0xFFFF0002)) k 4466 tools/finsig_dryos.c if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1)) k 4489 tools/finsig_dryos.c int match_CAM_UNCACHED_BIT(firmware *fw, int k, __attribute__ ((unused))int v) k 4491 tools/finsig_dryos.c if ((fw->buf[k] & 0x0FFFF000) == 0x03C00000) // BIC k 4493 tools/finsig_dryos.c fw->uncached_adr = ALUop2(fw,k); k 4494 tools/finsig_dryos.c fw->uncached_adr_idx = k; k 4505 tools/finsig_dryos.c int k = isADR_PC_cond(fw, s1); k 4506 tools/finsig_dryos.c if (!k) k 4508 tools/finsig_dryos.c k = fwRd(fw, s1); k 4509 tools/finsig_dryos.c if (k > 0) k 4517 tools/finsig_dryos.c int k,k1; k 4536 tools/finsig_dryos.c k = find_str_ref(fw, "\r[%ld] AdjDrvType[%02ld] -> DrvType[%02"); k 4537 tools/finsig_dryos.c if (k >= 0) k 4540 tools/finsig_dryos.c for (k1 = k-1; k1 >= k-20; k1--) k 4567 tools/finsig_dryos.c for (k1 = k-1; k1 >= k-20; k1--) k 4602 tools/finsig_dryos.c k = find_str_ref(fw, " CrwAddress %lx, CrwSize H %ld V %ld\r"); k 4603 tools/finsig_dryos.c if (k >= 0) k 4606 tools/finsig_dryos.c for (k1=k-1; k1>=k-5; k1--) k 4621 tools/finsig_dryos.c for (k1=k-1; k1>=k-5; k1--) k 4669 tools/finsig_dryos.c k = get_saved_sig(fw,"GetImageFolder"); k 4670 tools/finsig_dryos.c if (k >= 0) k 4672 tools/finsig_dryos.c uint32_t fadr = func_names[k].val; k 4692 tools/finsig_dryos.c k = adr2idx(fw,fadr); k 4694 tools/finsig_dryos.c for (k3=k; k3<k+8; k3++) k 4712 tools/finsig_dryos.c for (k=k1; k<k1+20; k++) k 4714 tools/finsig_dryos.c uint32_t fadr = fwval(fw,k); k 4725 tools/finsig_dryos.c bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr); k 4739 tools/finsig_dryos.c k = get_saved_sig(fw,"task_FileWrite"); k 4740 tools/finsig_dryos.c if (k >= 0) k 4742 tools/finsig_dryos.c uint32_t fadr = func_names[k].val; k 4744 tools/finsig_dryos.c for (k=1; k<32; k++) k 4746 tools/finsig_dryos.c if ((fwval(fw, k1+k) & 0x0fffff00) == 0x008ff100) // add[cond] pc, pc, rx, lsl#2 k 4748 tools/finsig_dryos.c for (k++;isB(fw,k1+k) && idxFollowBranch(fw,k1+k,1) != idxFollowBranch(fw,k1+k-1,1);k++); k 4750 tools/finsig_dryos.c for (;isB(fw,k1+k) && idxFollowBranch(fw,k1+k,1) == idxFollowBranch(fw,k1+k-1,1);k++,c++); k 4752 tools/finsig_dryos.c bprintf("//#define MAX_CHUNKS_FOR_FWT %d // Found @0x%08x\n",c,idx2adr(fw,k+k1)); k 4763 tools/finsig_dryos.c int k, k1; k 4766 tools/finsig_dryos.c k = find_str_ref(fw, "VRAM Address : %p\r"); k 4767 tools/finsig_dryos.c if (k >= 0) k 4769 tools/finsig_dryos.c for (k1=k-1; k1>k-8; k1--) k 4786 tools/finsig_dryos.c int match_vid_get_bitmap_fb(firmware *fw, int k, __attribute__ ((unused))int v) k 4788 tools/finsig_dryos.c if (isBL(fw,k-1) && // BL k 4789 tools/finsig_dryos.c isLDR_PC(fw,k)) k 4791 tools/finsig_dryos.c uint32_t v1 = LDR2val(fw,k); k 4792 tools/finsig_dryos.c bprintf("//void *vid_get_bitmap_fb() { return (void*)0x%08x; } // Found @0x%08x\n",v1,idx2adr(fw,k)); k 4796 tools/finsig_dryos.c if (isBL(fw,k-1) && // BL k 4797 tools/finsig_dryos.c (isLDR_PC(fw,k+1))) k 4799 tools/finsig_dryos.c uint32_t v1 = LDR2val(fw,k+1); k 4800 tools/finsig_dryos.c bprintf("//void *vid_get_bitmap_fb() { return (void*)0x%08x; } // Found @0x%08x\n",v1,idx2adr(fw,k)); k 4807 tools/finsig_dryos.c int match_get_flash_params_count(firmware *fw, int k, __attribute__ ((unused))int v) k 4809 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901) // BIC Rn, Rn, #0x4000 k 4811 tools/finsig_dryos.c uint32_t r = fw->buf[k] & 0x000F0000; // Register k 4812 tools/finsig_dryos.c if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r)) // CMP, Rn #val k 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)); k 4823 tools/finsig_dryos.c int match_uiprop_count(firmware *fw, int k, __attribute__ ((unused))int v) k 4825 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFF00FFF) == 0xe3c00902) // BIC Rn, Rn, #0x8000 k 4827 tools/finsig_dryos.c uint32_t r = fw->buf[k] & 0x000F0000; // Register k 4828 tools/finsig_dryos.c if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r)) // CMP, Rn #val k 4831 tools/finsig_dryos.c uint32_t fadr = fw->buf[k+1]&0xFFF; k 4835 tools/finsig_dryos.c bprintf("//DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1)); k 4847 tools/finsig_dryos.c bprintf("DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1)); k 4857 tools/finsig_dryos.c int match_imager_active(firmware *fw, int k, __attribute__ ((unused))int v) k 4863 tools/finsig_dryos.c if (isLDMFD_PC(fw,k)) k 4865 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isBL, k-1, 10); k 4928 tools/finsig_dryos.c int k,k1; k 4939 tools/finsig_dryos.c uint32_t v = find_viewport_address(fw,&k); k 4940 tools/finsig_dryos.c if (k >= 0) k 4942 tools/finsig_dryos.c bprintf("//void *vid_get_viewport_fb() { return (void*)0x%08x; } // Found @0x%08x\n",v,idx2adr(fw,k)); k 4953 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, -1); k 4955 tools/finsig_dryos.c while ((k >= 0) && !found) k 4960 tools/finsig_dryos.c if (isLDR(fw,k+fbd[f][0]) && isLDR(fw,k+fbd[f][1]) && isLDR(fw,k+fbd[f][2])) k 4962 tools/finsig_dryos.c uint32_t reg = fw->buf[k+fbd[f][2]] & 0x000F0000; // Index register used k 4964 tools/finsig_dryos.c if (((fw->buf[k+fbd[f][0]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][0]; } k 4965 tools/finsig_dryos.c else if (((fw->buf[k+fbd[f][1]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][1]; } k 4969 tools/finsig_dryos.c for (k1=k+2; k1<k+20; k1++) k 4983 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, k); k 4987 tools/finsig_dryos.c k = find_str_ref(fw, "9999"); k 4988 tools/finsig_dryos.c if (k >= 0) k 4990 tools/finsig_dryos.c if (isLDR(fw,k-1) && isBL(fw,k+1)) k 4992 tools/finsig_dryos.c uint32_t v1 = LDR2val(fw,k-1); k 4993 tools/finsig_dryos.c bprintf("DEF(%-40s,0x%08x) // Found @0x%08x\n","jpeg_count_str",v1,idx2adr(fw,k-1)); k 4994 tools/finsig_dryos.c bprintf("//char *camera_jpeg_count_str() { return (char*)0x%08x; } // Found @0x%08x\n",v1,idx2adr(fw,k-1)); k 5141 tools/finsig_dryos.c int match_levent_table(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5143 tools/finsig_dryos.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) k 5145 tools/finsig_dryos.c print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k)); k 5147 tools/finsig_dryos.c uint32_t levent_tbl = idx2adr(fw,k); k 5155 tools/finsig_dryos.c int match_movie_status(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5157 tools/finsig_dryos.c if (isLDR_PC(fw, k) && // LDR R0, =base k 5158 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) && // ADR R1, =sub k 5159 tools/finsig_dryos.c isSTR(fw, k+2) && // STR R1, [R0,N] k 5160 tools/finsig_dryos.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 k 5161 tools/finsig_dryos.c isSTR(fw, k+4) && // STR R1, [R0,ofst] k 5162 tools/finsig_dryos.c (LDR2val(fw,k) < fw->base)) k 5164 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5165 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; k 5166 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 5170 tools/finsig_dryos.c if (isLDR_PC(fw, k) && // LDR R1, =sub k 5171 tools/finsig_dryos.c isLDR_PC(fw, k+1) && // LDR R0, =base k 5172 tools/finsig_dryos.c isSTR(fw, k+2) && // STR R1, [R0,N] k 5173 tools/finsig_dryos.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 k 5174 tools/finsig_dryos.c isSTR(fw, k+4) && // STR R1, [R0,ofst] k 5175 tools/finsig_dryos.c (LDR2val(fw,k+1) < fw->base)) k 5177 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k+1); k 5178 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; k 5179 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 5183 tools/finsig_dryos.c if (isLDR_PC(fw, k) && // LDR Rx, =base k 5184 tools/finsig_dryos.c isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) && // LDR R0, [Rx, ...] k 5185 tools/finsig_dryos.c isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) && // CMP R0, #... k 5186 tools/finsig_dryos.c (fwval(fw,k+3) == 0x03A00005) && k 5187 tools/finsig_dryos.c isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) && // STRxx R0, [Rx,ofst] k 5188 tools/finsig_dryos.c (LDR2val(fw,k) < fw->base)) k 5190 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5191 tools/finsig_dryos.c uint32_t ofst = fwOp2(fw,k+4); k 5192 tools/finsig_dryos.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 5198 tools/finsig_dryos.c int match_full_screen_refresh(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5200 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5201 tools/finsig_dryos.c (fw->buf[k+1] == 0xE5D01000) && // LDRB R1, [R0] k 5202 tools/finsig_dryos.c (fw->buf[k+2] == 0xE3811002) && // ORR R1, R1, #2 k 5203 tools/finsig_dryos.c (fw->buf[k+3] == 0xE5C01000) && // STRB R1, [R0] k 5204 tools/finsig_dryos.c isBX_LR(fw,k+4)) // BX LR k 5206 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5207 tools/finsig_dryos.c print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k)); k 5212 tools/finsig_dryos.c int match_canon_shoot_menu_active(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5214 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 5215 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) && // LDRB R0, [R1, #n] k 5216 tools/finsig_dryos.c (fw->buf[k+2] == 0xE2800001) && // ADD R0, R0, #1 k 5217 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) && // STRB R0, [R1, #n] k 5218 tools/finsig_dryos.c (isB(fw,k+4))) // B k 5220 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5221 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 5222 tools/finsig_dryos.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); k 5225 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5226 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) && // LDRB R1, [R0, #n] k 5227 tools/finsig_dryos.c (fw->buf[k+2] == 0xE2811001) && // ADD R1, R1, #1 k 5228 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) && // STRB R1, [R0, #n] k 5229 tools/finsig_dryos.c (isB(fw,k+4))) // B k 5231 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5232 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 5233 tools/finsig_dryos.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); k 5238 tools/finsig_dryos.c int match_playrec_mode(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5240 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 5241 tools/finsig_dryos.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n] k 5242 tools/finsig_dryos.c ((fw->buf[k+3] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5243 tools/finsig_dryos.c ((fw->buf[k+4] & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n] k 5244 tools/finsig_dryos.c ((fw->buf[k+6] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 5245 tools/finsig_dryos.c ((fw->buf[k+9] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5246 tools/finsig_dryos.c ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 5247 tools/finsig_dryos.c ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5248 tools/finsig_dryos.c ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 5249 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+3)) && k 5250 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+6)) && k 5251 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+9)) && k 5252 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+12)) && k 5253 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+15)) && k 5254 tools/finsig_dryos.c (LDR2val(fw,k) == LDR2val(fw,k+18))) k 5256 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5257 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 5258 tools/finsig_dryos.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); k 5263 tools/finsig_dryos.c int match_some_flag_for_af_scan(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5265 tools/finsig_dryos.c if (isB(fw,k) && // B loc k 5266 tools/finsig_dryos.c isB(fw,k+1) && // B loc k 5267 tools/finsig_dryos.c isB(fw,k+2) && // B loc k 5268 tools/finsig_dryos.c isB(fw,k+3) && // B loc k 5269 tools/finsig_dryos.c isB(fw,k+4) && // B loc k 5270 tools/finsig_dryos.c isB(fw,k+5) && // B loc k 5271 tools/finsig_dryos.c isB(fw,k+6) && // B loc k 5272 tools/finsig_dryos.c isB(fw,k+7) && // B loc k 5273 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) && k 5274 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) && k 5275 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) && k 5276 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) && k 5277 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) && k 5278 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) && k 5279 tools/finsig_dryos.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) && k 5280 tools/finsig_dryos.c (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))))) // LDR R0, =base k 5282 tools/finsig_dryos.c uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))); k 5284 tools/finsig_dryos.c print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1)); k 5289 tools/finsig_dryos.c int match_palette_data(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5291 tools/finsig_dryos.c if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && k 5292 tools/finsig_dryos.c (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) && k 5293 tools/finsig_dryos.c (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000)) k 5295 tools/finsig_dryos.c return idx2adr(fw,k); k 5297 tools/finsig_dryos.c else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && k 5298 tools/finsig_dryos.c (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) && k 5299 tools/finsig_dryos.c (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000)) k 5301 tools/finsig_dryos.c return idx2adr(fw,k); k 5306 tools/finsig_dryos.c int match_palette_buffer_offset(firmware *fw, int k) k 5308 tools/finsig_dryos.c int idx2 = idxFollowBranch(fw, k, 0x01000001); k 5330 tools/finsig_dryos.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, __attribute__ ((unused))uint32_t v2) k 5332 tools/finsig_dryos.c if (isLDR_PC(fw, k) && (LDR2val(fw,k) == palette_data) && isLDR_PC(fw,k-1) && isLDR_PC(fw,k-6) && isLDR(fw,k-5)) k 5334 tools/finsig_dryos.c uint32_t palette_control = LDR2val(fw,k-6); k 5335 tools/finsig_dryos.c int ptr_offset = fwOp2(fw,k-5); k 5336 tools/finsig_dryos.c uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30); k 5344 tools/finsig_dryos.c print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5)); k 5345 tools/finsig_dryos.c if (isBL(fw,k+8)) k 5347 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001); k 5365 tools/finsig_dryos.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2) k 5367 tools/finsig_dryos.c if (isLDR(fw,k) && (LDR2val(fw,k) == v1)) k 5370 tools/finsig_dryos.c for (k1=k+1; k1<k+20; k1++) k 5384 tools/finsig_dryos.c for (k=idx; (k<idx+16) && !found; k++) k 5386 tools/finsig_dryos.c if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2)) k 5388 tools/finsig_dryos.c fadr = ADR2adr(fw,k+2); k 5485 tools/finsig_dryos.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5487 tools/finsig_dryos.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1)) k 5490 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000); k 5498 tools/finsig_dryos.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 5507 tools/finsig_dryos.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 5516 tools/finsig_dryos.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 5525 tools/finsig_dryos.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5527 tools/finsig_dryos.c if (fw->buf[k] == v1) k 5535 tools/finsig_dryos.c int match_viewport_address(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5537 tools/finsig_dryos.c if (fw->buf[k] == v1) k 5540 tools/finsig_dryos.c if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1)) k 5546 tools/finsig_dryos.c int match_physw_status(firmware *fw, int k, __attribute__ ((unused))int v) k 5548 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 5550 tools/finsig_dryos.c print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k)); k 5556 tools/finsig_dryos.c int match_physw_run(firmware *fw, int k, __attribute__ ((unused))int v) k 5558 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 5560 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5561 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1); k 5563 tools/finsig_dryos.c print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k)); k 5565 tools/finsig_dryos.c ofst = fw->buf[k+2] & 0x00000FFF; k 5566 tools/finsig_dryos.c print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k)); k 5572 tools/finsig_dryos.c int match_canon_menu_active(firmware *fw, int k, __attribute__ ((unused))int v) k 5574 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 5576 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5578 tools/finsig_dryos.c for (k1=k+1; k1<k+5; k1++) k 5583 tools/finsig_dryos.c print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k)); k 5591 tools/finsig_dryos.c int match_zoom_busy(firmware *fw, int k, __attribute__ ((unused))int v) k 5593 tools/finsig_dryos.c if (isBL(fw,k)) k 5595 tools/finsig_dryos.c int idx1 = idxFollowBranch(fw,k,0x01000001); k 5640 tools/finsig_dryos.c int match_focus_busy(firmware *fw, int k, __attribute__ ((unused))int v) k 5642 tools/finsig_dryos.c if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000) // LDMFD k 5645 tools/finsig_dryos.c if (isBL(fw,k-2)) k 5647 tools/finsig_dryos.c k1 = idxFollowBranch(fw,k-2,0x01000001); k 5649 tools/finsig_dryos.c if (isBL(fw,k-1)) k 5651 tools/finsig_dryos.c k1 = idxFollowBranch(fw,k-1,0x01000001); k 5668 tools/finsig_dryos.c int match_bitmap_buffer2(firmware *fw, int k, int v) k 5670 tools/finsig_dryos.c uint32_t screen_lock = idx2adr(fw,k); k 5699 tools/finsig_dryos.c int match_bitmap_buffer(firmware *fw, int k, __attribute__ ((unused))int v) k 5701 tools/finsig_dryos.c search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1); k 5705 tools/finsig_dryos.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, __attribute__ ((unused))uint32_t v2) k 5707 tools/finsig_dryos.c if (((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k-2) != 1) && (fwval(fw,k+2) >= fw->uncached_adr)) || k 5708 tools/finsig_dryos.c ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1))) k 5710 tools/finsig_dryos.c uint32_t rb2 = fwval(fw,k+1); k 5713 tools/finsig_dryos.c bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k)); k 5716 tools/finsig_dryos.c print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k)); k 5720 tools/finsig_dryos.c else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1)) k 5722 tools/finsig_dryos.c uint32_t rb2 = fwval(fw,k+3); k 5725 tools/finsig_dryos.c bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k)); k 5728 tools/finsig_dryos.c print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k)); k 5735 tools/finsig_dryos.c int match_fileiosem(firmware *fw, int k, uint32_t fadr, uint32_t nadr) k 5737 tools/finsig_dryos.c if ((k > 5) && isADR_PC(fw, k) && isBL(fw,k+1) && (ADR2adr(fw,k) == nadr) && (followBranch2(fw, idx2adr(fw,k+1), 0x01000001) == fadr)) k 5740 tools/finsig_dryos.c for (j = k-1; j > k-5; j++) k 5758 tools/finsig_dryos.c int match_cameracon_state(firmware *fw, int k, __attribute__ ((unused))int v) k 5766 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 5768 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5770 tools/finsig_dryos.c for (k1=k+1; k1<k+4; k1++) k 5776 tools/finsig_dryos.c print_stubs_min(fw,"cameracon_state",base+ofst,idx2adr(fw,k)); k 5789 tools/finsig_dryos.c int k,k1; k 5814 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, -1); k 5816 tools/finsig_dryos.c while ((k >= 0) && !found) k 5818 tools/finsig_dryos.c int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100); k 5840 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, k); k 5854 tools/finsig_dryos.c k = find_str_ref(fw, "AFFChg"); k 5855 tools/finsig_dryos.c if ((k >= 0) && isBL(fw,k+6)) k 5857 tools/finsig_dryos.c k = idxFollowBranch(fw, k+6, 0x01000001); k 5858 tools/finsig_dryos.c if (isLDR_PC(fw,k) && isLDR(fw,k+1)) k 5860 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5861 tools/finsig_dryos.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 5862 tools/finsig_dryos.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); k 5874 tools/finsig_dryos.c k = find_str_ref(fw, "m_ZoomState :%d\n"); k 5875 tools/finsig_dryos.c if (k >= 0) k 5877 tools/finsig_dryos.c if (isLDR(fw,k-1)) k 5879 tools/finsig_dryos.c uint32_t ofst = fw->buf[k-1] & 0x00000FFF; k 5880 tools/finsig_dryos.c uint32_t reg = (fw->buf[k-1] & 0x000F0000) >> 16; k 5882 tools/finsig_dryos.c for (k1=k-2; k1>k-20; k1--) k 5887 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base+ofst,idx2adr(fw,k)); k 5897 tools/finsig_dryos.c for (k=0; k<fw->size; k++) k 5899 tools/finsig_dryos.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 5900 tools/finsig_dryos.c (fw->buf[k+1] == 0xE5D00000) && // LDRB R0, [R0] k 5901 tools/finsig_dryos.c (fw->buf[k+2] == 0xE1B00000) && // MOVS R0, R0 k 5902 tools/finsig_dryos.c (fw->buf[k+3] == 0x13A00001) && // MOVNE R0, #1 k 5903 tools/finsig_dryos.c isBX_LR(fw,k+4)) // BX LR k 5905 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k); k 5906 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base,idx2adr(fw,k)); k 5915 tools/finsig_dryos.c k = find_str_ref(fw, "TerminateDeliverToZoomController"); k 5916 tools/finsig_dryos.c if (k >= 0) k 5920 tools/finsig_dryos.c if (isLDR_PC(fw,k+k1)) k 5922 tools/finsig_dryos.c uint32_t base = LDR2val(fw,k+k1); k 5923 tools/finsig_dryos.c print_stubs_min(fw,"zoom_status",base+0x20,idx2adr(fw,k+k1)); k 5938 tools/finsig_dryos.c for (k=0; k<fw->size; k++) k 5940 tools/finsig_dryos.c if (fw->buf[k] == fw->sv->min_focus_len) k 5943 tools/finsig_dryos.c if ((fw->buf[k+1] == 100) && (fw->buf[k+2] == 0)) mul = 3; k 5944 tools/finsig_dryos.c if ((fw->buf[k+1] == 100) && (fw->buf[k+2] != 0)) mul = 2; k 5945 tools/finsig_dryos.c if ((fw->buf[k+1] == 0) && (fw->buf[k+2] != 0)) mul = 2; k 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) ; k 5949 tools/finsig_dryos.c int nlen = ((k1 - k) / mul) + 1; k 5955 tools/finsig_dryos.c pos = k; k 5981 tools/finsig_dryos.c k = find_str_ref(fw, "ShootCon_NotifyStartReviewHold"); k 5982 tools/finsig_dryos.c if (k >= 0) k 5984 tools/finsig_dryos.c for (k1=k; k1<k+20; k1++) k 6015 tools/finsig_dryos.c uint32_t v = find_viewport_address(fw,&k); k 6016 tools/finsig_dryos.c if (k >= 0) k 6022 tools/finsig_dryos.c k = find_str_ref(fw, "CRAW BUFF %p"); k 6023 tools/finsig_dryos.c if (k >= 0) k 6027 tools/finsig_dryos.c if (isLDR(fw,k-1)) k 6029 tools/finsig_dryos.c rb1 = LDR2val(fw,k-1); k 6030 tools/finsig_dryos.c rb1_idx = k - 1; k 6032 tools/finsig_dryos.c else if (isMOV_immed(fw,k-1)) k 6034 tools/finsig_dryos.c rb1 = ALUop2(fw,k-1); k 6035 tools/finsig_dryos.c rb1_idx = k - 1; k 6037 tools/finsig_dryos.c else if (isMOV(fw,k-1) && (fwRd(fw,k-1) == 1)) k 6039 tools/finsig_dryos.c int reg = fwval(fw,k-1) & 0xF; k 6040 tools/finsig_dryos.c for (k1=k-2; k1>k-50; k1--) k 6058 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, -1); k 6059 tools/finsig_dryos.c while ((k >= 0) && !found) k 6061 tools/finsig_dryos.c int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100); k 6112 tools/finsig_dryos.c k = find_nxt_str_ref(fw, sadr, k); k 6123 tools/finsig_dryos.c k = get_saved_sig(fw, "TakeSemaphoreStrictly"); k 6124 tools/finsig_dryos.c if (k >= 0) k 6126 tools/finsig_dryos.c uint32_t fadr = func_names[k].val; k 6127 tools/finsig_dryos.c k = find_str(fw, "FileSem.c"); k 6128 tools/finsig_dryos.c if (k >= 0) k 6130 tools/finsig_dryos.c uint32_t nadr = idx2adr(fw, k); k 6156 tools/finsig_dryos.c int find_ctypes(firmware *fw, int k) k 6170 tools/finsig_dryos.c if ((uint32_t)k < (fw->size*4 - sizeof(ctypes))) k 6172 tools/finsig_dryos.c if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0) k 6174 tools/finsig_dryos.c bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k); k 6181 tools/finsig_dryos.c int match_nrflag3(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 6183 tools/finsig_dryos.c if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == (int)v1)) k 6188 tools/finsig_dryos.c for (k3=k; k3>k-30; k3--) k 6211 tools/finsig_dryos.c bprintf("DEF(_nrflag,0x%04x) // Found @ %08x (0x%04x) & %08x (-0x%02x)\n",ofst2+ofst1,idx2adr(fw,k3),ofst2,idx2adr(fw,k),-ofst1); k 6216 tools/finsig_dryos.c bprintf("DEF(_nrflag,0x%04x) // Found @ %08x (0x%04x) & %08x (+0x%02x)\n",ofst2+ofst1,idx2adr(fw,k3),ofst2,idx2adr(fw,k),ofst1); k 6268 tools/finsig_dryos.c int match_nrflag2(firmware *fw, int k, __attribute__ ((unused))int v) k 6271 tools/finsig_dryos.c if (isBL(fw,k)) k 6273 tools/finsig_dryos.c k = idxFollowBranch(fw,k,0x01000001); k 6274 tools/finsig_dryos.c return search_fw(fw, match_nrflag3, k, 0, 1); k 6796 tools/finsig_dryos.c int j, k, n, fnd; k 6814 tools/finsig_dryos.c k = find_nxt_str_ref(fw, i, j+1); k 6815 tools/finsig_dryos.c if (k != -1) k 6817 tools/finsig_dryos.c if (k-j>5) k 6820 tools/finsig_dryos.c j = k; k 7015 tools/finsig_dryos.c int match_propsig1a(firmware *fw, int k, uint32_t sadr, __attribute__ ((unused))uint32_t offset) k 7017 tools/finsig_dryos.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 7020 tools/finsig_dryos.c if (isLDR_PC_cond(fw,k)) // LDR ? k 7021 tools/finsig_dryos.c padr = LDR2val(fw,k); k 7023 tools/finsig_dryos.c padr = ADR2adr(fw,k); k 7026 tools/finsig_dryos.c int j1 = find_inst_rev(fw, isBL, k-1, 16); k 7228 tools/finsig_dryos.c int k, kval = 0; k 7229 tools/finsig_dryos.c for (k=0; k<tlen; k+=tsiz) k 7231 tools/finsig_dryos.c if (fw->buf[tidx+k+1] == ev) k 7233 tools/finsig_dryos.c kval = fw->buf[tidx+k]; k 7234 tools/finsig_dryos.c tadr = idx2adr(fw,tidx+k); k 7256 tools/finsig_dryos.c int k, kval = 0; k 7261 tools/finsig_dryos.c for (k=0; k<tlen; k+=tsiz) k 7263 tools/finsig_dryos.c ev = fw->buf[tidx+k+1]; k 7264 tools/finsig_dryos.c kval = fw->buf[tidx+k]; k 7265 tools/finsig_dryos.c tadr = idx2adr(fw,tidx+k); k 7309 tools/finsig_dryos.c int r, k, kval = 0; k 7312 tools/finsig_dryos.c for (k=0; k<tlen; k+=tsiz) k 7314 tools/finsig_dryos.c if (fw->buf[tidx+k+1] == ev) k 7316 tools/finsig_dryos.c kval = fw->buf[tidx+k]; k 7317 tools/finsig_dryos.c tadr = idx2adr(fw,tidx+k); k 7395 tools/finsig_dryos.c int k; k 7396 tools/finsig_dryos.c for (k=0; k<kcount; k++) k 7398 tools/finsig_dryos.c bprintf("// { %d, %-20s,0x%08x }, // Found @0x%08x, levent 0x%02x%s\n",key_info[k].reg,key_info[k].nm,key_info[k].bits,key_info[k].fadr,key_info[k].ev,(key_info[k].inv==0)?"":" (uses inverted logic in physw_status)"); k 7404 tools/finsig_dryos.c int match_GetSDProtect(firmware *fw, int k, __attribute__ ((unused))int v) k 7406 tools/finsig_dryos.c if (isB(fw,k)) // B k 7408 tools/finsig_dryos.c k = idxFollowBranch(fw,k,1); k 7409 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 7411 tools/finsig_dryos.c return LDR2val(fw,k); k 7420 tools/finsig_dryos.c int k,k1; k 7429 tools/finsig_dryos.c k = find_str_ref(fw,"SD Not Exist\n"); k 7430 tools/finsig_dryos.c if (k >= 0) k 7432 tools/finsig_dryos.c for (k1=k-1; k1>k-5; k1--) k 7452 tools/finsig_dryos.c for (k=0; k<(int)(tadr-fw->base)/4; k++) k 7454 tools/finsig_dryos.c if (isLDR_PC(fw,k)) k 7456 tools/finsig_dryos.c uint32_t adr = LDR2val(fw,k); k 7467 tools/finsig_dryos.c for (k=0; k<(int)tlen/3; k+=3) k 7469 tools/finsig_dryos.c if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF)) k 7600 tools/finsig_dryos.c int get_eventproc_val(firmware *fw, int k) k 7602 tools/finsig_dryos.c if (isADR_PC(fw,k) && (fwRd(fw,k) == 0)) k 7603 tools/finsig_dryos.c nadr = ADR2adr(fw,k); k 7604 tools/finsig_dryos.c else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1)) k 7605 tools/finsig_dryos.c eadr = ADR2adr(fw,k); k 7606 tools/finsig_dryos.c else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0)) k 7607 tools/finsig_dryos.c nadr = LDR2val(fw,k); k 7608 tools/finsig_dryos.c else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1)) k 7609 tools/finsig_dryos.c eadr = LDR2val(fw,k); k 7617 tools/finsig_dryos.c int k; k 7626 tools/finsig_dryos.c for (k=0; func_names[k].name != 0; k++) k 7628 tools/finsig_dryos.c if (strcmp(func_names[k].name, s) == 0) k 7630 tools/finsig_dryos.c if (func_names[k].val == 0) // same name, no address k 7632 tools/finsig_dryos.c func_names[k].val = eadr; k 7633 tools/finsig_dryos.c func_names[k].flags |= EV_MATCH; k 7637 tools/finsig_dryos.c else if (func_names[k].val == eadr) // same name, same address k 7665 tools/finsig_dryos.c int match_eventproc(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 7667 tools/finsig_dryos.c if (isBorBL(fw,k)) k 7669 tools/finsig_dryos.c uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001); k 7674 tools/finsig_dryos.c k--; k 7675 tools/finsig_dryos.c if (get_eventproc_val(fw, k) == 0) k 7677 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isB, k, 500); k 7680 tools/finsig_dryos.c k = k1 - 1; k 7681 tools/finsig_dryos.c get_eventproc_val(fw, k); k 7684 tools/finsig_dryos.c k--; k 7685 tools/finsig_dryos.c if (get_eventproc_val(fw, k) == 0) k 7687 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isB, k, 500); k 7690 tools/finsig_dryos.c k = k1 - 1; k 7691 tools/finsig_dryos.c get_eventproc_val(fw, k); k 7703 tools/finsig_dryos.c int match_registerproc2(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 7705 tools/finsig_dryos.c int j = k; k 7706 tools/finsig_dryos.c if (isBorBL(fw,k)) k 7708 tools/finsig_dryos.c uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001); k 7713 tools/finsig_dryos.c k--; k 7714 tools/finsig_dryos.c if (get_eventproc_val(fw, k) == 0) k 7716 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isB, k, 500); k 7719 tools/finsig_dryos.c k = k1 - 1; k 7720 tools/finsig_dryos.c get_eventproc_val(fw, k); k 7723 tools/finsig_dryos.c k--; k 7724 tools/finsig_dryos.c if (get_eventproc_val(fw, k) == 0) k 7726 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isB, k, 500); k 7729 tools/finsig_dryos.c k = k1 - 1; k 7730 tools/finsig_dryos.c get_eventproc_val(fw, k); k 7740 tools/finsig_dryos.c k = j; k 7741 tools/finsig_dryos.c int k1 = find_inst_rev(fw, isLDR_PC, k, 8); k 7747 tools/finsig_dryos.c int k3 = k; k 7748 tools/finsig_dryos.c while (k3 > k-4) k 7772 tools/finsig_dryos.c int match_registerproc(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 7774 tools/finsig_dryos.c if (isB(fw,k+1) && isMOV_immed(fw,k) && (fwRd(fw,k) == 2)) k 7776 tools/finsig_dryos.c uint32_t adr = followBranch(fw,idx2adr(fw,k+1),1); k 7779 tools/finsig_dryos.c search_fw(fw, match_registerproc2, idx2adr(fw,k), 0, 2); k 7785 tools/finsig_dryos.c int match_registerlists(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 7787 tools/finsig_dryos.c if (isBorBL(fw,k+1) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0)) k 7789 tools/finsig_dryos.c uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001); k 7792 tools/finsig_dryos.c int j = adr2idx(fw,LDR2val(fw,k)); k 7795 tools/finsig_dryos.c j = adr2idx(fw,LDR2val(fw,k) - fw->data_start + fw->data_init_start); k 7807 tools/finsig_dryos.c else if (isBorBL(fw,k+1) && isLDMFD(fw,k) && isLDR_PC(fw,k-1) && (fwRd(fw,k-1) == 0)) k 7809 tools/finsig_dryos.c uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001); k 7812 tools/finsig_dryos.c int j = adr2idx(fw,LDR2val(fw,k-1)); k 7815 tools/finsig_dryos.c j = adr2idx(fw,LDR2val(fw,k-1) - fw->data_start + fw->data_init_start); k 7879 tools/finsig_dryos.c int k; k 7880 tools/finsig_dryos.c for (k=j; k<j+8; k++) k 7882 tools/finsig_dryos.c if (isBL(fw,k)) k 7884 tools/finsig_dryos.c int k1 = adr2idx(fw,followBranch(fw,idx2adr(fw,k),0x01000001)); k 7907 tools/finsig_dryos.c uint32_t findTaskAddress(firmware *fw, int k, int reg) k 7913 tools/finsig_dryos.c if (isLDR_PC(fw,k+o) && (fwRd(fw,k+o) == reg)) k 7915 tools/finsig_dryos.c uint32_t adr = LDR2val(fw,k+o); k 7919 tools/finsig_dryos.c if (fwval(fw,k+i) == (0xE5900000 | (reg << 12) | (reg << 16))) // LDR Rx,[Rx] k 7926 tools/finsig_dryos.c else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == reg)) k 7928 tools/finsig_dryos.c return(ADR2adr(fw,k+o)); k 7935 tools/finsig_dryos.c int match_createtask(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 7938 tools/finsig_dryos.c k = idxcorr(fw, k); k 7939 tools/finsig_dryos.c if (isBorBL(fw,k)) k 7941 tools/finsig_dryos.c uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001); k 7944 tools/finsig_dryos.c fadr = findTaskAddress(fw, k, 3); k 7947 tools/finsig_dryos.c uint32_t sadr = findTaskAddress(fw, k, 0); k 7964 tools/finsig_dryos.c int k = get_saved_sig(fw,"CreateTask"); k 7965 tools/finsig_dryos.c if (k >= 0) k 7967 tools/finsig_dryos.c search_fw(fw, match_createtask, func_names[k].val, 0, 7); k 7969 tools/finsig_dryos.c k = get_saved_sig(fw,"CreateTaskStrictly"); k 7970 tools/finsig_dryos.c if (k >= 0) k 7972 tools/finsig_dryos.c search_fw(fw, match_createtask, func_names[k].val, 0, 7); k 7976 tools/finsig_dryos.c k = get_saved_sig(fw,"CreateTaskStrictly_alt"); // r59+ k 7977 tools/finsig_dryos.c if (k >= 0) k 7979 tools/finsig_dryos.c search_fw(fw, match_createtask, func_names[k].val, 0, 7); k 8026 tools/finsig_dryos.c int find_ptp_handler_imm(firmware *fw, int k) k 8036 tools/finsig_dryos.c if (isLDR_PC(fw,k+o)) k 8038 tools/finsig_dryos.c if(fwRd(fw,k+o) == 0) k 8040 tools/finsig_dryos.c op = LDR2val(fw,k+o); k 8042 tools/finsig_dryos.c else if(fwRd(fw,k+o) == 1){ k 8043 tools/finsig_dryos.c handler = LDR2val(fw,k+o); k 8047 tools/finsig_dryos.c else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1)) k 8049 tools/finsig_dryos.c handler=ADR2adr(fw,k+o); k 8061 tools/finsig_dryos.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 8064 tools/finsig_dryos.c if(fwval(fw,k) == 0x1004 k 8065 tools/finsig_dryos.c && fwval(fw,k+2) == 0x1005 k 8066 tools/finsig_dryos.c && fwval(fw,k+4) == 0x1006 k 8067 tools/finsig_dryos.c && fwval(fw,k+1) > fw->base && !(fwval(fw,k+1) & 0x3) k 8068 tools/finsig_dryos.c && fwval(fw,k+3) > fw->base && !(fwval(fw,k+1) & 0x3) k 8069 tools/finsig_dryos.c && fwval(fw,k+5) > fw->base && !(fwval(fw,k+1) & 0x3)) k 8075 tools/finsig_dryos.c uint32_t op=fwval(fw,k+i*2); k 8076 tools/finsig_dryos.c uint32_t handler=fwval(fw,k+i*2+1); k 8086 tools/finsig_dryos.c k = idxcorr(fw, k); k 8087 tools/finsig_dryos.c if (!isBorBL(fw,k)) k 8091 tools/finsig_dryos.c uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001); k 8095 tools/finsig_dryos.c find_ptp_handler_imm(fw,k); k 8103 tools/finsig_dryos.c int k = get_saved_sig(fw,"add_ptp_handler"); k 8104 tools/finsig_dryos.c if (k >= 0) k 8106 tools/finsig_dryos.c search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128); k 8165 tools/finsig_dryos.c uint32_t k = j + c - fw->firmware_ver_str; k 8166 tools/finsig_dryos.c if ( (k>=j) && (k<j+32) ) k 8168 tools/finsig_dryos.c bprintf("// %s // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k); k 8320 tools/finsig_dryos.c int k; k 8325 tools/finsig_dryos.c for (k=0; k<next_func_entry; k++) k 8327 tools/finsig_dryos.c if (strncmp(fns[k]->name,"hook_",5) != 0) k 8329 tools/finsig_dryos.c if (fns[k]->val != 0) k 8331 tools/finsig_dryos.c if (fns[k]->flags & BAD_MATCH) k 8333 tools/finsig_dryos.c osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name); k 8335 tools/finsig_dryos.c fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name); k 8338 tools/finsig_dryos.c fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name); k 8341 tools/finsig_dryos.c else if (fns[k]->flags & LIST_ALWAYS) k 8344 tools/finsig_dryos.c fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name); k 8355 tools/finsig_dryos.c int k; k 8402 tools/finsig_dryos.c for (k = 0; k < max_find_func; k++) k 8405 tools/finsig_dryos.c curr_name = func_names[k].name; k 8410 tools/finsig_dryos.c print_results(&fw,curr_name,k); k 8432 tools/finsig_dryos.c for (k=0; k<next_func_entry; k++) k 8433 tools/finsig_dryos.c fns[k] = &func_names[k]; k 809 tools/finsig_thumb2.c int k; k 829 tools/finsig_thumb2.c for (k=0; sig_names[k].name != 0; k++) k 831 tools/finsig_thumb2.c if (strcmp(sig_names[k].name, s) == 0) k 833 tools/finsig_thumb2.c if (sig_names[k].val == 0) // same name, no address k 835 tools/finsig_thumb2.c sig_names[k].val = eadr; k 836 tools/finsig_thumb2.c sig_names[k].flags |= EV_MATCH; k 841 tools/finsig_thumb2.c else if (sig_names[k].val == eadr) // same name, same address k 849 tools/finsig_thumb2.c printf("add_func_name: duplicate name %s existing 0x%08x != new 0x%08x\n",s, sig_names[k].val, eadr); k 6318 tools/finsig_thumb2.c uint32_t k = j + c - fw->firmware_ver_str; k 6319 tools/finsig_thumb2.c if ( (k>=j) && (k<j+32) ) k 6321 tools/finsig_thumb2.c bprintf("// %s // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k); k 6770 tools/finsig_thumb2.c int k; k 6771 tools/finsig_thumb2.c for (k=0; k<kcount; k++) k 6773 tools/finsig_thumb2.c bprintf("// { %d, %-20s,0x%08x }, // Found @0x%08x, levent 0x%02x%s\n",key_info[k].reg,key_info[k].nm,key_info[k].bits,key_info[k].fadr,key_info[k].ev,(key_info[k].inv==0)?"":" (uses inverted logic in physw_status)"); k 7014 tools/finsig_thumb2.c int k; k 7019 tools/finsig_thumb2.c for (k=0; k<next_sig_entry; k++) k 7021 tools/finsig_thumb2.c if (strncmp(fns[k]->name,"hook_",5) == 0) { k 7024 tools/finsig_thumb2.c if (fns[k]->val != 0) k 7026 tools/finsig_thumb2.c if (fns[k]->flags & BAD_MATCH) k 7028 tools/finsig_thumb2.c osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name); k 7030 tools/finsig_thumb2.c fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name); k 7033 tools/finsig_thumb2.c fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name); k 7036 tools/finsig_thumb2.c else if (fns[k]->flags & LIST_ALWAYS) k 7039 tools/finsig_thumb2.c fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name); k 7048 tools/finsig_thumb2.c int k; k 7049 tools/finsig_thumb2.c for (k=0; k<next_sig_entry; k++) k 7050 tools/finsig_thumb2.c fns[k] = &sig_names[k]; k 7133 tools/finsig_thumb2.c int k,k1; k 7141 tools/finsig_thumb2.c for (k=0; k<fw->size32; k++) k 7143 tools/finsig_thumb2.c if (fw->buf32[k] == fw->sv->min_focus_len) k 7146 tools/finsig_thumb2.c if ((fw->buf32[k+1] == 100) && (fw->buf32[k+2] == 0)) mul = 3; k 7147 tools/finsig_thumb2.c if ((fw->buf32[k+1] == 100) && (fw->buf32[k+2] != 0)) mul = 2; k 7148 tools/finsig_thumb2.c if ((fw->buf32[k+1] == 0) && (fw->buf32[k+2] != 0)) mul = 2; k 7149 tools/finsig_thumb2.c for (k1 = k + mul; (k1 < fw->size32) && (fw->buf32[k1] > fw->buf32[k1-mul]) && (fw->buf32[k1] > fw->sv->min_focus_len) && (fw->buf32[k1] < fw->sv->max_focus_len); k1 += mul) ; k 7152 tools/finsig_thumb2.c if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1))) k 7155 tools/finsig_thumb2.c pos = k; k 7156 tools/finsig_thumb2.c len = ((k1 - k) / mul) + 1; k 7283 tools/finsig_thumb2.c int k; k 7295 tools/finsig_thumb2.c for (k = 0; k < max_find_func; k++) k 7297 tools/finsig_thumb2.c print_results(fw,&sig_names[k]); k 604 tools/finsig_vxworks.c int k = get_saved_sig(fw, sig); k 605 tools/finsig_vxworks.c if (k >= 0) k 607 tools/finsig_vxworks.c int idx = adr2idx(fw, func_names[k].val); k 608 tools/finsig_vxworks.c for (k=idx+ofst; k<idx+ofst+len; k++) k 610 tools/finsig_vxworks.c int rv = func(fw, k, v); k 642 tools/finsig_vxworks.c int match_apex2us(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 644 tools/finsig_vxworks.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2))) k 646 tools/finsig_vxworks.c k = find_inst_rev(fw, isSTMFD_LR, k, 200); k 647 tools/finsig_vxworks.c if (k != 0) k 649 tools/finsig_vxworks.c if (fwval(fw,k-2) == 0xE3700D09) // CMN R0, #0x240 k 650 tools/finsig_vxworks.c k -= 2; k 651 tools/finsig_vxworks.c uint32_t fadr = idx2adr(fw,k); k 669 tools/finsig_vxworks.c int find_mkdir(firmware *fw, __attribute__ ((unused))string_sig *sig, int k) k 671 tools/finsig_vxworks.c if (fwval(fw,k) == 0x12CEA600) k 673 tools/finsig_vxworks.c k = find_inst_rev(fw, isSTMFD_LR, k-20, 200); k 674 tools/finsig_vxworks.c if (k != 0) k 676 tools/finsig_vxworks.c if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) || k 677 tools/finsig_vxworks.c (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020))) k 680 tools/finsig_vxworks.c if (isBL(fw,k+47)) k 682 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001); k 684 tools/finsig_vxworks.c else if (isBL(fw,k+48)) k 686 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001); k 774 tools/finsig_vxworks.c int k = find_inst_rev(fw, isSTMFD_LR, j-1, 100); k 775 tools/finsig_vxworks.c uint32_t fadr = idx2adr(fw,k); k 821 tools/finsig_vxworks.c int k = find_inst_rev(fw, isSTMFD_LR, j-1, 8); k 822 tools/finsig_vxworks.c if(k < 0) { k 827 tools/finsig_vxworks.c uint32_t fadr = idx2adr(fw, k); k 840 tools/finsig_vxworks.c int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100); k 841 tools/finsig_vxworks.c if (isB(fw,k-1) && isBL(fw,k-2)) k 843 tools/finsig_vxworks.c uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001); k 853 tools/finsig_vxworks.c int find_add_ptp_handler(firmware *fw, __attribute__ ((unused))string_sig *sig, int k) k 859 tools/finsig_vxworks.c while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i])) k 861 tools/finsig_vxworks.c k = find_inst(fw, isBL, k+1, 5); k 862 tools/finsig_vxworks.c if (k == 0) return 0; k 864 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw,k), 0x01000001); k 865 tools/finsig_vxworks.c k = find_inst(fw, isLDR_PC, k+1, 5); k 866 tools/finsig_vxworks.c if (k == 0) return 0; k 882 tools/finsig_vxworks.c int j, k; k 890 tools/finsig_vxworks.c k = find_inst(fw, isBL, j+1, 4); k 891 tools/finsig_vxworks.c if (k >= 0) k 893 tools/finsig_vxworks.c uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001); k 896 tools/finsig_vxworks.c k = find_inst(fw, isB, k+1, 10); k 897 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw, k), 1); k 911 tools/finsig_vxworks.c int k = find_str_ref(fw,"ExportToEventProcedure"); k 913 tools/finsig_vxworks.c if (k >= 0) k 915 tools/finsig_vxworks.c if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k+1) == 1)) k 917 tools/finsig_vxworks.c uint32_t fadr = LDR2val(fw,k+1); k 929 tools/finsig_vxworks.c int k = find_str_ref(fw,"CreateProxyOfEventProcedure"); k 931 tools/finsig_vxworks.c if (k >= 0) k 933 tools/finsig_vxworks.c if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k) == 0)) k 936 tools/finsig_vxworks.c if (isBorBL(fw,k+2)) k 937 tools/finsig_vxworks.c fadr = followBranch(fw,idx2adr(fw,k+2),0x01000001); k 939 tools/finsig_vxworks.c fadr = followBranch(fw,idx2adr(fw,k+3),0x01000001); k 951 tools/finsig_vxworks.c int j1, j2, k, found, n; k 961 tools/finsig_vxworks.c for (k=j1-1; k>j1-256; k--) k 963 tools/finsig_vxworks.c if (isBL(fw,k)) k 965 tools/finsig_vxworks.c if (j2 == idxFollowBranch(fw,k,0x01000001)) k 977 tools/finsig_vxworks.c k = find_inst_rev(fw,isSTMFD_LR,k,60); k 979 tools/finsig_vxworks.c j2 = find_inst(fw,isLDMFD_PC,k+1,128); k 980 tools/finsig_vxworks.c if ( (k<0) || (j2<0) ) k 984 tools/finsig_vxworks.c k++; k 988 tools/finsig_vxworks.c k = find_inst(fw,isBL,k,32); k 990 tools/finsig_vxworks.c if ( (k>j2) || (k<0) ) k 992 tools/finsig_vxworks.c j1 = idxFollowBranch(fw,k,0x01000001); k 1001 tools/finsig_vxworks.c k++; k 1202 tools/finsig_vxworks.c int k = get_saved_sig(fw,"ExMem.FreeCacheable_FW"); // newer cam k 1203 tools/finsig_vxworks.c if (k >= 0) k 1205 tools/finsig_vxworks.c k = get_saved_sig(fw,"memset_FW"); k 1206 tools/finsig_vxworks.c if (k < 0) k 1208 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1221 tools/finsig_vxworks.c if (idx2adr(fw,idxFollowBranch(fw,n,0x01000001)) == idx2adr(fw,k)) k 1234 tools/finsig_vxworks.c k = get_saved_sig(fw,"exmem_free_low"); k 1235 tools/finsig_vxworks.c if (k < 0) k 1237 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1239 tools/finsig_vxworks.c if (isBL(fw,k+n)) { k 1240 tools/finsig_vxworks.c int m = idxFollowBranch(fw,k+n,0x01000001); k 1241 tools/finsig_vxworks.c if (idx2adr(fw,m) == idx2adr(fw,k)) k 1243 tools/finsig_vxworks.c j = find_inst_rev(fw,isSTMFD_LR,k+n,23); k 1257 tools/finsig_vxworks.c int k = get_saved_sig(fw,"ExMem.AllocCacheable_FW"); // newer cam k 1258 tools/finsig_vxworks.c if (k >= 0) k 1260 tools/finsig_vxworks.c k = get_saved_sig(fw,"DebugAssert"); // k 1261 tools/finsig_vxworks.c if (k < 0) k 1263 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1272 tools/finsig_vxworks.c if (idx2adr(fw,m) != idx2adr(fw,k)) k 1279 tools/finsig_vxworks.c k = get_saved_sig(fw,"exmem_alloc_low"); k 1280 tools/finsig_vxworks.c if (k < 0) k 1282 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1285 tools/finsig_vxworks.c if (isBL(fw,k+n)) { k 1286 tools/finsig_vxworks.c m = idxFollowBranch(fw,k+n,0x01000001); k 1287 tools/finsig_vxworks.c if (idx2adr(fw,m) == idx2adr(fw,k)) k 1289 tools/finsig_vxworks.c j = find_inst_rev(fw,isSTMFD_LR,k+n,14); k 1303 tools/finsig_vxworks.c int k = get_saved_sig(fw,"ExMem.FreeCacheable_FW"); // newer cam k 1304 tools/finsig_vxworks.c if (k >= 0) k 1306 tools/finsig_vxworks.c k = get_saved_sig(fw,"exmem_free_low"); k 1307 tools/finsig_vxworks.c if (k < 0) k 1309 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1312 tools/finsig_vxworks.c if (isBL(fw,k+n)) { k 1313 tools/finsig_vxworks.c int m = idxFollowBranch(fw,k+n,0x01000001); k 1314 tools/finsig_vxworks.c if (idx2adr(fw,m) == idx2adr(fw,k)) k 1319 tools/finsig_vxworks.c if ((fwval(fw,k+n-o)&0xfff00fff) == 0xe3c00201) { // bic rx, rx, 0x10000000 k 1327 tools/finsig_vxworks.c int j = find_inst_rev(fw,isSTMFD_LR,k+n,30); k 1341 tools/finsig_vxworks.c int k = get_saved_sig(fw,"ExMem.AllocCacheable_FW"); // newer cam k 1342 tools/finsig_vxworks.c k = get_saved_sig(fw,"exmem_alloc_low"); k 1343 tools/finsig_vxworks.c if (k < 0) k 1345 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 1348 tools/finsig_vxworks.c if (isBL(fw,k+n)) { k 1349 tools/finsig_vxworks.c int m = idxFollowBranch(fw,k+n,0x01000001); k 1350 tools/finsig_vxworks.c if (idx2adr(fw,m) == idx2adr(fw,k)) k 1355 tools/finsig_vxworks.c if ((fwval(fw,k+n+o)&0xfff00fff) == 0xe3c00201) { // bic rx, rx, 0x10000000 k 1363 tools/finsig_vxworks.c int j = find_inst_rev(fw,isSTMFD_LR,k+n,16); k 1381 tools/finsig_vxworks.c int k=adr2idx(fw,func_names[j].val); k 1382 tools/finsig_vxworks.c int k_max=k+120; k 1388 tools/finsig_vxworks.c for(; k < k_max;k++) { k 1392 tools/finsig_vxworks.c if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) { k 1393 tools/finsig_vxworks.c adr = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 1403 tools/finsig_vxworks.c k_max = k+6; k 1404 tools/finsig_vxworks.c for(; k < k_max;k++) { k 1405 tools/finsig_vxworks.c if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) { k 1406 tools/finsig_vxworks.c uint32_t adr2 = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 1449 tools/finsig_vxworks.c int k; k 1450 tools/finsig_vxworks.c k = idxFollowBranch(fw,n,0x01000001); k 1451 tools/finsig_vxworks.c if ( idx2adr(fw, k) == idx2adr(fw, j) ) k 1454 tools/finsig_vxworks.c k = find_inst(fw, isBL, s1+2, 6); k 1455 tools/finsig_vxworks.c if (k != -1) k 1457 tools/finsig_vxworks.c int l = idxFollowBranch(fw,k,0x01000001); k 1460 tools/finsig_vxworks.c k = find_inst(fw, isBL, k+1, 6); k 1461 tools/finsig_vxworks.c if (k == -1) k 1463 tools/finsig_vxworks.c l = idxFollowBranch(fw,k,0x01000001); k 1471 tools/finsig_vxworks.c k = idxFollowBranch(fw,l+1,0x01000001); k 1472 tools/finsig_vxworks.c fwAddMatch(fw,idx2adr(fw,k),32,0,122); k 2164 tools/finsig_vxworks.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2166 tools/finsig_vxworks.c if (fwval(fw,k) == sadr) // pointer to string? k 2168 tools/finsig_vxworks.c uint32_t fadr = fwval(fw,k+1); // function address k 2205 tools/finsig_vxworks.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2207 tools/finsig_vxworks.c if (isADR_PC(fw,k+1) && // ADR ? k 2208 tools/finsig_vxworks.c isBorBL(fw,k+2)) // B or BL ? k 2210 tools/finsig_vxworks.c uint32_t padr = ADR2adr(fw,k+1); // get address pointed to by 2nd ADR instructioin k 2213 tools/finsig_vxworks.c int j2 = k; k 2215 tools/finsig_vxworks.c if (isADR_PC(fw,k)) // ADR ? k 2220 tools/finsig_vxworks.c for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--) k 2227 tools/finsig_vxworks.c if (adr2idx(fw,fa) == k+1) k 2258 tools/finsig_vxworks.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2260 tools/finsig_vxworks.c if (isSTMFD(fw,k) && // STMFD k 2261 tools/finsig_vxworks.c isADR_PC(fw,k+offset)) // ADR ? k 2263 tools/finsig_vxworks.c uint32_t padr = ADR2adr(fw,k+offset); k 2266 tools/finsig_vxworks.c uint32_t fadr = idx2adr(fw,k); k 2294 tools/finsig_vxworks.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2296 tools/finsig_vxworks.c if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) && // LDR or ADR ? k 2297 tools/finsig_vxworks.c isBorBL(fw,k+2)) // B or BL ? k 2300 tools/finsig_vxworks.c if (isLDR_PC(fw,k+1)) // LDR ? k 2301 tools/finsig_vxworks.c padr = LDR2val(fw,k+1); k 2303 tools/finsig_vxworks.c padr = ADR2adr(fw,k+1); k 2306 tools/finsig_vxworks.c int j2 = k; k 2308 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) // LDR ? k 2312 tools/finsig_vxworks.c for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--) k 2317 tools/finsig_vxworks.c if (idxFollowBranch(fw,j2+1,1) == k+1) k 2370 tools/finsig_vxworks.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2372 tools/finsig_vxworks.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 2375 tools/finsig_vxworks.c if (isLDR_PC_cond(fw,k)) // LDR ? k 2376 tools/finsig_vxworks.c padr = LDR2val(fw,k); k 2378 tools/finsig_vxworks.c padr = ADR2adr(fw,k); k 2381 tools/finsig_vxworks.c int j2 = find_inst(fw, isBL, k+1, 10); k 2602 tools/finsig_vxworks.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2604 tools/finsig_vxworks.c if (fwval(fw,k) == sadr) // string ptr k 2606 tools/finsig_vxworks.c uint32_t padr = idx2adr(fw,k); // string ptr address k 2608 tools/finsig_vxworks.c for (j2 = k-1; j2 >= 0; j2--) k 2641 tools/finsig_vxworks.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset) k 2643 tools/finsig_vxworks.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 2646 tools/finsig_vxworks.c if (isLDR_PC_cond(fw,k)) // LDR ? k 2647 tools/finsig_vxworks.c padr = LDR2val(fw,k); k 2649 tools/finsig_vxworks.c padr = ADR2adr(fw,k); k 2652 tools/finsig_vxworks.c int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst); k 2682 tools/finsig_vxworks.c int k = adr2idx(fw,LDR2adr(fw,j)); k 2683 tools/finsig_vxworks.c if (idx_valid(fw,k)) k 2684 tools/finsig_vxworks.c padr = fwval(fw,k); k 2714 tools/finsig_vxworks.c int k = 0; k 2717 tools/finsig_vxworks.c k = adr2idx(fw,LDR2val(fw,idx-3)); k 2721 tools/finsig_vxworks.c k = adr2idx(fw,ADR2adr(fw,idx-2)); k 2723 tools/finsig_vxworks.c if (k != 0) k 2727 tools/finsig_vxworks.c fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001); k 2730 tools/finsig_vxworks.c k = find_inst(fw, isLDMFD, k+1, 60); k 2731 tools/finsig_vxworks.c fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001); k 2768 tools/finsig_vxworks.c int k = 0; k 2771 tools/finsig_vxworks.c case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break; k 2772 tools/finsig_vxworks.c case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break; k 2774 tools/finsig_vxworks.c if (k) k 2793 tools/finsig_vxworks.c int match_strsig23a(firmware *fw, int k, uint32_t sadr, uint32_t maxdist) k 2795 tools/finsig_vxworks.c if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ? k 2798 tools/finsig_vxworks.c if (isLDR_PC_cond(fw,k)) // LDR ? k 2799 tools/finsig_vxworks.c padr = LDR2val(fw,k); k 2801 tools/finsig_vxworks.c padr = ADR2adr(fw,k); k 2807 tools/finsig_vxworks.c j2 = find_Nth_inst_rev(fw, isBorBL, k, maxdist, -dryos_ofst); k 2811 tools/finsig_vxworks.c j2 = find_Nth_inst(fw, isBorBL, k+1, maxdist, dryos_ofst+1); k 3257 tools/finsig_vxworks.c void print_results(firmware *fw, const char *curr_name, int k) k 3263 tools/finsig_vxworks.c if (func_names[k].flags & DONT_EXPORT) return; k 3275 tools/finsig_vxworks.c func_names[k].flags |= BAD_MATCH; k 3279 tools/finsig_vxworks.c if (func_names[k].flags & UNUSED) return; k 3291 tools/finsig_vxworks.c if (func_names[k].flags & OPTIONAL) return; k 3298 tools/finsig_vxworks.c if (ostub2 || (func_names[k].flags & UNUSED)) k 3363 tools/finsig_vxworks.c void output_modemap(firmware *fw, int k, int l) k 3367 tools/finsig_vxworks.c bprintf("%08x\n",idx2adr(fw,k)); k 3369 tools/finsig_vxworks.c if (fw->buf[k] & 0xffff0000) k 3372 tools/finsig_vxworks.c uint16_t *p = (uint16_t*)(&fw->buf[k]); k 3373 tools/finsig_vxworks.c k = 0; k 3374 tools/finsig_vxworks.c while ((*p != 0xFFFF) && (k < l*2)) k 3391 tools/finsig_vxworks.c k++; k 3397 tools/finsig_vxworks.c uint32_t *p = (uint32_t*)(&fw->buf[k]); k 3398 tools/finsig_vxworks.c k = 0; k 3399 tools/finsig_vxworks.c while (k < l) k 3435 tools/finsig_vxworks.c k++; k 3504 tools/finsig_vxworks.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 3506 tools/finsig_vxworks.c if (fw->buf[k] == v1) k 3508 tools/finsig_vxworks.c FlashParamsTable_address = idx2adr(fw,k); k 3514 tools/finsig_vxworks.c int match_FlashParamsTable(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 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))) k 3518 tools/finsig_vxworks.c if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1)) k 3522 tools/finsig_vxworks.c if ((fw->buf[k+1] > fw->base) && (fw->buf[k] == 0x00000000) && (fw->buf[k+2] == 0x00000001) && k 3523 tools/finsig_vxworks.c (fw->buf[k+3] == 0x00000000) && (fw->buf[k+4] == 0xffffffff)) k 3525 tools/finsig_vxworks.c if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1)) k 3576 tools/finsig_vxworks.c int k = isLDR_PC(fw, s1); k 3577 tools/finsig_vxworks.c if (!k) k 3579 tools/finsig_vxworks.c k = fwRd(fw, s1); k 3580 tools/finsig_vxworks.c if (k > 0) k 3602 tools/finsig_vxworks.c int k,k1; k 3754 tools/finsig_vxworks.c for (k=k1; k<k1+20; k++) k 3756 tools/finsig_vxworks.c uint32_t fadr = fwval(fw,k); k 3767 tools/finsig_vxworks.c bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr); k 3782 tools/finsig_vxworks.c int k, k1; k 3785 tools/finsig_vxworks.c k = find_str_ref(fw, "VRAM Address : %p\r"); k 3786 tools/finsig_vxworks.c if (k >= 0) k 3788 tools/finsig_vxworks.c for (k1=k-1; k1>k-8; k1--) k 3805 tools/finsig_vxworks.c int match_vid_get_bitmap_fb(firmware *fw, int k, __attribute__ ((unused))int v) k 3807 tools/finsig_vxworks.c if (isBL(fw,k-1) && // BL k 3808 tools/finsig_vxworks.c isLDR_PC(fw,k)) k 3810 tools/finsig_vxworks.c uint32_t v1 = LDR2val(fw,k); k 3811 tools/finsig_vxworks.c bprintf("//void *vid_get_bitmap_fb() { return (void*)0x%08x; } // Found @0x%08x\n",v1,idx2adr(fw,k)); k 3815 tools/finsig_vxworks.c if (isBL(fw,k-1) && // BL k 3816 tools/finsig_vxworks.c (isLDR_PC(fw,k+1))) k 3818 tools/finsig_vxworks.c uint32_t v1 = LDR2val(fw,k+1); k 3819 tools/finsig_vxworks.c bprintf("//void *vid_get_bitmap_fb() { return (void*)0x%08x; } // Found @0x%08x\n",v1,idx2adr(fw,k)); k 3826 tools/finsig_vxworks.c int match_get_flash_params_count(firmware *fw, int k, __attribute__ ((unused))int v) k 3828 tools/finsig_vxworks.c if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901) // BIC Rn, Rn, #0x4000 k 3830 tools/finsig_vxworks.c uint32_t r = (fw->buf[k] & 0x0000F000)<<4; // Register k 3832 tools/finsig_vxworks.c for (n=k+1; n<k+20; n++) k 3847 tools/finsig_vxworks.c int match_uiprop_count(firmware *fw, int k, __attribute__ ((unused))int v) k 3851 tools/finsig_vxworks.c if (isB(fw, k+6)) k 3853 tools/finsig_vxworks.c j = idxFollowBranch(fw,k+6,0x01000001); k 3903 tools/finsig_vxworks.c int match_imager_active(firmware *fw, int k, __attribute__ ((unused))int v) k 3909 tools/finsig_vxworks.c if (fwval(fw,k) == 0xe49df004) // POP {PC} k 3911 tools/finsig_vxworks.c int k1 = find_inst_rev(fw, isBL, k-1, 10); k 4170 tools/finsig_vxworks.c int match_levent_table(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4172 tools/finsig_vxworks.c if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002)) k 4174 tools/finsig_vxworks.c print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k)); k 4176 tools/finsig_vxworks.c uint32_t levent_tbl = idx2adr(fw,k); k 4184 tools/finsig_vxworks.c int match_movie_status(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4186 tools/finsig_vxworks.c if (isLDR_PC(fw, k) && // LDR R0, =base k 4187 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) && // ADR R1, =sub k 4188 tools/finsig_vxworks.c isSTR(fw, k+2) && // STR R1, [R0,N] k 4189 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 k 4190 tools/finsig_vxworks.c isSTR(fw, k+4) && // STR R1, [R0,ofst] k 4191 tools/finsig_vxworks.c (LDR2val(fw,k) < fw->base)) k 4193 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4194 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; k 4195 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 4199 tools/finsig_vxworks.c if (isLDR_PC(fw, k) && // LDR R1, =sub k 4200 tools/finsig_vxworks.c isLDR_PC(fw, k+1) && // LDR R0, =base k 4201 tools/finsig_vxworks.c isSTR(fw, k+2) && // STR R1, [R0,N] k 4202 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE3A01003) && // MOV R1, 3 k 4203 tools/finsig_vxworks.c isSTR(fw, k+4) && // STR R1, [R0,ofst] k 4204 tools/finsig_vxworks.c (LDR2val(fw,k+1) < fw->base)) k 4206 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k+1); k 4207 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+4] & 0x00000FFF; k 4208 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 4212 tools/finsig_vxworks.c if (isLDR_PC(fw, k) && // LDR Rx, =base k 4213 tools/finsig_vxworks.c isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) && // LDR R0, [Rx, ...] k 4214 tools/finsig_vxworks.c isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) && // CMP R0, #... k 4215 tools/finsig_vxworks.c (fwval(fw,k+3) == 0x03A00005) && k 4216 tools/finsig_vxworks.c isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) && // STRxx R0, [Rx,ofst] k 4217 tools/finsig_vxworks.c (LDR2val(fw,k) < fw->base)) k 4219 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4220 tools/finsig_vxworks.c uint32_t ofst = fwOp2(fw,k+4); k 4221 tools/finsig_vxworks.c print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k)); k 4227 tools/finsig_vxworks.c int match_full_screen_refresh(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4229 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 4230 tools/finsig_vxworks.c (fw->buf[k+1] == 0xE5D01000) && // LDRB R1, [R0] k 4231 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE3811002) && // ORR R1, R1, #2 k 4232 tools/finsig_vxworks.c (fw->buf[k+3] == 0xE5C01000) && // STRB R1, [R0] k 4233 tools/finsig_vxworks.c isBX_LR(fw,k+4)) // BX LR k 4235 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4236 tools/finsig_vxworks.c print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k)); k 4241 tools/finsig_vxworks.c int match_canon_shoot_menu_active(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4243 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 4244 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) && // LDRB R0, [R1, #n] k 4245 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE2800001) && // ADD R0, R0, #1 k 4246 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) && // STRB R0, [R1, #n] k 4247 tools/finsig_vxworks.c (isB(fw,k+4))) // B k 4249 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4250 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 4251 tools/finsig_vxworks.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); k 4254 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 4255 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) && // LDRB R1, [R0, #n] k 4256 tools/finsig_vxworks.c (fw->buf[k+2] == 0xE2811001) && // ADD R1, R1, #1 k 4257 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) && // STRB R1, [R0, #n] k 4258 tools/finsig_vxworks.c (isB(fw,k+4))) // B k 4260 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4261 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 4262 tools/finsig_vxworks.c print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k)); k 4267 tools/finsig_vxworks.c int match_playrec_mode(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4269 tools/finsig_vxworks.c if (((fw->buf[k] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 4270 tools/finsig_vxworks.c ((fw->buf[k+1] & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n] k 4271 tools/finsig_vxworks.c ((fw->buf[k+3] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 4272 tools/finsig_vxworks.c ((fw->buf[k+4] & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n] k 4273 tools/finsig_vxworks.c ((fw->buf[k+6] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 4274 tools/finsig_vxworks.c ((fw->buf[k+9] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 4275 tools/finsig_vxworks.c ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 4276 tools/finsig_vxworks.c ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base k 4277 tools/finsig_vxworks.c ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base k 4278 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+3)) && k 4279 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+6)) && k 4280 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+9)) && k 4281 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+12)) && k 4282 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+15)) && k 4283 tools/finsig_vxworks.c (LDR2val(fw,k) == LDR2val(fw,k+18))) k 4285 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4286 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k+1] & 0x00000FFF; k 4287 tools/finsig_vxworks.c print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k)); k 4292 tools/finsig_vxworks.c int match_some_flag_for_af_scan(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4294 tools/finsig_vxworks.c if (isB(fw,k) && // B loc k 4295 tools/finsig_vxworks.c isB(fw,k+1) && // B loc k 4296 tools/finsig_vxworks.c isB(fw,k+2) && // B loc k 4297 tools/finsig_vxworks.c isB(fw,k+3) && // B loc k 4298 tools/finsig_vxworks.c isB(fw,k+4) && // B loc k 4299 tools/finsig_vxworks.c isB(fw,k+5) && // B loc k 4300 tools/finsig_vxworks.c isB(fw,k+6) && // B loc k 4301 tools/finsig_vxworks.c isB(fw,k+7) && // B loc k 4302 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) && k 4303 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) && k 4304 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) && k 4305 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) && k 4306 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) && k 4307 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) && k 4308 tools/finsig_vxworks.c (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) && k 4309 tools/finsig_vxworks.c (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))))) // LDR R0, =base k 4311 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1))); k 4313 tools/finsig_vxworks.c print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1)); k 4318 tools/finsig_vxworks.c int match_palette_data(firmware *fw, int k, __attribute__ ((unused))uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4320 tools/finsig_vxworks.c if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && k 4321 tools/finsig_vxworks.c (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) && k 4322 tools/finsig_vxworks.c (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000)) k 4324 tools/finsig_vxworks.c return idx2adr(fw,k); k 4326 tools/finsig_vxworks.c else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) && k 4327 tools/finsig_vxworks.c (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) && k 4328 tools/finsig_vxworks.c (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000)) k 4330 tools/finsig_vxworks.c return idx2adr(fw,k); k 4335 tools/finsig_vxworks.c int match_palette_buffer_offset(firmware *fw, int k) k 4337 tools/finsig_vxworks.c int idx2 = idxFollowBranch(fw, k, 0x01000001); k 4359 tools/finsig_vxworks.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, __attribute__ ((unused))uint32_t v2) k 4361 tools/finsig_vxworks.c if (isLDR_PC(fw, k) && (LDR2val(fw,k) == palette_data) && isLDR_PC(fw,k-1) && isLDR_PC(fw,k-6) && isLDR(fw,k-5)) k 4363 tools/finsig_vxworks.c uint32_t palette_control = LDR2val(fw,k-6); k 4364 tools/finsig_vxworks.c int ptr_offset = fwOp2(fw,k-5); k 4365 tools/finsig_vxworks.c uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30); k 4373 tools/finsig_vxworks.c print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5)); k 4374 tools/finsig_vxworks.c if (isBL(fw,k+8)) k 4376 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001); k 4394 tools/finsig_vxworks.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2) k 4396 tools/finsig_vxworks.c if (isLDR(fw,k) && (LDR2val(fw,k) == v1)) k 4399 tools/finsig_vxworks.c for (k1=k+1; k1<k+20; k1++) k 4413 tools/finsig_vxworks.c for (k=idx; (k<idx+16) && !found; k++) k 4415 tools/finsig_vxworks.c if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2)) k 4417 tools/finsig_vxworks.c fadr = ADR2adr(fw,k+2); k 4514 tools/finsig_vxworks.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4516 tools/finsig_vxworks.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1)) k 4519 tools/finsig_vxworks.c int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000); k 4527 tools/finsig_vxworks.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 4536 tools/finsig_vxworks.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 4545 tools/finsig_vxworks.c print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k)); k 4554 tools/finsig_vxworks.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4556 tools/finsig_vxworks.c if (fw->buf[k] == v1) k 4564 tools/finsig_vxworks.c int match_viewport_address(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 4566 tools/finsig_vxworks.c if (fw->buf[k] == v1) k 4569 tools/finsig_vxworks.c if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1)) k 4575 tools/finsig_vxworks.c int match_physw_status(firmware *fw, int k, __attribute__ ((unused))int v) k 4577 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 4579 tools/finsig_vxworks.c print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k)); k 4585 tools/finsig_vxworks.c int match_physw_run(firmware *fw, int k, __attribute__ ((unused))int v) k 4587 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 4589 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4590 tools/finsig_vxworks.c uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1); k 4592 tools/finsig_vxworks.c print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k)); k 4594 tools/finsig_vxworks.c ofst = fw->buf[k+2] & 0x00000FFF; k 4595 tools/finsig_vxworks.c print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k)); k 4601 tools/finsig_vxworks.c int match_canon_menu_active(firmware *fw, int k, __attribute__ ((unused))int v) k 4603 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 4605 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4607 tools/finsig_vxworks.c for (k1=k+1; k1<k+5; k1++) k 4612 tools/finsig_vxworks.c print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k)); k 4620 tools/finsig_vxworks.c int match_zoom_busy(firmware *fw, int k, __attribute__ ((unused))int v) k 4622 tools/finsig_vxworks.c if (isBL(fw,k)) k 4624 tools/finsig_vxworks.c int idx1 = idxFollowBranch(fw,k,0x01000001); k 4669 tools/finsig_vxworks.c int match_focus_busy(firmware *fw, int k, __attribute__ ((unused))int v) k 4671 tools/finsig_vxworks.c if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000) // LDMFD k 4674 tools/finsig_vxworks.c if (isBL(fw,k-2)) k 4676 tools/finsig_vxworks.c k1 = idxFollowBranch(fw,k-2,0x01000001); k 4678 tools/finsig_vxworks.c if (isBL(fw,k-1)) k 4680 tools/finsig_vxworks.c k1 = idxFollowBranch(fw,k-1,0x01000001); k 4697 tools/finsig_vxworks.c int match_bitmap_buffer2(firmware *fw, int k, int v) k 4699 tools/finsig_vxworks.c uint32_t screen_lock = idx2adr(fw,k); k 4728 tools/finsig_vxworks.c int match_bitmap_buffer(firmware *fw, int k, __attribute__ ((unused))int v) k 4730 tools/finsig_vxworks.c search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1); k 4734 tools/finsig_vxworks.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, __attribute__ ((unused))uint32_t v2) k 4736 tools/finsig_vxworks.c if (((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k-2) != 1)) || k 4737 tools/finsig_vxworks.c ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1))) k 4739 tools/finsig_vxworks.c uint32_t rb2 = fwval(fw,k+1); k 4742 tools/finsig_vxworks.c bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k)); k 4745 tools/finsig_vxworks.c print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k)); k 4749 tools/finsig_vxworks.c else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1)) k 4751 tools/finsig_vxworks.c uint32_t rb2 = fwval(fw,k+3); k 4754 tools/finsig_vxworks.c bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k)); k 4757 tools/finsig_vxworks.c print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k)); k 4764 tools/finsig_vxworks.c int match_cameracon_state(firmware *fw, int k, __attribute__ ((unused))int v) k 4778 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 4780 tools/finsig_vxworks.c int rd = fwRd(fw,k); k 4784 tools/finsig_vxworks.c uint32_t base = LDR2val(fw,k); k 4785 tools/finsig_vxworks.c k += 6; k 4786 tools/finsig_vxworks.c uint32_t ofst = fw->buf[k] & 0x00000FFF; k 4787 tools/finsig_vxworks.c if (isSTR(fw,k) && fwRd(fw,k) == 5 && fwRn(fw,k) == rd && ofst == 0) k 4789 tools/finsig_vxworks.c print_stubs_min(fw,"cameracon_state",base,idx2adr(fw,k)); k 4802 tools/finsig_vxworks.c int k = get_saved_sig(fw,"DoMovieFrameCapture"); k 4804 tools/finsig_vxworks.c if (k < 0 || ka < 0) k 4806 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 4808 tools/finsig_vxworks.c if (k && ka) k 4810 tools/finsig_vxworks.c int k2 = find_inst(fw,isBL,k,14); k 4813 tools/finsig_vxworks.c int k1 = k; k 4845 tools/finsig_vxworks.c k = get_saved_sig(fw,"WBInteg.DoCaptMovieFrame_FW"); k 4846 tools/finsig_vxworks.c if (k < 0) k 4848 tools/finsig_vxworks.c k = adr2idx(fw, func_names[k].val); k 4849 tools/finsig_vxworks.c ka = find_inst(fw,isLDR_PC,k,6); k 5219 tools/finsig_vxworks.c int find_ctypes(firmware *fw, int k) k 5233 tools/finsig_vxworks.c if ((uint32_t)k < (fw->size*4 - sizeof(ctypes))) k 5235 tools/finsig_vxworks.c if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0) k 5237 tools/finsig_vxworks.c bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k); k 5244 tools/finsig_vxworks.c int match_nrflag3(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 5246 tools/finsig_vxworks.c if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == (int)v1)) k 5251 tools/finsig_vxworks.c for (k3=k; k3>k-30; k3--) k 5276 tools/finsig_vxworks.c bprintf("DEF(_nrflag,0x%04x) // Found @ %08x (0x%04x) & %08x (-0x%02x)\n",ofst2+ofst1,idx2adr(fw,k3),ofst2,idx2adr(fw,k),-ofst1); k 5281 tools/finsig_vxworks.c bprintf("DEF(_nrflag,0x%04x) // Found @ %08x (0x%04x) & %08x (+0x%02x)\n",ofst2+ofst1,idx2adr(fw,k3),ofst2,idx2adr(fw,k),ofst1); k 5333 tools/finsig_vxworks.c int match_nrflag2(firmware *fw, int k, __attribute__ ((unused))int v) k 5336 tools/finsig_vxworks.c if (isBL(fw,k)) k 5338 tools/finsig_vxworks.c k = idxFollowBranch(fw,k,0x01000001); k 5339 tools/finsig_vxworks.c return search_fw(fw, match_nrflag3, k, 0, 1); k 5455 tools/finsig_vxworks.c int k, kval = 0; k 5456 tools/finsig_vxworks.c for (k=0; k<tlen; k+=tsiz) k 5458 tools/finsig_vxworks.c if (fw->buf[tidx+k+1] == ev) k 5460 tools/finsig_vxworks.c kval = fw->buf[tidx+k]; k 5461 tools/finsig_vxworks.c tadr = idx2adr(fw,tidx+k); k 5509 tools/finsig_vxworks.c int r, k, kval = 0; k 5512 tools/finsig_vxworks.c for (k=0; k<tlen; k+=tsiz) k 5514 tools/finsig_vxworks.c if (fw->buf[tidx+k+1] == ev) k 5516 tools/finsig_vxworks.c kval = fw->buf[tidx+k]; k 5517 tools/finsig_vxworks.c tadr = idx2adr(fw,tidx+k); k 5595 tools/finsig_vxworks.c int k; k 5596 tools/finsig_vxworks.c for (k=0; k<kcount; k++) k 5598 tools/finsig_vxworks.c bprintf("// { %d, %-20s,0x%08x }, // Found @0x%08x, levent 0x%02x%s\n",key_info[k].reg,key_info[k].nm,key_info[k].bits,key_info[k].fadr,key_info[k].ev,(key_info[k].inv==0)?"":" (uses inverted logic in physw_status)"); k 5604 tools/finsig_vxworks.c int match_GetSDProtect(firmware *fw, int k, __attribute__ ((unused))int v) k 5606 tools/finsig_vxworks.c if (isB(fw,k)) // B k 5608 tools/finsig_vxworks.c k = idxFollowBranch(fw,k,1); k 5609 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 5611 tools/finsig_vxworks.c return LDR2val(fw,k); k 5620 tools/finsig_vxworks.c int k,k1; k 5629 tools/finsig_vxworks.c k = find_str_ref(fw,"SD Not Exist\n"); k 5630 tools/finsig_vxworks.c if (k >= 0) k 5632 tools/finsig_vxworks.c for (k1=k-1; k1>k-5; k1--) k 5652 tools/finsig_vxworks.c for (k=0; k<(int)(tadr-fw->base)/4; k++) k 5654 tools/finsig_vxworks.c if (isLDR_PC(fw,k)) k 5656 tools/finsig_vxworks.c uint32_t adr = LDR2val(fw,k); k 5667 tools/finsig_vxworks.c for (k=0; k<(int)tlen/3; k+=3) k 5669 tools/finsig_vxworks.c if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF)) k 5734 tools/finsig_vxworks.c int get_eventproc_val(firmware *fw, int k) k 5736 tools/finsig_vxworks.c if (isADR_PC(fw,k) && (fwRd(fw,k) == 0)) k 5737 tools/finsig_vxworks.c nadr = ADR2adr(fw,k); k 5738 tools/finsig_vxworks.c else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1)) k 5739 tools/finsig_vxworks.c eadr = ADR2adr(fw,k); k 5740 tools/finsig_vxworks.c else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0)) k 5741 tools/finsig_vxworks.c nadr = LDR2val(fw,k); k 5742 tools/finsig_vxworks.c else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1)) k 5743 tools/finsig_vxworks.c eadr = LDR2val(fw,k); k 5751 tools/finsig_vxworks.c int k; k 5760 tools/finsig_vxworks.c for (k=0; func_names[k].name != 0; k++) k 5761 tools/finsig_vxworks.c if (strcmp(func_names[k].name, s) == 0) k 5763 tools/finsig_vxworks.c if (func_names[k].val == 0) k 5765 tools/finsig_vxworks.c func_names[k].val = eadr; k 5766 tools/finsig_vxworks.c func_names[k].flags |= EV_MATCH; k 5795 tools/finsig_vxworks.c int match_eventproc(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 5797 tools/finsig_vxworks.c int j = k; k 5798 tools/finsig_vxworks.c if (isBorBL(fw,k)) k 5800 tools/finsig_vxworks.c uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001); k 5805 tools/finsig_vxworks.c k--; k 5806 tools/finsig_vxworks.c get_eventproc_val(fw, k); k 5807 tools/finsig_vxworks.c k--; k 5808 tools/finsig_vxworks.c get_eventproc_val(fw, k); k 5811 tools/finsig_vxworks.c k--; k 5812 tools/finsig_vxworks.c get_eventproc_val(fw, k); k 5816 tools/finsig_vxworks.c k--; k 5817 tools/finsig_vxworks.c get_eventproc_val(fw, k); k 5826 tools/finsig_vxworks.c k = j; k 5831 tools/finsig_vxworks.c int k1 = find_Nth_inst_rev(fw, isLDR_PC, k, 15, c); k 5837 tools/finsig_vxworks.c int k3 = k; k 5839 tools/finsig_vxworks.c while (k3 > k-4) k 5851 tools/finsig_vxworks.c if ((fwval(fw,k-1) & 0xfff00000) == 0xe2800000) // add k 5879 tools/finsig_vxworks.c else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && isLDR_PC(fw,k+1) && (fwRd(fw,k+1) == 1) && k 5880 tools/finsig_vxworks.c (fwval(fw,k+2) == 0xE1A0E00F) && (fwval(fw,k+3) == 0xE1A0F004)) k 5882 tools/finsig_vxworks.c nadr = LDR2val(fw,k); k 5883 tools/finsig_vxworks.c eadr = LDR2val(fw,k+1); k 5889 tools/finsig_vxworks.c int match_registerlists(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 5891 tools/finsig_vxworks.c if (isBorBL(fw,k)) k 5893 tools/finsig_vxworks.c uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001); k 5897 tools/finsig_vxworks.c for (k1=k-1; k1>k-6; k1--) k 5922 tools/finsig_vxworks.c int match_registerlistproc(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 5924 tools/finsig_vxworks.c if (isSTMFD_LR(fw,k) && isBL(fw,k+6) && isLDMFD_PC(fw,k+11)) k 5926 tools/finsig_vxworks.c uint32_t adr = followBranch2(fw,idx2adr(fw,k+6),0x01000001); k 5929 tools/finsig_vxworks.c fadr = idx2adr(fw,k); k 5966 tools/finsig_vxworks.c int match_createtask(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 5968 tools/finsig_vxworks.c uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001); k 5973 tools/finsig_vxworks.c j1 = find_inst_rev(fw,isLDR_PC_r3,k,16); k 5974 tools/finsig_vxworks.c j2 = find_inst_rev(fw,isLDR_PC_r0,k,16); k 5979 tools/finsig_vxworks.c if ((find_inst(fw,isBL,j1,16)!=k) || (find_inst(fw,isBL,j2,16)!=k)) k 6002 tools/finsig_vxworks.c int k = get_saved_sig(fw,"CreateTask"); k 6003 tools/finsig_vxworks.c if (k >= 0) k 6005 tools/finsig_vxworks.c search_fw(fw, match_createtask, func_names[k].val, 0, 5); k 6007 tools/finsig_vxworks.c k = get_saved_sig(fw,"CreateTaskStrictly"); k 6008 tools/finsig_vxworks.c if (k >= 0) k 6010 tools/finsig_vxworks.c search_fw(fw, match_createtask, func_names[k].val, 0, 5); k 6058 tools/finsig_vxworks.c int find_ptp_handler_imm(firmware *fw, int k) k 6068 tools/finsig_vxworks.c if (isLDR_PC(fw,k+o)) k 6070 tools/finsig_vxworks.c if(fwRd(fw,k+o) == 0) k 6072 tools/finsig_vxworks.c op = LDR2val(fw,k+o); k 6074 tools/finsig_vxworks.c else if(fwRd(fw,k+o) == 1){ k 6075 tools/finsig_vxworks.c handler = LDR2val(fw,k+o); k 6079 tools/finsig_vxworks.c else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1)) k 6081 tools/finsig_vxworks.c handler=ADR2adr(fw,k+o); k 6086 tools/finsig_vxworks.c if (isORR(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) > 3)) k 6088 tools/finsig_vxworks.c int reg = fwRn(fw,k+o); k 6091 tools/finsig_vxworks.c for (k1=k+o-1; k1>=k+o-50; k1--) k 6106 tools/finsig_vxworks.c op = ALUop2a(fw,k+o) | u1; k 6109 tools/finsig_vxworks.c else if (isADD(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) <= 3)) k 6111 tools/finsig_vxworks.c int reg = fwRn(fw,k+o); k 6114 tools/finsig_vxworks.c for (k1=k+o-1; k1>=k+o-7; k1--) k 6128 tools/finsig_vxworks.c op = ALUop2a(fw,k+o) + u1; k 6141 tools/finsig_vxworks.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, __attribute__ ((unused))uint32_t v2) k 6144 tools/finsig_vxworks.c if(fwval(fw,k) == 0x1004 k 6145 tools/finsig_vxworks.c && fwval(fw,k+2) == 0x1005 k 6146 tools/finsig_vxworks.c && fwval(fw,k+4) == 0x1006 k 6147 tools/finsig_vxworks.c && fwval(fw,k+1) > fw->base k 6148 tools/finsig_vxworks.c && fwval(fw,k+3) > fw->base k 6149 tools/finsig_vxworks.c && fwval(fw,k+5) > fw->base) k 6155 tools/finsig_vxworks.c uint32_t op=fwval(fw,k+i*2); k 6156 tools/finsig_vxworks.c uint32_t handler=fwval(fw,k+i*2+1); k 6165 tools/finsig_vxworks.c if (!isBorBL(fw,k)) k 6169 tools/finsig_vxworks.c uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001); k 6173 tools/finsig_vxworks.c find_ptp_handler_imm(fw,k); k 6181 tools/finsig_vxworks.c int k = get_saved_sig(fw,"add_ptp_handler"); k 6182 tools/finsig_vxworks.c if (k >= 0) k 6184 tools/finsig_vxworks.c search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128); k 6231 tools/finsig_vxworks.c uint32_t k = j + c - fw->firmware_ver_str; k 6232 tools/finsig_vxworks.c if ( (k>=j) && (k<j+32) ) k 6234 tools/finsig_vxworks.c bprintf("// %s // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k); k 6325 tools/finsig_vxworks.c int k; k 6330 tools/finsig_vxworks.c for (k=0; k<next_func_entry; k++) k 6332 tools/finsig_vxworks.c if (strncmp(fns[k]->name,"hook_",5) != 0) k 6334 tools/finsig_vxworks.c if (fns[k]->val != 0) k 6336 tools/finsig_vxworks.c if (fns[k]->flags & BAD_MATCH) k 6338 tools/finsig_vxworks.c osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name); k 6340 tools/finsig_vxworks.c fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name); k 6343 tools/finsig_vxworks.c fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name); k 6346 tools/finsig_vxworks.c else if (fns[k]->flags & LIST_ALWAYS) k 6349 tools/finsig_vxworks.c fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name); k 6360 tools/finsig_vxworks.c int k; k 6400 tools/finsig_vxworks.c for (k = 0; k < max_find_func; k++) k 6403 tools/finsig_vxworks.c curr_name = func_names[k].name; k 6408 tools/finsig_vxworks.c print_results(&fw,curr_name,k); k 6428 tools/finsig_vxworks.c for (k=0; k<next_func_entry; k++) k 6429 tools/finsig_vxworks.c fns[k] = &func_names[k]; k 74 tools/firmware_load.c int i, j, k; k 78 tools/firmware_load.c k = -1; j = 0; k 83 tools/firmware_load.c if (k == -1) // Mark start of possible skip block k 85 tools/firmware_load.c k = i; k 90 tools/firmware_load.c if (k != -1) k 92 tools/firmware_load.c if (i - k > 32) // If block more than 32 words then we want to skip it k 94 tools/firmware_load.c if (k - j > 8) k 97 tools/firmware_load.c addBufRange(fw,j,k - j); k 101 tools/firmware_load.c k = -1; // Reset marker for skip block k 106 tools/firmware_load.c if (k != -1) k 108 tools/firmware_load.c if (k - j > 8) k 110 tools/firmware_load.c addBufRange(fw,j,k - j); k 678 tools/firmware_load.c int k; k 679 tools/firmware_load.c for (k = p->off*4; k < (p->off + p->len)*4; k++) k 681 tools/firmware_load.c if (strcmp(((char*)fw->buf)+k,str) == 0) k 682 tools/firmware_load.c return fw->base+k; k 694 tools/firmware_load.c int k; k 695 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) k 697 tools/firmware_load.c if (inst(fw, k)) k 698 tools/firmware_load.c return k; k 707 tools/firmware_load.c int k; k 708 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) k 710 tools/firmware_load.c if (inst(fw, k)) k 711 tools/firmware_load.c return k; k 720 tools/firmware_load.c int k; k 721 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) k 723 tools/firmware_load.c if (inst(fw, k)) k 726 tools/firmware_load.c return k; k 735 tools/firmware_load.c int k; k 736 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) k 738 tools/firmware_load.c if (inst(fw, k)) k 741 tools/firmware_load.c return k; k 758 tools/firmware_load.c int k; k 759 tools/firmware_load.c for (k=0; k<fw->size; k++) k 761 tools/firmware_load.c if (fwval(fw,k) == sadr) k 763 tools/firmware_load.c uint32_t fadr = idx2adr(fw,k); // string pointer address k 788 tools/firmware_load.c int k = find_str(fw, str); k 789 tools/firmware_load.c if (k >= fw->lowest_idx) k 791 tools/firmware_load.c uint32_t sadr = idx2adr(fw,k); // string address k 792 tools/firmware_load.c for (k=0; k<fw->size; k++) k 794 tools/firmware_load.c if (isADR_PC_cond(fw,k) && (ADR2adr(fw,k) == sadr)) k 796 tools/firmware_load.c return k; k 798 tools/firmware_load.c else if (isLDR_PC_cond(fw,k) && (LDR2val(fw,k) == sadr)) k 800 tools/firmware_load.c return k; k 812 tools/firmware_load.c int k; k 814 tools/firmware_load.c for (k=ofst+1; k<fw->size; k++) k 816 tools/firmware_load.c if (isADR_PC_cond(fw,k) && (ADR2adr(fw,k) == sadr)) k 818 tools/firmware_load.c return k; k 820 tools/firmware_load.c else if (isLDR_PC_cond(fw,k) && (LDR2val(fw,k) == sadr)) k 822 tools/firmware_load.c return k; k 832 tools/firmware_load.c int k; k 833 tools/firmware_load.c for (k=ofst; k<ofst+limit; k++) k 835 tools/firmware_load.c if (isADR_PC_cond(fw,k) && idx_valid(fw,adr2idx(fw,ADR2adr(fw,k))) && (strcmp(str,adr2ptr(fw,ADR2adr(fw,k))) == 0)) k 837 tools/firmware_load.c return k; k 839 tools/firmware_load.c else if (isLDR_PC_cond(fw,k) && idx_valid(fw,adr2idx(fw,LDR2val(fw,k))) && (strcmp(str,adr2ptr(fw,LDR2val(fw,k))) == 0)) k 841 tools/firmware_load.c return k; k 851 tools/firmware_load.c int find_BL(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 853 tools/firmware_load.c if (isBL(fw,k)) k 855 tools/firmware_load.c uint32_t n = idxFollowBranch(fw, k, 0x01000001); k 857 tools/firmware_load.c return k; k 864 tools/firmware_load.c int find_B(firmware *fw, int k, uint32_t v1, __attribute__ ((unused))uint32_t v2) k 866 tools/firmware_load.c if (isB(fw,k)) k 868 tools/firmware_load.c uint32_t n = idxFollowBranch(fw, k, 0x00000001); k 870 tools/firmware_load.c return k; k 886 tools/firmware_load.c int k; k 887 tools/firmware_load.c for (k = p->off; k <= p->off + p->len - len; k++) k 889 tools/firmware_load.c int rv = func(fw,k,v1,v2); k 908 tools/firmware_load.c int k; k 909 tools/firmware_load.c for (k = p->off*4; k < (p->off + p->len)*4; k++) k 911 tools/firmware_load.c if (func(fw,k)) k 927 tools/firmware_load.c int i, j, k; k 957 tools/firmware_load.c k = fread(fw->buf, 4, fw->size, f); k 971 tools/firmware_load.c k = find_str(fw, "gaonisoy"); k 972 tools/firmware_load.c if (k != 1) k 981 tools/firmware_load.c k = find_str(fw, "DRYOS version 2.3, release #"); k 982 tools/firmware_load.c if (k != -1) k 984 tools/firmware_load.c fw->real_dryos_ver = fw->dryos_ver = atoi(((char*)&fw->buf[k])+28); k 985 tools/firmware_load.c fw->dryos_ver_str = (char*)&fw->buf[k]; k 991 tools/firmware_load.c k = find_str(fw, "Firmware Ver "); k 994 tools/firmware_load.c if (k < 0) k 996 tools/firmware_load.c k = find_str(fw, "Firmware Version GM"); // ixus700 k 998 tools/firmware_load.c if (k < 0) k 1000 tools/firmware_load.c k = find_str(fw, "Firmware Version "); // ixus30/40 k 1003 tools/firmware_load.c if (k != -1) k 1005 tools/firmware_load.c fw->firmware_ver_str = (char*)&fw->buf[k]; k 1006 tools/firmware_load.c fw->fwver_idx = k; k 1079 tools/firmware_load.c int k = adr2idx(fw,vx_name_offsets[i]); k 1080 tools/firmware_load.c if (idx_valid(fw,k) && (strncmp((char*)fwadr(fw,k),"Canon ",6) == 0)) k 1082 tools/firmware_load.c fw->cam_idx = k; k 1117 tools/firmware_load.c for (k=16; k<100; k++) k 1119 tools/firmware_load.c if ((fw->buf[k] & 0xFFFF0FFF) == 0xEE060F12) // mcr 15, 0, rx, cr6, cr2, {0} k 1121 tools/firmware_load.c fw->maxram = (1 << (((fw->buf[k-1] & 0x3E) >> 1) + 1)) - 1; k 1131 tools/firmware_load.c for (k=0 + fw->main_offs; k<(100 + fw->main_offs); k++) k 1133 tools/firmware_load.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == 0x1900) && isLDR_PC(fw,k+6)) k 1135 tools/firmware_load.c fw->memisostart = LDR2val(fw,k+6); k 1141 tools/firmware_load.c for (k=16; k<100; k++) k 1143 tools/firmware_load.c if (isMOV_immed(fw,k) && (ALUop2(fw,k) == 0x1900) && isLDR_PC(fw,k+11)) k 1145 tools/firmware_load.c fw->memisostart = LDR2val(fw,k+11); k 1147 tools/firmware_load.c if (isLDR_PC(fw,k-1) && isLDR_PC(fw,k-4) && ((fwval(fw,k-2) & 0xFFF0FFF0) == 0xE1500000)) k 1149 tools/firmware_load.c uint32_t fadr = LDR2val(fw,k-1); k 1151 tools/firmware_load.c uint32_t eadr = LDR2val(fw,k-4); k 1161 tools/firmware_load.c else if (isMOV_immed(fw,k) && (ALUop2(fw,k) == 0x1900) && isLDR_PC(fw,k-2) && isLDR_PC(fw,k-3)) k 1165 tools/firmware_load.c fw->memisostart = 0x1900 + LDR2val(fw,k-3); k 1167 tools/firmware_load.c fw->data_init_start = LDR2val(fw,k-2); k 1169 tools/firmware_load.c j = idxFollowBranch(fw, k+6, 1); k 1170 tools/firmware_load.c if (j != k+6) k 1172 tools/firmware_load.c k = idxFollowBranch(fw, j+1, 0x01000001); k 1173 tools/firmware_load.c if (k != j+1) k 1175 tools/firmware_load.c if ( isLDR_PC(fw,k+3) ) k 1177 tools/firmware_load.c uint32_t eadr = LDR2val(fw,k+3); k 1187 tools/firmware_load.c else if (isMOV_immed(fw,k) && (ALUop2(fw,k) == 0x1900) && isLDR_PC(fw,k-2) && k 1188 tools/firmware_load.c ((fwval(fw,k-1) & 0xFFFF0F00) == 0xE50B0000) && isLDR_PC(fw,k+28) && isLDR_PC(fw,k+4) k 1192 tools/firmware_load.c fw->memisostart = LDR2val(fw,k+28); k 1194 tools/firmware_load.c fw->data_init_start = LDR2val(fw,k-2); k 1196 tools/firmware_load.c fw->data_len = (LDR2val(fw,k+4) - 0x1900) / 4; k 1274 tools/firmware_load.c for (k = ofst; (k>adr2idx(fw,0xFFFF0000)) && need_dance; k--) k 1276 tools/firmware_load.c if (isLDR_PC(fw,k) && (LDR2val(fw,k) == idx2adr(fw,ofst))) k 1278 tools/firmware_load.c j = find_inst_rev(fw,isSTMFD_LR,k-1,10); k 171 tools/firmware_load.h int find_BL(firmware *fw, int k, uint32_t v1, uint32_t v2); k 172 tools/firmware_load.h int find_B(firmware *fw, int k, uint32_t v1, uint32_t v2); k 34 tools/firmware_load_ng.c int i, j, k; k 38 tools/firmware_load_ng.c k = -1; j = 0; k 43 tools/firmware_load_ng.c if (k == -1) // Mark start of possible skip block k 45 tools/firmware_load_ng.c k = i; k 50 tools/firmware_load_ng.c if (k != -1) k 52 tools/firmware_load_ng.c if (i - k > 32) // If block more than 32 words then we want to skip it k 54 tools/firmware_load_ng.c if (k - j > 8) k 57 tools/firmware_load_ng.c addBufRange(fw,j,k - j); k 61 tools/firmware_load_ng.c k = -1; // Reset marker for skip block k 66 tools/firmware_load_ng.c if (k != -1) k 68 tools/firmware_load_ng.c if (k - j > 8) k 70 tools/firmware_load_ng.c addBufRange(fw,j,k - j); k 153 tools/firmware_load_ng.c int k = start_adr - fw->base; k 155 tools/firmware_load_ng.c while (k < end_k) k 157 tools/firmware_load_ng.c for (; k < (p->off + p->len)*4; k++) k 159 tools/firmware_load_ng.c if (memcmp(fw->buf8+k,bytes,len) == 0) { k 160 tools/firmware_load_ng.c return fw->base+k; k 167 tools/firmware_load_ng.c k = p->off*4; k 2150 tools/firmware_load_ng.c int k; k 2151 tools/firmware_load_ng.c for (k = p->off*4; k < (p->off + p->len)*4; k++) k 2153 tools/firmware_load_ng.c if (func(fw,k)) k 2311 tools/firmware_load_ng.c int k = find_str(fw, "gaonisoy"); k 2313 tools/firmware_load_ng.c if(k == -1) { k 2318 tools/firmware_load_ng.c } else if (k != 1) { k 2335 tools/firmware_load_ng.c k = find_str(fw, "Firmware Ver "); k 2336 tools/firmware_load_ng.c if (k != -1) k 2338 tools/firmware_load_ng.c fw->firmware_ver_str = (char *)fw->buf8 + k*4; k 690 tools/firmware_load_ng.h typedef int (*search_bytes_fn)(firmware*, int k); k 32 tools/font_8x16_pack.c unsigned char k; k 43 tools/font_8x16_pack.c k = orig_font_data[i].data[j]; k 44 tools/font_8x16_pack.c fdata_usage[k] = 1; k 109 tools/packfi2/crc32.c int n, k; k 129 tools/packfi2/crc32.c for (k = 0; k < 8; k++) k 140 tools/packfi2/crc32.c for (k = 1; k < 4; k++) { k 142 tools/packfi2/crc32.c crc_table[k][n] = c; k 143 tools/packfi2/crc32.c crc_table[k + 4][n] = REV(c); k 170 tools/packfi2/crc32.c for (k = 1; k < 8; k++) { k 172 tools/packfi2/crc32.c write_table(out, crc_table[k]); k 144 tools/packfi2/trees.c local void pqdownheap OF((deflate_state *s, ct_data *tree, int k)); k 455 tools/packfi2/trees.c local void pqdownheap(s, tree, k) k 458 tools/packfi2/trees.c int k; /* node to move down */ k 460 tools/packfi2/trees.c int v = s->heap[k]; k 461 tools/packfi2/trees.c int j = k << 1; /* left son of k */ k 472 tools/packfi2/trees.c s->heap[k] = s->heap[j]; k = j; k 477 tools/packfi2/trees.c s->heap[k] = v; k 21 tools/ubasic_test/camera_functions.c void action_push_press(int k) k 23 tools/ubasic_test/camera_functions.c printf("*** button press %d ***\n",k); k 26 tools/ubasic_test/camera_functions.c void action_push_release(int k) k 28 tools/ubasic_test/camera_functions.c printf("*** button release %d ***\n",k); k 31 tools/ubasic_test/camera_functions.c void action_push_click(int k) k 33 tools/ubasic_test/camera_functions.c printf("*** button click %d ***\n",k); k 54 tools/ubasic_test/camera_functions.c int script_key_is_clicked(int k) k 56 tools/ubasic_test/camera_functions.c printf("*** is_clicked %d ***\n", k);