idx 49 lib/lua/lapi.c static TValue *index2adr (lua_State *L, int idx) { idx 50 lib/lua/lapi.c if (idx > 0) { idx 51 lib/lua/lapi.c TValue *o = L->base + (idx - 1); idx 52 lib/lua/lapi.c api_check(L, idx <= L->ci->top - L->base); idx 56 lib/lua/lapi.c else if (idx > LUA_REGISTRYINDEX) { idx 57 lib/lua/lapi.c api_check(L, idx != 0 && -idx <= L->top - L->base); idx 58 lib/lua/lapi.c return L->top + idx; idx 60 lib/lua/lapi.c else switch (idx) { /* pseudo-indices */ idx 70 lib/lua/lapi.c idx = LUA_GLOBALSINDEX - idx; idx 71 lib/lua/lapi.c return (idx <= func->c.nupvalues) idx 72 lib/lua/lapi.c ? &func->c.upvalue[idx-1] idx 164 lib/lua/lapi.c LUA_API void lua_settop (lua_State *L, int idx) { idx 166 lib/lua/lapi.c if (idx >= 0) { idx 167 lib/lua/lapi.c api_check(L, idx <= L->stack_last - L->base); idx 168 lib/lua/lapi.c while (L->top < L->base + idx) idx 170 lib/lua/lapi.c L->top = L->base + idx; idx 173 lib/lua/lapi.c api_check(L, -(idx+1) <= (L->top - L->base)); idx 174 lib/lua/lapi.c L->top += idx+1; /* `subtract' index (index is negative) */ idx 180 lib/lua/lapi.c LUA_API void lua_remove (lua_State *L, int idx) { idx 183 lib/lua/lapi.c p = index2adr(L, idx); idx 191 lib/lua/lapi.c LUA_API void lua_insert (lua_State *L, int idx) { idx 195 lib/lua/lapi.c p = index2adr(L, idx); idx 203 lib/lua/lapi.c LUA_API void lua_replace (lua_State *L, int idx) { idx 207 lib/lua/lapi.c if (idx == LUA_ENVIRONINDEX && L->ci == L->base_ci) idx 210 lib/lua/lapi.c o = index2adr(L, idx); idx 212 lib/lua/lapi.c if (idx == LUA_ENVIRONINDEX) { idx 220 lib/lua/lapi.c if (idx < LUA_GLOBALSINDEX) /* function upvalue? */ idx 228 lib/lua/lapi.c LUA_API void lua_pushvalue (lua_State *L, int idx) { idx 230 lib/lua/lapi.c setobj2s(L, L->top, index2adr(L, idx)); idx 242 lib/lua/lapi.c LUA_API int lua_type (lua_State *L, int idx) { idx 243 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 254 lib/lua/lapi.c LUA_API int lua_iscfunction (lua_State *L, int idx) { idx 255 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 260 lib/lua/lapi.c LUA_API int lua_isnumber (lua_State *L, int idx) { idx 262 lib/lua/lapi.c const TValue *o = index2adr(L, idx); idx 267 lib/lua/lapi.c LUA_API int lua_isstring (lua_State *L, int idx) { idx 268 lib/lua/lapi.c int t = lua_type(L, idx); idx 273 lib/lua/lapi.c LUA_API int lua_isuserdata (lua_State *L, int idx) { idx 274 lib/lua/lapi.c const TValue *o = index2adr(L, idx); idx 313 lib/lua/lapi.c LUA_API lua_Number lua_tonumber (lua_State *L, int idx) { idx 315 lib/lua/lapi.c const TValue *o = index2adr(L, idx); idx 323 lib/lua/lapi.c LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) { idx 325 lib/lua/lapi.c const TValue *o = index2adr(L, idx); idx 337 lib/lua/lapi.c LUA_API int lua_toboolean (lua_State *L, int idx) { idx 338 lib/lua/lapi.c const TValue *o = index2adr(L, idx); idx 343 lib/lua/lapi.c LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { idx 344 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 353 lib/lua/lapi.c o = index2adr(L, idx); /* previous call may reallocate the stack */ idx 361 lib/lua/lapi.c LUA_API size_t lua_objlen (lua_State *L, int idx) { idx 362 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 379 lib/lua/lapi.c LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) { idx 380 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 385 lib/lua/lapi.c LUA_API void *lua_touserdata (lua_State *L, int idx) { idx 386 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 395 lib/lua/lapi.c LUA_API lua_State *lua_tothread (lua_State *L, int idx) { idx 396 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 401 lib/lua/lapi.c LUA_API const void *lua_topointer (lua_State *L, int idx) { idx 402 lib/lua/lapi.c StkId o = index2adr(L, idx); idx 409 lib/lua/lapi.c return lua_touserdata(L, idx); idx 534 lib/lua/lapi.c LUA_API void lua_gettable (lua_State *L, int idx) { idx 537 lib/lua/lapi.c t = index2adr(L, idx); idx 544 lib/lua/lapi.c LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { idx 548 lib/lua/lapi.c t = index2adr(L, idx); idx 557 lib/lua/lapi.c LUA_API void lua_rawget (lua_State *L, int idx) { idx 560 lib/lua/lapi.c t = index2adr(L, idx); idx 567 lib/lua/lapi.c LUA_API void lua_rawgeti (lua_State *L, int idx, int n) { idx 570 lib/lua/lapi.c o = index2adr(L, idx); idx 616 lib/lua/lapi.c LUA_API void lua_getfenv (lua_State *L, int idx) { idx 619 lib/lua/lapi.c o = index2adr(L, idx); idx 645 lib/lua/lapi.c LUA_API void lua_settable (lua_State *L, int idx) { idx 649 lib/lua/lapi.c t = index2adr(L, idx); idx 657 lib/lua/lapi.c LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { idx 662 lib/lua/lapi.c t = index2adr(L, idx); idx 671 lib/lua/lapi.c LUA_API void lua_rawset (lua_State *L, int idx) { idx 675 lib/lua/lapi.c t = index2adr(L, idx); idx 684 lib/lua/lapi.c LUA_API void lua_rawseti (lua_State *L, int idx, int n) { idx 688 lib/lua/lapi.c o = index2adr(L, idx); idx 734 lib/lua/lapi.c LUA_API int lua_setfenv (lua_State *L, int idx) { idx 739 lib/lua/lapi.c o = index2adr(L, idx); idx 973 lib/lua/lapi.c LUA_API int lua_next (lua_State *L, int idx) { idx 977 lib/lua/lapi.c t = index2adr(L, idx); idx 355 lib/lua/lauxlib.c LUALIB_API const char *luaL_findtable (lua_State *L, int idx, idx 358 lib/lua/lauxlib.c lua_pushvalue(L, idx); idx 88 lib/lua/lauxlib.h LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx, idx 231 lib/lua/lcode.c TValue *idx = luaH_set(L, fs->h, k); idx 234 lib/lua/lcode.c if (ttisnumber(idx)) { idx 235 lib/lua/lcode.c lua_assert(luaO_rawequalObj(&fs->f->k[cast_int(nvalue(idx))], v)); idx 236 lib/lua/lcode.c return cast_int(nvalue(idx)); idx 239 lib/lua/lcode.c setnvalue(idx, cast_num(fs->nk)); idx 240 lib/lua/liolib.c static void aux_lines (lua_State *L, int idx, int toclose) { idx 241 lib/lua/liolib.c lua_pushvalue(L, idx); idx 121 lib/lua/lua.h LUA_API void (lua_settop) (lua_State *L, int idx); idx 122 lib/lua/lua.h LUA_API void (lua_pushvalue) (lua_State *L, int idx); idx 123 lib/lua/lua.h LUA_API void (lua_remove) (lua_State *L, int idx); idx 124 lib/lua/lua.h LUA_API void (lua_insert) (lua_State *L, int idx); idx 125 lib/lua/lua.h LUA_API void (lua_replace) (lua_State *L, int idx); idx 135 lib/lua/lua.h LUA_API int (lua_isnumber) (lua_State *L, int idx); idx 136 lib/lua/lua.h LUA_API int (lua_isstring) (lua_State *L, int idx); idx 137 lib/lua/lua.h LUA_API int (lua_iscfunction) (lua_State *L, int idx); idx 138 lib/lua/lua.h LUA_API int (lua_isuserdata) (lua_State *L, int idx); idx 139 lib/lua/lua.h LUA_API int (lua_type) (lua_State *L, int idx); idx 146 lib/lua/lua.h LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx); idx 147 lib/lua/lua.h LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); idx 148 lib/lua/lua.h LUA_API int (lua_toboolean) (lua_State *L, int idx); idx 149 lib/lua/lua.h LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); idx 150 lib/lua/lua.h LUA_API size_t (lua_objlen) (lua_State *L, int idx); idx 151 lib/lua/lua.h LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); idx 152 lib/lua/lua.h LUA_API void *(lua_touserdata) (lua_State *L, int idx); idx 153 lib/lua/lua.h LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); idx 154 lib/lua/lua.h LUA_API const void *(lua_topointer) (lua_State *L, int idx); idx 177 lib/lua/lua.h LUA_API void (lua_gettable) (lua_State *L, int idx); idx 178 lib/lua/lua.h LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); idx 179 lib/lua/lua.h LUA_API void (lua_rawget) (lua_State *L, int idx); idx 180 lib/lua/lua.h LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n); idx 184 lib/lua/lua.h LUA_API void (lua_getfenv) (lua_State *L, int idx); idx 190 lib/lua/lua.h LUA_API void (lua_settable) (lua_State *L, int idx); idx 191 lib/lua/lua.h LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); idx 192 lib/lua/lua.h LUA_API void (lua_rawset) (lua_State *L, int idx); idx 193 lib/lua/lua.h LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); idx 195 lib/lua/lua.h LUA_API int (lua_setfenv) (lua_State *L, int idx); idx 239 lib/lua/lua.h LUA_API int (lua_next) (lua_State *L, int idx); idx 302 lib/lua/luaconf.h #define lua_saveline(L,idx) \ idx 303 lib/lua/luaconf.h if (lua_strlen(L,idx) > 0) /* non-empty line? */ \ idx 304 lib/lua/luaconf.h add_history(lua_tostring(L, idx)); /* add it to history */ idx 310 lib/lua/luaconf.h #define lua_saveline(L,idx) { (void)L; (void)idx; } idx 672 lib/lua/lvm.c lua_Number idx = luai_numadd(nvalue(ra), step); /* increment index */ idx 674 lib/lua/lvm.c if (luai_numlt(0, step) ? luai_numle(idx, limit) idx 675 lib/lua/lvm.c : luai_numle(limit, idx)) { idx 677 lib/lua/lvm.c setnvalue(ra, idx); /* update internal index... */ idx 678 lib/lua/lvm.c setnvalue(ra+3, idx); /* ...and external index */ idx 281 modules/exmem_inspector.c unsigned int idx, idxmax, showidx; idx 314 modules/exmem_inspector.c for ( idx=0; idx<idxmax; idx++) idx 316 modules/exmem_inspector.c char *s = get_exmem_type_name(idx); idx 320 modules/exmem_inspector.c if (!get_exmem_type_status(idx, &eai) || !eai.addr) idx 327 modules/exmem_inspector.c sprintf(txt,"%02d: %-17s %08x %8x", idx, name, (unsigned int)eai.addr, eai.len); idx 330 modules/exmem_inspector.c sprintf(txt,"%02d: %-17s %08x %08x", idx, name, (unsigned int)eai.addr, (unsigned int)eai.addr+eai.len); idx 338 modules/exmem_inspector.c idx = log_disp_start; idx 341 modules/exmem_inspector.c if (idx >= LOG_LEN || exl[idx].tim == 0) idx 349 modules/exmem_inspector.c char *s = get_exmem_type_name(exl[idx].typ); idx 357 modules/exmem_inspector.c sprintf(txt,"%06d: %-17s %08x %8x", exl[idx].tim, name, (unsigned int)exl[idx].adr, exl[idx].len); idx 360 modules/exmem_inspector.c sprintf(txt,"%06d: %-17s %08x %08x", exl[idx].tim, name, (unsigned int)exl[idx].adr, (unsigned int)exl[idx].adr+exl[idx].len); idx 365 modules/exmem_inspector.c idx++; idx 139 modules/module_inspector.c int idx, showidx; idx 149 modules/module_inspector.c for ( idx=0; idx<MAX_NUM_LOADED_MODULES; idx++) idx 151 modules/module_inspector.c module_entry* mod = module_get_adr(idx);; idx 159 modules/module_inspector.c sprintf(txt,"%02d: %-12s %08x - %d bytes", idx, name, (unsigned)mod->hdr, mod->hdr->reloc_start+mod->hdr->bss_size); idx 389 modules/module_load.c static void module_unload_idx(int idx) idx 391 modules/module_load.c if ((idx >= 0) && (modules[idx].hdr != 0)) idx 394 modules/module_load.c module_log_unload(modules[idx].hMod->name); idx 397 modules/module_load.c if (modules[idx].hdr->_module_info->lib->unloader) idx 398 modules/module_load.c modules[idx].hdr->_module_info->lib->unloader(); idx 401 modules/module_load.c bind_module(modules[idx].hMod, 0); idx 404 modules/module_load.c free(modules[idx].hdr); idx 405 modules/module_load.c modules[idx].hdr = 0; idx 588 modules/module_load.c int idx; idx 595 modules/module_load.c idx = module_find(hash); idx 596 modules/module_load.c if (idx >= 0) idx 597 modules/module_load.c return idx; idx 609 modules/module_load.c for (idx=0; idx<MAX_NUM_LOADED_MODULES && modules[idx].hdr; idx++) ; idx 612 modules/module_load.c if (idx == MAX_NUM_LOADED_MODULES) idx 615 modules/module_load.c idx = -1; idx 625 modules/module_load.c modules[idx].hdr = mod; idx 626 modules/module_load.c modules[idx].hName = hash; idx 627 modules/module_load.c modules[idx].hMod = hMod; idx 640 modules/module_load.c module_unload_idx(idx); idx 642 modules/module_load.c idx = -1; idx 648 modules/module_load.c idx = -1; idx 655 modules/module_load.c return idx; idx 794 modules/module_load.c int idx; idx 796 modules/module_load.c for (idx=MAX_NUM_LOADED_MODULES-1; idx>=0; idx--) idx 798 modules/module_load.c if (modules[idx].hdr && modules[idx].hdr->_module_info->lib->exit_alt) idx 801 modules/module_load.c modules[idx].hdr->_module_info->lib->exit_alt(); idx 811 modules/module_load.c int idx; idx 813 modules/module_load.c for (idx=MAX_NUM_LOADED_MODULES-1; idx>=0; idx--) idx 815 modules/module_load.c if (modules[idx].hdr && modules[idx].hdr->_module_info->lib->can_unload) idx 818 modules/module_load.c if (modules[idx].hdr->_module_info->lib->can_unload()) idx 819 modules/module_load.c module_unload_idx(idx); idx 828 modules/module_load.c module_entry* module_get_adr(unsigned int idx) idx 830 modules/module_load.c if (idx < MAX_NUM_LOADED_MODULES) idx 831 modules/module_load.c if (modules[idx].hdr) idx 832 modules/module_load.c return &modules[idx]; idx 44 modules/module_load.h module_entry* module_get_adr(unsigned int idx); idx 604 modules/motion_detector.c int idx, tick, rv; idx 668 modules/motion_detector.c for (idx=0, row=0; row < motion_detector.rows; row++) idx 674 modules/motion_detector.c for (col=0; col < motion_detector.columns; col++, idx++) idx 728 modules/motion_detector.c diff = (curr - motion_detector.prev[idx]) / motion_detector.points; idx 737 modules/motion_detector.c motion_detector.diff[idx] = diff; idx 738 modules/motion_detector.c motion_detector.prev[idx] = curr; idx 336 modules/zebra.c static unsigned char get_cur_buf(unsigned int idx) { idx 341 modules/zebra.c if (idx < (unsigned)camera_screen.buffer_width * ZFIX_TOP) return(cur_buf_top[idx]); idx 342 modules/zebra.c if (idx >= a && idx < (unsigned)camera_screen.buffer_size) return(cur_buf_bot[idx - a]); idx 57 tools/elf2flt/elfflt.c struct relevant_section* find_section(int idx) idx 59 tools/elf2flt/elfflt.c if(idx == bss.number) idx 61 tools/elf2flt/elfflt.c if(idx == data.number) idx 63 tools/elf2flt/elfflt.c if(idx == text.number) idx 65 tools/elf2flt/elfflt.c if(idx == rodata.number) idx 684 tools/elf2flt/elfflt.c uint32_t idx = flat_import_buf[i].importidx; idx 685 tools/elf2flt/elfflt.c new_import_buf[new_import_cnt++] = idx; idx 690 tools/elf2flt/elfflt.c if (flat_import_buf[j].importidx == idx) idx 748 tools/elf2flt/elfflt.c uint32_t idx = new_import_buf[i++]; idx 756 tools/elf2flt/elfflt.c printf(" = sym_%08x[%s]+0x%x\n",idx,get_import_symbol(idx),addend); idx 181 tools/elf2flt/fltdump.c uint32_t idx = new_import_buf[i++]; idx 189 tools/elf2flt/fltdump.c printf(" = sym_%08x[%s]+0x%x\n",idx,get_import_symbol(idx),addend); idx 178 tools/elf2flt/myio.c int idx=0; idx 180 tools/elf2flt/myio.c for(;idx<import_counts;idx++) { idx 181 tools/elf2flt/myio.c if (strcmp(sym,import_syms[idx]) == 0) idx 182 tools/elf2flt/myio.c return (import_hash[idx]); idx 190 tools/elf2flt/myio.c unsigned idx=0; idx 192 tools/elf2flt/myio.c for(;idx<symidx;idx++) { idx 193 tools/elf2flt/myio.c if (import_hash[idx] == symidx) idx 194 tools/elf2flt/myio.c return import_syms[idx]; idx 12 tools/extract_event_procedures.c #define ADDR(idx) (baseaddr+(idx)) idx 645 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[k].val); idx 646 tools/finsig_dryos.c for (k=idx+ofst; k<idx+ofst+len; k++) idx 3543 tools/finsig_dryos.c int idx = adr2idx(fw, fadr); idx 3546 tools/finsig_dryos.c for (j=idx+srch; j<idx+srch+12; j++) idx 3655 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[j].val); idx 3656 tools/finsig_dryos.c for(; !isBX_LR(fw,idx); idx++) // BX LR idx 3658 tools/finsig_dryos.c if (((fwval(fw,idx+1) & 0xFFFFF000) == 0xE5801000) && // STR R1,[R0,nnn] idx 3659 tools/finsig_dryos.c (fwOp2(fw,idx+1) == ofst)) idx 3661 tools/finsig_dryos.c uint32_t fadr = LDR2val(fw,idx); idx 3669 tools/finsig_dryos.c else if (isB(fw,idx)) // B idx 3671 tools/finsig_dryos.c idx = adr2idx(fw,followBranch(fw,idx2adr(fw,idx),1)) - 1; idx 3800 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[j].val); idx 3804 tools/finsig_dryos.c if (isLDR_PC(fw,idx-3) && isMOV_immed(fw,idx-2) && isB(fw,idx-1)) idx 3806 tools/finsig_dryos.c k = adr2idx(fw,LDR2val(fw,idx-3)); idx 3808 tools/finsig_dryos.c else if (isMOV_immed(fw,idx-3) && isADR_PC(fw,idx-2) && isB(fw,idx-1)) idx 3810 tools/finsig_dryos.c k = adr2idx(fw,ADR2adr(fw,idx-2)); idx 3815 tools/finsig_dryos.c int l = find_inst_rev(fw, isBL, idx-1, 4); idx 4175 tools/finsig_dryos.c int idx = 0; idx 4179 tools/finsig_dryos.c idx = adr2idx(fw, followBranch2(fw, idx2adr(fw,n->off+i+s->value), 0xF0000001)); idx 4180 tools/finsig_dryos.c if ((idx >= 0) && (idx < fw->size)) idx 4183 tools/finsig_dryos.c p1 = &fw->buf[idx]; idx 5348 tools/finsig_dryos.c int idx = adr2idx(fw, fadr); idx 5349 tools/finsig_dryos.c if (isLDR(fw, idx+2) && isBL(fw, idx+3)) idx 5351 tools/finsig_dryos.c uint32_t palette_size = LDR2val(fw,idx+2); idx 5354 tools/finsig_dryos.c bprintf("// Offset from start of palette_buffer to color data = %d (Found @0x%08x)\n",palette_size-0x400,idx2adr(fw,idx+2)); idx 5375 tools/finsig_dryos.c int idx = adr2idx(fw, fadr); idx 5377 tools/finsig_dryos.c for (k2=idx; k2<idx+40; k2++) idx 5384 tools/finsig_dryos.c for (k=idx; (k<idx+16) && !found; k++) idx 5389 tools/finsig_dryos.c idx = adr2idx(fw, fadr); idx 5391 tools/finsig_dryos.c for (k3=idx; (k3<idx+16) && !found; k3++) idx 5417 tools/finsig_dryos.c int match_SavePaletteData(firmware *fw, int idx, int palette_data) idx 5419 tools/finsig_dryos.c if (isBL(fw,idx+13)) idx 5421 tools/finsig_dryos.c uint32_t fadr = followBranch(fw, idx2adr(fw,idx+13), 0x01000001); idx 5422 tools/finsig_dryos.c idx = adr2idx(fw, fadr); idx 5423 tools/finsig_dryos.c if (isLDR(fw,idx) && isLDR(fw,idx+1) && isB(fw,idx+2)) idx 5425 tools/finsig_dryos.c uint32_t palette_control = LDR2val(fw,idx); idx 5426 tools/finsig_dryos.c print_stubs_min(fw,"palette_control",palette_control,idx2adr(fw,idx)); idx 5427 tools/finsig_dryos.c int active_offset = fwval(fw,idx+1) & 0xFFF; idx 5428 tools/finsig_dryos.c print_stubs_min(fw,"active_palette_buffer",palette_control+active_offset,idx2adr(fw,idx+1)); idx 5429 tools/finsig_dryos.c fadr = followBranch(fw,idx2adr(fw,idx+2),1); idx 5430 tools/finsig_dryos.c idx = adr2idx(fw, fadr); idx 5431 tools/finsig_dryos.c if (isLDR(fw,idx+17) && isLDR(fw,idx+18) && isLDR(fw,idx+12) && (LDR2val(fw,idx+12) == palette_control)) idx 5433 tools/finsig_dryos.c if (isLDR(fw,idx+13)) idx 5435 tools/finsig_dryos.c int ptr_offset = fwval(fw,idx+13) & 0xFFF; idx 5436 tools/finsig_dryos.c print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,idx+13)); idx 5439 tools/finsig_dryos.c if ((fwval(fw,idx+18) & 0x0000F000) == 0) idx 5441 tools/finsig_dryos.c palette_buffer = LDR2val(fw,idx+17); idx 5442 tools/finsig_dryos.c print_stubs_min(fw,"palette_buffer",palette_buffer,idx2adr(fw,idx+17)); idx 5446 tools/finsig_dryos.c palette_buffer = LDR2val(fw,idx+18); idx 5447 tools/finsig_dryos.c print_stubs_min(fw,"palette_buffer",palette_buffer,idx2adr(fw,idx+18)); idx 5449 tools/finsig_dryos.c if (isBL(fw,idx+26)) idx 5451 tools/finsig_dryos.c fadr = followBranch(fw, idx2adr(fw,idx+26), 0x01000001); idx 5452 tools/finsig_dryos.c idx = adr2idx(fw, fadr); idx 5453 tools/finsig_dryos.c if (isLDR(fw, idx+2) && isBL(fw, idx+3)) idx 5455 tools/finsig_dryos.c uint32_t palette_size = LDR2val(fw,idx+2); idx 5458 tools/finsig_dryos.c bprintf("// Offset from start of palette_buffer to color data = %d (Found @0x%08x)\n",palette_size-0x400,idx2adr(fw,idx+2)); idx 5464 tools/finsig_dryos.c else if (isLDR(fw,idx) && isLDR(fw,idx+6) && isLDR(fw,idx+7) && isBX(fw,idx+8)) idx 5467 tools/finsig_dryos.c if ((fwval(fw,idx+6) & 0x0000F000) == 0) idx 5468 tools/finsig_dryos.c active_offset = fwval(fw,idx+6) & 0xFFF; idx 5469 tools/finsig_dryos.c else if ((fwval(fw,idx+7) & 0x0000F000) == 0) idx 5470 tools/finsig_dryos.c active_offset = fwval(fw,idx+7) & 0xFFF; idx 5473 tools/finsig_dryos.c uint32_t palette_control = LDR2val(fw,idx); idx 5475 tools/finsig_dryos.c print_stubs_min(fw,"active_palette_buffer",palette_control+active_offset,idx2adr(fw,idx+1)); idx 6226 tools/finsig_dryos.c int match_nrflag(firmware *fw, int idx, __attribute__ ((unused))int v) idx 6231 tools/finsig_dryos.c if (isLDR(fw, idx+1) && isLDR(fw, idx+2)) idx 6233 tools/finsig_dryos.c k3 = idx+2; idx 7989 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[j].val); idx 7990 tools/finsig_dryos.c uint32_t adr = ADR2adr(fw, idx); idx 7991 tools/finsig_dryos.c idx = adr2idx(fw, adr); idx 7992 tools/finsig_dryos.c fw->fw_build_date = (char*)&fw->buf[idx]; idx 8000 tools/finsig_dryos.c int idx = adr2idx(fw, func_names[j].val); idx 8001 tools/finsig_dryos.c uint32_t adr = ADR2adr(fw, idx); idx 8002 tools/finsig_dryos.c idx = adr2idx(fw, adr); idx 8003 tools/finsig_dryos.c fw->fw_build_time = (char*)&fw->buf[idx]; idx 2458 tools/finsig_thumb2.c int idx; idx 2459 tools/finsig_thumb2.c for (idx = 0; idx < 2; idx += 1) idx 2462 tools/finsig_thumb2.c if(insn_match_find_next_seq(fw,is,50,match1[idx])) idx 2467 tools/finsig_thumb2.c if (idx >= 2) idx 2492 tools/finsig_thumb2.c if(!insn_match_find_next_seq(fw,is,15,match2[idx])) { idx 607 tools/finsig_vxworks.c int idx = adr2idx(fw, func_names[k].val); idx 608 tools/finsig_vxworks.c for (k=idx+ofst; k<idx+ofst+len; k++) idx 2454 tools/finsig_vxworks.c int idx = adr2idx(fw, fadr); idx 2457 tools/finsig_vxworks.c for (j=idx+srch; j<idx+srch+12; j++) idx 2713 tools/finsig_vxworks.c int idx = adr2idx(fw, func_names[j].val); idx 2715 tools/finsig_vxworks.c if (isLDR_PC(fw,idx-3) && isMOV_immed(fw,idx-2) && isB(fw,idx-1)) idx 2717 tools/finsig_vxworks.c k = adr2idx(fw,LDR2val(fw,idx-3)); idx 2719 tools/finsig_vxworks.c else if (isMOV_immed(fw,idx-3) && isADR_PC(fw,idx-2) && isB(fw,idx-1)) idx 2721 tools/finsig_vxworks.c k = adr2idx(fw,ADR2adr(fw,idx-2)); idx 3157 tools/finsig_vxworks.c int idx = 0; idx 3161 tools/finsig_vxworks.c idx = adr2idx(fw, followBranch2(fw, idx2adr(fw,n->off+i+s->value), 0xF0000001)); idx 3162 tools/finsig_vxworks.c if ((idx >= 0) && (idx < fw->size)) idx 3165 tools/finsig_vxworks.c p1 = &fw->buf[idx]; idx 4377 tools/finsig_vxworks.c int idx = adr2idx(fw, fadr); idx 4378 tools/finsig_vxworks.c if (isLDR(fw, idx+2) && isBL(fw, idx+3)) idx 4380 tools/finsig_vxworks.c uint32_t palette_size = LDR2val(fw,idx+2); idx 4383 tools/finsig_vxworks.c bprintf("// Offset from start of palette_buffer to color data = %d (Found @0x%08x)\n",palette_size-0x400,idx2adr(fw,idx+2)); idx 4404 tools/finsig_vxworks.c int idx = adr2idx(fw, fadr); idx 4406 tools/finsig_vxworks.c for (k2=idx; k2<idx+40; k2++) idx 4413 tools/finsig_vxworks.c for (k=idx; (k<idx+16) && !found; k++) idx 4418 tools/finsig_vxworks.c idx = adr2idx(fw, fadr); idx 4420 tools/finsig_vxworks.c for (k3=idx; (k3<idx+16) && !found; k3++) idx 4446 tools/finsig_vxworks.c int match_SavePaletteData(firmware *fw, int idx, int palette_data) idx 4448 tools/finsig_vxworks.c if (isBL(fw,idx+13)) idx 4450 tools/finsig_vxworks.c uint32_t fadr = followBranch(fw, idx2adr(fw,idx+13), 0x01000001); idx 4451 tools/finsig_vxworks.c idx = adr2idx(fw, fadr); idx 4452 tools/finsig_vxworks.c if (isLDR(fw,idx) && isLDR(fw,idx+1) && isB(fw,idx+2)) idx 4454 tools/finsig_vxworks.c uint32_t palette_control = LDR2val(fw,idx); idx 4455 tools/finsig_vxworks.c print_stubs_min(fw,"palette_control",palette_control,idx2adr(fw,idx)); idx 4456 tools/finsig_vxworks.c int active_offset = fwval(fw,idx+1) & 0xFFF; idx 4457 tools/finsig_vxworks.c print_stubs_min(fw,"active_palette_buffer",palette_control+active_offset,idx2adr(fw,idx+1)); idx 4458 tools/finsig_vxworks.c fadr = followBranch(fw,idx2adr(fw,idx+2),1); idx 4459 tools/finsig_vxworks.c idx = adr2idx(fw, fadr); idx 4460 tools/finsig_vxworks.c if (isLDR(fw,idx+17) && isLDR(fw,idx+18) && isLDR(fw,idx+12) && (LDR2val(fw,idx+12) == palette_control)) idx 4462 tools/finsig_vxworks.c if (isLDR(fw,idx+13)) idx 4464 tools/finsig_vxworks.c int ptr_offset = fwval(fw,idx+13) & 0xFFF; idx 4465 tools/finsig_vxworks.c print_stubs_min(fw,"palette_buffer_ptr",palette_control+ptr_offset,idx2adr(fw,idx+13)); idx 4468 tools/finsig_vxworks.c if ((fwval(fw,idx+18) & 0x0000F000) == 0) idx 4470 tools/finsig_vxworks.c palette_buffer = LDR2val(fw,idx+17); idx 4471 tools/finsig_vxworks.c print_stubs_min(fw,"palette_buffer",palette_buffer,idx2adr(fw,idx+17)); idx 4475 tools/finsig_vxworks.c palette_buffer = LDR2val(fw,idx+18); idx 4476 tools/finsig_vxworks.c print_stubs_min(fw,"palette_buffer",palette_buffer,idx2adr(fw,idx+18)); idx 4478 tools/finsig_vxworks.c if (isBL(fw,idx+26)) idx 4480 tools/finsig_vxworks.c fadr = followBranch(fw, idx2adr(fw,idx+26), 0x01000001); idx 4481 tools/finsig_vxworks.c idx = adr2idx(fw, fadr); idx 4482 tools/finsig_vxworks.c if (isLDR(fw, idx+2) && isBL(fw, idx+3)) idx 4484 tools/finsig_vxworks.c uint32_t palette_size = LDR2val(fw,idx+2); idx 4487 tools/finsig_vxworks.c bprintf("// Offset from start of palette_buffer to color data = %d (Found @0x%08x)\n",palette_size-0x400,idx2adr(fw,idx+2)); idx 4493 tools/finsig_vxworks.c else if (isLDR(fw,idx) && isLDR(fw,idx+6) && isLDR(fw,idx+7) && isBX(fw,idx+8)) idx 4496 tools/finsig_vxworks.c if ((fwval(fw,idx+6) & 0x0000F000) == 0) idx 4497 tools/finsig_vxworks.c active_offset = fwval(fw,idx+6) & 0xFFF; idx 4498 tools/finsig_vxworks.c else if ((fwval(fw,idx+7) & 0x0000F000) == 0) idx 4499 tools/finsig_vxworks.c active_offset = fwval(fw,idx+7) & 0xFFF; idx 4502 tools/finsig_vxworks.c uint32_t palette_control = LDR2val(fw,idx); idx 4504 tools/finsig_vxworks.c print_stubs_min(fw,"active_palette_buffer",palette_control+active_offset,idx2adr(fw,idx+1)); idx 5291 tools/finsig_vxworks.c int match_nrflag(firmware *fw, int idx, __attribute__ ((unused))int v) idx 5296 tools/finsig_vxworks.c if (isLDR(fw, idx+1) && isLDR(fw, idx+2)) idx 5298 tools/finsig_vxworks.c k3 = idx+2; idx 6019 tools/finsig_vxworks.c int idx = adr2idx(fw, func_names[j].val); idx 6020 tools/finsig_vxworks.c idx = LDR2idx(fw, idx); idx 6021 tools/finsig_vxworks.c uint32_t adr = fwval(fw, idx); idx 6022 tools/finsig_vxworks.c idx = adr2idx(fw, adr); idx 6023 tools/finsig_vxworks.c fw->fw_build_date = (char*)&fw->buf[idx]; idx 6031 tools/finsig_vxworks.c int idx = adr2idx(fw, func_names[j].val); idx 6032 tools/finsig_vxworks.c idx = LDR2idx(fw, idx); idx 6033 tools/finsig_vxworks.c uint32_t adr = fwval(fw, idx); idx 6034 tools/finsig_vxworks.c idx = adr2idx(fw, adr); idx 6035 tools/finsig_vxworks.c fw->fw_build_time = (char*)&fw->buf[idx]; idx 159 tools/firmware_load.c uint32_t idx2adr(firmware *fw, int idx) idx 161 tools/firmware_load.c return fw->base + (idx << 2); idx 188 tools/firmware_load.c int idxcorr(firmware *fw, int idx) idx 201 tools/firmware_load.c if ((idx >= b2oidx) && (idx < b2oidx + fw->size2)) idx 203 tools/firmware_load.c idx = idx - b2oidx + b2idx; idx 206 tools/firmware_load.c return idx; idx 692 tools/firmware_load.c int find_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len) idx 695 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) idx 705 tools/firmware_load.c int find_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len) idx 708 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) idx 718 tools/firmware_load.c int find_Nth_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N) idx 721 tools/firmware_load.c for (k = idx; (k < fw->size) && (k < idx + len); k++) idx 733 tools/firmware_load.c int find_Nth_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N) idx 736 tools/firmware_load.c for (k = idx; (k > 0) && (k > idx - len); k--) idx 90 tools/firmware_load.h uint32_t idx2adr(firmware *fw, int idx); idx 95 tools/firmware_load.h int idxcorr(firmware *fw, int idx); idx 156 tools/firmware_load.h int find_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len); idx 158 tools/firmware_load.h int find_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len); idx 160 tools/firmware_load.h int find_Nth_inst(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N); idx 162 tools/firmware_load.h int find_Nth_inst_rev(firmware *fw, int (*inst)(firmware*,int), int idx, int len, int N); idx 320 tools/packfi2/aes128.c int idx; idx 322 tools/packfi2/aes128.c for( idx = 0; idx < 4; idx++ ) idx 323 tools/packfi2/aes128.c state[idx] ^= key[idx]; idx 335 tools/packfi2/aes128.c unsigned idx; idx 339 tools/packfi2/aes128.c for( idx = Nk; idx < Nb * (Nr + 1); idx++ ) { idx 340 tools/packfi2/aes128.c tmp0 = expkey[4*idx - 4]; idx 341 tools/packfi2/aes128.c tmp1 = expkey[4*idx - 3]; idx 342 tools/packfi2/aes128.c tmp2 = expkey[4*idx - 2]; idx 343 tools/packfi2/aes128.c tmp3 = expkey[4*idx - 1]; idx 344 tools/packfi2/aes128.c if( !(idx % Nk) ) { idx 347 tools/packfi2/aes128.c tmp0 = Sbox[tmp1] ^ Rcon[idx/Nk]; idx 350 tools/packfi2/aes128.c } else if( Nk > 6 && idx % Nk == 4 ) { idx 357 tools/packfi2/aes128.c expkey[4*idx+0] = expkey[4*idx - 4*Nk + 0] ^ tmp0; idx 358 tools/packfi2/aes128.c expkey[4*idx+1] = expkey[4*idx - 4*Nk + 1] ^ tmp1; idx 359 tools/packfi2/aes128.c expkey[4*idx+2] = expkey[4*idx - 4*Nk + 2] ^ tmp2; idx 360 tools/packfi2/aes128.c expkey[4*idx+3] = expkey[4*idx - 4*Nk + 3] ^ tmp3;