Searched refs:dlthis (Results 1 – 5 of 5) sorted by relevance
/linux-3.4.99/drivers/staging/tidspbridge/dynload/ |
D | getsection.c | 56 static char *unpack_sec_name(struct dload_state *dlthis, u32 soffset, char *dst) in unpack_sec_name() argument 60 if (soffset >= dlthis->dfile_hdr.df_scn_name_size) { in unpack_sec_name() 61 dload_error(dlthis, stbl, soffset); in unpack_sec_name() 64 src = (u8 *) dlthis->str_head + in unpack_sec_name() 88 static void expand_sec_names(struct dload_state *dlthis) in expand_sec_names() argument 95 xsize = dlthis->dfile_hdr.df_max_str_len * dlthis->dfile_hdr.df_no_scns; in expand_sec_names() 96 xstrings = (char *)dlthis->mysym->dload_allocate(dlthis->mysym, xsize); in expand_sec_names() 98 dload_error(dlthis, err_alloc, xsize); in expand_sec_names() 101 dlthis->xstrings = xstrings; in expand_sec_names() 104 for (sec = 0; sec < dlthis->dfile_hdr.df_no_scns; sec++) { in expand_sec_names() [all …]
|
D | tramp.c | 30 static int priv_tramp_sect_tgt_alloc(struct dload_state *dlthis) in priv_tramp_sect_tgt_alloc() argument 39 sect_info = &dlthis->ldr_sections[dlthis->allocated_secn_count]; in priv_tramp_sect_tgt_alloc() 41 sect_info->name = dlthis->tramp.final_string_table; in priv_tramp_sect_tgt_alloc() 42 sect_info->size = dlthis->tramp.tramp_sect_next_addr; in priv_tramp_sect_tgt_alloc() 49 ret_val = dlthis->myalloc->dload_allocate(dlthis->myalloc, in priv_tramp_sect_tgt_alloc() 55 dload_error(dlthis, "Failed to allocate target memory for" in priv_tramp_sect_tgt_alloc() 130 static struct tramp_string *priv_tramp_string_create(struct dload_state *dlthis, in priv_tramp_string_create() argument 138 (struct tramp_string *)dlthis->mysym->dload_allocate(dlthis->mysym, in priv_tramp_string_create() 153 new_string->index = dlthis->tramp.tramp_string_next_index; in priv_tramp_string_create() 154 dlthis->tramp.tramp_string_next_index++; in priv_tramp_string_create() [all …]
|
D | cload.c | 25 static void dload_symbols(struct dload_state *dlthis); 26 static void dload_data(struct dload_state *dlthis); 27 static void allocate_sections(struct dload_state *dlthis); 28 static void string_table_free(struct dload_state *dlthis); 29 static void symbol_table_free(struct dload_state *dlthis); 30 static void section_table_free(struct dload_state *dlthis); 31 static void init_module_handle(struct dload_state *dlthis); 33 static char *unpack_name(struct dload_state *dlthis, u32 soffset); 61 void dload_error(struct dload_state *dlthis, const char *errtxt, ...) in dload_error() argument 66 dlthis->mysym->error_report(dlthis->mysym, errtxt, args); in dload_error() [all …]
|
D | reloc.c | 48 rvalue dload_unpack(struct dload_state *dlthis, tgt_au_t * data, int fieldsz, in dload_unpack() argument 101 int dload_repack(struct dload_state *dlthis, rvalue val, tgt_au_t * data, in dload_repack() argument 164 void dload_relocate(struct dload_state *dlthis, tgt_au_t * data, in dload_relocate() argument 205 dload_error(dlthis, "Bad coff operator 0x%x", in dload_relocate() 209 dload_error(dlthis, "Bad coff operator 0x%x", rp->TYPE); in dload_relocate() 220 dload_error(dlthis, "Buffer Overflow - Array Index Out " in dload_relocate() 230 if ((u32) rp->SYMNDX < dlthis->dfile_hdr.df_no_syms) { in dload_relocate() 232 svp = &dlthis->local_symtab[rp->SYMNDX]; in dload_relocate() 239 dlthis->delta_runaddr : in dload_relocate() 240 dlthis->image_secn->run_addr; in dload_relocate() [all …]
|
D | dload_internal.h | 291 #define TARGET_BIG_ENDIAN (dlthis->big_e_target) 297 extern void dload_error(struct dload_state *dlthis, const char *errtxt, ...); 300 extern void dload_headers(struct dload_state *dlthis); 301 extern void dload_strings(struct dload_state *dlthis, bool sec_names_only); 302 extern void dload_sections(struct dload_state *dlthis); 316 extern void dload_relocate(struct dload_state *dlthis, tgt_au_t * data, 320 extern rvalue dload_unpack(struct dload_state *dlthis, tgt_au_t * data, 323 extern int dload_repack(struct dload_state *dlthis, rvalue val, tgt_au_t * data, 329 extern bool dload_tramp_avail(struct dload_state *dlthis, 332 int dload_tramp_generate(struct dload_state *dlthis, s16 secnn, [all …]
|