Lines Matching full:me
38 static int apply_r_mips_26(struct module *me, u32 *location, u32 base, in apply_r_mips_26() argument
43 me->name); in apply_r_mips_26()
49 me->name); in apply_r_mips_26()
59 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() argument
81 n->next = me->arch.r_mips_hi16_list; in apply_r_mips_hi16()
82 me->arch.r_mips_hi16_list = n; in apply_r_mips_hi16()
98 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
113 if (me->arch.r_mips_hi16_list != NULL) { in apply_r_mips_lo16()
114 l = me->arch.r_mips_hi16_list; in apply_r_mips_lo16()
149 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
163 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
165 pr_err("module %s: dangerous R_MIPS_LO16 relocation\n", me->name); in apply_r_mips_lo16()
170 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
179 me->name, bits); in apply_r_mips_pc()
192 pr_err("module %s: relocation overflow\n", me->name); in apply_r_mips_pc()
201 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base, in apply_r_mips_pc16() argument
204 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
207 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base, in apply_r_mips_pc21() argument
210 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
213 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base, in apply_r_mips_pc26() argument
216 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
254 * @me: the module to apply the reloc to
261 * relocation to the module @me. Relocs that may be found in either REL or RELA
268 static int reloc_handler(u32 type, struct module *me, u32 *location, u32 base, in reloc_handler() argument
278 return apply_r_mips_26(me, location, base, v); in reloc_handler()
280 return apply_r_mips_hi16(me, location, v, rela); in reloc_handler()
282 return apply_r_mips_lo16(me, location, base, v, rela); in reloc_handler()
284 return apply_r_mips_pc16(me, location, base, v); in reloc_handler()
286 return apply_r_mips_pc21(me, location, base, v); in reloc_handler()
288 return apply_r_mips_pc26(me, location, base, v); in reloc_handler()
296 pr_err("%s: Unknown relocation type %u\n", me->name, type); in reloc_handler()
305 struct module *me, bool rela) in __apply_relocate() argument
323 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
336 me->name, strtab + sym->st_name); in __apply_relocate()
353 err = reloc_handler(type, me, location, base, v, rela); in __apply_relocate()
367 if (me->arch.r_mips_hi16_list) { in __apply_relocate()
368 free_relocation_chain(me->arch.r_mips_hi16_list); in __apply_relocate()
369 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
378 struct module *me) in apply_relocate() argument
380 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
386 struct module *me) in apply_relocate_add() argument
388 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
416 struct module *me) in module_finalize() argument
422 jump_label_apply_nops(me); in module_finalize()
424 INIT_LIST_HEAD(&me->arch.dbe_list); in module_finalize()
428 me->arch.dbe_start = (void *)s->sh_addr; in module_finalize()
429 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
431 list_add(&me->arch.dbe_list, &dbe_list); in module_finalize()