Lines Matching refs:me
48 static int apply_r_mips_26(struct module *me, u32 *location, u32 base, in apply_r_mips_26() argument
53 me->name); in apply_r_mips_26()
59 me->name); in apply_r_mips_26()
69 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() argument
91 n->next = me->arch.r_mips_hi16_list; in apply_r_mips_hi16()
92 me->arch.r_mips_hi16_list = n; in apply_r_mips_hi16()
108 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
123 if (me->arch.r_mips_hi16_list != NULL) { in apply_r_mips_lo16()
124 l = me->arch.r_mips_hi16_list; in apply_r_mips_lo16()
159 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
173 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
175 pr_err("module %s: dangerous R_MIPS_LO16 relocation\n", me->name); in apply_r_mips_lo16()
180 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
189 me->name, bits); in apply_r_mips_pc()
202 pr_err("module %s: relocation overflow\n", me->name); in apply_r_mips_pc()
211 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base, in apply_r_mips_pc16() argument
214 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
217 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base, in apply_r_mips_pc21() argument
220 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
223 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base, in apply_r_mips_pc26() argument
226 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
278 static int reloc_handler(u32 type, struct module *me, u32 *location, u32 base, in reloc_handler() argument
288 return apply_r_mips_26(me, location, base, v); in reloc_handler()
290 return apply_r_mips_hi16(me, location, v, rela); in reloc_handler()
292 return apply_r_mips_lo16(me, location, base, v, rela); in reloc_handler()
294 return apply_r_mips_pc16(me, location, base, v); in reloc_handler()
296 return apply_r_mips_pc21(me, location, base, v); in reloc_handler()
298 return apply_r_mips_pc26(me, location, base, v); in reloc_handler()
306 pr_err("%s: Unknown relocation type %u\n", me->name, type); in reloc_handler()
315 struct module *me, bool rela) in __apply_relocate() argument
333 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
346 me->name, strtab + sym->st_name); in __apply_relocate()
363 err = reloc_handler(type, me, location, base, v, rela); in __apply_relocate()
377 if (me->arch.r_mips_hi16_list) { in __apply_relocate()
378 free_relocation_chain(me->arch.r_mips_hi16_list); in __apply_relocate()
379 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
388 struct module *me) in apply_relocate() argument
390 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
396 struct module *me) in apply_relocate_add() argument
398 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
426 struct module *me) in module_finalize() argument
432 jump_label_apply_nops(me); in module_finalize()
434 INIT_LIST_HEAD(&me->arch.dbe_list); in module_finalize()
438 me->arch.dbe_start = (void *)s->sh_addr; in module_finalize()
439 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
441 list_add(&me->arch.dbe_list, &dbe_list); in module_finalize()