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                 600 tools/finsig_dryos.c     int k = get_saved_sig(fw, sig);
k                 601 tools/finsig_dryos.c     if (k >= 0)
k                 603 tools/finsig_dryos.c         int idx = adr2idx(fw, func_names[k].val);
k                 604 tools/finsig_dryos.c         for (k=idx+ofst; k<idx+ofst+len; k++)
k                 606 tools/finsig_dryos.c             int rv = func(fw, k, v);
k                 707 tools/finsig_dryos.c int match_apex2us(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 709 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 711 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 712 tools/finsig_dryos.c         if (k != -1)
k                 714 tools/finsig_dryos.c             if (fwval(fw,k-2) == 0xE3700D09)    // CMN R0, #0x240
k                 715 tools/finsig_dryos.c                 k -= 2;
k                 716 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                 723 tools/finsig_dryos.c int match_apex2us2(firmware *fw, int k, uint32_t v1, uint32_t v2) // r52+?
k                 725 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 727 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 728 tools/finsig_dryos.c         if (k != -1)
k                 730 tools/finsig_dryos.c             if (fwval(fw,k+1) != 0xe3700d0f)    // CMN R0, #0x3c0
k                 732 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                 767 tools/finsig_dryos.c int find_mkdir(firmware *fw, string_sig *sig, int k)
k                 769 tools/finsig_dryos.c     if (fwval(fw,k) == 0x12CEA600)
k                 774 tools/finsig_dryos.c             kk = k-26;
k                 778 tools/finsig_dryos.c             kk = k-20;
k                 780 tools/finsig_dryos.c         k = find_inst_rev(fw, isSTMFD_LR, kk, 200);
k                 781 tools/finsig_dryos.c         if (k != -1)
k                 783 tools/finsig_dryos.c             if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) ||
k                 784 tools/finsig_dryos.c                 (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020)))
k                 787 tools/finsig_dryos.c                 if (isBL(fw,k+47))
k                 789 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001);
k                 791 tools/finsig_dryos.c                 else if (isBL(fw,k+48))
k                 793 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001);
k                 861 tools/finsig_dryos.c                 int k = find_inst_rev(fw, isBX_LR,j1-1,15);
k                 862 tools/finsig_dryos.c                 if (k >= 0)
k                 864 tools/finsig_dryos.c                     uint32_t fadr = idx2adr(fw, k+1);
k                 922 tools/finsig_dryos.c     int k = find_inst_rev(fw, isSTMFD_LR, j-1, 8);
k                 923 tools/finsig_dryos.c     if(k < 0) {
k                 928 tools/finsig_dryos.c     uint32_t fadr = idx2adr(fw, k);
k                 941 tools/finsig_dryos.c         int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100);
k                 942 tools/finsig_dryos.c         if (isB(fw,k-1) && isBL(fw,k-2))
k                 944 tools/finsig_dryos.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001);
k                 959 tools/finsig_dryos.c         int k = find_Nth_inst(fw, isBL, adr2idx(fw,func_names[j].val)+1, 6, 2);
k                 960 tools/finsig_dryos.c         if (k > 0)
k                 963 tools/finsig_dryos.c             if ( (fwval(fw, k+1) & 0xffff0fff) != 0xe1b00000 ) // movs rx, r0
k                 966 tools/finsig_dryos.c             uint32_t cmpinst = ((fwval(fw, k+1) & 0x0000f000)<<4) + 0xe3500004; // cmp rx, #4
k                 971 tools/finsig_dryos.c                 if ( fwval(fw, k+1+l) == cmpinst )
k                 977 tools/finsig_dryos.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k), 0x01000001);
k                 992 tools/finsig_dryos.c         int k = get_saved_sig(fw,"StopWDT_FW");
k                 993 tools/finsig_dryos.c         if (k >= 0)
k                1003 tools/finsig_dryos.c                     if (func_names[k].val == fadr)
k                1018 tools/finsig_dryos.c int find_add_ptp_handler(firmware *fw, string_sig *sig, int k)
k                1024 tools/finsig_dryos.c     while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i]))
k                1026 tools/finsig_dryos.c         k = find_inst(fw, isBL, k+1, 5);
k                1027 tools/finsig_dryos.c         if (k == -1) return 0;
k                1029 tools/finsig_dryos.c             fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                1030 tools/finsig_dryos.c         k = find_inst(fw, isLDR_PC, k+1, 5);
k                1032 tools/finsig_dryos.c         if (k == -1 && vals[i] != 0) return 0;
k                1047 tools/finsig_dryos.c     int j, k;
k                1055 tools/finsig_dryos.c             k = find_inst(fw, isBL, j+1, 4);
k                1056 tools/finsig_dryos.c             if (k >= 0)
k                1058 tools/finsig_dryos.c                 uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                1061 tools/finsig_dryos.c                     k = find_inst(fw, isB, k+1, 10);
k                1062 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw, k), 1);
k                1076 tools/finsig_dryos.c     int k = find_str_ref(fw,"%3d_%02d%02d");
k                1077 tools/finsig_dryos.c     if (k >= 0)
k                1079 tools/finsig_dryos.c         k = find_inst_rev(fw, isLDMFD_PC, k-1, 16);
k                1080 tools/finsig_dryos.c         if (k >= 0)
k                1082 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k+1);
k                1089 tools/finsig_dryos.c         k = find_str_ref(fw,"___%02d");
k                1090 tools/finsig_dryos.c         if (k >= 0)
k                1092 tools/finsig_dryos.c             k = find_inst_rev(fw, isLDMFD_PC, k-1, 18);
k                1093 tools/finsig_dryos.c             if (k >= 0)
k                1095 tools/finsig_dryos.c                 if (isMOV(fw,k+1) && isMOV(fw,k+2)) // sanity check
k                1097 tools/finsig_dryos.c                     uint32_t fadr = idx2adr(fw,k+1);
k                1110 tools/finsig_dryos.c int match_GetImageFolder(firmware *fw, int k, uint32_t a_getImageDirName, uint32_t a_TakeSemaphore)
k                1114 tools/finsig_dryos.c     if (isBL(fw,k))
k                1116 tools/finsig_dryos.c         uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                1119 tools/finsig_dryos.c             int s = find_inst_rev(fw, isSTMFD_LR, k-1, 80);
k                1120 tools/finsig_dryos.c             int e = find_inst(fw, isLDMFD_PC, k+1, 80);
k                1124 tools/finsig_dryos.c                 for (k1=s+1; k1<k-1; k1++)
k                1138 tools/finsig_dryos.c                     for (k1=k+1; k1<e-1; k1++)
k                1166 tools/finsig_dryos.c         int k = get_saved_sig(fw,"getImageDirName");
k                1167 tools/finsig_dryos.c         if ((k >= 0) && (j >= 0))
k                1169 tools/finsig_dryos.c             return search_fw(fw, match_GetImageFolder, func_names[k].val, func_names[j].val, 1);
k                1177 tools/finsig_dryos.c int match_GetDrive_ClusterSize(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                1179 tools/finsig_dryos.c     if (isBL_cond(fw,k))
k                1181 tools/finsig_dryos.c         uint32_t fadr = followBranch2(fw,idx2adr(fw,k),0xF1000001);
k                1185 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                1189 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                1193 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                1197 tools/finsig_dryos.c             else if (isADR_PC_cond(fw,k-1) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-1)),"Mounter.c") == 0))
k                1201 tools/finsig_dryos.c             else if (isADR_PC_cond(fw,k-2) && (strcmp(adr2ptr(fw,ADR2adr(fw,k-2)),"Mounter.c") == 0))
k                1206 tools/finsig_dryos.c                 isLDR_PC(fw,k+1) &&
k                1207 tools/finsig_dryos.c                 ((fwval(fw,k+2) & 0xFFF00FF0) == 0xE0800200) && ((fwval(fw,k+3) & 0xFFF00FF0) == 0xE0800100) &&
k                1208 tools/finsig_dryos.c                 (fwval(fw,k+4) == 0xE5901004) && (fwval(fw,k+5) == 0xE5900008) && (fwval(fw,k+6) == 0xE0000091) &&
k                1209 tools/finsig_dryos.c                 isLDMFD_PC(fw,k+7))
k                1211 tools/finsig_dryos.c                 k = find_inst_rev(fw,isSTMFD_LR,k-1,8);
k                1212 tools/finsig_dryos.c                 if (k >= 0)
k                1214 tools/finsig_dryos.c                     if (fwval(fw,k-1) == 0xE3500001)    // CMP R0, #1
k                1215 tools/finsig_dryos.c                         k--;
k                1216 tools/finsig_dryos.c                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1227 tools/finsig_dryos.c     int k = get_saved_sig(fw,"DebugAssert");
k                1228 tools/finsig_dryos.c     if (k >= 0)
k                1230 tools/finsig_dryos.c         return search_fw(fw, match_GetDrive_ClusterSize, func_names[k].val, 0, 16);
k                1245 tools/finsig_dryos.c         int k = adr2idx(fw,j);
k                1246 tools/finsig_dryos.c         k = find_inst_rev(fw,isLDMFD_PC,k-1,2);
k                1247 tools/finsig_dryos.c         if ((k > 0) && ( (fwval(fw,k-1)&0xfffff0f0)==0xe0810090 )) // umull r0, r1, rx, ry
k                1249 tools/finsig_dryos.c             if (isBL(fw,k-2))
k                1251 tools/finsig_dryos.c                 k = idxFollowBranch(fw,k-2,0x01000001);
k                1252 tools/finsig_dryos.c                 fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1264 tools/finsig_dryos.c     int k = get_saved_sig(fw,"rand");
k                1265 tools/finsig_dryos.c     if (k >= 0)
k                1267 tools/finsig_dryos.c         k = adr2idx(fw, func_names[k].val) - 3;
k                1268 tools/finsig_dryos.c         if (isLDR_PC(fw,k) && isSTR(fw,k+1) && isBX_LR(fw,k+2))
k                1269 tools/finsig_dryos.c             fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1332 tools/finsig_dryos.c         int m2, k;
k                1341 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, s1, m2);
k                1352 tools/finsig_dryos.c             for (k=-1; k>-3; k--)
k                1354 tools/finsig_dryos.c                 if ((fwval(fw,m1+k) & 0xFE1FF000) == 0xE41F0000) // ldr r0, =func
k                1356 tools/finsig_dryos.c                     uint32_t u1 = LDR2val(fw, m1+k);
k                1363 tools/finsig_dryos.c                             k = find_nxt_str_ref(fw, s1, m2);
k                1377 tools/finsig_dryos.c             k = find_nxt_str_ref(fw, s1, m2);
k                1378 tools/finsig_dryos.c             if ((k <= 0)||(k-m2 >= 22))
k                1383 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, s1, m2);
k                1388 tools/finsig_dryos.c         if ((k > 0)&&(k-m2 < 22))
k                1391 tools/finsig_dryos.c             idx_createdialogbox = find_inst_rev(fw, isBL, k-1, 4);
k                1395 tools/finsig_dryos.c             idx_adduitodialog = find_inst(fw, isBL, k+1, 7);
k                1397 tools/finsig_dryos.c             for (m3=k; m3<k+128; m3++)
k                1432 tools/finsig_dryos.c                 m3 = find_inst(fw, isLDMFD_PC, k+30, 64);
k                1444 tools/finsig_dryos.c                 m3 = find_inst(fw, isLDMFD, k+30, 20);
k                1489 tools/finsig_dryos.c                         int k;
k                1490 tools/finsig_dryos.c                         for (k=j; k<j+24; k++)
k                1492 tools/finsig_dryos.c                             if (isBL_cond(fw,k)&&(idx2adr(fw,idxFollowBranch(fw,k,0xe1000001))==a1)) // BLEQ
k                1509 tools/finsig_dryos.c             int k;
k                1510 tools/finsig_dryos.c             for (k=-1; k>-3; k--)
k                1512 tools/finsig_dryos.c                 if ((fwval(fw,m1+k) & 0xFE1FF000) == 0x041F0000) // ldreq r0, =func
k                1514 tools/finsig_dryos.c                     uint32_t u1 = LDR2val(fw, m1+k);
k                1807 tools/finsig_dryos.c     int k = 0;
k                1829 tools/finsig_dryos.c                             k = idxFollowBranch(fw,j3,0x01000001);
k                1830 tools/finsig_dryos.c                             fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1866 tools/finsig_dryos.c                                     k = idxFollowBranch(fw,j3+m,0x01000001);
k                1867 tools/finsig_dryos.c                                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1873 tools/finsig_dryos.c                             if (k)
k                1879 tools/finsig_dryos.c             if (k)
k                1883 tools/finsig_dryos.c     if (k && k1)
k                1885 tools/finsig_dryos.c         k1 = k+1;
k                1886 tools/finsig_dryos.c         while (k1>0 && k1<k+20)
k                1902 tools/finsig_dryos.c     if (k)
k                1914 tools/finsig_dryos.c     int k=adr2idx(fw,func_names[j].val);
k                1915 tools/finsig_dryos.c     int k_max=k+80;
k                1919 tools/finsig_dryos.c     for(; k < k_max;k++) {
k                1923 tools/finsig_dryos.c         if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) {
k                1924 tools/finsig_dryos.c             adr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                1934 tools/finsig_dryos.c     k_max = k+6;
k                1935 tools/finsig_dryos.c     for(; k < k_max;k++) {
k                1936 tools/finsig_dryos.c         if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) {
k                1937 tools/finsig_dryos.c             uint32_t adr2 = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                1976 tools/finsig_dryos.c                         int k;
k                1977 tools/finsig_dryos.c                         k = idxFollowBranch(fw,n,0x01000001);
k                1978 tools/finsig_dryos.c                         if ( idx2adr(fw, k) == idx2adr(fw, j) )
k                1981 tools/finsig_dryos.c                             k = find_inst(fw, isBL, s1+2, 6);
k                1982 tools/finsig_dryos.c                             if (k != -1)
k                1985 tools/finsig_dryos.c                                 int l = idxFollowBranch(fw,k,0x01000001);
k                1990 tools/finsig_dryos.c                                     k = idxFollowBranch(fw,l,0x01000001);
k                1991 tools/finsig_dryos.c                                     if ( isB(fw, k) )
k                1993 tools/finsig_dryos.c                                         int m = idxFollowBranch(fw,k,0x01000001);
k                1995 tools/finsig_dryos.c                                         add_func_name("j_GetBaseSv", idx2adr(fw,k), "");
k                2001 tools/finsig_dryos.c                                         fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                2700 tools/finsig_dryos.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2702 tools/finsig_dryos.c     if (fwval(fw,k) == sadr)                // pointer to string?
k                2704 tools/finsig_dryos.c         uint32_t fadr = fwval(fw,k+1);      // function address
k                2741 tools/finsig_dryos.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2743 tools/finsig_dryos.c     if (isADR_PC(fw,k+1) &&    // ADR ?
k                2744 tools/finsig_dryos.c         isBorBL(fw,k+2))       // B or BL ?
k                2746 tools/finsig_dryos.c         uint32_t padr = ADR2adr(fw,k+1);    // get address pointed to by 2nd ADR instructioin
k                2749 tools/finsig_dryos.c             int j2 = k;
k                2751 tools/finsig_dryos.c             if (isADR_PC(fw,k))             // ADR ?
k                2756 tools/finsig_dryos.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2763 tools/finsig_dryos.c                         if (adr2idx(fw,fa) == k+1)
k                2794 tools/finsig_dryos.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2796 tools/finsig_dryos.c     if (isSTMFD(fw,k) &&        // STMFD
k                2797 tools/finsig_dryos.c         isADR_PC(fw,k+offset))  // ADR ?
k                2799 tools/finsig_dryos.c         uint32_t padr = ADR2adr(fw,k+offset);
k                2802 tools/finsig_dryos.c             uint32_t fadr = idx2adr(fw,k);
k                2830 tools/finsig_dryos.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2832 tools/finsig_dryos.c     if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) &&   // LDR or ADR ?
k                2833 tools/finsig_dryos.c         isBorBL(fw,k+2))                            // B or BL ?
k                2836 tools/finsig_dryos.c         if (isLDR_PC(fw,k+1))                       // LDR ?
k                2837 tools/finsig_dryos.c             padr = LDR2val(fw,k+1);
k                2839 tools/finsig_dryos.c             padr = ADR2adr(fw,k+1);
k                2842 tools/finsig_dryos.c             int j2 = k;
k                2844 tools/finsig_dryos.c             if (isLDR_PC(fw,k))                     // LDR ?
k                2848 tools/finsig_dryos.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2853 tools/finsig_dryos.c                         if (idxFollowBranch(fw,j2+1,1) == k+1)
k                2906 tools/finsig_dryos.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2908 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                2911 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2912 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                2914 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                2917 tools/finsig_dryos.c             int j2 = find_inst(fw, isBL, k+1, 10);
k                3140 tools/finsig_dryos.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                3142 tools/finsig_dryos.c     if (fwval(fw,k) == sadr)    // string ptr
k                3144 tools/finsig_dryos.c         uint32_t padr = idx2adr(fw,k);      // string ptr address
k                3146 tools/finsig_dryos.c         for (j2 = k-1; j2 >= 0; j2--)
k                3179 tools/finsig_dryos.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                3181 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                3184 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                3185 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                3187 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                3190 tools/finsig_dryos.c             int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst);
k                3250 tools/finsig_dryos.c             int k = 0;
k                3255 tools/finsig_dryos.c                     k = adr2idx(fw,LDR2val(fw,idx-3));
k                3259 tools/finsig_dryos.c                     k = adr2idx(fw,ADR2adr(fw,idx-2));
k                3269 tools/finsig_dryos.c                         k = adr2idx(fw,LDR2val(fw,l-2));
k                3273 tools/finsig_dryos.c             if (k != 0)
k                3277 tools/finsig_dryos.c                     fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                3280 tools/finsig_dryos.c                     k = find_inst(fw, isLDMFD, k+1, 60);
k                3283 tools/finsig_dryos.c                         fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001);
k                3287 tools/finsig_dryos.c                         k = find_inst_rev(fw, isBL, k-1, 4);
k                3288 tools/finsig_dryos.c                         if (k > 0)
k                3290 tools/finsig_dryos.c                             fadr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                3332 tools/finsig_dryos.c             int k = 0;
k                3335 tools/finsig_dryos.c                 case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                3336 tools/finsig_dryos.c                 case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                3337 tools/finsig_dryos.c                 case 2: k = ((fwval(fw, adr2idx(fw, fadr)-1-addoffs) & 0x0f000000) == 0x0a000000); break; // B cond.
k                3338 tools/finsig_dryos.c                 case 3: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE1A0F00E); break; // mov pc, lr
k                3339 tools/finsig_dryos.c                 case 4: k = (fwval(fw, adr2idx(fw, fadr)-1-addoffs) == 0xE12FFF1E); break; // bx lr
k                3342 tools/finsig_dryos.c             if (k)
k                3362 tools/finsig_dryos.c int match_strsig23a(firmware *fw, int k, uint32_t sadr, uint32_t maxdist)
k                3364 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                3367 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                3368 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                3370 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                3376 tools/finsig_dryos.c                 j2 = find_Nth_inst_rev(fw, isBorBL, k, maxdist, -dryos_ofst);
k                3380 tools/finsig_dryos.c                 j2 = find_Nth_inst(fw, isBorBL, k+1, maxdist, dryos_ofst+1);
k                3724 tools/finsig_dryos.c void print_results(firmware *fw, const char *curr_name, int k)
k                3730 tools/finsig_dryos.c     if (func_names[k].flags & DONT_EXPORT) return;
k                3742 tools/finsig_dryos.c         func_names[k].flags |= BAD_MATCH;
k                3746 tools/finsig_dryos.c         if (func_names[k].flags & UNUSED) return;
k                3758 tools/finsig_dryos.c         if (func_names[k].flags & OPTIONAL) return;
k                3765 tools/finsig_dryos.c         if (ostub2 || (func_names[k].flags & UNUSED))
k                3830 tools/finsig_dryos.c void output_modemap(firmware *fw, int k)
k                3834 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                3836 tools/finsig_dryos.c         k = adr2idx(fw,LDR2val(fw,k));
k                3837 tools/finsig_dryos.c         bprintf("%08x\n",idx2adr(fw,k));
k                3838 tools/finsig_dryos.c         uint16_t *p = (uint16_t*)(&fw->buf[k]);
k                3839 tools/finsig_dryos.c         k = 0;
k                3840 tools/finsig_dryos.c         while ((*p != 0xFFFF) && (k < 50))
k                3860 tools/finsig_dryos.c             k++;
k                3879 tools/finsig_dryos.c int match_modelist(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                3881 tools/finsig_dryos.c     if (isBX_LR(fw,k) && (fw->buf[k+4] == fadr))
k                3883 tools/finsig_dryos.c         fadr = fwval(fw,k+1);
k                3885 tools/finsig_dryos.c         for (k1=k-1; k1>k-20; k1--)
k                3901 tools/finsig_dryos.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3903 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                3905 tools/finsig_dryos.c         FlashParamsTable_address = idx2adr(fw,k);
k                3911 tools/finsig_dryos.c int match_FlashParamsTable(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3913 tools/finsig_dryos.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00010000) && (fw->buf[k+2] == 0xFFFF0002))
k                3915 tools/finsig_dryos.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3938 tools/finsig_dryos.c int match_CAM_UNCACHED_BIT(firmware *fw, int k, int v)
k                3940 tools/finsig_dryos.c     if ((fw->buf[k] & 0x0FFFF000) == 0x03C00000)    // BIC
k                3942 tools/finsig_dryos.c         fw->uncached_adr = ALUop2(fw,k);
k                3943 tools/finsig_dryos.c         fw->uncached_adr_idx = k;
k                3954 tools/finsig_dryos.c     int k = isADR_PC_cond(fw, s1);
k                3955 tools/finsig_dryos.c     if (!k)
k                3957 tools/finsig_dryos.c     k = fwRd(fw, s1);
k                3958 tools/finsig_dryos.c     if (k > 0)
k                3966 tools/finsig_dryos.c     int k,k1;
k                3983 tools/finsig_dryos.c     k = find_str_ref(fw, "\r[%ld] AdjDrvType[%02ld] -> DrvType[%02");
k                3984 tools/finsig_dryos.c     if (k >= 0)
k                3987 tools/finsig_dryos.c         for (k1 = k-1; k1 >= k-20; k1--)
k                4014 tools/finsig_dryos.c         for (k1 = k-1; k1 >= k-20; k1--)
k                4049 tools/finsig_dryos.c         k = find_str_ref(fw, " CrwAddress %lx, CrwSize H %ld V %ld\r");
k                4050 tools/finsig_dryos.c         if (k >= 0)
k                4053 tools/finsig_dryos.c             for (k1=k-1; k1>=k-5; k1--)
k                4068 tools/finsig_dryos.c             for (k1=k-1; k1>=k-5; k1--)
k                4116 tools/finsig_dryos.c     k = get_saved_sig(fw,"GetImageFolder");
k                4117 tools/finsig_dryos.c     if (k >= 0)
k                4119 tools/finsig_dryos.c         uint32_t fadr = func_names[k].val;
k                4139 tools/finsig_dryos.c                         k = adr2idx(fw,fadr);
k                4141 tools/finsig_dryos.c                         for (k3=k; k3<k+8; k3++)
k                4159 tools/finsig_dryos.c         for (k=k1; k<k1+20; k++)
k                4161 tools/finsig_dryos.c             uint32_t fadr = fwval(fw,k);
k                4172 tools/finsig_dryos.c                         bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr);
k                4187 tools/finsig_dryos.c     int k, k1;
k                4190 tools/finsig_dryos.c     k = find_str_ref(fw, "VRAM Address  : %p\r");
k                4191 tools/finsig_dryos.c     if (k >= 0)
k                4193 tools/finsig_dryos.c         for (k1=k-1; k1>k-8; k1--)
k                4210 tools/finsig_dryos.c int match_vid_get_bitmap_fb(firmware *fw, int k, int v)
k                4212 tools/finsig_dryos.c     if (isBL(fw,k-1) && // BL
k                4213 tools/finsig_dryos.c         isLDR_PC(fw,k))
k                4215 tools/finsig_dryos.c         uint32_t v1 = LDR2val(fw,k);
k                4216 tools/finsig_dryos.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                4220 tools/finsig_dryos.c     if (isBL(fw,k-1) && // BL
k                4221 tools/finsig_dryos.c         (isLDR_PC(fw,k+1)))
k                4223 tools/finsig_dryos.c         uint32_t v1 = LDR2val(fw,k+1);
k                4224 tools/finsig_dryos.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                4231 tools/finsig_dryos.c int match_get_flash_params_count(firmware *fw, int k, int v)
k                4233 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901)    // BIC Rn, Rn, #0x4000
k                4235 tools/finsig_dryos.c         uint32_t r = fw->buf[k] & 0x000F0000;       // Register
k                4236 tools/finsig_dryos.c         if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r))  // CMP, Rn #val
k                4238 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                4247 tools/finsig_dryos.c int match_uiprop_count(firmware *fw, int k, int v)
k                4249 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xe3c00902)    // BIC Rn, Rn, #0x8000
k                4251 tools/finsig_dryos.c         uint32_t r = fw->buf[k] & 0x000F0000;       // Register
k                4252 tools/finsig_dryos.c         if (((fw->buf[k+1] & 0xFFF00000) == 0xE3500000) && ((fw->buf[k+1] & 0x000F0000) == r))  // CMP, Rn #val
k                4255 tools/finsig_dryos.c             uint32_t fadr = fw->buf[k+1]&0xFFF;
k                4259 tools/finsig_dryos.c                 bprintf("//DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1));
k                4271 tools/finsig_dryos.c                 bprintf("DEF_CONST(%-34s,0x%08x) // Found @0x%08x",name,fadr,idx2adr(fw,k+1));
k                4281 tools/finsig_dryos.c int match_imager_active(firmware *fw, int k, int v)
k                4287 tools/finsig_dryos.c     if (isLDMFD_PC(fw,k))
k                4289 tools/finsig_dryos.c         int k1 = find_inst_rev(fw, isBL, k-1, 10);
k                4352 tools/finsig_dryos.c     int k,k1;
k                4363 tools/finsig_dryos.c     uint32_t v = find_viewport_address(fw,&k);
k                4364 tools/finsig_dryos.c     if (k >= 0)
k                4366 tools/finsig_dryos.c         bprintf("//void *vid_get_viewport_fb()      { return (void*)0x%08x; }             // Found @0x%08x\n",v,idx2adr(fw,k));
k                4377 tools/finsig_dryos.c     k = find_nxt_str_ref(fw, sadr, -1);
k                4379 tools/finsig_dryos.c     while ((k >= 0) && !found)
k                4384 tools/finsig_dryos.c             if (isLDR(fw,k+fbd[f][0]) && isLDR(fw,k+fbd[f][1]) && isLDR(fw,k+fbd[f][2]))
k                4386 tools/finsig_dryos.c                 int reg = fw->buf[k+fbd[f][2]] & 0x000F0000;    // Index register used
k                4388 tools/finsig_dryos.c                 if (((fw->buf[k+fbd[f][0]] & 0x0000F000) << 4) == reg)      { ka = k+fbd[f][0]; }
k                4389 tools/finsig_dryos.c                 else if (((fw->buf[k+fbd[f][1]] & 0x0000F000) << 4) == reg) { ka = k+fbd[f][1]; }
k                4393 tools/finsig_dryos.c                     for (k1=k+2; k1<k+20; k1++)
k                4407 tools/finsig_dryos.c         k = find_nxt_str_ref(fw, sadr, k);
k                4411 tools/finsig_dryos.c     k = find_str_ref(fw, "9999");
k                4412 tools/finsig_dryos.c     if (k >= 0)
k                4414 tools/finsig_dryos.c         if (isLDR(fw,k-1) && isBL(fw,k+1))
k                4416 tools/finsig_dryos.c             uint32_t v1 = LDR2val(fw,k-1);
k                4417 tools/finsig_dryos.c             bprintf("DEF(%-40s,0x%08x) // Found @0x%08x\n","jpeg_count_str",v1,idx2adr(fw,k-1));
k                4418 tools/finsig_dryos.c             bprintf("//char *camera_jpeg_count_str()    { return (char*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k-1));
k                4565 tools/finsig_dryos.c int match_levent_table(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4567 tools/finsig_dryos.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002))
k                4569 tools/finsig_dryos.c         print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k));
k                4571 tools/finsig_dryos.c         uint32_t levent_tbl = idx2adr(fw,k);
k                4579 tools/finsig_dryos.c int match_movie_status(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4581 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                              // LDR R0, =base
k                4582 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) &&  // ADR R1, =sub
k                4583 tools/finsig_dryos.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                4584 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                4585 tools/finsig_dryos.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                4586 tools/finsig_dryos.c         (LDR2val(fw,k) < fw->base))
k                4588 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4589 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                4590 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4594 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                              // LDR R1, =sub
k                4595 tools/finsig_dryos.c         isLDR_PC(fw, k+1) &&                            // LDR R0, =base
k                4596 tools/finsig_dryos.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                4597 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                4598 tools/finsig_dryos.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                4599 tools/finsig_dryos.c         (LDR2val(fw,k+1) < fw->base))
k                4601 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k+1);
k                4602 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                4603 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4607 tools/finsig_dryos.c     if (isLDR_PC(fw, k) &&                                      // LDR Rx, =base
k                4608 tools/finsig_dryos.c         isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) &&       // LDR R0, [Rx, ...]
k                4609 tools/finsig_dryos.c         isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) &&     // CMP R0, #...
k                4610 tools/finsig_dryos.c         (fwval(fw,k+3) == 0x03A00005) &&
k                4611 tools/finsig_dryos.c         isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) &&  // STRxx R0, [Rx,ofst]
k                4612 tools/finsig_dryos.c         (LDR2val(fw,k) < fw->base))
k                4614 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4615 tools/finsig_dryos.c         uint32_t ofst = fwOp2(fw,k+4);
k                4616 tools/finsig_dryos.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                4622 tools/finsig_dryos.c int match_full_screen_refresh(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4624 tools/finsig_dryos.c     if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                4625 tools/finsig_dryos.c         (fw->buf[k+1] == 0xE5D01000) &&                 // LDRB R1, [R0]
k                4626 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE3811002) &&                 // ORR R1, R1, #2
k                4627 tools/finsig_dryos.c         (fw->buf[k+3] == 0xE5C01000) &&                 // STRB R1, [R0]
k                4628 tools/finsig_dryos.c         isBX_LR(fw,k+4))                                // BX LR
k                4630 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4631 tools/finsig_dryos.c         print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k));
k                4636 tools/finsig_dryos.c int match_canon_shoot_menu_active(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4638 tools/finsig_dryos.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F1000) &&  // LDR R1, =base
k                4639 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) &&  // LDRB R0, [R1, #n]
k                4640 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE2800001) &&                 // ADD R0, R0, #1
k                4641 tools/finsig_dryos.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) &&  // STRB R0, [R1, #n]
k                4642 tools/finsig_dryos.c         (isB(fw,k+4)))                                  // B
k                4644 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4645 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4646 tools/finsig_dryos.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                4649 tools/finsig_dryos.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F0000) &&  // LDR R0, =base
k                4650 tools/finsig_dryos.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) &&  // LDRB R1, [R0, #n]
k                4651 tools/finsig_dryos.c         (fw->buf[k+2] == 0xE2811001) &&                 // ADD R1, R1, #1
k                4652 tools/finsig_dryos.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) &&  // STRB R1, [R0, #n]
k                4653 tools/finsig_dryos.c         (isB(fw,k+4)))                                  // B
k                4655 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4656 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4657 tools/finsig_dryos.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                4662 tools/finsig_dryos.c int match_playrec_mode(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4664 tools/finsig_dryos.c     if (((fw->buf[k]    & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4665 tools/finsig_dryos.c         ((fw->buf[k+1]  & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n]
k                4666 tools/finsig_dryos.c         ((fw->buf[k+3]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4667 tools/finsig_dryos.c         ((fw->buf[k+4]  & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n]
k                4668 tools/finsig_dryos.c         ((fw->buf[k+6]  & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4669 tools/finsig_dryos.c         ((fw->buf[k+9]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4670 tools/finsig_dryos.c         ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4671 tools/finsig_dryos.c         ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4672 tools/finsig_dryos.c         ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4673 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+3)) &&
k                4674 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+6)) &&
k                4675 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+9)) &&
k                4676 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+12)) &&
k                4677 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+15)) &&
k                4678 tools/finsig_dryos.c         (LDR2val(fw,k) == LDR2val(fw,k+18)))
k                4680 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4681 tools/finsig_dryos.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4682 tools/finsig_dryos.c         print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                4687 tools/finsig_dryos.c int match_some_flag_for_af_scan(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4689 tools/finsig_dryos.c     if (isB(fw,k)   &&  // B loc
k                4690 tools/finsig_dryos.c         isB(fw,k+1) &&  // B loc
k                4691 tools/finsig_dryos.c         isB(fw,k+2) &&  // B loc
k                4692 tools/finsig_dryos.c         isB(fw,k+3) &&  // B loc
k                4693 tools/finsig_dryos.c         isB(fw,k+4) &&  // B loc
k                4694 tools/finsig_dryos.c         isB(fw,k+5) &&  // B loc
k                4695 tools/finsig_dryos.c         isB(fw,k+6) &&  // B loc
k                4696 tools/finsig_dryos.c         isB(fw,k+7) &&  // B loc
k                4697 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) &&
k                4698 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) &&
k                4699 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) &&
k                4700 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) &&
k                4701 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) &&
k                4702 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) &&
k                4703 tools/finsig_dryos.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) &&
k                4704 tools/finsig_dryos.c         (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)))))    // LDR R0, =base
k                4706 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)));
k                4708 tools/finsig_dryos.c             print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1));
k                4713 tools/finsig_dryos.c int match_palette_data(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4715 tools/finsig_dryos.c     if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4716 tools/finsig_dryos.c         (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) &&
k                4717 tools/finsig_dryos.c         (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000))
k                4719 tools/finsig_dryos.c         return idx2adr(fw,k);
k                4721 tools/finsig_dryos.c     else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4722 tools/finsig_dryos.c              (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) &&
k                4723 tools/finsig_dryos.c              (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000))
k                4725 tools/finsig_dryos.c         return idx2adr(fw,k);
k                4730 tools/finsig_dryos.c int match_palette_buffer_offset(firmware *fw, int k)
k                4732 tools/finsig_dryos.c     int idx2 = idxFollowBranch(fw, k, 0x01000001);
k                4754 tools/finsig_dryos.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, uint32_t v2)
k                4756 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                4758 tools/finsig_dryos.c         int palette_control = LDR2val(fw,k-6);
k                4759 tools/finsig_dryos.c         int ptr_offset = fwOp2(fw,k-5);
k                4760 tools/finsig_dryos.c         uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30);
k                4768 tools/finsig_dryos.c                 print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5));
k                4769 tools/finsig_dryos.c                 if (isBL(fw,k+8))
k                4771 tools/finsig_dryos.c                     fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001);
k                4789 tools/finsig_dryos.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4791 tools/finsig_dryos.c     if (isLDR(fw,k) && (LDR2val(fw,k) == v1))
k                4794 tools/finsig_dryos.c         for (k1=k+1; k1<k+20; k1++)
k                4808 tools/finsig_dryos.c                         for (k=idx; (k<idx+16) && !found; k++)
k                4810 tools/finsig_dryos.c                             if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2))
k                4812 tools/finsig_dryos.c                                 fadr = ADR2adr(fw,k+2);
k                4909 tools/finsig_dryos.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4911 tools/finsig_dryos.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1))
k                4914 tools/finsig_dryos.c         int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000);
k                4922 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4931 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4940 tools/finsig_dryos.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4949 tools/finsig_dryos.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4951 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                4959 tools/finsig_dryos.c int match_viewport_address(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4961 tools/finsig_dryos.c     if (fw->buf[k] == v1)
k                4964 tools/finsig_dryos.c         if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1))
k                4970 tools/finsig_dryos.c int match_physw_status(firmware *fw, int k, int v)
k                4972 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                4974 tools/finsig_dryos.c         print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k));
k                4980 tools/finsig_dryos.c int match_physw_run(firmware *fw, int k, int v)
k                4982 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                4984 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                4985 tools/finsig_dryos.c         uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1);
k                4987 tools/finsig_dryos.c         print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k));
k                4989 tools/finsig_dryos.c         ofst = fw->buf[k+2] & 0x00000FFF;
k                4990 tools/finsig_dryos.c         print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k));
k                4996 tools/finsig_dryos.c int match_canon_menu_active(firmware *fw, int k, int v)
k                4998 tools/finsig_dryos.c     if (isLDR_PC(fw,k))
k                5000 tools/finsig_dryos.c         uint32_t base = LDR2val(fw,k);
k                5002 tools/finsig_dryos.c         for (k1=k+1; k1<k+5; k1++)
k                5007 tools/finsig_dryos.c                 print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k));
k                5015 tools/finsig_dryos.c int match_zoom_busy(firmware *fw, int k, int v)
k                5017 tools/finsig_dryos.c     if (isBL(fw,k))
k                5019 tools/finsig_dryos.c         int idx1 = idxFollowBranch(fw,k,0x01000001);
k                5064 tools/finsig_dryos.c int match_focus_busy(firmware *fw, int k, int v)
k                5066 tools/finsig_dryos.c     if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000)   // LDMFD
k                5069 tools/finsig_dryos.c         if (isBL(fw,k-2))
k                5071 tools/finsig_dryos.c             k1 = idxFollowBranch(fw,k-2,0x01000001);
k                5073 tools/finsig_dryos.c         if (isBL(fw,k-1))
k                5075 tools/finsig_dryos.c             k1 = idxFollowBranch(fw,k-1,0x01000001);
k                5092 tools/finsig_dryos.c int match_bitmap_buffer2(firmware *fw, int k, int v)
k                5094 tools/finsig_dryos.c     uint32_t screen_lock = idx2adr(fw,k);
k                5123 tools/finsig_dryos.c int match_bitmap_buffer(firmware *fw, int k, int v)
k                5125 tools/finsig_dryos.c     search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1);
k                5129 tools/finsig_dryos.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, uint32_t v2)
k                5131 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                5132 tools/finsig_dryos.c         ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1)))
k                5134 tools/finsig_dryos.c         uint32_t rb2 = fwval(fw,k+1);
k                5137 tools/finsig_dryos.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                5140 tools/finsig_dryos.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                5144 tools/finsig_dryos.c     else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1))
k                5146 tools/finsig_dryos.c         uint32_t rb2 = fwval(fw,k+3);
k                5149 tools/finsig_dryos.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                5152 tools/finsig_dryos.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                5159 tools/finsig_dryos.c int match_fileiosem(firmware *fw, int k, uint32_t fadr, uint32_t nadr)
k                5161 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                5164 tools/finsig_dryos.c         for (j = k-1; j > k-5; j++)
k                5185 tools/finsig_dryos.c     int k,k1;
k                5210 tools/finsig_dryos.c     k = find_nxt_str_ref(fw, sadr, -1);
k                5212 tools/finsig_dryos.c     while ((k >= 0) && !found)
k                5214 tools/finsig_dryos.c         int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100);
k                5236 tools/finsig_dryos.c         k = find_nxt_str_ref(fw, sadr, k);
k                5250 tools/finsig_dryos.c     k = find_str_ref(fw, "AFFChg");
k                5251 tools/finsig_dryos.c     if ((k >= 0) && isBL(fw,k+6))
k                5253 tools/finsig_dryos.c         k = idxFollowBranch(fw, k+6, 0x01000001);
k                5254 tools/finsig_dryos.c         if (isLDR_PC(fw,k) && isLDR(fw,k+1))
k                5256 tools/finsig_dryos.c             uint32_t base = LDR2val(fw,k);
k                5257 tools/finsig_dryos.c             uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                5258 tools/finsig_dryos.c             print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                5270 tools/finsig_dryos.c     k = find_str_ref(fw, "m_ZoomState            :%d\n");
k                5271 tools/finsig_dryos.c     if (k >= 0)
k                5273 tools/finsig_dryos.c         if (isLDR(fw,k-1))
k                5275 tools/finsig_dryos.c             uint32_t ofst = fw->buf[k-1] & 0x00000FFF;
k                5276 tools/finsig_dryos.c             uint32_t reg = (fw->buf[k-1] & 0x000F0000) >> 16;
k                5278 tools/finsig_dryos.c             for (k1=k-2; k1>k-20; k1--)
k                5283 tools/finsig_dryos.c                     print_stubs_min(fw,"zoom_status",base+ofst,idx2adr(fw,k));
k                5293 tools/finsig_dryos.c         for (k=0; k<fw->size; k++)
k                5295 tools/finsig_dryos.c             if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                5296 tools/finsig_dryos.c                 (fw->buf[k+1] == 0xE5D00000) &&                 // LDRB R0, [R0]
k                5297 tools/finsig_dryos.c                 (fw->buf[k+2] == 0xE1B00000) &&                 // MOVS R0, R0
k                5298 tools/finsig_dryos.c                 (fw->buf[k+3] == 0x13A00001) &&                 // MOVNE R0, #1
k                5299 tools/finsig_dryos.c                 isBX_LR(fw,k+4))                                // BX LR
k                5301 tools/finsig_dryos.c                 uint32_t base = LDR2val(fw,k);
k                5302 tools/finsig_dryos.c                 print_stubs_min(fw,"zoom_status",base,idx2adr(fw,k));
k                5311 tools/finsig_dryos.c         k = find_str_ref(fw, "TerminateDeliverToZoomController");
k                5312 tools/finsig_dryos.c         if (k >= 0)
k                5316 tools/finsig_dryos.c                 if (isLDR_PC(fw,k+k1))
k                5318 tools/finsig_dryos.c                     uint32_t base = LDR2val(fw,k+k1);
k                5319 tools/finsig_dryos.c                     print_stubs_min(fw,"zoom_status",base+0x20,idx2adr(fw,k+k1));
k                5334 tools/finsig_dryos.c         for (k=0; k<fw->size; k++)
k                5336 tools/finsig_dryos.c             if (fw->buf[k] == fw->sv->min_focus_len)
k                5339 tools/finsig_dryos.c                 if ((fw->buf[k+1] == 100) && (fw->buf[k+2] == 0)) mul = 3;
k                5340 tools/finsig_dryos.c                 if ((fw->buf[k+1] == 100) && (fw->buf[k+2] != 0)) mul = 2;
k                5341 tools/finsig_dryos.c                 if ((fw->buf[k+1] ==   0) && (fw->buf[k+2] != 0)) mul = 2;
k                5342 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                5345 tools/finsig_dryos.c                     if ((found == 0) || ((size < mul) && (len < ((k1 - k) / mul) + 1)))
k                5348 tools/finsig_dryos.c                         pos = k;
k                5349 tools/finsig_dryos.c                         len = ((k1 - k) / mul) + 1;
k                5374 tools/finsig_dryos.c     k = find_str_ref(fw, "ShootCon_NotifyStartReviewHold");
k                5375 tools/finsig_dryos.c     if (k >= 0)
k                5377 tools/finsig_dryos.c         for (k1=k; k1<k+20; k1++)
k                5408 tools/finsig_dryos.c     uint32_t v = find_viewport_address(fw,&k);
k                5409 tools/finsig_dryos.c     if (k >= 0)
k                5415 tools/finsig_dryos.c     k = find_str_ref(fw, "CRAW BUFF       %p");
k                5416 tools/finsig_dryos.c     if (k >= 0)
k                5420 tools/finsig_dryos.c         if (isLDR(fw,k-1))
k                5422 tools/finsig_dryos.c             rb1 = LDR2val(fw,k-1);
k                5423 tools/finsig_dryos.c             rb1_idx = k - 1;
k                5425 tools/finsig_dryos.c         else if (isMOV_immed(fw,k-1))
k                5427 tools/finsig_dryos.c             rb1 = ALUop2(fw,k-1);
k                5428 tools/finsig_dryos.c             rb1_idx = k - 1;
k                5430 tools/finsig_dryos.c         else if (isMOV(fw,k-1) && (fwRd(fw,k-1) == 1))
k                5432 tools/finsig_dryos.c             int reg = fwval(fw,k-1) & 0xF;
k                5433 tools/finsig_dryos.c             for (k1=k-2; k1>k-50; k1--)
k                5451 tools/finsig_dryos.c                 k = find_nxt_str_ref(fw, sadr, -1);
k                5452 tools/finsig_dryos.c                 while ((k >= 0) && !found)
k                5454 tools/finsig_dryos.c                     int f = find_inst_rev(fw, isSTMFD_LR, k-1, 100);
k                5505 tools/finsig_dryos.c                     k = find_nxt_str_ref(fw, sadr, k);
k                5516 tools/finsig_dryos.c     k = get_saved_sig(fw, "TakeSemaphoreStrictly");
k                5517 tools/finsig_dryos.c     if (k >= 0)
k                5519 tools/finsig_dryos.c         uint32_t fadr = func_names[k].val;
k                5520 tools/finsig_dryos.c         k = find_str(fw, "FileSem.c");
k                5521 tools/finsig_dryos.c         if (k >= 0)
k                5523 tools/finsig_dryos.c             uint32_t nadr = idx2adr(fw, k);
k                5547 tools/finsig_dryos.c int find_ctypes(firmware *fw, int k)
k                5561 tools/finsig_dryos.c     if (k < (fw->size*4 - sizeof(ctypes)))
k                5563 tools/finsig_dryos.c         if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0)
k                5565 tools/finsig_dryos.c             bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k);
k                5572 tools/finsig_dryos.c int match_nrflag3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                5574 tools/finsig_dryos.c     if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == v1))
k                5579 tools/finsig_dryos.c         for (k3=k; k3>k-30; k3--)
k                5602 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                5607 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                5659 tools/finsig_dryos.c int match_nrflag2(firmware *fw, int k, int v)
k                5662 tools/finsig_dryos.c     if (isBL(fw,k))
k                5664 tools/finsig_dryos.c         k = idxFollowBranch(fw,k,0x01000001);
k                5665 tools/finsig_dryos.c         return search_fw(fw, match_nrflag3, k, 0, 1);
k                6187 tools/finsig_dryos.c     int j, k, n, fnd;
k                6205 tools/finsig_dryos.c             k = find_nxt_str_ref(fw, i, j+1);
k                6206 tools/finsig_dryos.c             if (k != -1)
k                6208 tools/finsig_dryos.c                 if (k-j>5)
k                6211 tools/finsig_dryos.c                     j = k;
k                6403 tools/finsig_dryos.c int match_propsig1a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                6405 tools/finsig_dryos.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                6408 tools/finsig_dryos.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                6409 tools/finsig_dryos.c             padr = LDR2val(fw,k);
k                6411 tools/finsig_dryos.c             padr = ADR2adr(fw,k);
k                6414 tools/finsig_dryos.c             int j1 = find_inst_rev(fw, isBL, k-1, 16);
k                6613 tools/finsig_dryos.c     int k, kval = 0;
k                6614 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6616 tools/finsig_dryos.c         if (fw->buf[tidx+k+1] == ev)
k                6618 tools/finsig_dryos.c             kval = fw->buf[tidx+k];
k                6619 tools/finsig_dryos.c             tadr = idx2adr(fw,tidx+k);
k                6641 tools/finsig_dryos.c     int k, kval = 0;
k                6646 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6648 tools/finsig_dryos.c         ev = fw->buf[tidx+k+1];
k                6649 tools/finsig_dryos.c         kval = fw->buf[tidx+k];
k                6650 tools/finsig_dryos.c         tadr = idx2adr(fw,tidx+k);
k                6694 tools/finsig_dryos.c     int r, k, kval = 0;
k                6697 tools/finsig_dryos.c     for (k=0; k<tlen; k+=tsiz)
k                6699 tools/finsig_dryos.c         if (fw->buf[tidx+k+1] == ev)
k                6701 tools/finsig_dryos.c             kval = fw->buf[tidx+k];
k                6702 tools/finsig_dryos.c             tadr = idx2adr(fw,tidx+k);
k                6780 tools/finsig_dryos.c     int k;
k                6781 tools/finsig_dryos.c     for (k=0; k<kcount; k++)
k                6783 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                6789 tools/finsig_dryos.c int match_GetSDProtect(firmware *fw, int k, int v)
k                6791 tools/finsig_dryos.c     if (isB(fw,k))    // B
k                6793 tools/finsig_dryos.c         k = idxFollowBranch(fw,k,1);
k                6794 tools/finsig_dryos.c         if (isLDR_PC(fw,k))
k                6796 tools/finsig_dryos.c             return LDR2val(fw,k);
k                6805 tools/finsig_dryos.c     int k,k1;
k                6814 tools/finsig_dryos.c         k = find_str_ref(fw,"SD Not Exist\n");
k                6815 tools/finsig_dryos.c         if (k >= 0)
k                6817 tools/finsig_dryos.c             for (k1=k-1; k1>k-5; k1--)
k                6837 tools/finsig_dryos.c         for (k=0; k<(tadr-fw->base)/4; k++)
k                6839 tools/finsig_dryos.c             if (isLDR_PC(fw,k))
k                6841 tools/finsig_dryos.c                 uint32_t adr = LDR2val(fw,k);
k                6852 tools/finsig_dryos.c             for (k=0; k<tlen/3; k+=3)
k                6854 tools/finsig_dryos.c                 if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF))
k                6985 tools/finsig_dryos.c int get_eventproc_val(firmware *fw, int k)
k                6987 tools/finsig_dryos.c     if (isADR_PC(fw,k) && (fwRd(fw,k) == 0))
k                6988 tools/finsig_dryos.c         nadr = ADR2adr(fw,k);
k                6989 tools/finsig_dryos.c     else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1))
k                6990 tools/finsig_dryos.c         eadr = ADR2adr(fw,k);
k                6991 tools/finsig_dryos.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                6992 tools/finsig_dryos.c         nadr = LDR2val(fw,k);
k                6993 tools/finsig_dryos.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1))
k                6994 tools/finsig_dryos.c         eadr = LDR2val(fw,k);
k                7002 tools/finsig_dryos.c     int k;
k                7011 tools/finsig_dryos.c     for (k=0; func_names[k].name != 0; k++)
k                7013 tools/finsig_dryos.c         if (strcmp(func_names[k].name, s) == 0)
k                7015 tools/finsig_dryos.c             if (func_names[k].val == 0)             // same name, no address
k                7017 tools/finsig_dryos.c                 func_names[k].val = eadr;
k                7018 tools/finsig_dryos.c                 func_names[k].flags |= EV_MATCH;
k                7022 tools/finsig_dryos.c             else if (func_names[k].val == eadr)     // same name, same address
k                7050 tools/finsig_dryos.c int match_eventproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7052 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                7054 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                7059 tools/finsig_dryos.c             k--;
k                7060 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                7062 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                7065 tools/finsig_dryos.c                     k = k1 - 1;
k                7066 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7069 tools/finsig_dryos.c             k--;
k                7070 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                7072 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                7075 tools/finsig_dryos.c                     k = k1 - 1;
k                7076 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7088 tools/finsig_dryos.c int match_registerproc2(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7090 tools/finsig_dryos.c     int j = k;
k                7091 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                7093 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                7098 tools/finsig_dryos.c             k--;
k                7099 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                7101 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                7104 tools/finsig_dryos.c                     k = k1 - 1;
k                7105 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7108 tools/finsig_dryos.c             k--;
k                7109 tools/finsig_dryos.c             if (get_eventproc_val(fw, k) == 0)
k                7111 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isB, k, 500);
k                7114 tools/finsig_dryos.c                     k = k1 - 1;
k                7115 tools/finsig_dryos.c                     get_eventproc_val(fw, k);
k                7125 tools/finsig_dryos.c                 k = j;
k                7126 tools/finsig_dryos.c                 int k1 = find_inst_rev(fw, isLDR_PC, k, 8);
k                7132 tools/finsig_dryos.c                         int k3 = k;
k                7133 tools/finsig_dryos.c                         while (k3 > k-4)
k                7157 tools/finsig_dryos.c int match_registerproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7159 tools/finsig_dryos.c     if (isB(fw,k+1) && isMOV_immed(fw,k) && (fwRd(fw,k) == 2))
k                7161 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k+1),1);
k                7164 tools/finsig_dryos.c             search_fw(fw, match_registerproc2, idx2adr(fw,k), 0, 2);
k                7170 tools/finsig_dryos.c int match_registerlists(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7172 tools/finsig_dryos.c     if (isBorBL(fw,k+1) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                7174 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
k                7177 tools/finsig_dryos.c             int j = adr2idx(fw,LDR2val(fw,k));
k                7180 tools/finsig_dryos.c                 j = adr2idx(fw,LDR2val(fw,k) - fw->data_start + fw->data_init_start);
k                7192 tools/finsig_dryos.c     else if (isBorBL(fw,k+1) && isLDMFD(fw,k) && isLDR_PC(fw,k-1) && (fwRd(fw,k-1) == 0))
k                7194 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
k                7197 tools/finsig_dryos.c             int j = adr2idx(fw,LDR2val(fw,k-1));
k                7200 tools/finsig_dryos.c                 j = adr2idx(fw,LDR2val(fw,k-1) - fw->data_start + fw->data_init_start);
k                7264 tools/finsig_dryos.c             int k;
k                7265 tools/finsig_dryos.c             for (k=j; k<j+8; k++)
k                7267 tools/finsig_dryos.c                 if (isBL(fw,k))
k                7269 tools/finsig_dryos.c                     int k1 = adr2idx(fw,followBranch(fw,idx2adr(fw,k),0x01000001));
k                7292 tools/finsig_dryos.c uint32_t findTaskAddress(firmware *fw, int k, int reg)
k                7298 tools/finsig_dryos.c         if (isLDR_PC(fw,k+o) && (fwRd(fw,k+o) == reg))
k                7300 tools/finsig_dryos.c             uint32_t adr = LDR2val(fw,k+o);
k                7304 tools/finsig_dryos.c                 if (fwval(fw,k+i) == (0xE5900000 | (reg << 12) | (reg << 16)))    // LDR Rx,[Rx]
k                7311 tools/finsig_dryos.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == reg))
k                7313 tools/finsig_dryos.c             return(ADR2adr(fw,k+o));
k                7320 tools/finsig_dryos.c int match_createtask(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7323 tools/finsig_dryos.c     k = idxcorr(fw, k);
k                7324 tools/finsig_dryos.c     if (isBorBL(fw,k))
k                7326 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                7329 tools/finsig_dryos.c             fadr = findTaskAddress(fw, k, 3);
k                7332 tools/finsig_dryos.c                 uint32_t sadr = findTaskAddress(fw, k, 0);
k                7349 tools/finsig_dryos.c     int k = get_saved_sig(fw,"CreateTask");
k                7350 tools/finsig_dryos.c     if (k >= 0)
k                7352 tools/finsig_dryos.c         search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7354 tools/finsig_dryos.c     k = get_saved_sig(fw,"CreateTaskStrictly");
k                7355 tools/finsig_dryos.c     if (k >= 0)
k                7357 tools/finsig_dryos.c         search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7361 tools/finsig_dryos.c         k = get_saved_sig(fw,"CreateTaskStrictly_alt"); // r59+
k                7362 tools/finsig_dryos.c         if (k >= 0)
k                7364 tools/finsig_dryos.c             search_fw(fw, match_createtask, func_names[k].val, 0, 7);
k                7411 tools/finsig_dryos.c int find_ptp_handler_imm(firmware *fw, int k)
k                7421 tools/finsig_dryos.c         if (isLDR_PC(fw,k+o))
k                7423 tools/finsig_dryos.c             if(fwRd(fw,k+o) == 0)
k                7425 tools/finsig_dryos.c                 op = LDR2val(fw,k+o);
k                7427 tools/finsig_dryos.c             else if(fwRd(fw,k+o) == 1){
k                7428 tools/finsig_dryos.c                 handler = LDR2val(fw,k+o);
k                7432 tools/finsig_dryos.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1))
k                7434 tools/finsig_dryos.c             handler=ADR2adr(fw,k+o);
k                7446 tools/finsig_dryos.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                7449 tools/finsig_dryos.c     if(fwval(fw,k) == 0x1004
k                7450 tools/finsig_dryos.c         && fwval(fw,k+2) == 0x1005
k                7451 tools/finsig_dryos.c         && fwval(fw,k+4) == 0x1006
k                7452 tools/finsig_dryos.c         && fwval(fw,k+1) > fw->base
k                7453 tools/finsig_dryos.c         && fwval(fw,k+3) > fw->base
k                7454 tools/finsig_dryos.c         && fwval(fw,k+5) > fw->base)
k                7460 tools/finsig_dryos.c             uint32_t op=fwval(fw,k+i*2);
k                7461 tools/finsig_dryos.c             uint32_t handler=fwval(fw,k+i*2+1);
k                7471 tools/finsig_dryos.c     k = idxcorr(fw, k);
k                7472 tools/finsig_dryos.c     if (!isBorBL(fw,k))
k                7476 tools/finsig_dryos.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                7480 tools/finsig_dryos.c         find_ptp_handler_imm(fw,k);
k                7488 tools/finsig_dryos.c     int k = get_saved_sig(fw,"add_ptp_handler");
k                7489 tools/finsig_dryos.c     if (k >= 0)
k                7491 tools/finsig_dryos.c         search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128);
k                7550 tools/finsig_dryos.c         uint32_t k = j + c - fw->firmware_ver_str;
k                7551 tools/finsig_dryos.c         if ( (k>=j) && (k<j+32) )
k                7553 tools/finsig_dryos.c             bprintf("//   %s   // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k);
k                7674 tools/finsig_dryos.c     int k;
k                7679 tools/finsig_dryos.c     for (k=0; k<next_func_entry; k++)
k                7681 tools/finsig_dryos.c         if (strncmp(fns[k]->name,"hook_",5) != 0)
k                7683 tools/finsig_dryos.c             if (fns[k]->val != 0)
k                7685 tools/finsig_dryos.c                 if (fns[k]->flags & BAD_MATCH)
k                7687 tools/finsig_dryos.c                     osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name);
k                7689 tools/finsig_dryos.c                         fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name);
k                7692 tools/finsig_dryos.c                     fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name);
k                7695 tools/finsig_dryos.c             else if (fns[k]->flags & LIST_ALWAYS)
k                7698 tools/finsig_dryos.c                 fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name);
k                7709 tools/finsig_dryos.c     int k;
k                7751 tools/finsig_dryos.c     for (k = 0; k < max_find_func; k++)
k                7754 tools/finsig_dryos.c         curr_name = func_names[k].name;
k                7759 tools/finsig_dryos.c             print_results(&fw,curr_name,k);
k                7784 tools/finsig_dryos.c     for (k=0; k<next_func_entry; k++)
k                7785 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                 593 tools/finsig_vxworks.c     int k = get_saved_sig(fw, sig);
k                 594 tools/finsig_vxworks.c     if (k >= 0)
k                 596 tools/finsig_vxworks.c         int idx = adr2idx(fw, func_names[k].val);
k                 597 tools/finsig_vxworks.c         for (k=idx+ofst; k<idx+ofst+len; k++)
k                 599 tools/finsig_vxworks.c             int rv = func(fw, k, v);
k                 631 tools/finsig_vxworks.c int match_apex2us(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                 633 tools/finsig_vxworks.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1) && ((fwRd(fw,k) == 1) || (fwRd(fw,k) == 2)))
k                 635 tools/finsig_vxworks.c         k = find_inst_rev(fw, isSTMFD_LR, k, 200);
k                 636 tools/finsig_vxworks.c         if (k != 0)
k                 638 tools/finsig_vxworks.c             if (fwval(fw,k-2) == 0xE3700D09)    // CMN R0, #0x240
k                 639 tools/finsig_vxworks.c                 k -= 2;
k                 640 tools/finsig_vxworks.c             uint32_t fadr = idx2adr(fw,k);
k                 658 tools/finsig_vxworks.c int find_mkdir(firmware *fw, string_sig *sig, int k)
k                 660 tools/finsig_vxworks.c     if (fwval(fw,k) == 0x12CEA600)
k                 662 tools/finsig_vxworks.c         k = find_inst_rev(fw, isSTMFD_LR, k-20, 200);
k                 663 tools/finsig_vxworks.c         if (k != 0)
k                 665 tools/finsig_vxworks.c             if ((((fwval(fw,k+12) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+15) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+19) & 0xFFF0FFFF) == 0xE3500020)) ||
k                 666 tools/finsig_vxworks.c                 (((fwval(fw,k+11) & 0xFFF0FFFF) == 0xE350002F) && ((fwval(fw,k+14) & 0xFFF0FFFF) == 0xE3500021) && ((fwval(fw,k+18) & 0xFFF0FFFF) == 0xE3500020)))
k                 669 tools/finsig_vxworks.c                 if (isBL(fw,k+47))
k                 671 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+47), 0x01000001);
k                 673 tools/finsig_vxworks.c                 else if (isBL(fw,k+48))
k                 675 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+48), 0x01000001);
k                 763 tools/finsig_vxworks.c         int k = find_inst_rev(fw, isSTMFD_LR, j-1, 100);
k                 764 tools/finsig_vxworks.c         uint32_t fadr = idx2adr(fw,k);
k                 810 tools/finsig_vxworks.c     int k = find_inst_rev(fw, isSTMFD_LR, j-1, 8);
k                 811 tools/finsig_vxworks.c     if(k < 0) {
k                 816 tools/finsig_vxworks.c     uint32_t fadr = idx2adr(fw, k);
k                 829 tools/finsig_vxworks.c         int k = find_inst(fw, isSTMFD_LR, adr2idx(fw,func_names[j].val)+1, 100);
k                 830 tools/finsig_vxworks.c         if (isB(fw,k-1) && isBL(fw,k-2))
k                 832 tools/finsig_vxworks.c             uint32_t fadr = followBranch(fw, idx2adr(fw, k-2), 0x01000001);
k                 842 tools/finsig_vxworks.c int find_add_ptp_handler(firmware *fw, string_sig *sig, int k)
k                 848 tools/finsig_vxworks.c     while ((vals[i] != 0) && isLDR_PC(fw,k) && (fwRd(fw,k) == 0) && (LDR2val(fw,k) == vals[i]))
k                 850 tools/finsig_vxworks.c         k = find_inst(fw, isBL, k+1, 5);
k                 851 tools/finsig_vxworks.c         if (k == 0) return 0;
k                 853 tools/finsig_vxworks.c             fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 854 tools/finsig_vxworks.c         k = find_inst(fw, isLDR_PC, k+1, 5);
k                 855 tools/finsig_vxworks.c         if (k == 0) return 0;
k                 871 tools/finsig_vxworks.c     int j, k;
k                 879 tools/finsig_vxworks.c             k = find_inst(fw, isBL, j+1, 4);
k                 880 tools/finsig_vxworks.c             if (k >= 0)
k                 882 tools/finsig_vxworks.c                 uint32_t fadr = followBranch(fw, idx2adr(fw,k), 0x01000001);
k                 885 tools/finsig_vxworks.c                     k = find_inst(fw, isB, k+1, 10);
k                 886 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw, k), 1);
k                 900 tools/finsig_vxworks.c     int k = find_str_ref(fw,"ExportToEventProcedure");
k                 902 tools/finsig_vxworks.c     if (k >= 0)
k                 904 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k+1) == 1))
k                 906 tools/finsig_vxworks.c             uint32_t fadr = LDR2val(fw,k+1);
k                 918 tools/finsig_vxworks.c     int k = find_str_ref(fw,"CreateProxyOfEventProcedure");
k                 920 tools/finsig_vxworks.c     if (k >= 0)
k                 922 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1) && (isBorBL(fw,k+2) || isBorBL(fw,k+3)) && (fwRd(fw,k) == 0))
k                 925 tools/finsig_vxworks.c             if (isBorBL(fw,k+2))
k                 926 tools/finsig_vxworks.c                 fadr = followBranch(fw,idx2adr(fw,k+2),0x01000001);
k                 928 tools/finsig_vxworks.c                 fadr = followBranch(fw,idx2adr(fw,k+3),0x01000001);
k                 940 tools/finsig_vxworks.c     int j1, j2, k, found, n;
k                 950 tools/finsig_vxworks.c         for (k=j1-1; k>j1-256; k--)
k                 952 tools/finsig_vxworks.c             if (isBL(fw,k))
k                 954 tools/finsig_vxworks.c                 if (j2 == idxFollowBranch(fw,k,0x01000001))
k                 966 tools/finsig_vxworks.c             k = find_inst_rev(fw,isSTMFD_LR,k,60);
k                 968 tools/finsig_vxworks.c             j2 = find_inst(fw,isLDMFD_PC,k+1,128);
k                 969 tools/finsig_vxworks.c             if ( (k<0) || (j2<0) )
k                 973 tools/finsig_vxworks.c             k++;
k                 977 tools/finsig_vxworks.c                 k = find_inst(fw,isBL,k,32);
k                 979 tools/finsig_vxworks.c                 if ( (k>j2) || (k<0) )
k                 981 tools/finsig_vxworks.c                 j1 = idxFollowBranch(fw,k,0x01000001);
k                 990 tools/finsig_vxworks.c                 k++;
k                1160 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                1161 tools/finsig_vxworks.c     if (k >= 0)
k                1163 tools/finsig_vxworks.c     k = get_saved_sig(fw,"memset_FW");
k                1164 tools/finsig_vxworks.c     if (k < 0)
k                1166 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                1179 tools/finsig_vxworks.c             if (idx2adr(fw,idxFollowBranch(fw,n,0x01000001)) == idx2adr(fw,k))
k                1197 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                1198 tools/finsig_vxworks.c     if (k >= 0)
k                1200 tools/finsig_vxworks.c     k = get_saved_sig(fw,"DebugAssert"); // 
k                1201 tools/finsig_vxworks.c     if (k < 0)
k                1203 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                1212 tools/finsig_vxworks.c         if (idx2adr(fw,m) != idx2adr(fw,k))
k                1228 tools/finsig_vxworks.c     int k=adr2idx(fw,func_names[j].val);
k                1229 tools/finsig_vxworks.c     int k_max=k+120;
k                1235 tools/finsig_vxworks.c     for(; k < k_max;k++) {
k                1239 tools/finsig_vxworks.c         if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) {
k                1240 tools/finsig_vxworks.c             adr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                1250 tools/finsig_vxworks.c     k_max = k+6;
k                1251 tools/finsig_vxworks.c     for(; k < k_max;k++) {
k                1252 tools/finsig_vxworks.c         if(isMOV_immed(fw,k) && fwRn(fw,k) == 0 && ALUop2(fw,k) == file_buf_id && isBL(fw, k+1)) {
k                1253 tools/finsig_vxworks.c             uint32_t adr2 = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                1296 tools/finsig_vxworks.c                         int k;
k                1297 tools/finsig_vxworks.c                         k = idxFollowBranch(fw,n,0x01000001);
k                1298 tools/finsig_vxworks.c                         if ( idx2adr(fw, k) == idx2adr(fw, j) )
k                1301 tools/finsig_vxworks.c                             k = find_inst(fw, isBL, s1+2, 6);
k                1302 tools/finsig_vxworks.c                             if (k != -1)
k                1304 tools/finsig_vxworks.c                                 int l = idxFollowBranch(fw,k,0x01000001);
k                1307 tools/finsig_vxworks.c                                     k = find_inst(fw, isBL, k+1, 6);
k                1308 tools/finsig_vxworks.c                                     if (k == -1)
k                1310 tools/finsig_vxworks.c                                     l = idxFollowBranch(fw,k,0x01000001);
k                1318 tools/finsig_vxworks.c                                     k = idxFollowBranch(fw,l+1,0x01000001);
k                1319 tools/finsig_vxworks.c                                     fwAddMatch(fw,idx2adr(fw,k),32,0,122);
k                1943 tools/finsig_vxworks.c int match_strsig2a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1945 tools/finsig_vxworks.c     if (fwval(fw,k) == sadr)                // pointer to string?
k                1947 tools/finsig_vxworks.c         uint32_t fadr = fwval(fw,k+1);      // function address
k                1984 tools/finsig_vxworks.c int match_strsig3a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                1986 tools/finsig_vxworks.c     if (isADR_PC(fw,k+1) &&    // ADR ?
k                1987 tools/finsig_vxworks.c         isBorBL(fw,k+2))       // B or BL ?
k                1989 tools/finsig_vxworks.c         uint32_t padr = ADR2adr(fw,k+1);    // get address pointed to by 2nd ADR instructioin
k                1992 tools/finsig_vxworks.c             int j2 = k;
k                1994 tools/finsig_vxworks.c             if (isADR_PC(fw,k))             // ADR ?
k                1999 tools/finsig_vxworks.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2006 tools/finsig_vxworks.c                         if (adr2idx(fw,fa) == k+1)
k                2037 tools/finsig_vxworks.c int match_strsig4a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2039 tools/finsig_vxworks.c     if (isSTMFD(fw,k) &&        // STMFD
k                2040 tools/finsig_vxworks.c         isADR_PC(fw,k+offset))  // ADR ?
k                2042 tools/finsig_vxworks.c         uint32_t padr = ADR2adr(fw,k+offset);
k                2045 tools/finsig_vxworks.c             uint32_t fadr = idx2adr(fw,k);
k                2073 tools/finsig_vxworks.c int match_strsig5a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2075 tools/finsig_vxworks.c     if ((isADR_PC(fw,k+1) || isLDR_PC(fw,k+1)) &&   // LDR or ADR ?
k                2076 tools/finsig_vxworks.c         isBorBL(fw,k+2))                            // B or BL ?
k                2079 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+1))                       // LDR ?
k                2080 tools/finsig_vxworks.c             padr = LDR2val(fw,k+1);
k                2082 tools/finsig_vxworks.c             padr = ADR2adr(fw,k+1);
k                2085 tools/finsig_vxworks.c             int j2 = k;
k                2087 tools/finsig_vxworks.c             if (isLDR_PC(fw,k))                     // LDR ?
k                2091 tools/finsig_vxworks.c                 for (j2 = k-2; j2 >= 0 && j2 >= k-4096; j2--)
k                2096 tools/finsig_vxworks.c                         if (idxFollowBranch(fw,j2+1,1) == k+1)
k                2149 tools/finsig_vxworks.c int match_strsig7a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2151 tools/finsig_vxworks.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k)) // LDR or ADR ?
k                2154 tools/finsig_vxworks.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2155 tools/finsig_vxworks.c             padr = LDR2val(fw,k);
k                2157 tools/finsig_vxworks.c             padr = ADR2adr(fw,k);
k                2160 tools/finsig_vxworks.c             int j2 = find_inst(fw, isBL, k+1, 10);
k                2381 tools/finsig_vxworks.c int match_strsig13a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2383 tools/finsig_vxworks.c     if (fwval(fw,k) == sadr)    // string ptr
k                2385 tools/finsig_vxworks.c         uint32_t padr = idx2adr(fw,k);      // string ptr address
k                2387 tools/finsig_vxworks.c         for (j2 = k-1; j2 >= 0; j2--)
k                2420 tools/finsig_vxworks.c int match_strsig15a(firmware *fw, int k, uint32_t sadr, uint32_t offset)
k                2422 tools/finsig_vxworks.c     if (isADR_PC_cond(fw,k) || isLDR_PC_cond(fw,k))   // LDR or ADR ?
k                2425 tools/finsig_vxworks.c         if (isLDR_PC_cond(fw,k)) // LDR ?
k                2426 tools/finsig_vxworks.c             padr = LDR2val(fw,k);
k                2428 tools/finsig_vxworks.c             padr = ADR2adr(fw,k);
k                2431 tools/finsig_vxworks.c             int j2 = find_inst_rev(fw, isBL, k-1, dryos_ofst);
k                2461 tools/finsig_vxworks.c             int k = adr2idx(fw,LDR2adr(fw,j));
k                2462 tools/finsig_vxworks.c             if (idx_valid(fw,k))
k                2463 tools/finsig_vxworks.c                 padr = fwval(fw,k);
k                2493 tools/finsig_vxworks.c             int k = 0;
k                2496 tools/finsig_vxworks.c                 k = adr2idx(fw,LDR2val(fw,idx-3));
k                2500 tools/finsig_vxworks.c                 k = adr2idx(fw,ADR2adr(fw,idx-2));
k                2502 tools/finsig_vxworks.c             if (k != 0)
k                2506 tools/finsig_vxworks.c                     fadr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
k                2509 tools/finsig_vxworks.c                     k = find_inst(fw, isLDMFD, k+1, 60);
k                2510 tools/finsig_vxworks.c                     fadr = followBranch(fw,idx2adr(fw,k-1),0x01000001);
k                2547 tools/finsig_vxworks.c             int k = 0;
k                2550 tools/finsig_vxworks.c                 case 0: k = isLDMFD_PC(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                2551 tools/finsig_vxworks.c                 case 1: k = isB(fw, adr2idx(fw, fadr)-1-addoffs); break;
k                2553 tools/finsig_vxworks.c             if (k)
k                2986 tools/finsig_vxworks.c void print_results(firmware *fw, const char *curr_name, int k)
k                2992 tools/finsig_vxworks.c     if (func_names[k].flags & DONT_EXPORT) return;
k                3004 tools/finsig_vxworks.c         func_names[k].flags |= BAD_MATCH;
k                3008 tools/finsig_vxworks.c         if (func_names[k].flags & UNUSED) return;
k                3020 tools/finsig_vxworks.c         if (func_names[k].flags & OPTIONAL) return;
k                3027 tools/finsig_vxworks.c         if (ostub2 || (func_names[k].flags & UNUSED))
k                3092 tools/finsig_vxworks.c void output_modemap(firmware *fw, int k, int l)
k                3096 tools/finsig_vxworks.c     bprintf("%08x\n",idx2adr(fw,k));
k                3098 tools/finsig_vxworks.c     if (fw->buf[k] & 0xffff0000)
k                3101 tools/finsig_vxworks.c         uint16_t *p = (uint16_t*)(&fw->buf[k]);
k                3102 tools/finsig_vxworks.c         k = 0;
k                3103 tools/finsig_vxworks.c         while ((*p != 0xFFFF) && (k < l*2))
k                3120 tools/finsig_vxworks.c             k++;
k                3126 tools/finsig_vxworks.c         uint32_t *p = (uint32_t*)(&fw->buf[k]);
k                3127 tools/finsig_vxworks.c         k = 0;
k                3128 tools/finsig_vxworks.c         while (k < l)
k                3164 tools/finsig_vxworks.c             k++;
k                3233 tools/finsig_vxworks.c int match_FlashParamsTable2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3235 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                3237 tools/finsig_vxworks.c         FlashParamsTable_address = idx2adr(fw,k);
k                3243 tools/finsig_vxworks.c int match_FlashParamsTable(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3245 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                3247 tools/finsig_vxworks.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3251 tools/finsig_vxworks.c     if ((fw->buf[k+1] > fw->base) && (fw->buf[k] == 0x00000000) && (fw->buf[k+2] == 0x00000001) &&
k                3252 tools/finsig_vxworks.c         (fw->buf[k+3] == 0x00000000) && (fw->buf[k+4] == 0xffffffff))
k                3254 tools/finsig_vxworks.c         if (search_fw(fw, match_FlashParamsTable2, idx2adr(fw,k), 0, 1))
k                3305 tools/finsig_vxworks.c     int k = isLDR_PC(fw, s1);
k                3306 tools/finsig_vxworks.c     if (!k)
k                3308 tools/finsig_vxworks.c     k = fwRd(fw, s1);
k                3309 tools/finsig_vxworks.c     if (k > 0)
k                3331 tools/finsig_vxworks.c     int k,k1;
k                3483 tools/finsig_vxworks.c         for (k=k1; k<k1+20; k++)
k                3485 tools/finsig_vxworks.c             uint32_t fadr = fwval(fw,k);
k                3496 tools/finsig_vxworks.c                         bprintf("//#define PARAM_CAMERA_NAME %d // Found @0x%08x\n",k-k1,fadr);
k                3511 tools/finsig_vxworks.c     int k, k1;
k                3514 tools/finsig_vxworks.c     k = find_str_ref(fw, "VRAM Address  : %p\r");
k                3515 tools/finsig_vxworks.c     if (k >= 0)
k                3517 tools/finsig_vxworks.c         for (k1=k-1; k1>k-8; k1--)
k                3534 tools/finsig_vxworks.c int match_vid_get_bitmap_fb(firmware *fw, int k, int v)
k                3536 tools/finsig_vxworks.c     if (isBL(fw,k-1) && // BL
k                3537 tools/finsig_vxworks.c         isLDR_PC(fw,k))
k                3539 tools/finsig_vxworks.c         uint32_t v1 = LDR2val(fw,k);
k                3540 tools/finsig_vxworks.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                3544 tools/finsig_vxworks.c     if (isBL(fw,k-1) && // BL
k                3545 tools/finsig_vxworks.c         (isLDR_PC(fw,k+1)))
k                3547 tools/finsig_vxworks.c         uint32_t v1 = LDR2val(fw,k+1);
k                3548 tools/finsig_vxworks.c         bprintf("//void *vid_get_bitmap_fb()        { return (void*)0x%08x; }             // Found @0x%08x\n",v1,idx2adr(fw,k));
k                3555 tools/finsig_vxworks.c int match_get_flash_params_count(firmware *fw, int k, int v)
k                3557 tools/finsig_vxworks.c     if ((fw->buf[k] & 0xFFF00FFF) == 0xE3C00901)    // BIC Rn, Rn, #0x4000
k                3559 tools/finsig_vxworks.c         uint32_t r = (fw->buf[k] & 0x0000F000)<<4;       // Register
k                3561 tools/finsig_vxworks.c         for (n=k+1; n<k+20; n++)
k                3576 tools/finsig_vxworks.c int match_uiprop_count(firmware *fw, int k, int v)
k                3580 tools/finsig_vxworks.c     if (isB(fw, k+6))
k                3582 tools/finsig_vxworks.c         j = idxFollowBranch(fw,k+6,0x01000001);
k                3632 tools/finsig_vxworks.c int match_imager_active(firmware *fw, int k, int v)
k                3638 tools/finsig_vxworks.c     if (fwval(fw,k) == 0xe49df004) // POP {PC}
k                3640 tools/finsig_vxworks.c         int k1 = find_inst_rev(fw, isBL, k-1, 10);
k                3899 tools/finsig_vxworks.c int match_levent_table(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3901 tools/finsig_vxworks.c     if ((fw->buf[k] > fw->base) && (fw->buf[k+1] == 0x00000800) && (fw->buf[k+2] == 0x00000002))
k                3903 tools/finsig_vxworks.c         print_stubs_min(fw,"levent_table",idx2adr(fw,k),idx2adr(fw,k));
k                3905 tools/finsig_vxworks.c         uint32_t levent_tbl = idx2adr(fw,k);
k                3913 tools/finsig_vxworks.c int match_movie_status(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3915 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                              // LDR R0, =base
k                3916 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFE0F0000) == 0xE20F0000) &&  // ADR R1, =sub
k                3917 tools/finsig_vxworks.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                3918 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                3919 tools/finsig_vxworks.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                3920 tools/finsig_vxworks.c         (LDR2val(fw,k) < fw->base))
k                3922 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3923 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                3924 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3928 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                              // LDR R1, =sub
k                3929 tools/finsig_vxworks.c         isLDR_PC(fw, k+1) &&                            // LDR R0, =base
k                3930 tools/finsig_vxworks.c         isSTR(fw, k+2) &&                               // STR R1, [R0,N]
k                3931 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE3A01003) &&                 // MOV R1, 3
k                3932 tools/finsig_vxworks.c         isSTR(fw, k+4) &&                               // STR R1, [R0,ofst]
k                3933 tools/finsig_vxworks.c         (LDR2val(fw,k+1) < fw->base))
k                3935 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k+1);
k                3936 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+4] & 0x00000FFF;
k                3937 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3941 tools/finsig_vxworks.c     if (isLDR_PC(fw, k) &&                                      // LDR Rx, =base
k                3942 tools/finsig_vxworks.c         isLDR(fw, k+1) && (fwRd(fw,k) == fwRn(fw,k+1)) &&       // LDR R0, [Rx, ...]
k                3943 tools/finsig_vxworks.c         isCMP(fw, k+2) && (fwRd(fw,k+2) == fwRd(fw,k+1)) &&     // CMP R0, #...
k                3944 tools/finsig_vxworks.c         (fwval(fw,k+3) == 0x03A00005) &&
k                3945 tools/finsig_vxworks.c         isSTR_cond(fw, k+4) && (fwRn(fw,k+4) == fwRd(fw,k)) &&  // STRxx R0, [Rx,ofst]
k                3946 tools/finsig_vxworks.c         (LDR2val(fw,k) < fw->base))
k                3948 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3949 tools/finsig_vxworks.c         uint32_t ofst = fwOp2(fw,k+4);
k                3950 tools/finsig_vxworks.c         print_stubs_min(fw,"movie_status",base+ofst,idx2adr(fw,k));
k                3956 tools/finsig_vxworks.c int match_full_screen_refresh(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3958 tools/finsig_vxworks.c     if (((fw->buf[k] & 0xFF1FF000) == 0xE51F0000) &&    // LDR R0, =base
k                3959 tools/finsig_vxworks.c         (fw->buf[k+1] == 0xE5D01000) &&                 // LDRB R1, [R0]
k                3960 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE3811002) &&                 // ORR R1, R1, #2
k                3961 tools/finsig_vxworks.c         (fw->buf[k+3] == 0xE5C01000) &&                 // STRB R1, [R0]
k                3962 tools/finsig_vxworks.c         isBX_LR(fw,k+4))                                // BX LR
k                3964 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3965 tools/finsig_vxworks.c         print_stubs_min(fw,"full_screen_refresh",base,idx2adr(fw,k));
k                3970 tools/finsig_vxworks.c int match_canon_shoot_menu_active(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3972 tools/finsig_vxworks.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F1000) &&  // LDR R1, =base
k                3973 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D10000) &&  // LDRB R0, [R1, #n]
k                3974 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE2800001) &&                 // ADD R0, R0, #1
k                3975 tools/finsig_vxworks.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C10000) &&  // STRB R0, [R1, #n]
k                3976 tools/finsig_vxworks.c         (isB(fw,k+4)))                                  // B
k                3978 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3979 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                3980 tools/finsig_vxworks.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                3983 tools/finsig_vxworks.c     if (((fw->buf[k]   & 0xFF1FF000) == 0xE51F0000) &&  // LDR R0, =base
k                3984 tools/finsig_vxworks.c         ((fw->buf[k+1] & 0xFFFFF000) == 0xE5D01000) &&  // LDRB R1, [R0, #n]
k                3985 tools/finsig_vxworks.c         (fw->buf[k+2] == 0xE2811001) &&                 // ADD R1, R1, #1
k                3986 tools/finsig_vxworks.c         ((fw->buf[k+3] & 0xFFFFF000) == 0xE5C01000) &&  // STRB R1, [R0, #n]
k                3987 tools/finsig_vxworks.c         (isB(fw,k+4)))                                  // B
k                3989 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                3990 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                3991 tools/finsig_vxworks.c         print_stubs_min(fw,"canon_shoot_menu_active",base+ofst,idx2adr(fw,k));
k                3996 tools/finsig_vxworks.c int match_playrec_mode(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                3998 tools/finsig_vxworks.c     if (((fw->buf[k]    & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                3999 tools/finsig_vxworks.c         ((fw->buf[k+1]  & 0xFFFFF000) == 0xE5810000) && // STR R0, [R1, #n]
k                4000 tools/finsig_vxworks.c         ((fw->buf[k+3]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4001 tools/finsig_vxworks.c         ((fw->buf[k+4]  & 0xFFFFF000) == 0xE5900000) && // LDR R0, [R0, #n]
k                4002 tools/finsig_vxworks.c         ((fw->buf[k+6]  & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4003 tools/finsig_vxworks.c         ((fw->buf[k+9]  & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4004 tools/finsig_vxworks.c         ((fw->buf[k+12] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4005 tools/finsig_vxworks.c         ((fw->buf[k+15] & 0xFF1FF000) == 0xE51F0000) && // LDR R0, =base
k                4006 tools/finsig_vxworks.c         ((fw->buf[k+18] & 0xFF1FF000) == 0xE51F1000) && // LDR R1, =base
k                4007 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+3)) &&
k                4008 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+6)) &&
k                4009 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+9)) &&
k                4010 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+12)) &&
k                4011 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+15)) &&
k                4012 tools/finsig_vxworks.c         (LDR2val(fw,k) == LDR2val(fw,k+18)))
k                4014 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                4015 tools/finsig_vxworks.c         uint32_t ofst = fw->buf[k+1] & 0x00000FFF;
k                4016 tools/finsig_vxworks.c         print_stubs_min(fw,"playrec_mode",base+ofst,idx2adr(fw,k));
k                4021 tools/finsig_vxworks.c int match_some_flag_for_af_scan(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4023 tools/finsig_vxworks.c     if (isB(fw,k)   &&  // B loc
k                4024 tools/finsig_vxworks.c         isB(fw,k+1) &&  // B loc
k                4025 tools/finsig_vxworks.c         isB(fw,k+2) &&  // B loc
k                4026 tools/finsig_vxworks.c         isB(fw,k+3) &&  // B loc
k                4027 tools/finsig_vxworks.c         isB(fw,k+4) &&  // B loc
k                4028 tools/finsig_vxworks.c         isB(fw,k+5) &&  // B loc
k                4029 tools/finsig_vxworks.c         isB(fw,k+6) &&  // B loc
k                4030 tools/finsig_vxworks.c         isB(fw,k+7) &&  // B loc
k                4031 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+1),1)) &&
k                4032 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+2),1)) &&
k                4033 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+3),1)) &&
k                4034 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+4),1)) &&
k                4035 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) != followBranch(fw,idx2adr(fw,k+5),1)) &&
k                4036 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+6),1)) &&
k                4037 tools/finsig_vxworks.c         (followBranch(fw,idx2adr(fw,k),1) == followBranch(fw,idx2adr(fw,k+7),1)) &&
k                4038 tools/finsig_vxworks.c         (isLDR_PC(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)))))    // LDR R0, =base
k                4040 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,adr2idx(fw,followBranch(fw,idx2adr(fw,k),1)));
k                4042 tools/finsig_vxworks.c             print_stubs_min(fw,"some_flag_for_af_scan",base,followBranch(fw,idx2adr(fw,k),1));
k                4047 tools/finsig_vxworks.c int match_palette_data(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4049 tools/finsig_vxworks.c     if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4050 tools/finsig_vxworks.c         (fw->buf[k+577] == 1) && (fw->buf[k+578] == 0x00FF0000) &&
k                4051 tools/finsig_vxworks.c         (fw->buf[k+1154] == 2) && (fw->buf[k+1155] == 0x00FF0000))
k                4053 tools/finsig_vxworks.c         return idx2adr(fw,k);
k                4055 tools/finsig_vxworks.c     else if ((fw->buf[k] == 0) && (fw->buf[k+1] == 0x00FF0000) &&
k                4056 tools/finsig_vxworks.c              (fw->buf[k+513] == 1) && (fw->buf[k+514] == 0x00FF0000) &&
k                4057 tools/finsig_vxworks.c              (fw->buf[k+1026] == 2) && (fw->buf[k+1027] == 0x00FF0000))
k                4059 tools/finsig_vxworks.c         return idx2adr(fw,k);
k                4064 tools/finsig_vxworks.c int match_palette_buffer_offset(firmware *fw, int k)
k                4066 tools/finsig_vxworks.c     int idx2 = idxFollowBranch(fw, k, 0x01000001);
k                4088 tools/finsig_vxworks.c int match_palette_data3(firmware *fw, int k, uint32_t palette_data, uint32_t v2)
k                4090 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                4092 tools/finsig_vxworks.c         int palette_control = LDR2val(fw,k-6);
k                4093 tools/finsig_vxworks.c         int ptr_offset = fwOp2(fw,k-5);
k                4094 tools/finsig_vxworks.c         uint32_t fadr = find_inst_rev(fw, isSTMFD_LR, k-7, 30);
k                4102 tools/finsig_vxworks.c                 print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,k-5));
k                4103 tools/finsig_vxworks.c                 if (isBL(fw,k+8))
k                4105 tools/finsig_vxworks.c                     fadr = followBranch(fw, idx2adr(fw,k+8), 0x01000001);
k                4123 tools/finsig_vxworks.c int match_palette_data2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4125 tools/finsig_vxworks.c     if (isLDR(fw,k) && (LDR2val(fw,k) == v1))
k                4128 tools/finsig_vxworks.c         for (k1=k+1; k1<k+20; k1++)
k                4142 tools/finsig_vxworks.c                         for (k=idx; (k<idx+16) && !found; k++)
k                4144 tools/finsig_vxworks.c                             if (isBL(fw,k) && isCMP(fw,k+1) && isADR_PC(fw,k+2))
k                4146 tools/finsig_vxworks.c                                 fadr = ADR2adr(fw,k+2);
k                4243 tools/finsig_vxworks.c int match_viewport_address3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4245 tools/finsig_vxworks.c     if (isLDR_PC(fw,k) && (LDR2val(fw,k) == v1))
k                4248 tools/finsig_vxworks.c         int k1 = find_inst_rev(fw, isSTMFD_LR, k-1, 1000);
k                4256 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4265 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4274 tools/finsig_vxworks.c                 print_stubs_min(fw,"viewport_buffers",v1,idx2adr(fw,k));
k                4283 tools/finsig_vxworks.c int match_viewport_address2(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4285 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                4293 tools/finsig_vxworks.c int match_viewport_address(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4295 tools/finsig_vxworks.c     if (fw->buf[k] == v1)
k                4298 tools/finsig_vxworks.c         if (search_fw(fw, match_viewport_address2, idx2adr(fw,k), 0, 1))
k                4304 tools/finsig_vxworks.c int match_physw_status(firmware *fw, int k, int v)
k                4306 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4308 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_status",LDR2val(fw,k),idx2adr(fw,k));
k                4314 tools/finsig_vxworks.c int match_physw_run(firmware *fw, int k, int v)
k                4316 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4318 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                4319 tools/finsig_vxworks.c         uint32_t fadr = followBranch(fw, idx2adr(fw,k+1), 1);
k                4321 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_run",base+ofst,idx2adr(fw,k));
k                4323 tools/finsig_vxworks.c         ofst = fw->buf[k+2] & 0x00000FFF;
k                4324 tools/finsig_vxworks.c         print_stubs_min(fw,"physw_sleep_delay",base+ofst,idx2adr(fw,k));
k                4330 tools/finsig_vxworks.c int match_canon_menu_active(firmware *fw, int k, int v)
k                4332 tools/finsig_vxworks.c     if (isLDR_PC(fw,k))
k                4334 tools/finsig_vxworks.c         uint32_t base = LDR2val(fw,k);
k                4336 tools/finsig_vxworks.c         for (k1=k+1; k1<k+5; k1++)
k                4341 tools/finsig_vxworks.c                 print_stubs_min(fw,"canon_menu_active",base+ofst,idx2adr(fw,k));
k                4349 tools/finsig_vxworks.c int match_zoom_busy(firmware *fw, int k, int v)
k                4351 tools/finsig_vxworks.c     if (isBL(fw,k))
k                4353 tools/finsig_vxworks.c         int idx1 = idxFollowBranch(fw,k,0x01000001);
k                4398 tools/finsig_vxworks.c int match_focus_busy(firmware *fw, int k, int v)
k                4400 tools/finsig_vxworks.c     if ((fw->buf[k] & 0xFFFF0000) == 0xE8BD0000)   // LDMFD
k                4403 tools/finsig_vxworks.c         if (isBL(fw,k-2))
k                4405 tools/finsig_vxworks.c             k1 = idxFollowBranch(fw,k-2,0x01000001);
k                4407 tools/finsig_vxworks.c         if (isBL(fw,k-1))
k                4409 tools/finsig_vxworks.c             k1 = idxFollowBranch(fw,k-1,0x01000001);
k                4426 tools/finsig_vxworks.c int match_bitmap_buffer2(firmware *fw, int k, int v)
k                4428 tools/finsig_vxworks.c     uint32_t screen_lock = idx2adr(fw,k);
k                4457 tools/finsig_vxworks.c int match_bitmap_buffer(firmware *fw, int k, int v)
k                4459 tools/finsig_vxworks.c     search_saved_sig(fw, "ScreenLock", match_bitmap_buffer2, k, 0, 1);
k                4463 tools/finsig_vxworks.c int match_raw_buffer(firmware *fw, int k, uint32_t rb1, uint32_t v2)
k                4465 tools/finsig_vxworks.c     if (((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k-2) != 1)) ||
k                4466 tools/finsig_vxworks.c         ((fwval(fw,k) == rb1) && (fwval(fw,k+4) == rb1) && (fwval(fw,k+20) == rb1)))
k                4468 tools/finsig_vxworks.c         uint32_t rb2 = fwval(fw,k+1);
k                4471 tools/finsig_vxworks.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                4474 tools/finsig_vxworks.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                4478 tools/finsig_vxworks.c     else if ((fwval(fw,k) == rb1) && (fwval(fw,k-2) == 2) && (fwval(fw,k-7) == rb1))
k                4480 tools/finsig_vxworks.c         uint32_t rb2 = fwval(fw,k+3);
k                4483 tools/finsig_vxworks.c             bprintf("// Camera has 2 RAW buffers @ 0x%08x & 0x%08x\n", rb1, rb2, idx2adr(fw,k));
k                4486 tools/finsig_vxworks.c             print_stubs_min(fw,"raw_buffers",idx2adr(fw,k),idx2adr(fw,k));
k                4498 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"DoMovieFrameCapture");
k                4500 tools/finsig_vxworks.c     if (k < 0 || ka < 0)
k                4502 tools/finsig_vxworks.c     k = adr2idx(fw, func_names[k].val);
k                4504 tools/finsig_vxworks.c     if (k && ka)
k                4506 tools/finsig_vxworks.c         int k2 = find_inst(fw,isBL,k,14);
k                4509 tools/finsig_vxworks.c         int k1 = k;
k                4541 tools/finsig_vxworks.c         k = get_saved_sig(fw,"WBInteg.DoCaptMovieFrame_FW");
k                4542 tools/finsig_vxworks.c         if (k < 0)
k                4544 tools/finsig_vxworks.c         k = adr2idx(fw, func_names[k].val);
k                4545 tools/finsig_vxworks.c         ka = find_inst(fw,isLDR_PC,k,6);
k                4913 tools/finsig_vxworks.c int find_ctypes(firmware *fw, int k)
k                4927 tools/finsig_vxworks.c     if (k < (fw->size*4 - sizeof(ctypes)))
k                4929 tools/finsig_vxworks.c         if (memcmp(((char*)fw->buf)+k,ctypes,sizeof(ctypes)) == 0)
k                4931 tools/finsig_vxworks.c             bprintf("DEF(ctypes, 0x%08x)\n", fw->base + k);
k                4938 tools/finsig_vxworks.c int match_nrflag3(firmware *fw, int k, uint32_t v1, uint32_t v2)
k                4940 tools/finsig_vxworks.c     if (isBL(fw,k) && (idxFollowBranch(fw,k,0x01000001) == v1))
k                4945 tools/finsig_vxworks.c         for (k3=k; k3>k-30; k3--)
k                4970 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                4975 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                5027 tools/finsig_vxworks.c int match_nrflag2(firmware *fw, int k, int v)
k                5030 tools/finsig_vxworks.c     if (isBL(fw,k))
k                5032 tools/finsig_vxworks.c         k = idxFollowBranch(fw,k,0x01000001);
k                5033 tools/finsig_vxworks.c         return search_fw(fw, match_nrflag3, k, 0, 1);
k                5149 tools/finsig_vxworks.c     int k, kval = 0;
k                5150 tools/finsig_vxworks.c     for (k=0; k<tlen; k+=tsiz)
k                5152 tools/finsig_vxworks.c         if (fw->buf[tidx+k+1] == ev)
k                5154 tools/finsig_vxworks.c             kval = fw->buf[tidx+k];
k                5155 tools/finsig_vxworks.c             tadr = idx2adr(fw,tidx+k);
k                5203 tools/finsig_vxworks.c     int r, k, kval = 0;
k                5206 tools/finsig_vxworks.c     for (k=0; k<tlen; k+=tsiz)
k                5208 tools/finsig_vxworks.c         if (fw->buf[tidx+k+1] == ev)
k                5210 tools/finsig_vxworks.c             kval = fw->buf[tidx+k];
k                5211 tools/finsig_vxworks.c             tadr = idx2adr(fw,tidx+k);
k                5289 tools/finsig_vxworks.c     int k;
k                5290 tools/finsig_vxworks.c     for (k=0; k<kcount; k++)
k                5292 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                5298 tools/finsig_vxworks.c int match_GetSDProtect(firmware *fw, int k, int v)
k                5300 tools/finsig_vxworks.c     if (isB(fw,k))    // B
k                5302 tools/finsig_vxworks.c         k = idxFollowBranch(fw,k,1);
k                5303 tools/finsig_vxworks.c         if (isLDR_PC(fw,k))
k                5305 tools/finsig_vxworks.c             return LDR2val(fw,k);
k                5314 tools/finsig_vxworks.c     int k,k1;
k                5323 tools/finsig_vxworks.c         k = find_str_ref(fw,"SD Not Exist\n");
k                5324 tools/finsig_vxworks.c         if (k >= 0)
k                5326 tools/finsig_vxworks.c             for (k1=k-1; k1>k-5; k1--)
k                5346 tools/finsig_vxworks.c         for (k=0; k<(tadr-fw->base)/4; k++)
k                5348 tools/finsig_vxworks.c             if (isLDR_PC(fw,k))
k                5350 tools/finsig_vxworks.c                 uint32_t adr = LDR2val(fw,k);
k                5361 tools/finsig_vxworks.c             for (k=0; k<tlen/3; k+=3)
k                5363 tools/finsig_vxworks.c                 if ((fw->buf[k1+k+1] == 0xFFFFFFFF) && (fw->buf[k1+k+4] == 0xFFFFFFFF))
k                5428 tools/finsig_vxworks.c int get_eventproc_val(firmware *fw, int k)
k                5430 tools/finsig_vxworks.c     if (isADR_PC(fw,k) && (fwRd(fw,k) == 0))
k                5431 tools/finsig_vxworks.c         nadr = ADR2adr(fw,k);
k                5432 tools/finsig_vxworks.c     else if (isADR_PC(fw,k) && (fwRd(fw,k) == 1))
k                5433 tools/finsig_vxworks.c         eadr = ADR2adr(fw,k);
k                5434 tools/finsig_vxworks.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 0))
k                5435 tools/finsig_vxworks.c         nadr = LDR2val(fw,k);
k                5436 tools/finsig_vxworks.c     else if (isLDR_PC(fw,k) && (fwRd(fw,k) == 1))
k                5437 tools/finsig_vxworks.c         eadr = LDR2val(fw,k);
k                5445 tools/finsig_vxworks.c     int k;
k                5454 tools/finsig_vxworks.c     for (k=0; func_names[k].name != 0; k++)
k                5455 tools/finsig_vxworks.c         if (strcmp(func_names[k].name, s) == 0)
k                5457 tools/finsig_vxworks.c             if (func_names[k].val == 0)
k                5459 tools/finsig_vxworks.c                 func_names[k].val = eadr;
k                5460 tools/finsig_vxworks.c                 func_names[k].flags |= EV_MATCH;
k                5489 tools/finsig_vxworks.c int match_eventproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5491 tools/finsig_vxworks.c     int j = k;
k                5492 tools/finsig_vxworks.c     if (isBorBL(fw,k))
k                5494 tools/finsig_vxworks.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                5499 tools/finsig_vxworks.c             k--;
k                5500 tools/finsig_vxworks.c             get_eventproc_val(fw, k);
k                5501 tools/finsig_vxworks.c             k--;
k                5502 tools/finsig_vxworks.c             get_eventproc_val(fw, k);
k                5505 tools/finsig_vxworks.c                 k--;
k                5506 tools/finsig_vxworks.c                 get_eventproc_val(fw, k);
k                5510 tools/finsig_vxworks.c                 k--;
k                5511 tools/finsig_vxworks.c                 get_eventproc_val(fw, k);
k                5520 tools/finsig_vxworks.c                 k = j;
k                5525 tools/finsig_vxworks.c                     int k1 = find_Nth_inst_rev(fw, isLDR_PC, k, 15, c);
k                5531 tools/finsig_vxworks.c                             int k3 = k;
k                5533 tools/finsig_vxworks.c                             while (k3 > k-4)
k                5545 tools/finsig_vxworks.c                             if ((fwval(fw,k-1) & 0xfff00000) == 0xe2800000) // add
k                5573 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                5574 tools/finsig_vxworks.c              (fwval(fw,k+2) == 0xE1A0E00F) && (fwval(fw,k+3) == 0xE1A0F004))
k                5576 tools/finsig_vxworks.c         nadr = LDR2val(fw,k);
k                5577 tools/finsig_vxworks.c         eadr = LDR2val(fw,k+1);
k                5583 tools/finsig_vxworks.c int match_registerlists(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5585 tools/finsig_vxworks.c     if (isBorBL(fw,k))
k                5587 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                5591 tools/finsig_vxworks.c             for (k1=k-1; k1>k-6; k1--)
k                5616 tools/finsig_vxworks.c int match_registerlistproc(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5618 tools/finsig_vxworks.c     if (isSTMFD_LR(fw,k) && isBL(fw,k+6) && isLDMFD_PC(fw,k+11))
k                5620 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+6),0x01000001);
k                5623 tools/finsig_vxworks.c             fadr = idx2adr(fw,k);
k                5660 tools/finsig_vxworks.c int match_createtask(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5662 tools/finsig_vxworks.c     uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
k                5667 tools/finsig_vxworks.c         j1 = find_inst_rev(fw,isLDR_PC_r3,k,16);
k                5668 tools/finsig_vxworks.c         j2 = find_inst_rev(fw,isLDR_PC_r0,k,16);
k                5673 tools/finsig_vxworks.c             if ((find_inst(fw,isBL,j1,16)!=k) || (find_inst(fw,isBL,j2,16)!=k))
k                5696 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"CreateTask");
k                5697 tools/finsig_vxworks.c     if (k >= 0)
k                5699 tools/finsig_vxworks.c         search_fw(fw, match_createtask, func_names[k].val, 0, 5);
k                5701 tools/finsig_vxworks.c     k = get_saved_sig(fw,"CreateTaskStrictly");
k                5702 tools/finsig_vxworks.c     if (k >= 0)
k                5704 tools/finsig_vxworks.c         search_fw(fw, match_createtask, func_names[k].val, 0, 5);
k                5752 tools/finsig_vxworks.c int find_ptp_handler_imm(firmware *fw, int k)
k                5762 tools/finsig_vxworks.c         if (isLDR_PC(fw,k+o))
k                5764 tools/finsig_vxworks.c             if(fwRd(fw,k+o) == 0)
k                5766 tools/finsig_vxworks.c                 op = LDR2val(fw,k+o);
k                5768 tools/finsig_vxworks.c             else if(fwRd(fw,k+o) == 1){
k                5769 tools/finsig_vxworks.c                 handler = LDR2val(fw,k+o);
k                5773 tools/finsig_vxworks.c         else if (isADR_PC(fw,k+o) && (fwRd(fw,k+o) == 1))
k                5775 tools/finsig_vxworks.c             handler=ADR2adr(fw,k+o);
k                5780 tools/finsig_vxworks.c             if (isORR(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) > 3))
k                5782 tools/finsig_vxworks.c                 int reg = fwRn(fw,k+o);
k                5785 tools/finsig_vxworks.c                 for (k1=k+o-1; k1>=k+o-50; k1--)
k                5800 tools/finsig_vxworks.c                     op = ALUop2a(fw,k+o) | u1;
k                5803 tools/finsig_vxworks.c             else if (isADD(fw,k+o) && (fwRd(fw,k+o) == 0) && (fwRn(fw,k+o) <= 3))
k                5805 tools/finsig_vxworks.c                 int reg = fwRn(fw,k+o);
k                5808 tools/finsig_vxworks.c                 for (k1=k+o-1; k1>=k+o-7; k1--)
k                5822 tools/finsig_vxworks.c                     op = ALUop2a(fw,k+o) + u1;
k                5835 tools/finsig_vxworks.c int match_ptp_handlers(firmware *fw, int k, uint32_t fadr, uint32_t v2)
k                5838 tools/finsig_vxworks.c     if(fwval(fw,k) == 0x1004
k                5839 tools/finsig_vxworks.c         && fwval(fw,k+2) == 0x1005
k                5840 tools/finsig_vxworks.c         && fwval(fw,k+4) == 0x1006
k                5841 tools/finsig_vxworks.c         && fwval(fw,k+1) > fw->base
k                5842 tools/finsig_vxworks.c         && fwval(fw,k+3) > fw->base
k                5843 tools/finsig_vxworks.c         && fwval(fw,k+5) > fw->base)
k                5849 tools/finsig_vxworks.c             uint32_t op=fwval(fw,k+i*2);
k                5850 tools/finsig_vxworks.c             uint32_t handler=fwval(fw,k+i*2+1);
k                5859 tools/finsig_vxworks.c     if (!isBorBL(fw,k))
k                5863 tools/finsig_vxworks.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
k                5867 tools/finsig_vxworks.c         find_ptp_handler_imm(fw,k);
k                5875 tools/finsig_vxworks.c     int k = get_saved_sig(fw,"add_ptp_handler");
k                5876 tools/finsig_vxworks.c     if (k >= 0)
k                5878 tools/finsig_vxworks.c         search_fw(fw, match_ptp_handlers, func_names[k].val, 0, 128);
k                5925 tools/finsig_vxworks.c         uint32_t k = j + c - fw->firmware_ver_str;
k                5926 tools/finsig_vxworks.c         if ( (k>=j) && (k<j+32) )
k                5928 tools/finsig_vxworks.c             bprintf("//   %s   // Found @ 0x%08x, \"%s\" @ 0x%08x\n",fw->firmware_ver_str,j,c,k);
k                6008 tools/finsig_vxworks.c     int k;
k                6013 tools/finsig_vxworks.c     for (k=0; k<next_func_entry; k++)
k                6015 tools/finsig_vxworks.c         if (strncmp(fns[k]->name,"hook_",5) != 0)
k                6017 tools/finsig_vxworks.c             if (fns[k]->val != 0)
k                6019 tools/finsig_vxworks.c                 if (fns[k]->flags & BAD_MATCH)
k                6021 tools/finsig_vxworks.c                     osig* ostub2 = find_sig(fw->sv->stubs,fns[k]->name);
k                6023 tools/finsig_vxworks.c                         fprintf(out_fp, "0x%08x,%s,(stubs_entry_2.s)\n", ostub2->val, fns[k]->name);
k                6026 tools/finsig_vxworks.c                     fprintf(out_fp, "0x%08x,%s\n", fns[k]->val, fns[k]->name);
k                6029 tools/finsig_vxworks.c             else if (fns[k]->flags & LIST_ALWAYS)
k                6032 tools/finsig_vxworks.c                 fprintf(out_fp, "0,%s,(NOT FOUND)\n", fns[k]->name);
k                6043 tools/finsig_vxworks.c     int k;
k                6083 tools/finsig_vxworks.c     for (k = 0; k < max_find_func; k++)
k                6086 tools/finsig_vxworks.c         curr_name = func_names[k].name;
k                6091 tools/finsig_vxworks.c         print_results(&fw,curr_name,k);
k                6111 tools/finsig_vxworks.c     for (k=0; k<next_func_entry; k++)
k                6112 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;