adr                22 include/cachebit.h #define ADR_TO_UNCACHED(adr) ((typeof(adr))((unsigned)(adr)|CAM_UNCACHED_BIT))
adr                23 include/cachebit.h #define ADR_TO_CACHED(adr) ((typeof(adr))((unsigned)(adr)&(~CAM_UNCACHED_BIT)))
adr                24 include/cachebit.h #define ADR_IS_CACHED(adr) (!((unsigned)(adr)&(CAM_UNCACHED_BIT)))
adr               182 modules/gui_debug.c     void* adr =(char*)(conf.mem_view_addr_init);
adr               183 modules/gui_debug.c     gui_debug_init(adr);
adr               348 modules/module_load.c static void module_log_load(const char *name, void* adr)
adr               353 modules/module_load.c         sprintf(buf,"%8d,LD,%08x,%s\n",get_tick_count(),adr,name);
adr               294 tools/capdis.c static void describe_str(firmware *fw, char *comment, uint32_t adr)
adr               297 tools/capdis.c     char *s=(char *)adr2ptr_with_data(fw,adr);
adr               302 tools/capdis.c     if(!isASCIIstring(fw,adr)) {
adr               390 tools/capdis.c void describe_const_op(firmware *fw, unsigned dis_opts, char *comment, uint32_t adr)
adr               394 tools/capdis.c         ostub = find_sig_val(fw->sv->stubs,adr);
adr               396 tools/capdis.c             uint32_t *p=(uint32_t *)adr2ptr(fw,adr);
adr               411 tools/capdis.c         describe_str(fw,comment,adr);
adr               648 tools/capdis.c     uint32_t adr=is->insn->address;
adr               653 tools/capdis.c        ostub = find_sig_val(fw->sv->stubs,adr|is->thumb);
adr               660 tools/capdis.c         struct lnode *label = addr_hash_get(branch_list,adr);
adr               676 tools/capdis.c     uint32_t adr=ti->start;
adr               678 tools/capdis.c         printf("\"branchtable_%08x:\\n\"\n",adr);
adr               680 tools/capdis.c         printf("branchtable_%08x:\n",adr);
adr               684 tools/capdis.c         uint8_t *p=adr2ptr(fw,adr);
adr               686 tools/capdis.c             fprintf(stderr,"do_tbb_data: jumptable outside of valid address range at 0x%08x\n",adr);
adr               691 tools/capdis.c         if(target <= adr) {
adr               698 tools/capdis.c             adr++;
adr               706 tools/capdis.c         adr++;
adr               716 tools/capdis.c     if(adr & 1) {
adr               717 tools/capdis.c         uint8_t *p=adr2ptr(fw,adr);
adr               723 tools/capdis.c             fprintf(stderr,"do_tbb_data: jumptable outside of valid address range at 0x%08x\n",adr);
adr               725 tools/capdis.c         adr++;
adr               728 tools/capdis.c     if(!disasm_iter_init(fw,is,adr | is->thumb)) {
adr               738 tools/capdis.c     uint32_t adr=ti->start;
adr               740 tools/capdis.c         printf("\"branchtable_%08x:\\n\"\n",adr);
adr               742 tools/capdis.c         printf("branchtable_%08x:\n",adr);
adr               746 tools/capdis.c         uint16_t *p=(uint16_t *)adr2ptr(fw,adr);
adr               748 tools/capdis.c             fprintf(stderr,"do_tbh_data: jumptable outside of valid address range at 0x%08x\n",adr);
adr               753 tools/capdis.c         if(target <= adr) {
adr               760 tools/capdis.c             adr+=ti->bytes;
adr               768 tools/capdis.c         adr+=ti->bytes;
adr               773 tools/capdis.c     if(!disasm_iter_init(fw,is,adr | is->thumb)) {
adr               780 tools/capdis.c     uint32_t adr=ti->start;
adr               783 tools/capdis.c         uint8_t *p=adr2ptr(fw,adr);
adr               785 tools/capdis.c             fprintf(stderr,"do_tbb_data: jumptable outside of valid address range at 0x%08x\n",adr);
adr               796 tools/capdis.c         if(target <= adr) {
adr               797 tools/capdis.c             adr++;
adr               803 tools/capdis.c         adr+=ti->bytes;
adr               807 tools/capdis.c     if(adr & 1) {
adr               808 tools/capdis.c         adr++;
adr               811 tools/capdis.c     if(!disasm_iter_init(fw,is,adr | is->thumb)) {
adr               840 tools/capdis.c         while(count < dis_count &&  is->adr < dis_end) {
adr               852 tools/capdis.c                 if(!disasm_iter_init(fw,is,(is->adr+is->insn_min_size) | is->thumb)) {
adr               862 tools/capdis.c     while(count < dis_count && is->adr < dis_end) {
adr               935 tools/capdis.c             uint16_t *pv=(uint16_t *)adr2ptr(fw,is->adr);
adr               944 tools/capdis.c                 printf("%s invalid address %"PRIx64"\n",comment_start,is->adr);
adr               946 tools/capdis.c             if(!disasm_iter_init(fw,is,(is->adr+is->insn_min_size)|is->thumb)) {
adr               958 tools/capdis.c         printf("    ldr     pc, =0x%"PRIx64,is->adr|is->thumb);
adr              1916 tools/finsig_dryos.c     uint32_t adr=0;
adr              1924 tools/finsig_dryos.c             adr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
adr              1929 tools/finsig_dryos.c     if(!adr) {
adr              1939 tools/finsig_dryos.c             if(adr2 == adr) {
adr              1941 tools/finsig_dryos.c                 fwAddMatch(fw,adr,32,0,122);
adr              4286 tools/finsig_dryos.c     uint32_t adr,where;
adr              4325 tools/finsig_dryos.c                                     adr = LDR2val(fw,k3+k4);
adr              4326 tools/finsig_dryos.c                                     if (adr < fw->memisostart)
adr              4343 tools/finsig_dryos.c         bprintf("DEF(%-40s,0x%08x) // Found @0x%08x (0x%x + %i)\n","imager_active",adr+o,where,adr,o);
adr              4392 tools/finsig_dryos.c                     uint32_t adr = LDR2val(fw,ka);
adr              4398 tools/finsig_dryos.c                             bprintf("DEF(%-40s,0x%08x) // Found 0x%04x (@0x%08x) + 0x%02x (@0x%08x)\n","viewport_fb_d",adr+ofst,adr,idx2adr(fw,ka),ofst,idx2adr(fw,k1));
adr              4399 tools/finsig_dryos.c                             bprintf("//void *vid_get_viewport_fb_d()    { return (void*)(*(int*)(0x%04x+0x%02x)); } // Found @0x%08x & 0x%08x\n",adr,ofst,idx2adr(fw,ka),idx2adr(fw,k1));
adr              5102 tools/finsig_dryos.c             uint32_t adr = LDR2val(fw,k1+1);
adr              5109 tools/finsig_dryos.c                     if (bitmap_buffer == (adr + 0x1C))
adr              5111 tools/finsig_dryos.c                         uint32_t active_bitmap_buffer = adr + (fwval(fw,k2+1) & 0xFFF);
adr              6678 tools/finsig_dryos.c void add_kinfo(int r, uint32_t b, const char *nm, uint32_t adr, uint32_t ev, int inv)
adr              6683 tools/finsig_dryos.c     key_info[kcount].fadr = adr;
adr              6841 tools/finsig_dryos.c                 uint32_t adr = LDR2val(fw,k);
adr              6842 tools/finsig_dryos.c                 if ((adr > tadr) && (adr < madr))
adr              6844 tools/finsig_dryos.c                     madr = adr;
adr              7054 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
adr              7055 tools/finsig_dryos.c         if (adr == fadr)
adr              7093 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
adr              7094 tools/finsig_dryos.c         if (adr == fadr)
adr              7161 tools/finsig_dryos.c         uint32_t adr = followBranch(fw,idx2adr(fw,k+1),1);
adr              7162 tools/finsig_dryos.c         if (adr == fadr)
adr              7174 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
adr              7175 tools/finsig_dryos.c         if (adr == fadr)
adr              7194 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+1),0x01000001);
adr              7195 tools/finsig_dryos.c         if (adr == fadr)
adr              7300 tools/finsig_dryos.c             uint32_t adr = LDR2val(fw,k+o);
adr              7306 tools/finsig_dryos.c                     adr = fwval(fw,adr2idx(fw,adr));
adr              7309 tools/finsig_dryos.c             return adr;
adr              7326 tools/finsig_dryos.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
adr              7327 tools/finsig_dryos.c         if (adr == fadr)
adr              7375 tools/finsig_dryos.c         uint32_t adr = ADR2adr(fw, idx);
adr              7376 tools/finsig_dryos.c         idx = adr2idx(fw, adr);
adr              7386 tools/finsig_dryos.c         uint32_t adr = ADR2adr(fw, idx);
adr              7387 tools/finsig_dryos.c         idx = adr2idx(fw, adr);
adr              7476 tools/finsig_dryos.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
adr              7478 tools/finsig_dryos.c     if (adr == fadr)
adr               630 tools/finsig_thumb2.c int find_saved_sig_index_by_adr(uint32_t adr)
adr               632 tools/finsig_thumb2.c     if(!adr) {
adr               638 tools/finsig_thumb2.c         if (sig_names[i].val == adr)
adr               725 tools/finsig_thumb2.c int save_sig_with_j(firmware *fw, char *name, uint32_t adr)
adr               727 tools/finsig_thumb2.c     if(!adr) {
adr               732 tools/finsig_thumb2.c     if(!fw_disasm_iter_single(fw,adr)) {
adr               733 tools/finsig_thumb2.c         printf("save_sig_with_j: %s disassembly failed at 0x%08x\n",name,adr);
adr               743 tools/finsig_thumb2.c         add_func_name(buf,adr,NULL); // this is the orignal named address
adr               745 tools/finsig_thumb2.c         adr=b_adr; // thumb bit already handled by get_direct...
adr               747 tools/finsig_thumb2.c     save_sig(name,adr);
adr               756 tools/finsig_thumb2.c     uint32_t adr=get_saved_sig_val(name);
adr               758 tools/finsig_thumb2.c     if(!adr) {
adr               765 tools/finsig_thumb2.c     match_fns[0].adr=adr;
adr               769 tools/finsig_thumb2.c     adr=get_saved_sig_val(veneer);
adr               770 tools/finsig_thumb2.c     if(!adr) {
adr               771 tools/finsig_thumb2.c         match_fns[1].adr=0;
adr               773 tools/finsig_thumb2.c         match_fns[1].adr=adr;
adr               775 tools/finsig_thumb2.c         match_fns[2].adr=0;
adr               777 tools/finsig_thumb2.c     return fw_search_insn(fw,is,search_disasm_calls_multi,0,match_fns,is->adr + max_offset);
adr               783 tools/finsig_thumb2.c     uint32_t adr=get_branch_call_insn_target(fw,is);
adr               786 tools/finsig_thumb2.c     if(!adr) {
adr               797 tools/finsig_thumb2.c     if(adr == sig_adr) {
adr               806 tools/finsig_thumb2.c     return (adr == sig_adr);
adr               852 tools/finsig_thumb2.c     uint32_t adr=get_saved_sig_val(rule->ref_name);
adr               853 tools/finsig_thumb2.c     if(!adr) {
adr               857 tools/finsig_thumb2.c     if(!disasm_iter_init(fw,is,adr)) {
adr               858 tools/finsig_thumb2.c         printf("init_disasm_sig_ref: %s bad address 0x%08x for %s\n",rule->name,adr,rule->ref_name);
adr               887 tools/finsig_thumb2.c                 uint32_t adr=get_branch_call_insn_target(fw,is);
adr               889 tools/finsig_thumb2.c                 return save_sig_with_j(fw,rule->name,adr);
adr              1096 tools/finsig_thumb2.c     while (is->adr < (ref_adr+0x800)) {
adr              1097 tools/finsig_thumb2.c         cadr = is->adr;
adr              1099 tools/finsig_thumb2.c             disasm_iter_set(fw,is,(is->adr+2) | fw->thumb_default);
adr              1633 tools/finsig_thumb2.c                 uint32_t adr=get_branch_call_insn_target(fw,is);
adr              1639 tools/finsig_thumb2.c                 return save_sig_with_j(fw,rule->name,adr);
adr              1776 tools/finsig_thumb2.c         uint32_t adr=get_branch_call_insn_target(fw,is);
adr              1777 tools/finsig_thumb2.c         if(!fw_disasm_iter_single(fw,adr)) {
adr              1792 tools/finsig_thumb2.c         return save_sig_with_j(fw,rule->name,adr);
adr              1935 tools/finsig_thumb2.c     uint32_t adr=get_branch_call_insn_target(fw,is);
adr              1936 tools/finsig_thumb2.c     if(!adr) {
adr              1940 tools/finsig_thumb2.c     disasm_iter_init(fw,is,adr);
adr              1981 tools/finsig_thumb2.c                 uint32_t adr=(uint32_t)(fw->is->insn->address) | is->thumb;
adr              1986 tools/finsig_thumb2.c                 return save_sig_with_j(fw,rule->name,adr);
adr              2061 tools/finsig_thumb2.c     uint32_t adr=get_branch_call_insn_target(fw,is);
adr              2062 tools/finsig_thumb2.c     if(!adr) {
adr              2065 tools/finsig_thumb2.c     return save_sig_with_j(fw,rule->name,adr);
adr              2105 tools/finsig_thumb2.c     uint32_t adr=get_branch_call_insn_target(fw,is);
adr              2106 tools/finsig_thumb2.c     if(!adr) {
adr              2110 tools/finsig_thumb2.c     disasm_iter_init(fw,is,adr);
adr              2170 tools/finsig_thumb2.c     if(fw_search_insn(fw,is,search_disasm_str_ref,0,"A/OpLogErr.txt",(uint32_t)is->adr+260)) {
adr              2281 tools/finsig_thumb2.c         uint32_t adr=(uint32_t)is->insn->address | is->thumb;
adr              2295 tools/finsig_thumb2.c             return save_sig_with_j(fw,rule->name,adr);
adr              2401 tools/finsig_thumb2.c     uint32_t adr=(uint32_t)is->adr|is->thumb;
adr              2422 tools/finsig_thumb2.c     return save_sig_with_j(fw,rule->name,adr);
adr              2539 tools/finsig_thumb2.c     while(find_next_sig_call(fw,is,end_adr - (uint32_t)is->adr,"DeleteFile_Fut")) {
adr              2723 tools/finsig_thumb2.c     while(fw_search_insn(fw,is,search_disasm_const_ref,str_adr,NULL,is->adr + 60)) {
adr              2811 tools/finsig_thumb2.c     uint32_t adr[2], fnd[2];
adr              2821 tools/finsig_thumb2.c     adr[0]=LDR_PC2val(fw,is->insn);
adr              2827 tools/finsig_thumb2.c     adr[1]=LDR_PC2val(fw,is->insn);
adr              2832 tools/finsig_thumb2.c         if (adr[n] < fw->data_start+fw->data_len) {
adr              2833 tools/finsig_thumb2.c             uint32_t ladr = adr[n]-fw->data_start+fw->data_init_start;
adr              2853 tools/finsig_thumb2.c         else if (adr[n] < fw->memisostart) {
adr              2854 tools/finsig_thumb2.c             save_misc_val("exmem_alloc_table",adr[n],0,fnd[n]);
adr              2871 tools/finsig_thumb2.c     if(!fw_search_insn(fw,is,search_disasm_str_ref,0,rule->ref_name,(uint32_t)is->adr+SEARCH_NEAR_REF_RANGE)) {
adr              2885 tools/finsig_thumb2.c     uint32_t adr=(uint32_t)(fw->is->insn->address) | is->thumb;
adr              2892 tools/finsig_thumb2.c         return save_sig_with_j(fw,rule->name,adr);
adr              2907 tools/finsig_thumb2.c     if(!fw_search_insn(fw,is,search_disasm_str_ref,0,rule->ref_name,(uint32_t)is->adr+SEARCH_NEAR_REF_RANGE)) {
adr              3128 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3129 tools/finsig_thumb2.c     if(!adr) {
adr              3133 tools/finsig_thumb2.c     uint32_t *p=(uint32_t *)adr2ptr(fw,adr);
adr              3135 tools/finsig_thumb2.c         printf("sig_match_levent_table: 0x%08x not a ROM adr 0x%"PRIx64"\n",adr,is->insn->address);
adr              3139 tools/finsig_thumb2.c         printf("sig_match_levent_table: expected 0x800 not 0x%x at 0x%08x ref 0x%"PRIx64"\n",*(p+1),adr,is->insn->address);
adr              3143 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,(uint32_t)is->insn->address);
adr              3194 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3195 tools/finsig_thumb2.c     if(!adr) {
adr              3199 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,(uint32_t)is->insn->address);
adr              3290 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3291 tools/finsig_thumb2.c     if(!adr) {
adr              3295 tools/finsig_thumb2.c     if(!adr2ptr(fw,adr)) {
adr              3296 tools/finsig_thumb2.c         printf("sig_match_physw_event_table: adr not ROM 0x%08x at 0x%"PRIx64"\n",adr,is->insn->address);
adr              3299 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,(uint32_t)is->insn->address);
adr              3335 tools/finsig_thumb2.c     uint32_t adr=0;
adr              3368 tools/finsig_thumb2.c         adr=get_branch_call_insn_target(fw,is);
adr              3371 tools/finsig_thumb2.c     if(!adr) {
adr              3375 tools/finsig_thumb2.c     disasm_iter_init(fw,is,adr);
adr              3403 tools/finsig_thumb2.c     adr=get_branch_call_insn_target(fw,is);
adr              3405 tools/finsig_thumb2.c     disasm_iter_init(fw,is,adr);
adr              3415 tools/finsig_thumb2.c     return save_sig_with_j(fw,rule->name,adr);
adr              3548 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3549 tools/finsig_thumb2.c     if(!adr) {
adr              3554 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,(uint32_t)is->insn->address);
adr              3582 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3583 tools/finsig_thumb2.c     if(!adr) {
adr              3588 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,(uint32_t)is->insn->address);
adr              3597 tools/finsig_thumb2.c     uint32_t fadr=is->adr;
adr              3615 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3616 tools/finsig_thumb2.c     if(!adr) {
adr              3632 tools/finsig_thumb2.c             adr+=is->insn->detail->arm.operands[1].imm;
adr              3634 tools/finsig_thumb2.c             adr-=is->insn->detail->arm.operands[1].imm;
adr              3646 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,disp,fadr);
adr              3658 tools/finsig_thumb2.c     uint32_t fadr=is->adr;
adr              3682 tools/finsig_thumb2.c     uint32_t fadr=is->adr;
adr              3687 tools/finsig_thumb2.c     uint32_t adr=LDR_PC2val(fw,is->insn);
adr              3688 tools/finsig_thumb2.c     if(!adr) {
adr              3705 tools/finsig_thumb2.c     save_misc_val(rule->name,adr,0,fadr);
adr              3809 tools/finsig_thumb2.c     while (is->adr < call_adr) {
adr              3811 tools/finsig_thumb2.c             disasm_iter_init(fw,is,(is->adr | is->thumb)+2);
adr              3826 tools/finsig_thumb2.c     fw_disasm_iter_single(fw,is_init->adr | is_init->thumb);
adr              3875 tools/finsig_thumb2.c             printf("sig_match_named_last: disasm failed %s 0x%"PRIx64"\n",rule->name,is->adr);
adr              3910 tools/finsig_thumb2.c                 printf("sig_match_named_last: disasm failed %s 0x%"PRIx64"\n",rule->name,is->adr);
adr              3946 tools/finsig_thumb2.c void sig_match_named_save_sig(const char *name, uint32_t adr, uint32_t flags)
adr              3949 tools/finsig_thumb2.c         adr = ADR_CLEAR_THUMB(adr);
adr              3951 tools/finsig_thumb2.c     save_sig(name,adr);
adr              4008 tools/finsig_thumb2.c         uint32_t adr = B_BL_BLXimm_target(fw,is->insn);
adr              4009 tools/finsig_thumb2.c         if(adr) {
adr              4014 tools/finsig_thumb2.c                     adr=ADR_SET_THUMB(adr);
adr              4018 tools/finsig_thumb2.c                 adr |= is->thumb;
adr              4020 tools/finsig_thumb2.c             disasm_iter_set(fw,is,adr);
adr              4028 tools/finsig_thumb2.c                     add_func_name(buf,adr,NULL); // add the previous address as j_...
adr              4029 tools/finsig_thumb2.c                     adr=j_adr;
adr              4032 tools/finsig_thumb2.c                 printf("sig_match_named: disasm failed in j_ check at %s 0x%08x\n",rule->name,adr);
adr              4034 tools/finsig_thumb2.c             sig_match_named_save_sig(rule->name,adr,sig_flags); 
adr              4037 tools/finsig_thumb2.c             printf("sig_match_named: %s invalid branch target 0x%08x\n",rule->ref_name,adr);
adr              4359 tools/finsig_thumb2.c void add_event_proc(firmware *fw, char *name, uint32_t adr)
adr              4362 tools/finsig_thumb2.c     if(!ADR_IS_THUMB(adr)) {
adr              4363 tools/finsig_thumb2.c         printf("add_event_proc: %s is ARM 0x%08x\n",name,adr);
adr              4366 tools/finsig_thumb2.c     if(!fw_disasm_iter_single(fw,adr)) {
adr              4367 tools/finsig_thumb2.c         printf("add_event_proc: %s disassembly failed at 0x%08x\n",name,adr);
adr              4377 tools/finsig_thumb2.c         add_func_name(buf,adr,NULL); // this is the orignal named address
adr              4379 tools/finsig_thumb2.c         adr=b_adr; // thumb bit already handled by get_direct...
adr              4381 tools/finsig_thumb2.c     add_func_name(name,adr,"_FW");
adr              4403 tools/finsig_thumb2.c         uint64_t adr = is->insn->address;
adr              4413 tools/finsig_thumb2.c             if (is->insn->address >= adr) break;
adr              4416 tools/finsig_thumb2.c                 if ((u<fw->base+fw->size8) && (u>adr) && (!isASCIIstring(fw,u))) {
adr              4426 tools/finsig_thumb2.c             if (is->insn->address >= adr) break;
adr              4456 tools/finsig_thumb2.c             printf("failed to get export/register eventproc args at 0x%"PRIx64"\n",adr);
adr              4459 tools/finsig_thumb2.c         disasm_iter_init(fw,is,adr | adr_thumb);
adr              4610 tools/finsig_thumb2.c             uint32_t adr=LDR_PC2val(fw,insn);
adr              4612 tools/finsig_thumb2.c             if(fw_u32(fw,adr) == 0x1004) {
adr              4613 tools/finsig_thumb2.c                 op_table=adr;
adr              4639 tools/finsig_thumb2.c                             uint32_t adr)
adr              4643 tools/finsig_thumb2.c         match_fns[max_funcs-1].adr=0;
adr              4647 tools/finsig_thumb2.c     match_fns[*match_fn_count].adr=adr;
adr              4650 tools/finsig_thumb2.c     match_fns[*match_fn_count].adr=0;
adr              4660 tools/finsig_thumb2.c     uint32_t adr=get_saved_sig_val(name);
adr              4661 tools/finsig_thumb2.c     if(!adr) {
adr              4665 tools/finsig_thumb2.c     add_generic_func_match(match_fns,match_fn_count,MAX_GENERIC_FUNCS,fn,adr);
adr              4668 tools/finsig_thumb2.c     adr=get_saved_sig_val(veneer);
adr              4669 tools/finsig_thumb2.c     if(adr) {
adr              4670 tools/finsig_thumb2.c         add_generic_func_match(match_fns,match_fn_count,MAX_GENERIC_FUNCS,fn,adr);
adr              5006 tools/finsig_thumb2.c void get_physw_table_entry(firmware *fw, uint32_t adr, physw_table_entry_t *vals)
adr              5008 tools/finsig_thumb2.c     uint32_t info=fw_u32(fw,adr);
adr              5010 tools/finsig_thumb2.c     vals->ev=fw_u32(fw,adr+4);
adr              5060 tools/finsig_thumb2.c     uint32_t adr=find_physw_table_entry(fw,tadr,tcount,ev);
adr              5061 tools/finsig_thumb2.c     if(!adr) {
adr              5065 tools/finsig_thumb2.c     get_physw_table_entry(fw,adr,&v);
adr              5071 tools/finsig_thumb2.c     bprintf("//#define %-20s0x%08x // Found @0x%08x, levent 0x%x%s\n",fn,v.bit,adr,v.ev,v.no_invert?" (non-inverted logic)":"");
adr              5091 tools/finsig_thumb2.c void add_kinfo(int r, uint32_t b, const char *nm, uint32_t adr, uint32_t ev, int inv)
adr              5096 tools/finsig_thumb2.c     key_info[kcount].fadr = adr;
adr              5106 tools/finsig_thumb2.c     uint32_t adr=find_physw_table_entry(fw,tadr,tlen,ev);
adr              5107 tools/finsig_thumb2.c     if(!adr) {
adr              5111 tools/finsig_thumb2.c     get_physw_table_entry(fw,adr,&v);
adr              5113 tools/finsig_thumb2.c     add_kinfo(v.reg,v.bit|xtra,name,adr,v.ev,(v.no_invert)?0:1);
adr              5334 tools/finsig_thumb2.c     uint32_t adr=mv->val;
adr              5336 tools/finsig_thumb2.c     for(i=0; i<50; i++,adr+=2) {
adr              5337 tools/finsig_thumb2.c         uint16_t *pv=(uint16_t*)adr2ptr(fw,adr);
adr              5549 tools/finsig_thumb2.c             uint32_t adr = fw->base + (pos << 2);
adr              5556 tools/finsig_thumb2.c             print_other_stubs_min(fw,"focus_len_table",adr,adr);
adr              1230 tools/finsig_vxworks.c     uint32_t adr=0;
adr              1240 tools/finsig_vxworks.c             adr = followBranch(fw,idx2adr(fw,k+1),0x01000001);
adr              1245 tools/finsig_vxworks.c     if(!adr) {
adr              1255 tools/finsig_vxworks.c             if(adr2 == adr) {
adr              1257 tools/finsig_vxworks.c                 fwAddMatch(fw,adr,32,0,122);
adr              3637 tools/finsig_vxworks.c     uint32_t adr,where;
adr              3676 tools/finsig_vxworks.c                                     adr = LDR2val(fw,k3+k4);
adr              3677 tools/finsig_vxworks.c                                     if (adr < fw->memisostart)
adr              3694 tools/finsig_vxworks.c         bprintf("DEF(%-40s,0x%08x) // Found @0x%08x (0x%x + %i)\n","imager_active",adr+o,where,adr,o);
adr              4436 tools/finsig_vxworks.c             uint32_t adr = LDR2val(fw,k1+1);
adr              4443 tools/finsig_vxworks.c                     if (bitmap_buffer == (adr + 0x1C))
adr              4445 tools/finsig_vxworks.c                         uint32_t active_bitmap_buffer = adr + (fwval(fw,k2+1) & 0xFFF);
adr              5187 tools/finsig_vxworks.c void add_kinfo(int r, uint32_t b, const char *nm, uint32_t adr, uint32_t ev, int inv)
adr              5192 tools/finsig_vxworks.c     key_info[kcount].fadr = adr;
adr              5350 tools/finsig_vxworks.c                 uint32_t adr = LDR2val(fw,k);
adr              5351 tools/finsig_vxworks.c                 if ((adr > tadr) && (adr < madr))
adr              5353 tools/finsig_vxworks.c                     madr = adr;
adr              5494 tools/finsig_vxworks.c         uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
adr              5495 tools/finsig_vxworks.c         if (adr == fadr)
adr              5587 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
adr              5588 tools/finsig_vxworks.c         if (adr == fadr)
adr              5620 tools/finsig_vxworks.c         uint32_t adr = followBranch2(fw,idx2adr(fw,k+6),0x01000001);
adr              5621 tools/finsig_vxworks.c         if (adr == fadr)
adr              5662 tools/finsig_vxworks.c     uint32_t adr = followBranch(fw,idx2adr(fw,k),0x01000001);
adr              5665 tools/finsig_vxworks.c     if (adr == fadr)
adr              5715 tools/finsig_vxworks.c         uint32_t adr = fwval(fw, idx);
adr              5716 tools/finsig_vxworks.c         idx = adr2idx(fw, adr);
adr              5727 tools/finsig_vxworks.c         uint32_t adr = fwval(fw, idx);
adr              5728 tools/finsig_vxworks.c         idx = adr2idx(fw, adr);
adr              5863 tools/finsig_vxworks.c     uint32_t adr = followBranch2(fw,idx2adr(fw,k),0x01000001);
adr              5865 tools/finsig_vxworks.c     if (adr == fadr)
adr               165 tools/firmware_load.c int adr2idx(firmware *fw, uint32_t adr)
adr               167 tools/firmware_load.c     if (adr < fw->base)
adr               168 tools/firmware_load.c         return -((fw->base - adr) >> 2);
adr               170 tools/firmware_load.c         return (adr - fw->base) >> 2;
adr               174 tools/firmware_load.c char* adr2ptr(firmware *fw, uint32_t adr)
adr               176 tools/firmware_load.c     if ((fw->dryos_ver >= 51) && (fw->alt_base) && (adr >= fw->alt_base))
adr               178 tools/firmware_load.c         return ((char*)fw->buf) + (adr - fw->alt_base);
adr               180 tools/firmware_load.c     if ((fw->dryos_ver >= 50) && (adr < fw->base))
adr               182 tools/firmware_load.c         adr = (adr - fw->base2) + fw->base_copied;
adr               184 tools/firmware_load.c     return ((char*)fw->buf) + (adr - fw->base);
adr               618 tools/firmware_load.c int isASCIIstring(firmware *fw, uint32_t adr)
adr               620 tools/firmware_load.c     if (idx_valid(fw, adr2idx(fw, adr)))
adr               622 tools/firmware_load.c         unsigned char *p = (unsigned char*)adr2ptr(fw, adr);
adr                91 tools/firmware_load.h int adr2idx(firmware *fw, uint32_t adr);
adr                92 tools/firmware_load.h char* adr2ptr(firmware *fw, uint32_t adr);
adr               150 tools/firmware_load.h int isASCIIstring(firmware *fw, uint32_t adr);
adr               134 tools/firmware_load_ng.c int isASCIIstring(firmware *fw, uint32_t adr)
adr               136 tools/firmware_load_ng.c     unsigned char *p = (unsigned char*)adr2ptr_with_data(fw, adr);
adr               155 tools/firmware_load_ng.c adr_range_t *adr_get_range(firmware *fw, uint32_t adr)
adr               160 tools/firmware_load_ng.c         if(adr >= r->start && adr < r->start + r->bytes) {
adr               174 tools/firmware_load_ng.c uint8_t* adr2ptr(firmware *fw, uint32_t adr)
adr               176 tools/firmware_load_ng.c     adr_range_t *r=adr_get_range(fw,adr);
adr               183 tools/firmware_load_ng.c             return (r->buf)+(adr - r->start);
adr               189 tools/firmware_load_ng.c uint8_t* adr2ptr_with_data(firmware *fw, uint32_t adr)
adr               191 tools/firmware_load_ng.c     adr_range_t *r=adr_get_range(fw,adr);
adr               199 tools/firmware_load_ng.c             return (r->buf)+(adr - r->start);
adr               223 tools/firmware_load_ng.c int adr_is_var(firmware *fw, uint32_t adr)
adr               225 tools/firmware_load_ng.c     return (adr > fw->data_start && adr < fw->memisostart);
adr               258 tools/firmware_load_ng.c uint32_t fw_u32(firmware *fw, uint32_t adr)
adr               260 tools/firmware_load_ng.c     uint32_t *p=(uint32_t *)adr2ptr(fw,adr);
adr               262 tools/firmware_load_ng.c         fprintf(stderr,"fw_u32 bad adr 0x%08x\n",adr);
adr               269 tools/firmware_load_ng.c int fw_memcmp(firmware *fw, uint32_t adr,const void *cmp, size_t n)
adr               271 tools/firmware_load_ng.c     uint32_t *p=(uint32_t *)adr2ptr(fw,adr);
adr               275 tools/firmware_load_ng.c     if(n >= fw->size8 - (adr - fw->base)) {
adr               303 tools/firmware_load_ng.c void adr_hist_add(adr_hist_t *ah, uint32_t adr)
adr               306 tools/firmware_load_ng.c     ah->adrs[ah->cur]=adr;
adr               518 tools/firmware_load_ng.c     uint32_t adr;
adr               521 tools/firmware_load_ng.c     adr=(insn->address&~3)+4+insn->detail->arm.operands[1].mem.disp;
adr               522 tools/firmware_load_ng.c     return (uint32_t *)adr2ptr(fw,adr);
adr               530 tools/firmware_load_ng.c     uint32_t adr;
adr               533 tools/firmware_load_ng.c     adr=insn->address+8+insn->detail->arm.operands[1].mem.disp;
adr               534 tools/firmware_load_ng.c     return (uint32_t *)adr2ptr(fw,adr);
adr               601 tools/firmware_load_ng.c     uint32_t adr=ADR2adr(fw,insn);
adr               602 tools/firmware_load_ng.c     return (uint32_t *)adr2ptr(fw,adr);
adr               691 tools/firmware_load_ng.c     ti->start=(uint32_t)is->adr; // after current instruction
adr               736 tools/firmware_load_ng.c     uint32_t adr=ti->start;
adr               737 tools/firmware_load_ng.c     while(adr < max_adr) {
adr               738 tools/firmware_load_ng.c         uint8_t *p=adr2ptr(fw,adr);
adr               740 tools/firmware_load_ng.c             fprintf(stderr,"get_TBx_PC_info: jumptable outside of valid address range at 0x%08x\n",adr);
adr               757 tools/firmware_load_ng.c         if(target <= adr) {
adr               758 tools/firmware_load_ng.c             fprintf(stderr,"get_TBx_PC_info: jumptable target 0x%08x inside jumptable %d at 0x%08x\n",target,off,adr);
adr               767 tools/firmware_load_ng.c         adr+=ti->bytes;
adr               774 tools/firmware_load_ng.c         ti->count=(adr-ti->start)/ti->bytes;
adr               783 tools/firmware_load_ng.c iter_state_t *disasm_iter_new(firmware *fw, uint32_t adr)
adr               789 tools/firmware_load_ng.c     disasm_iter_init(fw,is,adr);
adr               803 tools/firmware_load_ng.c int disasm_iter_set(firmware *fw, iter_state_t *is, uint32_t adr)
adr               806 tools/firmware_load_ng.c     if(ADR_IS_THUMB(adr)) {
adr               810 tools/firmware_load_ng.c         adr=ADR_CLEAR_THUMB(adr);// ADR used for iteration must not contain thumb bit
adr               815 tools/firmware_load_ng.c         if(!ADR_IS_ALIGN4(adr)) {
adr               816 tools/firmware_load_ng.c             fprintf(stderr,"disasm_iter_set: unaligned ARM address 0x%08x\n",adr);
adr               819 tools/firmware_load_ng.c             is->adr=0;
adr               823 tools/firmware_load_ng.c     uint8_t *p=adr2ptr(fw,adr);
adr               829 tools/firmware_load_ng.c         is->adr=0;
adr               835 tools/firmware_load_ng.c     is->adr=adr;
adr               840 tools/firmware_load_ng.c int disasm_iter_init(firmware *fw, iter_state_t *is, uint32_t adr)
adr               843 tools/firmware_load_ng.c     return disasm_iter_set(fw,is,adr);
adr               855 tools/firmware_load_ng.c     adr_hist_add(&is->ah,(uint32_t)is->adr | is->thumb); // record thumb state to allow backtracking through state changes
adr               856 tools/firmware_load_ng.c     return cs_disasm_iter(is->cs_handle, &is->code, &is->size, &is->adr, is->insn);
adr               868 tools/firmware_load_ng.c     is->adr -= is->insn->size;
adr               871 tools/firmware_load_ng.c     return cs_disasm_iter(is->cs_handle, &is->code, &is->size, &is->adr, is->insn);
adr               880 tools/firmware_load_ng.c int fw_disasm_iter_start(firmware *fw, uint32_t adr)
adr               882 tools/firmware_load_ng.c     return disasm_iter_init(fw,fw->is,adr);
adr               893 tools/firmware_load_ng.c int fw_disasm_iter_single(firmware *fw, uint32_t adr)
adr               895 tools/firmware_load_ng.c     fw_disasm_iter_start(fw,adr);
adr               906 tools/firmware_load_ng.c size_t fw_disasm_adr(firmware *fw, uint32_t adr, unsigned count, cs_insn **insn)
adr               908 tools/firmware_load_ng.c     uint8_t *p=adr2ptr(fw,adr);
adr               913 tools/firmware_load_ng.c     return cs_disasm(fw->cs_handle, p, fw->size8 - (p-fw->buf8), adr, count, insn);
adr               929 tools/firmware_load_ng.c     uint32_t adr_start=is->adr;
adr               958 tools/firmware_load_ng.c     uint32_t adr=adr_start;
adr               961 tools/firmware_load_ng.c         while(adr < adr_end) {
adr               967 tools/firmware_load_ng.c                 adr=(uint32_t)is->adr; // adr was updated by iter or called sub
adr               971 tools/firmware_load_ng.c                 adr=adr+is->insn_min_size;
adr               972 tools/firmware_load_ng.c                 if(!disasm_iter_init(fw,is,adr|is->thumb)) {
adr               983 tools/firmware_load_ng.c     while(br && adr < adr_end) {
adr               984 tools/firmware_load_ng.c         uint32_t *p_adr=(uint32_t *)adr2ptr(fw,(uint32_t)adr);
adr               992 tools/firmware_load_ng.c             adr=ptr2adr(fw,(uint8_t *)br->p);
adr               993 tools/firmware_load_ng.c             if(!disasm_iter_init(fw,is,(uint32_t)adr)) {
adr               996 tools/firmware_load_ng.c             p_adr=(uint32_t *)adr2ptr(fw,(uint32_t)adr);
adr               999 tools/firmware_load_ng.c         while(adr < adr_chunk_end) {
adr              1005 tools/firmware_load_ng.c                 adr=(uint32_t)is->adr; // adr was updated by iter or called sub
adr              1009 tools/firmware_load_ng.c                 adr=adr+is->insn_min_size;
adr              1010 tools/firmware_load_ng.c                 if(!disasm_iter_init(fw,is,adr|is->thumb)) {
adr              1087 tools/firmware_load_ng.c int search_calls_multi_end(firmware *fw, iter_state_t *is, uint32_t adr) {
adr              1100 tools/firmware_load_ng.c         while(data->adr) {
adr              1101 tools/firmware_load_ng.c             if(data->adr == sub) {
adr              1251 tools/firmware_load_ng.c     uint32_t adr=B_target(fw,is_init->insn);
adr              1253 tools/firmware_load_ng.c     if(adr) {
adr              1254 tools/firmware_load_ng.c         return (adr | is_init->thumb);
adr              1256 tools/firmware_load_ng.c     adr=LDR_PC_PC_target(fw,is_init->insn);
adr              1258 tools/firmware_load_ng.c     if(adr) {
adr              1259 tools/firmware_load_ng.c         return adr;
adr              1265 tools/firmware_load_ng.c         adr = is_init->insn->detail->arm.operands[1].imm;
adr              1267 tools/firmware_load_ng.c         if(!fw_disasm_iter_single(fw,is_init->adr | is_init->thumb)) {
adr              1280 tools/firmware_load_ng.c         adr = (fw->is->insn->detail->arm.operands[1].imm << 16) | (adr&0xFFFF);
adr              1289 tools/firmware_load_ng.c             return adr;
adr              1302 tools/firmware_load_ng.c     uint32_t adr=B_BL_target(fw,is->insn);
adr              1303 tools/firmware_load_ng.c     if(adr) {
adr              1304 tools/firmware_load_ng.c         return (adr | is->thumb);
adr              1308 tools/firmware_load_ng.c         adr=CBx_target(fw,is->insn);
adr              1309 tools/firmware_load_ng.c         if(adr) {
adr              1310 tools/firmware_load_ng.c             return ADR_SET_THUMB(adr);
adr              1314 tools/firmware_load_ng.c     adr=BLXimm_target(fw,is->insn);
adr              1315 tools/firmware_load_ng.c     if(adr) {
adr              1317 tools/firmware_load_ng.c             return adr;
adr              1319 tools/firmware_load_ng.c             return adr | is->thumb;
adr              1323 tools/firmware_load_ng.c     adr=LDR_PC_PC_target(fw,is->insn);
adr              1324 tools/firmware_load_ng.c     if(adr) {
adr              1325 tools/firmware_load_ng.c         return adr;
adr              1908 tools/firmware_load_ng.c             data_found_copy=is->adr;
adr                52 tools/firmware_load_ng.h     uint64_t adr; // firmware address - must be 64 bit for capstone iter, never has thumb bit set
adr               119 tools/firmware_load_ng.h uint8_t* adr2ptr(firmware *fw, uint32_t adr);
adr               122 tools/firmware_load_ng.h uint8_t* adr2ptr_with_data(firmware *fw, uint32_t adr);
adr               132 tools/firmware_load_ng.h adr_range_t *adr_get_range(firmware *fw, uint32_t adr);
adr               135 tools/firmware_load_ng.h int adr_is_var(firmware *fw, uint32_t adr);
adr               151 tools/firmware_load_ng.h int isASCIIstring(firmware *fw, uint32_t adr);
adr               159 tools/firmware_load_ng.h uint32_t fw_u32(firmware *fw, uint32_t adr);
adr               162 tools/firmware_load_ng.h int fw_memcmp(firmware *fw, uint32_t adr,const void *cmp, size_t n);
adr               172 tools/firmware_load_ng.h void adr_hist_add(adr_hist_t *ah, uint32_t adr);
adr               283 tools/firmware_load_ng.h iter_state_t *disasm_iter_new(firmware *fw, uint32_t adr);
adr               290 tools/firmware_load_ng.h int disasm_iter_set(firmware *fw, iter_state_t *is, uint32_t adr);
adr               294 tools/firmware_load_ng.h int disasm_iter_init(firmware *fw, iter_state_t *is, uint32_t adr);
adr               309 tools/firmware_load_ng.h int fw_disasm_iter_start(firmware *fw, uint32_t adr);
adr               316 tools/firmware_load_ng.h int fw_disasm_iter_single(firmware *fw, uint32_t adr);
adr               363 tools/firmware_load_ng.h typedef int (*search_calls_multi_fn)(firmware *fw, iter_state_t *is, uint32_t adr);
adr               368 tools/firmware_load_ng.h     uint32_t adr;
adr               373 tools/firmware_load_ng.h int search_calls_multi_end(firmware *fw, iter_state_t *is, uint32_t adr);