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                 611 lib/lua/liolib.c static void createstdfile (lua_State *L, FILE *f, int k, const char *fname) {
k                 613 lib/lua/liolib.c   if (k > 0) {
k                 615 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                  37 lib/math/ef_log.c 	int k,ix,i,j;
k                  41 lib/math/ef_log.c 	k=0;
k                  47 lib/math/ef_log.c 	    k -= 25; x *= two25; /* subnormal number, scale up x */
k                  50 lib/math/ef_log.c 	k += (ix>>23)-127;
k                  54 lib/math/ef_log.c 	k += (i>>23);
k                  57 lib/math/ef_log.c            if(f==zero) { if(k==0) return zero;  else {dk=(float)k;
k                  60 lib/math/ef_log.c 	    if(k==0) return f-R; else {dk=(float)k;
k                  64 lib/math/ef_log.c 	dk = (float)k;
k                  75 lib/math/ef_log.c 	    if(k==0) return f-(hfsq-s*(hfsq+R)); else
k                  78 lib/math/ef_log.c 	    if(k==0) return f-s*(f-R); else
k                  56 lib/math/ef_pow.c 	int i,j,k,yisint,n;
k                  80 lib/math/ef_pow.c 		k = (iy>>23)-0x7f;	   /* exponent */
k                  81 lib/math/ef_pow.c 		j = iy>>(23-k);
k                  82 lib/math/ef_pow.c 		if((j<<(23-k))==iy) yisint = 2-(j&1);
k                 146 lib/math/ef_pow.c 	    if(j<=0x1cc471) k=0;	/* |x|<sqrt(3/2) */
k                 147 lib/math/ef_pow.c 	    else if(j<0x5db3d7) k=1;	/* |x|<sqrt(3)   */
k                 148 lib/math/ef_pow.c 	    else {k=0;n+=1;ix -= 0x00800000;}
k                 152 lib/math/ef_pow.c 	    u = ax-bp[k];		/* bp[0]=1.0, bp[1]=1.5 */
k                 153 lib/math/ef_pow.c 	    v = one/(ax+bp[k]);
k                 159 lib/math/ef_pow.c 	    SET_FLOAT_WORD(t_h,((ix>>1)|0x20000000)+0x0040000+(k<<21));
k                 160 lib/math/ef_pow.c 	    t_l = ax - (t_h-bp[k]);
k                 180 lib/math/ef_pow.c 	    z_l = cp_l*p_h+p_l*cp+dp_l[k];
k                 183 lib/math/ef_pow.c 	    t1 = (((z_h+z_l)+dp_h[k])+t);
k                 186 lib/math/ef_pow.c 	    t2 = z_l-(((t1-t)-dp_h[k])-z_h);
k                 215 lib/math/ef_pow.c 	k = (i>>23)-0x7f;
k                 218 lib/math/ef_pow.c 	    n = j+(0x00800000>>(k+1));
k                 219 lib/math/ef_pow.c 	    k = ((n&0x7fffffff)>>23)-0x7f;	/* new k for n */
k                 220 lib/math/ef_pow.c 	    SET_FLOAT_WORD(t,n&~(0x007fffff>>k));
k                 221 lib/math/ef_pow.c 	    n = ((n&0x007fffff)|0x00800000)>>(23-k);
k                  27 lib/math/s_scalbnf.c         int k,ix;
k                  29 lib/math/s_scalbnf.c         k = (ix&0x7f800000)>>23;                /* extract exponent */
k                  30 lib/math/s_scalbnf.c         if (k==0) {                                /* 0 or subnormal x */
k                  34 lib/math/s_scalbnf.c             k = ((ix&0x7f800000)>>23) - 25;
k                  37 lib/math/s_scalbnf.c         if (k==0xff) return x+x;                /* NaN or Inf */
k                  38 lib/math/s_scalbnf.c         k = k+n;
k                  39 lib/math/s_scalbnf.c         if (k >  0xfe) return huge*copysignf(huge,x); /* overflow  */
k                  40 lib/math/s_scalbnf.c         if (k > 0)                                 /* normal result */
k                  41 lib/math/s_scalbnf.c             {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;}
k                  42 lib/math/s_scalbnf.c         if (k <= -25) {
k                  47 lib/math/s_scalbnf.c         k += 25;                                /* subnormal result */
k                  48 lib/math/s_scalbnf.c         SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23));
k                  21 lib/ubasic/camera_functions.c void action_push_press(int k)
k                  23 lib/ubasic/camera_functions.c     printf("*** button press %d ***\n",k);
k                  26 lib/ubasic/camera_functions.c void action_push_release(int k)
k                  28 lib/ubasic/camera_functions.c     printf("*** button release %d ***\n",k);
k                  31 lib/ubasic/camera_functions.c void action_push_click(int k)
k                  33 lib/ubasic/camera_functions.c     printf("*** button click %d ***\n",k);
k                  54 lib/ubasic/camera_functions.c int script_key_is_clicked(int k)
k                  56 lib/ubasic/camera_functions.c     printf("*** is_clicked %d ***\n", k);
k                 202 lib/ubasic/ubasic.c   int k;
k                 205 lib/ubasic/ubasic.c   k = script_keyid_by_name(string);
k                 206 lib/ubasic/ubasic.c   if (k <= 0)
k                 208 lib/ubasic/ubasic.c   return k;
k                1569 lib/ubasic/ubasic.c   int k;
k                1571 lib/ubasic/ubasic.c   k = ubasic_get_key_arg();
k                1572 lib/ubasic/ubasic.c   if (k > 0) {
k                1573 lib/ubasic/ubasic.c     action_push_click(k);
k                1584 lib/ubasic/ubasic.c   int k;
k                1586 lib/ubasic/ubasic.c   k = ubasic_get_key_arg();
k                1587 lib/ubasic/ubasic.c   if (k > 0) {
k                1588 lib/ubasic/ubasic.c     action_push_press(k);
k                1598 lib/ubasic/ubasic.c   int k;
k                1600 lib/ubasic/ubasic.c   k = ubasic_get_key_arg();
k                1601 lib/ubasic/ubasic.c   if (k > 0) {
k                1602 lib/ubasic/ubasic.c     action_push_release(k);
k                1978 lib/ubasic/ubasic.c     int k;
k                1983 lib/ubasic/ubasic.c         k = script_keyid_by_name(string);
k                1984 lib/ubasic/ubasic.c         if (k <= 0)
k                1991 lib/ubasic/ubasic.c             script_set_terminate_key(k,string);
k                 360 modules/luascript.c     int k = script_keyid_by_name( luaL_checkstring( L, narg ) );
k                 361 modules/luascript.c     if(!k) 
k                 363 modules/luascript.c     return k;
k                   9 modules/script_key_funcs.c __attribute__((short_call)) int script_key_is_pressed(int k)
k                  11 modules/script_key_funcs.c     if (k==0xFF)
k                  13 modules/script_key_funcs.c     if (k > 0)
k                  14 modules/script_key_funcs.c         return kbd_is_key_pressed(k);
k                  18 modules/script_key_funcs.c __attribute__((short_call)) int script_key_is_clicked(int k)
k                  20 modules/script_key_funcs.c     if (k > 0)
k                  21 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                 872 tools/capdis.c                     int k;
k                 873 tools/capdis.c                     for(k=0;k<is->insn->size;k++) {
k                 874 tools/capdis.c                         printf(" %02x",is->insn->bytes[k]);
k                 597 tools/finsig_dryos.c     int k = get_saved_sig(fw, sig);
k                 598 tools/finsig_dryos.c     if (k >= 0)
k                 600 tools/finsig_dryos.c         int idx = adr2idx(fw, func_names[k].val);
k                 601 tools/finsig_dryos.c         for (k=idx+ofst; k<idx+ofst+len; k++)
k                 603 tools/finsig_dryos.c             int rv = func(fw, k, v);
k                 704 tools/finsig_dryos.c int match_apex2us(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 706 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 708 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 709 tools/finsig_dryos.c         if (k != -1)
k                 711 tools/finsig_dryos.c             if (fwval(fw,k-2) == 0xE3700D09)    // CMN R0, #0x240
k                 712 tools/finsig_dryos.c                 k -= 2;
k                 713 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                 720 tools/finsig_dryos.c int match_apex2us2(firmware *fw, int k, uint32_t v1, uint32_t v2) // r52+?
k                 722 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 724 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 725 tools/finsig_dryos.c         if (k != -1)
k                 727 tools/finsig_dryos.c             if (fwval(fw,k+1) != 0xe3700d0f)    // CMN R0, #0x3c0
k                 729 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                 764 tools/finsig_dryos.c int find_mkdir(firmware *fw, string_sig *sig, int k)
k                 766 tools/finsig_dryos.c     if (fwval(fw,k) == 0x12CEA600)
k                 771 tools/finsig_dryos.c             kk = k-26;
k                 775 tools/finsig_dryos.c             kk = k-20;
k                 777 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, kk, 200);
k                 778 tools/finsig_dryos.c         if (k != -1)
k                 780 tools/finsig_dryos.c             if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) ||
k                 781 tools/finsig_dryos.c                 (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020)))
k                 784 tools/finsig_dryos.c                 if (isBL(fw,k+47))
k                 786 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001);
k                 788 tools/finsig_dryos.c                 else if (isBL(fw,k+48))
k                 790 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001);
k                 858 tools/finsig_dryos.c                 int k = find_inst_rev(fw, isBX_LR,j1-1,15);
k                 859 tools/finsig_dryos.c                 if (k >= 0)
k                 861 tools/finsig_dryos.c                     uint32_t fadr = idx2adr(fw, k+1);
k                 878 tools/finsig_dryos.c         int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100);
k                 879 tools/finsig_dryos.c         if (isB(fw,k-1) && isBL(fw,k-2))
k                 881 tools/finsig_dryos.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001);
k                 896 tools/finsig_dryos.c         int k = find_Nth_inst(fw, isBL, adr2idx(fw,func_names[j].val)+1, 6, 2);
k                 897 tools/finsig_dryos.c         if (k > 0)
k                 900 tools/finsig_dryos.c             if ( (fwval(fw, k+1) & 0xffff0fff) != 0xe1b00000 ) // movs rx, r0
k                 903 tools/finsig_dryos.c             uint32_t cmpinst = ((fwval(fw, k+1) & 0x0000f000)<<4) + 0xe3500004; // cmp rx, #4
k                 908 tools/finsig_dryos.c                 if ( fwval(fw, k+1+l) == cmpinst )
k                 914 tools/finsig_dryos.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k), 0x01000001);
k                 929 tools/finsig_dryos.c         int k = get_saved_sig(fw,"StopWDT_FW");
k                 930 tools/finsig_dryos.c         if (k >= 0)
k                 940 tools/finsig_dryos.c                     if (func_names[k].val == fadr)
k                 955 tools/finsig_dryos.c int find_add_ptp_handler(firmware *fw, string_sig *sig, int k)
k                 961 tools/finsig_dryos.c     while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i]))
k                 963 tools/finsig_dryos.c         k = find_inst(fw, isBL, k+1, 5);
k                 964 tools/finsig_dryos.c         if (k == -1) return 0;
k                 966 tools/finsig_dryos.c             fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 967 tools/finsig_dryos.c         k = find_inst(fw, isLDR_PC, k+1, 5);
k                 969 tools/finsig_dryos.c         if (k == -1 && vals[i] != 0) return 0;
k                 984 tools/finsig_dryos.c     int j, k;
k                 992 tools/finsig_dryos.c             k = find_inst(fw, isBL, j+1, 4);
k                 993 tools/finsig_dryos.c             if (k >= 0)
k                 995 tools/finsig_dryos.c                 uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 998 tools/finsig_dryos.c                     k = find_inst(fw, isB, k+1, 10);
k                 999 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw, k), 1);
k                1013 tools/finsig_dryos.c     int k = find_str_ref(fw,"%3d_%02d%02d");
k                1014 tools/finsig_dryos.c     if (k >= 0)
k                1016 tools/finsig_dryos.c         k = find_inst_rev(fw, isLDMFD_PC, k-1, 16);
k                1017 tools/finsig_dryos.c         if (k >= 0)
k                1019 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k+1);
k                1026 tools/finsig_dryos.c         k = find_str_ref(fw,"___%02d");
k                1027 tools/finsig_dryos.c         if (k >= 0)
k                1029 tools/finsig_dryos.c             k = find_inst_rev(fw, isLDMFD_PC, k-1, 18);
k                1030 tools/finsig_dryos.c             if (k >= 0)
k                1032 tools/finsig_dryos.c                 if (isMOV(fw,k+1) && isMOV(fw,k+2)) // sanity check
k                1034 tools/finsig_dryos.c                     uint32_t fadr = idx2adr(fw,k+1);
k                1047 tools/finsig_dryos.c int match_GetImageFolder(firmware *fw, int k, uint32_t a_getImageDirName, uint32_t a_TakeSemaphore)
k                1051 tools/finsig_dryos.c     if (isBL(fw,k))
k                1053 tools/finsig_dryos.c         uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                1056 tools/finsig_dryos.c             int s = find_inst_rev(fw, isSTMFD_LR, k-1, 80);
k                1057 tools/finsig_dryos.c             int e = find_inst(fw, isLDMFD_PC, k+1, 80);
k                1061 tools/finsig_dryos.c                 for (k1=s+1; k1<k-1; k1++)
k                1075 tools/finsig_dryos.c                     for (k1=k+1; k1<e-1; k1++)
k                1103 tools/finsig_dryos.c         int k = get_saved_sig(fw,"getImageDirName");
k                1104 tools/finsig_dryos.c         if ((k >= 0) && (j >= 0))
k                1106 tools/finsig_dryos.c             return search_fw(fw, match_GetImageFolder, func_names[k].val, func_names[j].val, 1);
k                1114 tools/finsig_dryos.c int match_GetDrive_ClusterSize(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                1116 tools/finsig_dryos.c     if (isBL_cond(fw,k))
k                1118 tools/finsig_dryos.c         uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0xF1000001);
k                1122 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                1126 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                1130 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                1134 tools/finsig_dryos.c             else if (isADR_PC_cond(fw,k-1) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-1)),"Mounter.c") == 0))
k                1138 tools/finsig_dryos.c             else if (isADR_PC_cond(fw,k-2) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-2)),"Mounter.c") == 0))
k                1143 tools/finsig_dryos.c                 isLDR_PC(fw,k+1) &&
k                1144 tools/finsig_dryos.c                 ((fwval(fw,k+2) & 0xFFF00FF0) == 0xE0800200) && ((fwval(fw,k+3) & 0xFFF00FF0) == 0xE0800100) &&
k                1145 tools/finsig_dryos.c                 (fwval(fw,k+4) == 0xE5901004) && (fwval(fw,k+5) == 0xE5900008) && (fwval(fw,k+6) == 0xE0000091) &&
k                1146 tools/finsig_dryos.c                 isLDMFD_PC(fw,k+7))
k                1148 tools/finsig_dryos.c                 k = find_inst_rev(fw,isSTMFD_LR,k-1,8);
k                1149 tools/finsig_dryos.c                 if (k >= 0)
k                1151 tools/finsig_dryos.c                     if (fwval(fw,k-1) == 0xE3500001)    // CMP R0, #1
k                1152 tools/finsig_dryos.c                         k--;
k                1153 tools/finsig_dryos.c                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1164 tools/finsig_dryos.c     int k = get_saved_sig(fw,"DebugAssert");
k                1165 tools/finsig_dryos.c     if (k >= 0)
k                1167 tools/finsig_dryos.c         return search_fw(fw, match_GetDrive_ClusterSize, func_names[k].val, 0, 16);
k                1182 tools/finsig_dryos.c         int k = adr2idx(fw,j);
k                1183 tools/finsig_dryos.c         k = find_inst_rev(fw,isLDMFD_PC,k-1,2);
k                1184 tools/finsig_dryos.c         if ((k > 0) && ( (fwval(fw,k-1)&0xfffff0f0)==0xe0810090 )) // umull r0, r1, rx, ry
k                1186 tools/finsig_dryos.c             if (isBL(fw,k-2))
k                1188 tools/finsig_dryos.c                 k = idxFollowBranch(fw,k-2,0x01000001);
k                1189 tools/finsig_dryos.c                 fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1201 tools/finsig_dryos.c     int k = get_saved_sig(fw,"rand");
k                1202 tools/finsig_dryos.c     if (k >= 0)
k                1204 tools/finsig_dryos.c         k = adr2idx(fw, func_names[k].val) - 3;
k                1205 tools/finsig_dryos.c         if (isLDR_PC(fw,k) && isSTR(fw,k+1) && isBX_LR(fw,k+2))
k                1206 tools/finsig_dryos.c             fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1269 tools/finsig_dryos.c         int m2, k;
k                1278 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, s1, m2);
k                1289 tools/finsig_dryos.c             for (k=-1; k>-3; k--)
k                1291 tools/finsig_dryos.c                 if ((fwval(fw,m1+k) & 0xFE1FF000) == 0xE41F0000) // ldr r0, =func
k                1293 tools/finsig_dryos.c                     uint32_t u1 = LDR2val(fw, m1+k);
k                1300 tools/finsig_dryos.c                             k = find_nxt_str_ref(fw, s1, m2);
k                1314 tools/finsig_dryos.c             k = find_nxt_str_ref(fw, s1, m2);
k                1315 tools/finsig_dryos.c             if ((k <= 0)||(k-m2 >= 22))
k                1320 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, s1, m2);
k                1325 tools/finsig_dryos.c         if ((k > 0)&&(k-m2 < 22))
k                1328 tools/finsig_dryos.c             idx_createdialogbox = find_inst_rev(fw, isBL, k-1, 4);
k                1332 tools/finsig_dryos.c             idx_adduitodialog = find_inst(fw, isBL, k+1, 7);
k                1334 tools/finsig_dryos.c             for (m3=k; m3<k+128; m3++)
k                1369 tools/finsig_dryos.c                 m3 = find_inst(fw, isLDMFD_PC, k+30, 64);
k                1381 tools/finsig_dryos.c                 m3 = find_inst(fw, isLDMFD, k+30, 20);
k                1426 tools/finsig_dryos.c                         int k;
k                1427 tools/finsig_dryos.c                         for (k=j; k<j+24; k++)
k                1429 tools/finsig_dryos.c                             if (isBL_cond(fw,k)&&(idx2adr(fw,idxFollowBranch(fw,k,0xe1000001))==a1)) // BLEQ
k                1446 tools/finsig_dryos.c             int k;
k                1447 tools/finsig_dryos.c             for (k=-1; k>-3; k--)
k                1449 tools/finsig_dryos.c                 if ((fwval(fw,m1+k) & 0xFE1FF000) == 0x041F0000) // ldreq r0, =func
k                1451 tools/finsig_dryos.c                     uint32_t u1 = LDR2val(fw, m1+k);
k                1744 tools/finsig_dryos.c     int k = 0;
k                1766 tools/finsig_dryos.c                             k = idxFollowBranch(fw,j3,0x01000001);
k                1767 tools/finsig_dryos.c                             fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1803 tools/finsig_dryos.c                                     k = idxFollowBranch(fw,j3+m,0x01000001);
k                1804 tools/finsig_dryos.c                                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1810 tools/finsig_dryos.c                             if (k)
k                1816 tools/finsig_dryos.c             if (k)
k                1820 tools/finsig_dryos.c     if (k && k1)
k                1822 tools/finsig_dryos.c         k1 = k+1;
k                1823 tools/finsig_dryos.c         while (k1>0 && k1<k+20)
k                1839 tools/finsig_dryos.c     if (k)
k                1870 tools/finsig_dryos.c                         int k;
k                1871 tools/finsig_dryos.c                         k = idxFollowBranch(fw,n,0x01000001);
k                1872 tools/finsig_dryos.c                         if ( idx2adr(fw, k) == idx2adr(fw, j) )
k                1875 tools/finsig_dryos.c                             k = find_inst(fw, isBL, s1+2, 6);
k                1876 tools/finsig_dryos.c                             if (k != -1)
k                1879 tools/finsig_dryos.c                                 int l = idxFollowBranch(fw,k,0x01000001);
k                1884 tools/finsig_dryos.c                                     k = idxFollowBranch(fw,l,0x01000001);
k                1885 tools/finsig_dryos.c                                     if ( isB(fw, k) )
k                1887 tools/finsig_dryos.c                                         int m = idxFollowBranch(fw,k,0x01000001);
k                1889 tools/finsig_dryos.c                                         add_func_name("j_GetBaseSv", idx2adr(fw,k), "");
k                1895 tools/finsig_dryos.c                                         fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                2592 tools/finsig_dryos.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2594 tools/finsig_dryos.c     if (fwval(fw,k) == sadr)                // pointer to string?
k                2596 tools/finsig_dryos.c         uint32_t fadr = fwval(fw,k+1);      // function address
k                2633 tools/finsig_dryos.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2635 tools/finsig_dryos.c     if (isADR_PC(fw,k+1) &&    // ADR ?
k                2636 tools/finsig_dryos.c         isBorBL(fw,k+2))       // B or BL ?
k                2638 tools/finsig_dryos.c         uint32_t padr = ADR2adr(fw,k+1);    // get address pointed to by 2nd ADR instructioin
k                2641 tools/finsig_dryos.c             int j2 = k;
k                2643 tools/finsig_dryos.c             if (isADR_PC(fw,k))             // ADR ?
k                2648 tools/finsig_dryos.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2655 tools/finsig_dryos.c                         if (adr2idx(fw,fa) == k+1)
k                2686 tools/finsig_dryos.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2688 tools/finsig_dryos.c     if (isSTMFD(fw,k) &&        // STMFD
k                2689 tools/finsig_dryos.c         isADR_PC(fw,k+offset))  // ADR ?
k                2691 tools/finsig_dryos.c         uint32_t padr = ADR2adr(fw,k+offset);
k                2694 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                2722 tools/finsig_dryos.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2724 tools/finsig_dryos.c     if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) &&   // LDR or ADR ?
k                2725 tools/finsig_dryos.c         isBorBL(fw,k+2))                            // B or BL ?
k                2728 tools/finsig_dryos.c         if (isLDR_PC(fw,k+1))                       // LDR ?
k                2729 tools/finsig_dryos.c             padr = LDR2val(fw,k+1);
k                2731 tools/finsig_dryos.c             padr = ADR2adr(fw,k+1);
k                2734 tools/finsig_dryos.c             int j2 = k;
k                2736 tools/finsig_dryos.c             if (isLDR_PC(fw,k))                     // LDR ?
k                2740 tools/finsig_dryos.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2745 tools/finsig_dryos.c                         if (idxFollowBranch(fw,j2+1,1) == k+1)
k                2798 tools/finsig_dryos.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2800 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                2803 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2804 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                2806 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                2809 tools/finsig_dryos.c             int j2 = find_inst(fw, isBL, k+1, 10);
k                3032 tools/finsig_dryos.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                3034 tools/finsig_dryos.c     if (fwval(fw,k) == sadr)    // string ptr
k                3036 tools/finsig_dryos.c         uint32_t padr = idx2adr(fw,k);      // string ptr address
k                3038 tools/finsig_dryos.c         for (j2 = k-1; j2 >= 0; j2--)
k                3071 tools/finsig_dryos.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                3073 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                3076 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                3077 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                3079 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                3082 tools/finsig_dryos.c             int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst);
k                3142 tools/finsig_dryos.c             int k = 0;
k                3147 tools/finsig_dryos.c                     k = adr2idx(fw,LDR2val(fw,idx-3));
k                3151 tools/finsig_dryos.c                     k = adr2idx(fw,ADR2adr(fw,idx-2));
k                3161 tools/finsig_dryos.c                         k = adr2idx(fw,LDR2val(fw,l-2));
k                3165 tools/finsig_dryos.c             if (k != 0)
k                3169 tools/finsig_dryos.c                     fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                3172 tools/finsig_dryos.c                     k = find_inst(fw, isLDMFD, k+1, 60);
k                3175 tools/finsig_dryos.c                         fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001);
k                3179 tools/finsig_dryos.c                         k = find_inst_rev(fw, isBL, k-1, 4);
k                3180 tools/finsig_dryos.c                         if (k > 0)
k                3182 tools/finsig_dryos.c                             fadr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                3224 tools/finsig_dryos.c             int k = 0;
k                3227 tools/finsig_dryos.c                 case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                3228 tools/finsig_dryos.c                 case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                3229 tools/finsig_dryos.c                 case 2: k = ((fwval(fw, adr2idx(fw, fadr)-1-addoffs) & 0x0f000000) == 0x0a000000); break; // B cond.
k                3230 tools/finsig_dryos.c                 case 3: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE1A0F00E); break; // mov pc, lr
k                3231 tools/finsig_dryos.c                 case 4: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE12FFF1E); break; // bx lr
k                3234 tools/finsig_dryos.c             if (k)
k                3254 tools/finsig_dryos.c int match_strsig23a(firmware *fw, int k, uint32_t sadr, uint32_t maxdist)
k                3256 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                3259 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                3260 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                3262 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                3268 tools/finsig_dryos.c                 j2 = find_Nth_inst_rev(fw, isBorBL, k, maxdist, -dryos_ofst);
k                3272 tools/finsig_dryos.c                 j2 = find_Nth_inst(fw, isBorBL, k+1, maxdist, dryos_ofst+1);
k                3616 tools/finsig_dryos.c void print_results(firmware *fw, const char *curr_name, int k)
k                3622 tools/finsig_dryos.c     if (func_names[k].flags & DONT_EXPORT) return;
k                3634 tools/finsig_dryos.c         func_names[k].flags |= BAD_MATCH;
k                3638 tools/finsig_dryos.c         if (func_names[k].flags & UNUSED) return;
k                3650 tools/finsig_dryos.c         if (func_names[k].flags & OPTIONAL) return;
k                3657 tools/finsig_dryos.c         if (ostub2 || (func_names[k].flags & UNUSED))
k                3722 tools/finsig_dryos.c void output_modemap(firmware *fw, int k)
k                3726 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                3728 tools/finsig_dryos.c         k = adr2idx(fw,LDR2val(fw,k));
k                3729 tools/finsig_dryos.c         bprintf("%08x\n",idx2adr(fw,k));
k                3730 tools/finsig_dryos.c         uint16_t *p = (uint16_t*)(&fw->buf[k]);
k                3731 tools/finsig_dryos.c         k = 0;
k                3732 tools/finsig_dryos.c         while ((*p != 0xFFFF) && (k < 50))
k                3752 tools/finsig_dryos.c             k++;
k                3771 tools/finsig_dryos.c int match_modelist(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                3773 tools/finsig_dryos.c     if (isBX_LR(fw,k) && (fw->buf[k+4] == fadr))
k                3775 tools/finsig_dryos.c         fadr = fwval(fw,k+1);
k                3777 tools/finsig_dryos.c         for (k1=k-1; k1>k-20; k1--)
k                3793 tools/finsig_dryos.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3795 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                3797 tools/finsig_dryos.c         FlashParamsTable_address = idx2adr(fw,k);
k                3803 tools/finsig_dryos.c int match_FlashParamsTable(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3805 tools/finsig_dryos.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && (fw->buf[k+2] == 0xFFFF0002))
k                3807 tools/finsig_dryos.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3830 tools/finsig_dryos.c int match_CAM_UNCACHED_BIT(firmware *fw, int k, int v)
k                3832 tools/finsig_dryos.c     if ((fw->buf[k] & 0x0FFFF000) == 0x03C00000)    // BIC
k                3834 tools/finsig_dryos.c         fw->uncached_adr = ALUop2(fw,k);
k                3835 tools/finsig_dryos.c         fw->uncached_adr_idx = k;
k                3846 tools/finsig_dryos.c     int k = isADR_PC_cond(fw, s1);
k                3847 tools/finsig_dryos.c     if (!k)
k                3849 tools/finsig_dryos.c     k = fwRd(fw, s1);
k                3850 tools/finsig_dryos.c     if (k > 0)
k                3858 tools/finsig_dryos.c     int k,k1;
k                3875 tools/finsig_dryos.c     k = find_str_ref(fw, "\r[%ld] AdjDrvType[%02ld] -> DrvType[%02");
k                3876 tools/finsig_dryos.c     if (k >= 0)
k                3879 tools/finsig_dryos.c         for (k1 = k-1; k1 >= k-20; k1--)
k                3906 tools/finsig_dryos.c         for (k1 = k-1; k1 >= k-20; k1--)
k                3941 tools/finsig_dryos.c         k = find_str_ref(fw, " CrwAddress %lx, CrwSize H %ld V %ld\r");
k                3942 tools/finsig_dryos.c         if (k >= 0)
k                3945 tools/finsig_dryos.c             for (k1=k-1; k1>=k-5; k1--)
k                3960 tools/finsig_dryos.c             for (k1=k-1; k1>=k-5; k1--)
k                4008 tools/finsig_dryos.c     k = get_saved_sig(fw,"GetImageFolder");
k                4009 tools/finsig_dryos.c     if (k >= 0)
k                4011 tools/finsig_dryos.c         uint32_t fadr = func_names[k].val;
k                4031 tools/finsig_dryos.c                         k = adr2idx(fw,fadr);
k                4033 tools/finsig_dryos.c                         for (k3=k; k3<k+8; k3++)
k                4051 tools/finsig_dryos.c         for (k=k1; k<k1+20; k++)
k                4053 tools/finsig_dryos.c             uint32_t fadr = fwval(fw,k);
k                4064 tools/finsig_dryos.c                         bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr);
k                4079 tools/finsig_dryos.c     int k, k1;
k                4082 tools/finsig_dryos.c     k = find_str_ref(fw, "VRAM Address  : %p\r");
k                4083 tools/finsig_dryos.c     if (k >= 0)
k                4085 tools/finsig_dryos.c         for (k1=k-1; k1>k-8; k1--)
k                4102 tools/finsig_dryos.c int match_vid_get_bitmap_fb(firmware *fw, int k, int v)
k                4104 tools/finsig_dryos.c     if (isBL(fw,k-1) && // BL
k                4105 tools/finsig_dryos.c         isLDR_PC(fw,k))
k                4107 tools/finsig_dryos.c         uint32_t v1 = LDR2val(fw,k);
k                4108 tools/finsig_dryos.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                4112 tools/finsig_dryos.c     if (isBL(fw,k-1) && // BL
k                4113 tools/finsig_dryos.c         (isLDR_PC(fw,k+1)))
k                4115 tools/finsig_dryos.c         uint32_t v1 = LDR2val(fw,k+1);
k                4116 tools/finsig_dryos.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                4123 tools/finsig_dryos.c int match_get_flash_params_count(firmware *fw, int k, int v)
k                4125 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901)    // BIC Rn, Rn, #0x4000
k                4127 tools/finsig_dryos.c         uint32_t r = fw->buf[k] & 0x000F0000;       // Register
k                4128 tools/finsig_dryos.c         if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r))  // CMP, Rn #val
k                4130 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                4139 tools/finsig_dryos.c int match_uiprop_count(firmware *fw, int k, int v)
k                4141 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xe3c00902)    // BIC Rn, Rn, #0x8000
k                4143 tools/finsig_dryos.c         uint32_t r = fw->buf[k] & 0x000F0000;       // Register
k                4144 tools/finsig_dryos.c         if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r))  // CMP, Rn #val
k                4147 tools/finsig_dryos.c             uint32_t fadr = fw->buf[k+1]&0xFFF;
k                4151 tools/finsig_dryos.c                 bprintf("//DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1));
k                4163 tools/finsig_dryos.c                 bprintf("DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1));
k                4173 tools/finsig_dryos.c int match_imager_active(firmware *fw, int k, int v)
k                4179 tools/finsig_dryos.c     if (isLDMFD_PC(fw,k))
k                4181 tools/finsig_dryos.c         int k1 = find_inst_rev(fw, isBL, k-1, 10);
k                4244 tools/finsig_dryos.c     int k,k1;
k                4255 tools/finsig_dryos.c     uint32_t v = find_viewport_address(fw,&k);
k                4256 tools/finsig_dryos.c     if (k >= 0)
k                4258 tools/finsig_dryos.c         bprintf("//void *vid_get_viewport_fb()      { return (void*)0x%08x; }             // Found @0x%08x\n",v,idx2adr(fw,k));
k                4269 tools/finsig_dryos.c     k = find_nxt_str_ref(fw, sadr, -1);
k                4271 tools/finsig_dryos.c     while ((k >= 0) && !found)
k                4276 tools/finsig_dryos.c             if (isLDR(fw,k+fbd[f][0]) && isLDR(fw,k+fbd[f][1]) && isLDR(fw,k+fbd[f][2]))
k                4278 tools/finsig_dryos.c                 int reg = fw->buf[k+fbd[f][2]] & 0x000F0000;    // Index register used
k                4280 tools/finsig_dryos.c                 if (((fw->buf[k+fbd[f][0]] & 0x0000F000) << 4) == reg)      { ka = k+fbd[f][0]; }
k                4281 tools/finsig_dryos.c                 else if (((fw->buf[k+fbd[f][1]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][1]; }
k                4285 tools/finsig_dryos.c                     for (k1=k+2; k1<k+20; k1++)
k                4299 tools/finsig_dryos.c         k = find_nxt_str_ref(fw, sadr, k);
k                4303 tools/finsig_dryos.c     k = find_str_ref(fw, "9999");
k                4304 tools/finsig_dryos.c     if (k >= 0)
k                4306 tools/finsig_dryos.c         if (isLDR(fw,k-1) && isBL(fw,k+1))
k                4308 tools/finsig_dryos.c             uint32_t v1 = LDR2val(fw,k-1);
k                4309 tools/finsig_dryos.c             bprintf("DEF(%-40s,0x%08x) // Found @0x%08x\n","jpeg_count_str",v1,idx2adr(fw,k-1));
k                4310 tools/finsig_dryos.c             bprintf("//char *camera_jpeg_count_str()    { return (char*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k-1));
k                4457 tools/finsig_dryos.c int match_levent_table(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4459 tools/finsig_dryos.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002))
k                4461 tools/finsig_dryos.c         print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k));
k                4463 tools/finsig_dryos.c         uint32_t levent_tbl = idx2adr(fw,k);
k                4471 tools/finsig_dryos.c int match_movie_status(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4473 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                              // LDR R0, =base
k                4474 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) &&  // ADR R1, =sub
k                4475 tools/finsig_dryos.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                4476 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                4477 tools/finsig_dryos.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                4478 tools/finsig_dryos.c         (LDR2val(fw,k) < fw->base))
k                4480 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4481 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                4482 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4486 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                              // LDR R1, =sub
k                4487 tools/finsig_dryos.c         isLDR_PC(fw, k+1) &&                            // LDR R0, =base
k                4488 tools/finsig_dryos.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                4489 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                4490 tools/finsig_dryos.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                4491 tools/finsig_dryos.c         (LDR2val(fw,k+1) < fw->base))
k                4493 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k+1);
k                4494 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                4495 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4499 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                                      // LDR Rx, =base
k                4500 tools/finsig_dryos.c         isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) &&       // LDR R0, [Rx, ...]
k                4501 tools/finsig_dryos.c         isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) &&     // CMP R0, #...
k                4502 tools/finsig_dryos.c         (fwval(fw,k+3) == 0x03A00005) &&
k                4503 tools/finsig_dryos.c         isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) &&  // STRxx R0, [Rx,ofst]
k                4504 tools/finsig_dryos.c         (LDR2val(fw,k) < fw->base))
k                4506 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4507 tools/finsig_dryos.c         uint32_t ofst = fwOp2(fw,k+4);
k                4508 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4514 tools/finsig_dryos.c int match_full_screen_refresh(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4516 tools/finsig_dryos.c     if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                4517 tools/finsig_dryos.c         (fw->buf[k+1] == 0xE5D01000) &&                 // LDRB R1, [R0]
k                4518 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE3811002) &&                 // ORR R1, R1, #2
k                4519 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE5C01000) &&                 // STRB R1, [R0]
k                4520 tools/finsig_dryos.c         isBX_LR(fw,k+4))                                // BX LR
k                4522 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4523 tools/finsig_dryos.c         print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k));
k                4528 tools/finsig_dryos.c int match_canon_shoot_menu_active(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4530 tools/finsig_dryos.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F1000) &&  // LDR R1, =base
k                4531 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) &&  // LDRB R0, [R1, #n]
k                4532 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE2800001) &&                 // ADD R0, R0, #1
k                4533 tools/finsig_dryos.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) &&  // STRB R0, [R1, #n]
k                4534 tools/finsig_dryos.c         (isB(fw,k+4)))                                  // B
k                4536 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4537 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4538 tools/finsig_dryos.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                4541 tools/finsig_dryos.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F0000) &&  // LDR R0, =base
k                4542 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) &&  // LDRB R1, [R0, #n]
k                4543 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE2811001) &&                 // ADD R1, R1, #1
k                4544 tools/finsig_dryos.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) &&  // STRB R1, [R0, #n]
k                4545 tools/finsig_dryos.c         (isB(fw,k+4)))                                  // B
k                4547 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4548 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4549 tools/finsig_dryos.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                4554 tools/finsig_dryos.c int match_playrec_mode(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4556 tools/finsig_dryos.c     if (((fw->buf[k]    & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4557 tools/finsig_dryos.c         ((fw->buf[k+1]  & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n]
k                4558 tools/finsig_dryos.c         ((fw->buf[k+3]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4559 tools/finsig_dryos.c         ((fw->buf[k+4]  & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n]
k                4560 tools/finsig_dryos.c         ((fw->buf[k+6]  & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4561 tools/finsig_dryos.c         ((fw->buf[k+9]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4562 tools/finsig_dryos.c         ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4563 tools/finsig_dryos.c         ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4564 tools/finsig_dryos.c         ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4565 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+3)) &&
k                4566 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+6)) &&
k                4567 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+9)) &&
k                4568 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+12)) &&
k                4569 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+15)) &&
k                4570 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+18)))
k                4572 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4573 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4574 tools/finsig_dryos.c         print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                4579 tools/finsig_dryos.c int match_some_flag_for_af_scan(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4581 tools/finsig_dryos.c     if (isB(fw,k)   &&  // B loc
k                4582 tools/finsig_dryos.c         isB(fw,k+1) &&  // B loc
k                4583 tools/finsig_dryos.c         isB(fw,k+2) &&  // B loc
k                4584 tools/finsig_dryos.c         isB(fw,k+3) &&  // B loc
k                4585 tools/finsig_dryos.c         isB(fw,k+4) &&  // B loc
k                4586 tools/finsig_dryos.c         isB(fw,k+5) &&  // B loc
k                4587 tools/finsig_dryos.c         isB(fw,k+6) &&  // B loc
k                4588 tools/finsig_dryos.c         isB(fw,k+7) &&  // B loc
k                4589 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) &&
k                4590 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) &&
k                4591 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) &&
k                4592 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) &&
k                4593 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) &&
k                4594 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) &&
k                4595 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) &&
k                4596 tools/finsig_dryos.c         (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)))))    // LDR R0, =base
k                4598 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)));
k                4600 tools/finsig_dryos.c             print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1));
k                4605 tools/finsig_dryos.c int match_palette_data(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4607 tools/finsig_dryos.c     if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4608 tools/finsig_dryos.c         (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) &&
k                4609 tools/finsig_dryos.c         (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000))
k                4611 tools/finsig_dryos.c         return idx2adr(fw,k);
k                4613 tools/finsig_dryos.c     else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4614 tools/finsig_dryos.c              (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) &&
k                4615 tools/finsig_dryos.c              (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000))
k                4617 tools/finsig_dryos.c         return idx2adr(fw,k);
k                4622 tools/finsig_dryos.c int match_palette_buffer_offset(firmware *fw, int k)
k                4624 tools/finsig_dryos.c     int idx2 = idxFollowBranch(fw, k, 0x01000001);
k                4646 tools/finsig_dryos.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, uint32_t v2)
k                4648 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                4650 tools/finsig_dryos.c         int palette_control = LDR2val(fw,k-6);
k                4651 tools/finsig_dryos.c         int ptr_offset = fwOp2(fw,k-5);
k                4652 tools/finsig_dryos.c         uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30);
k                4660 tools/finsig_dryos.c                 print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5));
k                4661 tools/finsig_dryos.c                 if (isBL(fw,k+8))
k                4663 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001);
k                4681 tools/finsig_dryos.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4683 tools/finsig_dryos.c     if (isLDR(fw,k) && (LDR2val(fw,k) == v1))
k                4686 tools/finsig_dryos.c         for (k1=k+1; k1<k+20; k1++)
k                4700 tools/finsig_dryos.c                         for (k=idx; (k<idx+16) && !found; k++)
k                4702 tools/finsig_dryos.c                             if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2))
k                4704 tools/finsig_dryos.c                                 fadr = ADR2adr(fw,k+2);
k                4801 tools/finsig_dryos.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4803 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1))
k                4806 tools/finsig_dryos.c         int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000);
k                4814 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4823 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4832 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4841 tools/finsig_dryos.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4843 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                4851 tools/finsig_dryos.c int match_viewport_address(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4853 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                4856 tools/finsig_dryos.c         if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1))
k                4862 tools/finsig_dryos.c int match_physw_status(firmware *fw, int k, int v)
k                4864 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                4866 tools/finsig_dryos.c         print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k));
k                4872 tools/finsig_dryos.c int match_physw_run(firmware *fw, int k, int v)
k                4874 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                4876 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4877 tools/finsig_dryos.c         uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1);
k                4879 tools/finsig_dryos.c         print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k));
k                4881 tools/finsig_dryos.c         ofst = fw->buf[k+2] & 0x00000FFF;
k                4882 tools/finsig_dryos.c         print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k));
k                4888 tools/finsig_dryos.c int match_canon_menu_active(firmware *fw, int k, int v)
k                4890 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                4892 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4894 tools/finsig_dryos.c         for (k1=k+1; k1<k+5; k1++)
k                4899 tools/finsig_dryos.c                 print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k));
k                4907 tools/finsig_dryos.c int match_zoom_busy(firmware *fw, int k, int v)
k                4909 tools/finsig_dryos.c     if (isBL(fw,k))
k                4911 tools/finsig_dryos.c         int idx1 = idxFollowBranch(fw,k,0x01000001);
k                4956 tools/finsig_dryos.c int match_focus_busy(firmware *fw, int k, int v)
k                4958 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000)   // LDMFD
k                4961 tools/finsig_dryos.c         if (isBL(fw,k-2))
k                4963 tools/finsig_dryos.c             k1 = idxFollowBranch(fw,k-2,0x01000001);
k                4965 tools/finsig_dryos.c         if (isBL(fw,k-1))
k                4967 tools/finsig_dryos.c             k1 = idxFollowBranch(fw,k-1,0x01000001);
k                4984 tools/finsig_dryos.c int match_bitmap_buffer2(firmware *fw, int k, int v)
k                4986 tools/finsig_dryos.c     uint32_t screen_lock = idx2adr(fw,k);
k                5015 tools/finsig_dryos.c int match_bitmap_buffer(firmware *fw, int k, int v)
k                5017 tools/finsig_dryos.c     search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1);
k                5021 tools/finsig_dryos.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, uint32_t v2)
k                5023 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                5024 tools/finsig_dryos.c         ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1)))
k                5026 tools/finsig_dryos.c         uint32_t rb2 = fwval(fw,k+1);
k                5029 tools/finsig_dryos.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                5032 tools/finsig_dryos.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                5036 tools/finsig_dryos.c     else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1))
k                5038 tools/finsig_dryos.c         uint32_t rb2 = fwval(fw,k+3);
k                5041 tools/finsig_dryos.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                5044 tools/finsig_dryos.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                5051 tools/finsig_dryos.c int match_fileiosem(firmware *fw, int k, uint32_t fadr, uint32_t nadr)
k                5053 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                5056 tools/finsig_dryos.c         for (j = k-1; j > k-5; j++)
k                5077 tools/finsig_dryos.c     int k,k1;
k                5102 tools/finsig_dryos.c     k = find_nxt_str_ref(fw, sadr, -1);
k                5104 tools/finsig_dryos.c     while ((k >= 0) && !found)
k                5106 tools/finsig_dryos.c         int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100);
k                5128 tools/finsig_dryos.c         k = find_nxt_str_ref(fw, sadr, k);
k                5142 tools/finsig_dryos.c     k = find_str_ref(fw, "AFFChg");
k                5143 tools/finsig_dryos.c     if ((k >= 0) && isBL(fw,k+6))
k                5145 tools/finsig_dryos.c         k = idxFollowBranch(fw, k+6, 0x01000001);
k                5146 tools/finsig_dryos.c         if (isLDR_PC(fw,k) && isLDR(fw,k+1))
k                5148 tools/finsig_dryos.c             uint32_t base = LDR2val(fw,k);
k                5149 tools/finsig_dryos.c             uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                5150 tools/finsig_dryos.c             print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                5162 tools/finsig_dryos.c     k = find_str_ref(fw, "m_ZoomState            :%d\n");
k                5163 tools/finsig_dryos.c     if (k >= 0)
k                5165 tools/finsig_dryos.c         if (isLDR(fw,k-1))
k                5167 tools/finsig_dryos.c             uint32_t ofst = fw->buf[k-1] & 0x00000FFF;
k                5168 tools/finsig_dryos.c             uint32_t reg = (fw->buf[k-1] & 0x000F0000) >> 16;
k                5170 tools/finsig_dryos.c             for (k1=k-2; k1>k-20; k1--)
k                5175 tools/finsig_dryos.c                     print_stubs_min(fw,"zoom_status",base+ofst,idx2adr(fw,k));
k                5185 tools/finsig_dryos.c         for (k=0; k<fw->size; k++)
k                5187 tools/finsig_dryos.c             if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                5188 tools/finsig_dryos.c                 (fw->buf[k+1] == 0xE5D00000) &&                 // LDRB R0, [R0]
k                5189 tools/finsig_dryos.c                 (fw->buf[k+2] == 0xE1B00000) &&                 // MOVS R0, R0
k                5190 tools/finsig_dryos.c                 (fw->buf[k+3] == 0x13A00001) &&                 // MOVNE R0, #1
k                5191 tools/finsig_dryos.c                 isBX_LR(fw,k+4))                                // BX LR
k                5193 tools/finsig_dryos.c                 uint32_t base = LDR2val(fw,k);
k                5194 tools/finsig_dryos.c                 print_stubs_min(fw,"zoom_status",base,idx2adr(fw,k));
k                5203 tools/finsig_dryos.c         k = find_str_ref(fw, "TerminateDeliverToZoomController");
k                5204 tools/finsig_dryos.c         if (k >= 0)
k                5208 tools/finsig_dryos.c                 if (isLDR_PC(fw,k+k1))
k                5210 tools/finsig_dryos.c                     uint32_t base = LDR2val(fw,k+k1);
k                5211 tools/finsig_dryos.c                     print_stubs_min(fw,"zoom_status",base+0x20,idx2adr(fw,k+k1));
k                5226 tools/finsig_dryos.c         for (k=0; k<fw->size; k++)
k                5228 tools/finsig_dryos.c             if (fw->buf[k] == fw->sv->min_focus_len)
k                5231 tools/finsig_dryos.c                 if ((fw->buf[k+1] == 100) && (fw->buf[k+2] == 0)) mul = 3;
k                5232 tools/finsig_dryos.c                 if ((fw->buf[k+1] == 100) && (fw->buf[k+2] != 0)) mul = 2;
k                5233 tools/finsig_dryos.c                 if ((fw->buf[k+1] ==   0) && (fw->buf[k+2] != 0)) mul = 2;
k                5234 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                5237 tools/finsig_dryos.c                     if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1)))
k                5240 tools/finsig_dryos.c                         pos = k;
k                5241 tools/finsig_dryos.c                         len = ((k1 - k) / mul) + 1;
k                5266 tools/finsig_dryos.c     k = find_str_ref(fw, "ShootCon_NotifyStartReviewHold");
k                5267 tools/finsig_dryos.c     if (k >= 0)
k                5269 tools/finsig_dryos.c         for (k1=k; k1<k+20; k1++)
k                5300 tools/finsig_dryos.c     uint32_t v = find_viewport_address(fw,&k);
k                5301 tools/finsig_dryos.c     if (k >= 0)
k                5307 tools/finsig_dryos.c     k = find_str_ref(fw, "CRAW BUFF       %p");
k                5308 tools/finsig_dryos.c     if (k >= 0)
k                5312 tools/finsig_dryos.c         if (isLDR(fw,k-1))
k                5314 tools/finsig_dryos.c             rb1 = LDR2val(fw,k-1);
k                5315 tools/finsig_dryos.c             rb1_idx = k - 1;
k                5317 tools/finsig_dryos.c         else if (isMOV_immed(fw,k-1))
k                5319 tools/finsig_dryos.c             rb1 = ALUop2(fw,k-1);
k                5320 tools/finsig_dryos.c             rb1_idx = k - 1;
k                5322 tools/finsig_dryos.c         else if (isMOV(fw,k-1) && (fwRd(fw,k-1) == 1))
k                5324 tools/finsig_dryos.c             int reg = fwval(fw,k-1) & 0xF;
k                5325 tools/finsig_dryos.c             for (k1=k-2; k1>k-50; k1--)
k                5343 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, sadr, -1);
k                5344 tools/finsig_dryos.c                 while ((k >= 0) && !found)
k                5346 tools/finsig_dryos.c                     int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100);
k                5397 tools/finsig_dryos.c                     k = find_nxt_str_ref(fw, sadr, k);
k                5408 tools/finsig_dryos.c     k = get_saved_sig(fw, "TakeSemaphoreStrictly");
k                5409 tools/finsig_dryos.c     if (k >= 0)
k                5411 tools/finsig_dryos.c         uint32_t fadr = func_names[k].val;
k                5412 tools/finsig_dryos.c         k = find_str(fw, "FileSem.c");
k                5413 tools/finsig_dryos.c         if (k >= 0)
k                5415 tools/finsig_dryos.c             uint32_t nadr = idx2adr(fw, k);
k                5439 tools/finsig_dryos.c int find_ctypes(firmware *fw, int k)
k                5453 tools/finsig_dryos.c     if (k < (fw->size*4 - sizeof(ctypes)))
k                5455 tools/finsig_dryos.c         if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0)
k                5457 tools/finsig_dryos.c             bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k);
k                5464 tools/finsig_dryos.c int match_nrflag3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                5466 tools/finsig_dryos.c     if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == v1))
k                5471 tools/finsig_dryos.c         for (k3=k; k3>k-30; k3--)
k                5494 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                5499 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                5551 tools/finsig_dryos.c int match_nrflag2(firmware *fw, int k, int v)
k                5554 tools/finsig_dryos.c     if (isBL(fw,k))
k                5556 tools/finsig_dryos.c         k = idxFollowBranch(fw,k,0x01000001);
k                5557 tools/finsig_dryos.c         return search_fw(fw, match_nrflag3, k, 0, 1);
k                6079 tools/finsig_dryos.c     int j, k, n, fnd;
k                6097 tools/finsig_dryos.c             k = find_nxt_str_ref(fw, i, j+1);
k                6098 tools/finsig_dryos.c             if (k != -1)
k                6100 tools/finsig_dryos.c                 if (k-j>5)
k                6103 tools/finsig_dryos.c                     j = k;
k                6295 tools/finsig_dryos.c int match_propsig1a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                6297 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                6300 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                6301 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                6303 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                6306 tools/finsig_dryos.c             int j1 = find_inst_rev(fw, isBL, k-1, 16);
k                6505 tools/finsig_dryos.c     int k, kval = 0;
k                6506 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6508 tools/finsig_dryos.c         if (fw->buf[tidx+k+1] == ev)
k                6510 tools/finsig_dryos.c             kval = fw->buf[tidx+k];
k                6511 tools/finsig_dryos.c             tadr = idx2adr(fw,tidx+k);
k                6533 tools/finsig_dryos.c     int k, kval = 0;
k                6538 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6540 tools/finsig_dryos.c         ev = fw->buf[tidx+k+1];
k                6541 tools/finsig_dryos.c         kval = fw->buf[tidx+k];
k                6542 tools/finsig_dryos.c         tadr = idx2adr(fw,tidx+k);
k                6586 tools/finsig_dryos.c     int r, k, kval = 0;
k                6589 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6591 tools/finsig_dryos.c         if (fw->buf[tidx+k+1] == ev)
k                6593 tools/finsig_dryos.c             kval = fw->buf[tidx+k];
k                6594 tools/finsig_dryos.c             tadr = idx2adr(fw,tidx+k);
k                6672 tools/finsig_dryos.c     int k;
k                6673 tools/finsig_dryos.c     for (k=0; k<kcount; k++)
k                6675 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                6681 tools/finsig_dryos.c int match_GetSDProtect(firmware *fw, int k, int v)
k                6683 tools/finsig_dryos.c     if (isB(fw,k))    // B
k                6685 tools/finsig_dryos.c         k = idxFollowBranch(fw,k,1);
k                6686 tools/finsig_dryos.c         if (isLDR_PC(fw,k))
k                6688 tools/finsig_dryos.c             return LDR2val(fw,k);
k                6697 tools/finsig_dryos.c     int k,k1;
k                6706 tools/finsig_dryos.c         k = find_str_ref(fw,"SD Not Exist\n");
k                6707 tools/finsig_dryos.c         if (k >= 0)
k                6709 tools/finsig_dryos.c             for (k1=k-1; k1>k-5; k1--)
k                6729 tools/finsig_dryos.c         for (k=0; k<(tadr-fw->base)/4; k++)
k                6731 tools/finsig_dryos.c             if (isLDR_PC(fw,k))
k                6733 tools/finsig_dryos.c                 uint32_t adr = LDR2val(fw,k);
k                6744 tools/finsig_dryos.c             for (k=0; k<tlen/3; k+=3)
k                6746 tools/finsig_dryos.c                 if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF))
k                6877 tools/finsig_dryos.c int get_eventproc_val(firmware *fw, int k)
k                6879 tools/finsig_dryos.c     if (isADR_PC(fw,k) && (fwRd(fw,k) == 0))
k                6880 tools/finsig_dryos.c         nadr = ADR2adr(fw,k);
k                6881 tools/finsig_dryos.c     else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1))
k                6882 tools/finsig_dryos.c         eadr = ADR2adr(fw,k);
k                6883 tools/finsig_dryos.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                6884 tools/finsig_dryos.c         nadr = LDR2val(fw,k);
k                6885 tools/finsig_dryos.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1))
k                6886 tools/finsig_dryos.c         eadr = LDR2val(fw,k);
k                6894 tools/finsig_dryos.c     int k;
k                6903 tools/finsig_dryos.c     for (k=0; func_names[k].name != 0; k++)
k                6905 tools/finsig_dryos.c         if (strcmp(func_names[k].name, s) == 0)
k                6907 tools/finsig_dryos.c             if (func_names[k].val == 0)             // same name, no address
k                6909 tools/finsig_dryos.c                 func_names[k].val = eadr;
k                6910 tools/finsig_dryos.c                 func_names[k].flags |= EV_MATCH;
k                6914 tools/finsig_dryos.c             else if (func_names[k].val == eadr)     // same name, same address
k                6942 tools/finsig_dryos.c int match_eventproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                6944 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                6946 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                6951 tools/finsig_dryos.c             k--;
k                6952 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                6954 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                6957 tools/finsig_dryos.c                     k = k1 - 1;
k                6958 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                6961 tools/finsig_dryos.c             k--;
k                6962 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                6964 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                6967 tools/finsig_dryos.c                     k = k1 - 1;
k                6968 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                6980 tools/finsig_dryos.c int match_registerproc2(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                6982 tools/finsig_dryos.c     int j = k;
k                6983 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                6985 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                6990 tools/finsig_dryos.c             k--;
k                6991 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                6993 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                6996 tools/finsig_dryos.c                     k = k1 - 1;
k                6997 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7000 tools/finsig_dryos.c             k--;
k                7001 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                7003 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                7006 tools/finsig_dryos.c                     k = k1 - 1;
k                7007 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7017 tools/finsig_dryos.c                 k = j;
k                7018 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isLDR_PC, k, 8);
k                7024 tools/finsig_dryos.c                         int k3 = k;
k                7025 tools/finsig_dryos.c                         while (k3 > k-4)
k                7049 tools/finsig_dryos.c int match_registerproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7051 tools/finsig_dryos.c     if (isB(fw,k+1) && isMOV_immed(fw,k) && (fwRd(fw,k) == 2))
k                7053 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k+1),1);
k                7056 tools/finsig_dryos.c             search_fw(fw, match_registerproc2, idx2adr(fw,k), 0, 2);
k                7062 tools/finsig_dryos.c int match_registerlists(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7064 tools/finsig_dryos.c     if (isBorBL(fw,k+1) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                7066 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
k                7069 tools/finsig_dryos.c             int j = adr2idx(fw,LDR2val(fw,k));
k                7072 tools/finsig_dryos.c                 j = adr2idx(fw,LDR2val(fw,k) - fw->data_start + fw->data_init_start);
k                7084 tools/finsig_dryos.c     else if (isBorBL(fw,k+1) && isLDMFD(fw,k) && isLDR_PC(fw,k-1) && (fwRd(fw,k-1) == 0))
k                7086 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
k                7089 tools/finsig_dryos.c             int j = adr2idx(fw,LDR2val(fw,k-1));
k                7092 tools/finsig_dryos.c                 j = adr2idx(fw,LDR2val(fw,k-1) - fw->data_start + fw->data_init_start);
k                7156 tools/finsig_dryos.c             int k;
k                7157 tools/finsig_dryos.c             for (k=j; k<j+8; k++)
k                7159 tools/finsig_dryos.c                 if (isBL(fw,k))
k                7161 tools/finsig_dryos.c                     int k1 = adr2idx(fw,followBranch(fw,idx2adr(fw,k),0x01000001));
k                7184 tools/finsig_dryos.c uint32_t findTaskAddress(firmware *fw, int k, int reg)
k                7190 tools/finsig_dryos.c         if (isLDR_PC(fw,k+o) && (fwRd(fw,k+o) == reg))
k                7192 tools/finsig_dryos.c             uint32_t adr = LDR2val(fw,k+o);
k                7196 tools/finsig_dryos.c                 if (fwval(fw,k+i) == (0xE5900000 | (reg << 12) | (reg << 16)))    // LDR Rx,[Rx]
k                7203 tools/finsig_dryos.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == reg))
k                7205 tools/finsig_dryos.c             return(ADR2adr(fw,k+o));
k                7212 tools/finsig_dryos.c int match_createtask(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7215 tools/finsig_dryos.c     k = idxcorr(fw, k);
k                7216 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                7218 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                7221 tools/finsig_dryos.c             fadr = findTaskAddress(fw, k, 3);
k                7224 tools/finsig_dryos.c                 uint32_t sadr = findTaskAddress(fw, k, 0);
k                7241 tools/finsig_dryos.c     int k = get_saved_sig(fw,"CreateTask");
k                7242 tools/finsig_dryos.c     if (k >= 0)
k                7244 tools/finsig_dryos.c         search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7246 tools/finsig_dryos.c     k = get_saved_sig(fw,"CreateTaskStrictly");
k                7247 tools/finsig_dryos.c     if (k >= 0)
k                7249 tools/finsig_dryos.c         search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7253 tools/finsig_dryos.c         k = get_saved_sig(fw,"CreateTaskStrictly_alt"); // r59+
k                7254 tools/finsig_dryos.c         if (k >= 0)
k                7256 tools/finsig_dryos.c             search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7303 tools/finsig_dryos.c int find_ptp_handler_imm(firmware *fw, int k)
k                7313 tools/finsig_dryos.c         if (isLDR_PC(fw,k+o))
k                7315 tools/finsig_dryos.c             if(fwRd(fw,k+o) == 0)
k                7317 tools/finsig_dryos.c                 op = LDR2val(fw,k+o);
k                7319 tools/finsig_dryos.c             else if(fwRd(fw,k+o) == 1){
k                7320 tools/finsig_dryos.c                 handler = LDR2val(fw,k+o);
k                7324 tools/finsig_dryos.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1))
k                7326 tools/finsig_dryos.c             handler=ADR2adr(fw,k+o);
k                7338 tools/finsig_dryos.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7341 tools/finsig_dryos.c     if(fwval(fw,k) == 0x1004
k                7342 tools/finsig_dryos.c         && fwval(fw,k+2) == 0x1005
k                7343 tools/finsig_dryos.c         && fwval(fw,k+4) == 0x1006
k                7344 tools/finsig_dryos.c         && fwval(fw,k+1) > fw->base
k                7345 tools/finsig_dryos.c         && fwval(fw,k+3) > fw->base
k                7346 tools/finsig_dryos.c         && fwval(fw,k+5) > fw->base)
k                7352 tools/finsig_dryos.c             uint32_t op=fwval(fw,k+i*2);
k                7353 tools/finsig_dryos.c             uint32_t handler=fwval(fw,k+i*2+1);
k                7363 tools/finsig_dryos.c     k = idxcorr(fw, k);
k                7364 tools/finsig_dryos.c     if (!isBorBL(fw,k))
k                7368 tools/finsig_dryos.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                7372 tools/finsig_dryos.c         find_ptp_handler_imm(fw,k);
k                7380 tools/finsig_dryos.c     int k = get_saved_sig(fw,"add_ptp_handler");
k                7381 tools/finsig_dryos.c     if (k >= 0)
k                7383 tools/finsig_dryos.c         search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128);
k                7442 tools/finsig_dryos.c         uint32_t k = j + c - fw->firmware_ver_str;
k                7443 tools/finsig_dryos.c         if ( (k>=j) && (k<j+32) )
k                7445 tools/finsig_dryos.c             bprintf("//   %s   // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k);
k                7566 tools/finsig_dryos.c     int k;
k                7571 tools/finsig_dryos.c     for (k=0; k<next_func_entry; k++)
k                7573 tools/finsig_dryos.c         if (strncmp(fns[k]->name,"hook_",5) != 0)
k                7575 tools/finsig_dryos.c             if (fns[k]->val != 0)
k                7577 tools/finsig_dryos.c                 if (fns[k]->flags & BAD_MATCH)
k                7579 tools/finsig_dryos.c                     osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name);
k                7581 tools/finsig_dryos.c                         fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name);
k                7584 tools/finsig_dryos.c                     fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name);
k                7587 tools/finsig_dryos.c             else if (fns[k]->flags & LIST_ALWAYS)
k                7590 tools/finsig_dryos.c                 fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name);
k                7601 tools/finsig_dryos.c     int k;
k                7643 tools/finsig_dryos.c     for (k = 0; k < max_find_func; k++)
k                7646 tools/finsig_dryos.c         curr_name = func_names[k].name;
k                7651 tools/finsig_dryos.c             print_results(&fw,curr_name,k);
k                7676 tools/finsig_dryos.c     for (k=0; k<next_func_entry; k++)
k                7677 tools/finsig_dryos.c         fns[k] = &func_names[k];
k                 681 tools/finsig_thumb2.c     int k;
k                 692 tools/finsig_thumb2.c     for (k=0; sig_names[k].name != 0; k++)
k                 694 tools/finsig_thumb2.c         if (strcmp(sig_names[k].name, s) == 0)
k                 696 tools/finsig_thumb2.c             if (sig_names[k].val == 0)             // same name, no address
k                 698 tools/finsig_thumb2.c                 sig_names[k].val = eadr;
k                 699 tools/finsig_thumb2.c                 sig_names[k].flags |= EV_MATCH;
k                 704 tools/finsig_thumb2.c             else if (sig_names[k].val == eadr)     // same name, same address
k                 712 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                4713 tools/finsig_thumb2.c int find_ctypes(firmware *fw, int k)
k                4728 tools/finsig_thumb2.c     if ((k < (fw->size8 - sizeof(ctypes)) && (k > fw->main_offs)))
k                4730 tools/finsig_thumb2.c         if (memcmp(((char*)fw->buf8)+k,ctypes,sizeof(ctypes)) == 0)
k                4733 tools/finsig_thumb2.c             save_misc_val("ctypes",fw->base + k,0,0); 
k                4736 tools/finsig_thumb2.c             fw->rom_code_search_max_adr = fw->base + k;
k                4783 tools/finsig_thumb2.c         uint32_t k = j + c - fw->firmware_ver_str;
k                4784 tools/finsig_thumb2.c         if ( (k>=j) && (k<j+32) )
k                4786 tools/finsig_thumb2.c             bprintf("//   %s   // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k);
k                5179 tools/finsig_thumb2.c     int k;
k                5180 tools/finsig_thumb2.c     for (k=0; k<kcount; k++)
k                5182 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                5405 tools/finsig_thumb2.c     int k;
k                5410 tools/finsig_thumb2.c     for (k=0; k<next_sig_entry; k++)
k                5412 tools/finsig_thumb2.c         if (strncmp(fns[k]->name,"hook_",5) == 0) {
k                5415 tools/finsig_thumb2.c         if (fns[k]->val != 0)
k                5417 tools/finsig_thumb2.c             if (fns[k]->flags & BAD_MATCH)
k                5419 tools/finsig_thumb2.c                 osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name);
k                5421 tools/finsig_thumb2.c                     fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name);
k                5424 tools/finsig_thumb2.c                 fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name);
k                5427 tools/finsig_thumb2.c         else if (fns[k]->flags & LIST_ALWAYS)
k                5430 tools/finsig_thumb2.c             fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name);
k                5439 tools/finsig_thumb2.c     int k;
k                5440 tools/finsig_thumb2.c     for (k=0; k<next_sig_entry; k++)
k                5441 tools/finsig_thumb2.c         fns[k] = &sig_names[k];
k                5518 tools/finsig_thumb2.c     int k,k1;
k                5526 tools/finsig_thumb2.c         for (k=0; k<fw->size32; k++)
k                5528 tools/finsig_thumb2.c             if (fw->buf32[k] == fw->sv->min_focus_len)
k                5531 tools/finsig_thumb2.c                 if ((fw->buf32[k+1] == 100) && (fw->buf32[k+2] == 0)) mul = 3;
k                5532 tools/finsig_thumb2.c                 if ((fw->buf32[k+1] == 100) && (fw->buf32[k+2] != 0)) mul = 2;
k                5533 tools/finsig_thumb2.c                 if ((fw->buf32[k+1] ==   0) && (fw->buf32[k+2] != 0)) mul = 2;
k                5534 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                5537 tools/finsig_thumb2.c                     if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1)))
k                5540 tools/finsig_thumb2.c                         pos = k;
k                5541 tools/finsig_thumb2.c                         len = ((k1 - k) / mul) + 1;
k                5664 tools/finsig_thumb2.c     int k;
k                5676 tools/finsig_thumb2.c     for (k = 0; k < max_find_func; k++)
k                5678 tools/finsig_thumb2.c         print_results(fw,&sig_names[k]);
k                 591 tools/finsig_vxworks.c     int k = get_saved_sig(fw, sig);
k                 592 tools/finsig_vxworks.c     if (k >= 0)
k                 594 tools/finsig_vxworks.c         int idx = adr2idx(fw, func_names[k].val);
k                 595 tools/finsig_vxworks.c         for (k=idx+ofst; k<idx+ofst+len; k++)
k                 597 tools/finsig_vxworks.c             int rv = func(fw, k, v);
k                 629 tools/finsig_vxworks.c int match_apex2us(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 631 tools/finsig_vxworks.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 633 tools/finsig_vxworks.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 634 tools/finsig_vxworks.c         if (k != 0)
k                 636 tools/finsig_vxworks.c             if (fwval(fw,k-2) == 0xE3700D09)    // CMN R0, #0x240
k                 637 tools/finsig_vxworks.c                 k -= 2;
k                 638 tools/finsig_vxworks.c             uint32_t fadr = idx2adr(fw,k);
k                 656 tools/finsig_vxworks.c int find_mkdir(firmware *fw, string_sig *sig, int k)
k                 658 tools/finsig_vxworks.c     if (fwval(fw,k) == 0x12CEA600)
k                 660 tools/finsig_vxworks.c         k = find_inst_rev(fw, isSTMFD_LR, k-20, 200);
k                 661 tools/finsig_vxworks.c         if (k != 0)
k                 663 tools/finsig_vxworks.c             if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) ||
k                 664 tools/finsig_vxworks.c                 (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020)))
k                 667 tools/finsig_vxworks.c                 if (isBL(fw,k+47))
k                 669 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001);
k                 671 tools/finsig_vxworks.c                 else if (isBL(fw,k+48))
k                 673 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001);
k                 761 tools/finsig_vxworks.c         int k = find_inst_rev(fw, isSTMFD_LR, j-1, 100);
k                 762 tools/finsig_vxworks.c         uint32_t fadr = idx2adr(fw,k);
k                 776 tools/finsig_vxworks.c         int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100);
k                 777 tools/finsig_vxworks.c         if (isB(fw,k-1) && isBL(fw,k-2))
k                 779 tools/finsig_vxworks.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001);
k                 789 tools/finsig_vxworks.c int find_add_ptp_handler(firmware *fw, string_sig *sig, int k)
k                 795 tools/finsig_vxworks.c     while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i]))
k                 797 tools/finsig_vxworks.c         k = find_inst(fw, isBL, k+1, 5);
k                 798 tools/finsig_vxworks.c         if (k == 0) return 0;
k                 800 tools/finsig_vxworks.c             fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 801 tools/finsig_vxworks.c         k = find_inst(fw, isLDR_PC, k+1, 5);
k                 802 tools/finsig_vxworks.c         if (k == 0) return 0;
k                 818 tools/finsig_vxworks.c     int j, k;
k                 826 tools/finsig_vxworks.c             k = find_inst(fw, isBL, j+1, 4);
k                 827 tools/finsig_vxworks.c             if (k >= 0)
k                 829 tools/finsig_vxworks.c                 uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 832 tools/finsig_vxworks.c                     k = find_inst(fw, isB, k+1, 10);
k                 833 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw, k), 1);
k                 847 tools/finsig_vxworks.c     int k = find_str_ref(fw,"ExportToEventProcedure");
k                 849 tools/finsig_vxworks.c     if (k >= 0)
k                 851 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k+1) == 1))
k                 853 tools/finsig_vxworks.c             uint32_t fadr = LDR2val(fw,k+1);
k                 865 tools/finsig_vxworks.c     int k = find_str_ref(fw,"CreateProxyOfEventProcedure");
k                 867 tools/finsig_vxworks.c     if (k >= 0)
k                 869 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k) == 0))
k                 872 tools/finsig_vxworks.c             if (isBorBL(fw,k+2))
k                 873 tools/finsig_vxworks.c                 fadr = followBranch(fw,idx2adr(fw,k+2),0x01000001);
k                 875 tools/finsig_vxworks.c                 fadr = followBranch(fw,idx2adr(fw,k+3),0x01000001);
k                 887 tools/finsig_vxworks.c     int j1, j2, k, found, n;
k                 897 tools/finsig_vxworks.c         for (k=j1-1; k>j1-256; k--)
k                 899 tools/finsig_vxworks.c             if (isBL(fw,k))
k                 901 tools/finsig_vxworks.c                 if (j2 == idxFollowBranch(fw,k,0x01000001))
k                 913 tools/finsig_vxworks.c             k = find_inst_rev(fw,isSTMFD_LR,k,60);
k                 915 tools/finsig_vxworks.c             j2 = find_inst(fw,isLDMFD_PC,k+1,128);
k                 916 tools/finsig_vxworks.c             if ( (k<0) || (j2<0) )
k                 920 tools/finsig_vxworks.c             k++;
k                 924 tools/finsig_vxworks.c                 k = find_inst(fw,isBL,k,32);
k                 926 tools/finsig_vxworks.c                 if ( (k>j2) || (k<0) )
k                 928 tools/finsig_vxworks.c                 j1 = idxFollowBranch(fw,k,0x01000001);
k                 937 tools/finsig_vxworks.c                 k++;
k                1107 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"ExMem.FreeCacheable_FW"); // newer cam, a wrapped version of exmem_free is already located
k                1108 tools/finsig_vxworks.c     if (k >= 0)
k                1110 tools/finsig_vxworks.c     k = get_saved_sig(fw,"memset_FW");
k                1111 tools/finsig_vxworks.c     if (k < 0)
k                1113 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                1126 tools/finsig_vxworks.c             if (idx2adr(fw,idxFollowBranch(fw,n,0x01000001)) == idx2adr(fw,k))
k                1144 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"ExMem.AllocCacheable_FW"); // newer cam, a wrapped version of exmem_alloc is already located
k                1145 tools/finsig_vxworks.c     if (k >= 0)
k                1147 tools/finsig_vxworks.c     k = get_saved_sig(fw,"DebugAssert"); // 
k                1148 tools/finsig_vxworks.c     if (k < 0)
k                1150 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                1159 tools/finsig_vxworks.c         if (idx2adr(fw,m) != idx2adr(fw,k))
k                1198 tools/finsig_vxworks.c                         int k;
k                1199 tools/finsig_vxworks.c                         k = idxFollowBranch(fw,n,0x01000001);
k                1200 tools/finsig_vxworks.c                         if ( idx2adr(fw, k) == idx2adr(fw, j) )
k                1203 tools/finsig_vxworks.c                             k = find_inst(fw, isBL, s1+2, 6);
k                1204 tools/finsig_vxworks.c                             if (k != -1)
k                1206 tools/finsig_vxworks.c                                 int l = idxFollowBranch(fw,k,0x01000001);
k                1209 tools/finsig_vxworks.c                                     k = find_inst(fw, isBL, k+1, 6);
k                1210 tools/finsig_vxworks.c                                     if (k == -1)
k                1212 tools/finsig_vxworks.c                                     l = idxFollowBranch(fw,k,0x01000001);
k                1220 tools/finsig_vxworks.c                                     k = idxFollowBranch(fw,l+1,0x01000001);
k                1221 tools/finsig_vxworks.c                                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1843 tools/finsig_vxworks.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1845 tools/finsig_vxworks.c     if (fwval(fw,k) == sadr)                // pointer to string?
k                1847 tools/finsig_vxworks.c         uint32_t fadr = fwval(fw,k+1);      // function address
k                1884 tools/finsig_vxworks.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1886 tools/finsig_vxworks.c     if (isADR_PC(fw,k+1) &&    // ADR ?
k                1887 tools/finsig_vxworks.c         isBorBL(fw,k+2))       // B or BL ?
k                1889 tools/finsig_vxworks.c         uint32_t padr = ADR2adr(fw,k+1);    // get address pointed to by 2nd ADR instructioin
k                1892 tools/finsig_vxworks.c             int j2 = k;
k                1894 tools/finsig_vxworks.c             if (isADR_PC(fw,k))             // ADR ?
k                1899 tools/finsig_vxworks.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                1906 tools/finsig_vxworks.c                         if (adr2idx(fw,fa) == k+1)
k                1937 tools/finsig_vxworks.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1939 tools/finsig_vxworks.c     if (isSTMFD(fw,k) &&        // STMFD
k                1940 tools/finsig_vxworks.c         isADR_PC(fw,k+offset))  // ADR ?
k                1942 tools/finsig_vxworks.c         uint32_t padr = ADR2adr(fw,k+offset);
k                1945 tools/finsig_vxworks.c             uint32_t fadr = idx2adr(fw,k);
k                1973 tools/finsig_vxworks.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1975 tools/finsig_vxworks.c     if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) &&   // LDR or ADR ?
k                1976 tools/finsig_vxworks.c         isBorBL(fw,k+2))                            // B or BL ?
k                1979 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1))                       // LDR ?
k                1980 tools/finsig_vxworks.c             padr = LDR2val(fw,k+1);
k                1982 tools/finsig_vxworks.c             padr = ADR2adr(fw,k+1);
k                1985 tools/finsig_vxworks.c             int j2 = k;
k                1987 tools/finsig_vxworks.c             if (isLDR_PC(fw,k))                     // LDR ?
k                1991 tools/finsig_vxworks.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                1996 tools/finsig_vxworks.c                         if (idxFollowBranch(fw,j2+1,1) == k+1)
k                2049 tools/finsig_vxworks.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2051 tools/finsig_vxworks.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                2054 tools/finsig_vxworks.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2055 tools/finsig_vxworks.c             padr = LDR2val(fw,k);
k                2057 tools/finsig_vxworks.c             padr = ADR2adr(fw,k);
k                2060 tools/finsig_vxworks.c             int j2 = find_inst(fw, isBL, k+1, 10);
k                2281 tools/finsig_vxworks.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2283 tools/finsig_vxworks.c     if (fwval(fw,k) == sadr)    // string ptr
k                2285 tools/finsig_vxworks.c         uint32_t padr = idx2adr(fw,k);      // string ptr address
k                2287 tools/finsig_vxworks.c         for (j2 = k-1; j2 >= 0; j2--)
k                2320 tools/finsig_vxworks.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2322 tools/finsig_vxworks.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                2325 tools/finsig_vxworks.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2326 tools/finsig_vxworks.c             padr = LDR2val(fw,k);
k                2328 tools/finsig_vxworks.c             padr = ADR2adr(fw,k);
k                2331 tools/finsig_vxworks.c             int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst);
k                2361 tools/finsig_vxworks.c             int k = adr2idx(fw,LDR2adr(fw,j));
k                2362 tools/finsig_vxworks.c             if (idx_valid(fw,k))
k                2363 tools/finsig_vxworks.c                 padr = fwval(fw,k);
k                2393 tools/finsig_vxworks.c             int k = 0;
k                2396 tools/finsig_vxworks.c                 k = adr2idx(fw,LDR2val(fw,idx-3));
k                2400 tools/finsig_vxworks.c                 k = adr2idx(fw,ADR2adr(fw,idx-2));
k                2402 tools/finsig_vxworks.c             if (k != 0)
k                2406 tools/finsig_vxworks.c                     fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                2409 tools/finsig_vxworks.c                     k = find_inst(fw, isLDMFD, k+1, 60);
k                2410 tools/finsig_vxworks.c                     fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001);
k                2447 tools/finsig_vxworks.c             int k = 0;
k                2450 tools/finsig_vxworks.c                 case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                2451 tools/finsig_vxworks.c                 case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                2453 tools/finsig_vxworks.c             if (k)
k                2886 tools/finsig_vxworks.c void print_results(firmware *fw, const char *curr_name, int k)
k                2892 tools/finsig_vxworks.c     if (func_names[k].flags & DONT_EXPORT) return;
k                2904 tools/finsig_vxworks.c         func_names[k].flags |= BAD_MATCH;
k                2908 tools/finsig_vxworks.c         if (func_names[k].flags & UNUSED) return;
k                2920 tools/finsig_vxworks.c         if (func_names[k].flags & OPTIONAL) return;
k                2927 tools/finsig_vxworks.c         if (ostub2 || (func_names[k].flags & UNUSED))
k                2992 tools/finsig_vxworks.c void output_modemap(firmware *fw, int k, int l)
k                2996 tools/finsig_vxworks.c     bprintf("%08x\n",idx2adr(fw,k));
k                2998 tools/finsig_vxworks.c     if (fw->buf[k] & 0xffff0000)
k                3001 tools/finsig_vxworks.c         uint16_t *p = (uint16_t*)(&fw->buf[k]);
k                3002 tools/finsig_vxworks.c         k = 0;
k                3003 tools/finsig_vxworks.c         while ((*p != 0xFFFF) && (k < l*2))
k                3020 tools/finsig_vxworks.c             k++;
k                3026 tools/finsig_vxworks.c         uint32_t *p = (uint32_t*)(&fw->buf[k]);
k                3027 tools/finsig_vxworks.c         k = 0;
k                3028 tools/finsig_vxworks.c         while (k < l)
k                3064 tools/finsig_vxworks.c             k++;
k                3133 tools/finsig_vxworks.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3135 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                3137 tools/finsig_vxworks.c         FlashParamsTable_address = idx2adr(fw,k);
k                3143 tools/finsig_vxworks.c int match_FlashParamsTable(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3145 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                3147 tools/finsig_vxworks.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3151 tools/finsig_vxworks.c     if ((fw->buf[k+1] > fw->base) && (fw->buf[k] == 0x00000000) && (fw->buf[k+2] == 0x00000001) &&
k                3152 tools/finsig_vxworks.c         (fw->buf[k+3] == 0x00000000) && (fw->buf[k+4] == 0xffffffff))
k                3154 tools/finsig_vxworks.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3205 tools/finsig_vxworks.c     int k = isLDR_PC(fw, s1);
k                3206 tools/finsig_vxworks.c     if (!k)
k                3208 tools/finsig_vxworks.c     k = fwRd(fw, s1);
k                3209 tools/finsig_vxworks.c     if (k > 0)
k                3231 tools/finsig_vxworks.c     int k,k1;
k                3383 tools/finsig_vxworks.c         for (k=k1; k<k1+20; k++)
k                3385 tools/finsig_vxworks.c             uint32_t fadr = fwval(fw,k);
k                3396 tools/finsig_vxworks.c                         bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr);
k                3411 tools/finsig_vxworks.c     int k, k1;
k                3414 tools/finsig_vxworks.c     k = find_str_ref(fw, "VRAM Address  : %p\r");
k                3415 tools/finsig_vxworks.c     if (k >= 0)
k                3417 tools/finsig_vxworks.c         for (k1=k-1; k1>k-8; k1--)
k                3434 tools/finsig_vxworks.c int match_vid_get_bitmap_fb(firmware *fw, int k, int v)
k                3436 tools/finsig_vxworks.c     if (isBL(fw,k-1) && // BL
k                3437 tools/finsig_vxworks.c         isLDR_PC(fw,k))
k                3439 tools/finsig_vxworks.c         uint32_t v1 = LDR2val(fw,k);
k                3440 tools/finsig_vxworks.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                3444 tools/finsig_vxworks.c     if (isBL(fw,k-1) && // BL
k                3445 tools/finsig_vxworks.c         (isLDR_PC(fw,k+1)))
k                3447 tools/finsig_vxworks.c         uint32_t v1 = LDR2val(fw,k+1);
k                3448 tools/finsig_vxworks.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                3455 tools/finsig_vxworks.c int match_get_flash_params_count(firmware *fw, int k, int v)
k                3457 tools/finsig_vxworks.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901)    // BIC Rn, Rn, #0x4000
k                3459 tools/finsig_vxworks.c         uint32_t r = (fw->buf[k] & 0x0000F000)<<4;       // Register
k                3461 tools/finsig_vxworks.c         for (n=k+1; n<k+20; n++)
k                3476 tools/finsig_vxworks.c int match_uiprop_count(firmware *fw, int k, int v)
k                3480 tools/finsig_vxworks.c     if (isB(fw, k+6))
k                3482 tools/finsig_vxworks.c         j = idxFollowBranch(fw,k+6,0x01000001);
k                3532 tools/finsig_vxworks.c int match_imager_active(firmware *fw, int k, int v)
k                3538 tools/finsig_vxworks.c     if (fwval(fw,k) == 0xe49df004) // POP {PC}
k                3540 tools/finsig_vxworks.c         int k1 = find_inst_rev(fw, isBL, k-1, 10);
k                3799 tools/finsig_vxworks.c int match_levent_table(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3801 tools/finsig_vxworks.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002))
k                3803 tools/finsig_vxworks.c         print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k));
k                3805 tools/finsig_vxworks.c         uint32_t levent_tbl = idx2adr(fw,k);
k                3813 tools/finsig_vxworks.c int match_movie_status(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3815 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                              // LDR R0, =base
k                3816 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) &&  // ADR R1, =sub
k                3817 tools/finsig_vxworks.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                3818 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                3819 tools/finsig_vxworks.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                3820 tools/finsig_vxworks.c         (LDR2val(fw,k) < fw->base))
k                3822 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3823 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                3824 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3828 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                              // LDR R1, =sub
k                3829 tools/finsig_vxworks.c         isLDR_PC(fw, k+1) &&                            // LDR R0, =base
k                3830 tools/finsig_vxworks.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                3831 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                3832 tools/finsig_vxworks.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                3833 tools/finsig_vxworks.c         (LDR2val(fw,k+1) < fw->base))
k                3835 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k+1);
k                3836 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                3837 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3841 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                                      // LDR Rx, =base
k                3842 tools/finsig_vxworks.c         isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) &&       // LDR R0, [Rx, ...]
k                3843 tools/finsig_vxworks.c         isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) &&     // CMP R0, #...
k                3844 tools/finsig_vxworks.c         (fwval(fw,k+3) == 0x03A00005) &&
k                3845 tools/finsig_vxworks.c         isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) &&  // STRxx R0, [Rx,ofst]
k                3846 tools/finsig_vxworks.c         (LDR2val(fw,k) < fw->base))
k                3848 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3849 tools/finsig_vxworks.c         uint32_t ofst = fwOp2(fw,k+4);
k                3850 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3856 tools/finsig_vxworks.c int match_full_screen_refresh(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3858 tools/finsig_vxworks.c     if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                3859 tools/finsig_vxworks.c         (fw->buf[k+1] == 0xE5D01000) &&                 // LDRB R1, [R0]
k                3860 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE3811002) &&                 // ORR R1, R1, #2
k                3861 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE5C01000) &&                 // STRB R1, [R0]
k                3862 tools/finsig_vxworks.c         isBX_LR(fw,k+4))                                // BX LR
k                3864 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3865 tools/finsig_vxworks.c         print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k));
k                3870 tools/finsig_vxworks.c int match_canon_shoot_menu_active(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3872 tools/finsig_vxworks.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F1000) &&  // LDR R1, =base
k                3873 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) &&  // LDRB R0, [R1, #n]
k                3874 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE2800001) &&                 // ADD R0, R0, #1
k                3875 tools/finsig_vxworks.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) &&  // STRB R0, [R1, #n]
k                3876 tools/finsig_vxworks.c         (isB(fw,k+4)))                                  // B
k                3878 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3879 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                3880 tools/finsig_vxworks.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                3883 tools/finsig_vxworks.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F0000) &&  // LDR R0, =base
k                3884 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) &&  // LDRB R1, [R0, #n]
k                3885 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE2811001) &&                 // ADD R1, R1, #1
k                3886 tools/finsig_vxworks.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) &&  // STRB R1, [R0, #n]
k                3887 tools/finsig_vxworks.c         (isB(fw,k+4)))                                  // B
k                3889 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3890 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                3891 tools/finsig_vxworks.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                3896 tools/finsig_vxworks.c int match_playrec_mode(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3898 tools/finsig_vxworks.c     if (((fw->buf[k]    & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                3899 tools/finsig_vxworks.c         ((fw->buf[k+1]  & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n]
k                3900 tools/finsig_vxworks.c         ((fw->buf[k+3]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                3901 tools/finsig_vxworks.c         ((fw->buf[k+4]  & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n]
k                3902 tools/finsig_vxworks.c         ((fw->buf[k+6]  & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                3903 tools/finsig_vxworks.c         ((fw->buf[k+9]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                3904 tools/finsig_vxworks.c         ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                3905 tools/finsig_vxworks.c         ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                3906 tools/finsig_vxworks.c         ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                3907 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+3)) &&
k                3908 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+6)) &&
k                3909 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+9)) &&
k                3910 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+12)) &&
k                3911 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+15)) &&
k                3912 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+18)))
k                3914 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3915 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                3916 tools/finsig_vxworks.c         print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                3921 tools/finsig_vxworks.c int match_some_flag_for_af_scan(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3923 tools/finsig_vxworks.c     if (isB(fw,k)   &&  // B loc
k                3924 tools/finsig_vxworks.c         isB(fw,k+1) &&  // B loc
k                3925 tools/finsig_vxworks.c         isB(fw,k+2) &&  // B loc
k                3926 tools/finsig_vxworks.c         isB(fw,k+3) &&  // B loc
k                3927 tools/finsig_vxworks.c         isB(fw,k+4) &&  // B loc
k                3928 tools/finsig_vxworks.c         isB(fw,k+5) &&  // B loc
k                3929 tools/finsig_vxworks.c         isB(fw,k+6) &&  // B loc
k                3930 tools/finsig_vxworks.c         isB(fw,k+7) &&  // B loc
k                3931 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) &&
k                3932 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) &&
k                3933 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) &&
k                3934 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) &&
k                3935 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) &&
k                3936 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) &&
k                3937 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) &&
k                3938 tools/finsig_vxworks.c         (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)))))    // LDR R0, =base
k                3940 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)));
k                3942 tools/finsig_vxworks.c             print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1));
k                3947 tools/finsig_vxworks.c int match_palette_data(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3949 tools/finsig_vxworks.c     if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                3950 tools/finsig_vxworks.c         (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) &&
k                3951 tools/finsig_vxworks.c         (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000))
k                3953 tools/finsig_vxworks.c         return idx2adr(fw,k);
k                3955 tools/finsig_vxworks.c     else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                3956 tools/finsig_vxworks.c              (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) &&
k                3957 tools/finsig_vxworks.c              (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000))
k                3959 tools/finsig_vxworks.c         return idx2adr(fw,k);
k                3964 tools/finsig_vxworks.c int match_palette_buffer_offset(firmware *fw, int k)
k                3966 tools/finsig_vxworks.c     int idx2 = idxFollowBranch(fw, k, 0x01000001);
k                3988 tools/finsig_vxworks.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, uint32_t v2)
k                3990 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                3992 tools/finsig_vxworks.c         int palette_control = LDR2val(fw,k-6);
k                3993 tools/finsig_vxworks.c         int ptr_offset = fwOp2(fw,k-5);
k                3994 tools/finsig_vxworks.c         uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30);
k                4002 tools/finsig_vxworks.c                 print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5));
k                4003 tools/finsig_vxworks.c                 if (isBL(fw,k+8))
k                4005 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001);
k                4023 tools/finsig_vxworks.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4025 tools/finsig_vxworks.c     if (isLDR(fw,k) && (LDR2val(fw,k) == v1))
k                4028 tools/finsig_vxworks.c         for (k1=k+1; k1<k+20; k1++)
k                4042 tools/finsig_vxworks.c                         for (k=idx; (k<idx+16) && !found; k++)
k                4044 tools/finsig_vxworks.c                             if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2))
k                4046 tools/finsig_vxworks.c                                 fadr = ADR2adr(fw,k+2);
k                4143 tools/finsig_vxworks.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4145 tools/finsig_vxworks.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1))
k                4148 tools/finsig_vxworks.c         int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000);
k                4156 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4165 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4174 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4183 tools/finsig_vxworks.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4185 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                4193 tools/finsig_vxworks.c int match_viewport_address(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4195 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                4198 tools/finsig_vxworks.c         if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1))
k                4204 tools/finsig_vxworks.c int match_physw_status(firmware *fw, int k, int v)
k                4206 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4208 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k));
k                4214 tools/finsig_vxworks.c int match_physw_run(firmware *fw, int k, int v)
k                4216 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4218 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                4219 tools/finsig_vxworks.c         uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1);
k                4221 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k));
k                4223 tools/finsig_vxworks.c         ofst = fw->buf[k+2] & 0x00000FFF;
k                4224 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k));
k                4230 tools/finsig_vxworks.c int match_canon_menu_active(firmware *fw, int k, int v)
k                4232 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4234 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                4236 tools/finsig_vxworks.c         for (k1=k+1; k1<k+5; k1++)
k                4241 tools/finsig_vxworks.c                 print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k));
k                4249 tools/finsig_vxworks.c int match_zoom_busy(firmware *fw, int k, int v)
k                4251 tools/finsig_vxworks.c     if (isBL(fw,k))
k                4253 tools/finsig_vxworks.c         int idx1 = idxFollowBranch(fw,k,0x01000001);
k                4298 tools/finsig_vxworks.c int match_focus_busy(firmware *fw, int k, int v)
k                4300 tools/finsig_vxworks.c     if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000)   // LDMFD
k                4303 tools/finsig_vxworks.c         if (isBL(fw,k-2))
k                4305 tools/finsig_vxworks.c             k1 = idxFollowBranch(fw,k-2,0x01000001);
k                4307 tools/finsig_vxworks.c         if (isBL(fw,k-1))
k                4309 tools/finsig_vxworks.c             k1 = idxFollowBranch(fw,k-1,0x01000001);
k                4326 tools/finsig_vxworks.c int match_bitmap_buffer2(firmware *fw, int k, int v)
k                4328 tools/finsig_vxworks.c     uint32_t screen_lock = idx2adr(fw,k);
k                4357 tools/finsig_vxworks.c int match_bitmap_buffer(firmware *fw, int k, int v)
k                4359 tools/finsig_vxworks.c     search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1);
k                4363 tools/finsig_vxworks.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, uint32_t v2)
k                4365 tools/finsig_vxworks.c     if (((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k-2) != 1)) ||
k                4366 tools/finsig_vxworks.c         ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1)))
k                4368 tools/finsig_vxworks.c         uint32_t rb2 = fwval(fw,k+1);
k                4371 tools/finsig_vxworks.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                4374 tools/finsig_vxworks.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                4378 tools/finsig_vxworks.c     else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1))
k                4380 tools/finsig_vxworks.c         uint32_t rb2 = fwval(fw,k+3);
k                4383 tools/finsig_vxworks.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                4386 tools/finsig_vxworks.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                4398 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"DoMovieFrameCapture");
k                4400 tools/finsig_vxworks.c     if (k < 0 || ka < 0)
k                4402 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                4404 tools/finsig_vxworks.c     if (k && ka)
k                4406 tools/finsig_vxworks.c         int k2 = find_inst(fw,isBL,k,14);
k                4409 tools/finsig_vxworks.c         int k1 = k;
k                4441 tools/finsig_vxworks.c         k = get_saved_sig(fw,"WBInteg.DoCaptMovieFrame_FW");
k                4442 tools/finsig_vxworks.c         if (k < 0)
k                4444 tools/finsig_vxworks.c         k = adr2idx(fw, func_names[k].val);
k                4445 tools/finsig_vxworks.c         ka = find_inst(fw,isLDR_PC,k,6);
k                4813 tools/finsig_vxworks.c int find_ctypes(firmware *fw, int k)
k                4827 tools/finsig_vxworks.c     if (k < (fw->size*4 - sizeof(ctypes)))
k                4829 tools/finsig_vxworks.c         if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0)
k                4831 tools/finsig_vxworks.c             bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k);
k                4838 tools/finsig_vxworks.c int match_nrflag3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4840 tools/finsig_vxworks.c     if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == v1))
k                4845 tools/finsig_vxworks.c         for (k3=k; k3>k-30; k3--)
k                4870 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                4875 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                4927 tools/finsig_vxworks.c int match_nrflag2(firmware *fw, int k, int v)
k                4930 tools/finsig_vxworks.c     if (isBL(fw,k))
k                4932 tools/finsig_vxworks.c         k = idxFollowBranch(fw,k,0x01000001);
k                4933 tools/finsig_vxworks.c         return search_fw(fw, match_nrflag3, k, 0, 1);
k                5049 tools/finsig_vxworks.c     int k, kval = 0;
k                5050 tools/finsig_vxworks.c     for (k=0; k<tlen; k+=tsiz)
k                5052 tools/finsig_vxworks.c         if (fw->buf[tidx+k+1] == ev)
k                5054 tools/finsig_vxworks.c             kval = fw->buf[tidx+k];
k                5055 tools/finsig_vxworks.c             tadr = idx2adr(fw,tidx+k);
k                5103 tools/finsig_vxworks.c     int r, k, kval = 0;
k                5106 tools/finsig_vxworks.c     for (k=0; k<tlen; k+=tsiz)
k                5108 tools/finsig_vxworks.c         if (fw->buf[tidx+k+1] == ev)
k                5110 tools/finsig_vxworks.c             kval = fw->buf[tidx+k];
k                5111 tools/finsig_vxworks.c             tadr = idx2adr(fw,tidx+k);
k                5189 tools/finsig_vxworks.c     int k;
k                5190 tools/finsig_vxworks.c     for (k=0; k<kcount; k++)
k                5192 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                5198 tools/finsig_vxworks.c int match_GetSDProtect(firmware *fw, int k, int v)
k                5200 tools/finsig_vxworks.c     if (isB(fw,k))    // B
k                5202 tools/finsig_vxworks.c         k = idxFollowBranch(fw,k,1);
k                5203 tools/finsig_vxworks.c         if (isLDR_PC(fw,k))
k                5205 tools/finsig_vxworks.c             return LDR2val(fw,k);
k                5214 tools/finsig_vxworks.c     int k,k1;
k                5223 tools/finsig_vxworks.c         k = find_str_ref(fw,"SD Not Exist\n");
k                5224 tools/finsig_vxworks.c         if (k >= 0)
k                5226 tools/finsig_vxworks.c             for (k1=k-1; k1>k-5; k1--)
k                5246 tools/finsig_vxworks.c         for (k=0; k<(tadr-fw->base)/4; k++)
k                5248 tools/finsig_vxworks.c             if (isLDR_PC(fw,k))
k                5250 tools/finsig_vxworks.c                 uint32_t adr = LDR2val(fw,k);
k                5261 tools/finsig_vxworks.c             for (k=0; k<tlen/3; k+=3)
k                5263 tools/finsig_vxworks.c                 if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF))
k                5328 tools/finsig_vxworks.c int get_eventproc_val(firmware *fw, int k)
k                5330 tools/finsig_vxworks.c     if (isADR_PC(fw,k) && (fwRd(fw,k) == 0))
k                5331 tools/finsig_vxworks.c         nadr = ADR2adr(fw,k);
k                5332 tools/finsig_vxworks.c     else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1))
k                5333 tools/finsig_vxworks.c         eadr = ADR2adr(fw,k);
k                5334 tools/finsig_vxworks.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                5335 tools/finsig_vxworks.c         nadr = LDR2val(fw,k);
k                5336 tools/finsig_vxworks.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1))
k                5337 tools/finsig_vxworks.c         eadr = LDR2val(fw,k);
k                5345 tools/finsig_vxworks.c     int k;
k                5354 tools/finsig_vxworks.c     for (k=0; func_names[k].name != 0; k++)
k                5355 tools/finsig_vxworks.c         if (strcmp(func_names[k].name, s) == 0)
k                5357 tools/finsig_vxworks.c             if (func_names[k].val == 0)
k                5359 tools/finsig_vxworks.c                 func_names[k].val = eadr;
k                5360 tools/finsig_vxworks.c                 func_names[k].flags |= EV_MATCH;
k                5389 tools/finsig_vxworks.c int match_eventproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5391 tools/finsig_vxworks.c     int j = k;
k                5392 tools/finsig_vxworks.c     if (isBorBL(fw,k))
k                5394 tools/finsig_vxworks.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                5399 tools/finsig_vxworks.c             k--;
k                5400 tools/finsig_vxworks.c             get_eventproc_val(fw, k);
k                5401 tools/finsig_vxworks.c             k--;
k                5402 tools/finsig_vxworks.c             get_eventproc_val(fw, k);
k                5405 tools/finsig_vxworks.c                 k--;
k                5406 tools/finsig_vxworks.c                 get_eventproc_val(fw, k);
k                5410 tools/finsig_vxworks.c                 k--;
k                5411 tools/finsig_vxworks.c                 get_eventproc_val(fw, k);
k                5420 tools/finsig_vxworks.c                 k = j;
k                5425 tools/finsig_vxworks.c                     int k1 = find_Nth_inst_rev(fw, isLDR_PC, k, 15, c);
k                5431 tools/finsig_vxworks.c                             int k3 = k;
k                5433 tools/finsig_vxworks.c                             while (k3 > k-4)
k                5445 tools/finsig_vxworks.c                             if ((fwval(fw,k-1) & 0xfff00000) == 0xe2800000) // add
k                5473 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                5474 tools/finsig_vxworks.c              (fwval(fw,k+2) == 0xE1A0E00F) && (fwval(fw,k+3) == 0xE1A0F004))
k                5476 tools/finsig_vxworks.c         nadr = LDR2val(fw,k);
k                5477 tools/finsig_vxworks.c         eadr = LDR2val(fw,k+1);
k                5483 tools/finsig_vxworks.c int match_registerlists(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5485 tools/finsig_vxworks.c     if (isBorBL(fw,k))
k                5487 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                5491 tools/finsig_vxworks.c             for (k1=k-1; k1>k-6; k1--)
k                5516 tools/finsig_vxworks.c int match_registerlistproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5518 tools/finsig_vxworks.c     if (isSTMFD_LR(fw,k) && isBL(fw,k+6) && isLDMFD_PC(fw,k+11))
k                5520 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+6),0x01000001);
k                5523 tools/finsig_vxworks.c             fadr = idx2adr(fw,k);
k                5560 tools/finsig_vxworks.c int match_createtask(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5562 tools/finsig_vxworks.c     uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                5567 tools/finsig_vxworks.c         j1 = find_inst_rev(fw,isLDR_PC_r3,k,16);
k                5568 tools/finsig_vxworks.c         j2 = find_inst_rev(fw,isLDR_PC_r0,k,16);
k                5573 tools/finsig_vxworks.c             if ((find_inst(fw,isBL,j1,16)!=k) || (find_inst(fw,isBL,j2,16)!=k))
k                5596 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"CreateTask");
k                5597 tools/finsig_vxworks.c     if (k >= 0)
k                5599 tools/finsig_vxworks.c         search_fw(fw, match_createtask, func_names[k].val, 0, 5);
k                5601 tools/finsig_vxworks.c     k = get_saved_sig(fw,"CreateTaskStrictly");
k                5602 tools/finsig_vxworks.c     if (k >= 0)
k                5604 tools/finsig_vxworks.c         search_fw(fw, match_createtask, func_names[k].val, 0, 5);
k                5652 tools/finsig_vxworks.c int find_ptp_handler_imm(firmware *fw, int k)
k                5662 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+o))
k                5664 tools/finsig_vxworks.c             if(fwRd(fw,k+o) == 0)
k                5666 tools/finsig_vxworks.c                 op = LDR2val(fw,k+o);
k                5668 tools/finsig_vxworks.c             else if(fwRd(fw,k+o) == 1){
k                5669 tools/finsig_vxworks.c                 handler = LDR2val(fw,k+o);
k                5673 tools/finsig_vxworks.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1))
k                5675 tools/finsig_vxworks.c             handler=ADR2adr(fw,k+o);
k                5680 tools/finsig_vxworks.c             if (isORR(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) > 3))
k                5682 tools/finsig_vxworks.c                 int reg = fwRn(fw,k+o);
k                5685 tools/finsig_vxworks.c                 for (k1=k+o-1; k1>=k+o-50; k1--)
k                5700 tools/finsig_vxworks.c                     op = ALUop2a(fw,k+o) | u1;
k                5703 tools/finsig_vxworks.c             else if (isADD(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) <= 3))
k                5705 tools/finsig_vxworks.c                 int reg = fwRn(fw,k+o);
k                5708 tools/finsig_vxworks.c                 for (k1=k+o-1; k1>=k+o-7; k1--)
k                5722 tools/finsig_vxworks.c                     op = ALUop2a(fw,k+o) + u1;
k                5735 tools/finsig_vxworks.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5738 tools/finsig_vxworks.c     if(fwval(fw,k) == 0x1004
k                5739 tools/finsig_vxworks.c         && fwval(fw,k+2) == 0x1005
k                5740 tools/finsig_vxworks.c         && fwval(fw,k+4) == 0x1006
k                5741 tools/finsig_vxworks.c         && fwval(fw,k+1) > fw->base
k                5742 tools/finsig_vxworks.c         && fwval(fw,k+3) > fw->base
k                5743 tools/finsig_vxworks.c         && fwval(fw,k+5) > fw->base)
k                5749 tools/finsig_vxworks.c             uint32_t op=fwval(fw,k+i*2);
k                5750 tools/finsig_vxworks.c             uint32_t handler=fwval(fw,k+i*2+1);
k                5759 tools/finsig_vxworks.c     if (!isBorBL(fw,k))
k                5763 tools/finsig_vxworks.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                5767 tools/finsig_vxworks.c         find_ptp_handler_imm(fw,k);
k                5775 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"add_ptp_handler");
k                5776 tools/finsig_vxworks.c     if (k >= 0)
k                5778 tools/finsig_vxworks.c         search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128);
k                5825 tools/finsig_vxworks.c         uint32_t k = j + c - fw->firmware_ver_str;
k                5826 tools/finsig_vxworks.c         if ( (k>=j) && (k<j+32) )
k                5828 tools/finsig_vxworks.c             bprintf("//   %s   // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k);
k                5908 tools/finsig_vxworks.c     int k;
k                5913 tools/finsig_vxworks.c     for (k=0; k<next_func_entry; k++)
k                5915 tools/finsig_vxworks.c         if (strncmp(fns[k]->name,"hook_",5) != 0)
k                5917 tools/finsig_vxworks.c             if (fns[k]->val != 0)
k                5919 tools/finsig_vxworks.c                 if (fns[k]->flags & BAD_MATCH)
k                5921 tools/finsig_vxworks.c                     osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name);
k                5923 tools/finsig_vxworks.c                         fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name);
k                5926 tools/finsig_vxworks.c                     fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name);
k                5929 tools/finsig_vxworks.c             else if (fns[k]->flags & LIST_ALWAYS)
k                5932 tools/finsig_vxworks.c                 fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name);
k                5943 tools/finsig_vxworks.c     int k;
k                5983 tools/finsig_vxworks.c     for (k = 0; k < max_find_func; k++)
k                5986 tools/finsig_vxworks.c         curr_name = func_names[k].name;
k                5991 tools/finsig_vxworks.c         print_results(&fw,curr_name,k);
k                6011 tools/finsig_vxworks.c     for (k=0; k<next_func_entry; k++)
k                6012 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                 833 tools/firmware_load.c int find_BL(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 835 tools/firmware_load.c     if (isBL(fw,k))
k                 837 tools/firmware_load.c         int n = idxFollowBranch(fw, k, 0x01000001);
k                 839 tools/firmware_load.c             return k;
k                 846 tools/firmware_load.c int find_B(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 848 tools/firmware_load.c     if (isB(fw,k))
k                 850 tools/firmware_load.c         int n = idxFollowBranch(fw, k, 0x00000001);
k                 852 tools/firmware_load.c             return k;
k                 868 tools/firmware_load.c         int k;
k                 869 tools/firmware_load.c         for (k = p->off; k <= p->off + p->len - len; k++)
k                 871 tools/firmware_load.c             int rv = func(fw,k,v1,v2);
k                 890 tools/firmware_load.c         int k;
k                 891 tools/firmware_load.c         for (k = p->off*4; k < (p->off + p->len)*4; k++)
k                 893 tools/firmware_load.c             if (func(fw,k))
k                 909 tools/firmware_load.c     int i, j, k;
k                 939 tools/firmware_load.c     k = fread(fw->buf, 4, fw->size, f);
k                 953 tools/firmware_load.c         k = find_str(fw, "gaonisoy");
k                 954 tools/firmware_load.c         if (k != 1)
k                 963 tools/firmware_load.c         k = find_str(fw, "DRYOS version 2.3, release #");
k                 964 tools/firmware_load.c         if (k != -1)
k                 966 tools/firmware_load.c             fw->real_dryos_ver = fw->dryos_ver = atoi(((char*)&fw->buf[k])+28);
k                 967 tools/firmware_load.c             fw->dryos_ver_str = (char*)&fw->buf[k];
k                 973 tools/firmware_load.c     k = find_str(fw, "Firmware Ver ");
k                 976 tools/firmware_load.c         if (k < 0)
k                 978 tools/firmware_load.c             k = find_str(fw, "Firmware Version GM");    // ixus700
k                 980 tools/firmware_load.c         if (k < 0)
k                 982 tools/firmware_load.c             k = find_str(fw, "Firmware Version ");      // ixus30/40
k                 985 tools/firmware_load.c     if (k != -1)
k                 987 tools/firmware_load.c         fw->firmware_ver_str = (char*)&fw->buf[k];
k                 988 tools/firmware_load.c         fw->fwver_idx = k;
k                1061 tools/firmware_load.c             int k = adr2idx(fw,vx_name_offsets[i]);
k                1062 tools/firmware_load.c             if (idx_valid(fw,k) && (strncmp((char*)fwadr(fw,k),"Canon ",6) == 0))
k                1064 tools/firmware_load.c                 fw->cam_idx = k;
k                1099 tools/firmware_load.c         for (k=16; k<100; k++)
k                1101 tools/firmware_load.c             if ((fw->buf[k] & 0xFFFF0FFF) == 0xEE060F12) // mcr 15, 0, rx, cr6, cr2, {0}
k                1103 tools/firmware_load.c                 fw->maxram = (1 << (((fw->buf[k-1] & 0x3E) >> 1) + 1)) - 1;
k                1113 tools/firmware_load.c         for (k=0 + fw->main_offs; k<(100 + fw->main_offs); k++)
k                1115 tools/firmware_load.c             if (isLDR_PC(fw,k) && (LDR2val(fw,k) == 0x1900) && isLDR_PC(fw,k+6))
k                1117 tools/firmware_load.c                 fw->memisostart = LDR2val(fw,k+6);
k                1123 tools/firmware_load.c         for (k=16; k<100; k++)
k                1125 tools/firmware_load.c             if (isMOV_immed(fw,k) && (ALUop2(fw,k) == 0x1900) && isLDR_PC(fw,k+11))
k                1127 tools/firmware_load.c                 fw->memisostart = LDR2val(fw,k+11);
k                1129 tools/firmware_load.c                 if (isLDR_PC(fw,k-1) && isLDR_PC(fw,k-4) && ((fwval(fw,k-2) & 0xFFF0FFF0) == 0xE1500000))
k                1131 tools/firmware_load.c                     uint32_t fadr = LDR2val(fw,k-1);
k                1133 tools/firmware_load.c                     uint32_t eadr = LDR2val(fw,k-4);
k                1143 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                1147 tools/firmware_load.c                 fw->memisostart = 0x1900 + LDR2val(fw,k-3);
k                1149 tools/firmware_load.c                 fw->data_init_start = LDR2val(fw,k-2);
k                1151 tools/firmware_load.c                 j = idxFollowBranch(fw, k+6, 1);
k                1152 tools/firmware_load.c                 if (j != k+6)
k                1154 tools/firmware_load.c                     k = idxFollowBranch(fw, j+1, 0x01000001);
k                1155 tools/firmware_load.c                     if (k != j+1)
k                1157 tools/firmware_load.c                         if ( isLDR_PC(fw,k+3) )
k                1159 tools/firmware_load.c                             uint32_t eadr = LDR2val(fw,k+3);
k                1169 tools/firmware_load.c             else if (isMOV_immed(fw,k) && (ALUop2(fw,k) == 0x1900) && isLDR_PC(fw,k-2) &&
k                1170 tools/firmware_load.c                         ((fwval(fw,k-1) & 0xFFFF0F00) == 0xE50B0000) && isLDR_PC(fw,k+28) && isLDR_PC(fw,k+4)
k                1174 tools/firmware_load.c                 fw->memisostart = LDR2val(fw,k+28);
k                1176 tools/firmware_load.c                 fw->data_init_start = LDR2val(fw,k-2);
k                1178 tools/firmware_load.c                 fw->data_len = (LDR2val(fw,k+4) - 0x1900) / 4;
k                1256 tools/firmware_load.c                     for (k = ofst; (k>adr2idx(fw,0xFFFF0000)) && need_dance; k--)
k                1258 tools/firmware_load.c                         if (isLDR_PC(fw,k) && (LDR2val(fw,k) == idx2adr(fw,ofst)))
k                1260 tools/firmware_load.c                             j = find_inst_rev(fw,isSTMFD_LR,k-1,10);
k                 170 tools/firmware_load.h int find_BL(firmware *fw, int k, uint32_t v1, uint32_t v2);
k                 171 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                 122 tools/firmware_load_ng.c         int k;
k                 123 tools/firmware_load_ng.c         for (k = p->off*4; k < (p->off + p->len)*4; k++)
k                 125 tools/firmware_load_ng.c             if (strcmp(((char*)fw->buf8)+k,str) == 0)
k                 126 tools/firmware_load_ng.c                 return fw->base+k;
k                1606 tools/firmware_load_ng.c         int k;
k                1607 tools/firmware_load_ng.c         for (k = p->off*4; k < (p->off + p->len)*4; k++)
k                1609 tools/firmware_load_ng.c             if (func(fw,k))
k                1704 tools/firmware_load_ng.c     int k = find_str(fw, "gaonisoy");
k                1706 tools/firmware_load_ng.c     if(k == -1) {
k                1711 tools/firmware_load_ng.c     } else if (k != 1) {
k                1719 tools/firmware_load_ng.c     k = find_str(fw, "DRYOS version 2.3, release #");
k                1720 tools/firmware_load_ng.c     if (k != -1)
k                1722 tools/firmware_load_ng.c         fw->dryos_ver = atoi((char *)fw->buf8 + k*4 + 28);
k                1723 tools/firmware_load_ng.c         fw->dryos_ver_str = (char *)fw->buf8 + k*4;
k                1730 tools/firmware_load_ng.c     k = find_str(fw, "Firmware Ver ");
k                1731 tools/firmware_load_ng.c     if (k != -1)
k                1733 tools/firmware_load_ng.c         fw->firmware_ver_str = (char *)fw->buf8 + k*4;
k                 525 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;