Lines Matching refs:me

49 static int apply_r_mips_26(struct module *me, u32 *location, u32 base,  in apply_r_mips_26()  argument
54 me->name); in apply_r_mips_26()
60 me->name); in apply_r_mips_26()
70 static int apply_r_mips_hi16(struct module *me, u32 *location, Elf_Addr v, in apply_r_mips_hi16() argument
92 n->next = me->arch.r_mips_hi16_list; in apply_r_mips_hi16()
93 me->arch.r_mips_hi16_list = n; in apply_r_mips_hi16()
109 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
124 if (me->arch.r_mips_hi16_list != NULL) { in apply_r_mips_lo16()
125 l = me->arch.r_mips_hi16_list; in apply_r_mips_lo16()
160 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
174 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
176 pr_err("module %s: dangerous R_MIPS_LO16 relocation\n", me->name); in apply_r_mips_lo16()
181 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
190 me->name, bits); in apply_r_mips_pc()
203 pr_err("module %s: relocation overflow\n", me->name); in apply_r_mips_pc()
212 static int apply_r_mips_pc16(struct module *me, u32 *location, u32 base, in apply_r_mips_pc16() argument
215 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
218 static int apply_r_mips_pc21(struct module *me, u32 *location, u32 base, in apply_r_mips_pc21() argument
221 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
224 static int apply_r_mips_pc26(struct module *me, u32 *location, u32 base, in apply_r_mips_pc26() argument
227 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
279 static int reloc_handler(u32 type, struct module *me, u32 *location, u32 base, in reloc_handler() argument
289 return apply_r_mips_26(me, location, base, v); in reloc_handler()
291 return apply_r_mips_hi16(me, location, v, rela); in reloc_handler()
293 return apply_r_mips_lo16(me, location, base, v, rela); in reloc_handler()
295 return apply_r_mips_pc16(me, location, base, v); in reloc_handler()
297 return apply_r_mips_pc21(me, location, base, v); in reloc_handler()
299 return apply_r_mips_pc26(me, location, base, v); in reloc_handler()
307 pr_err("%s: Unknown relocation type %u\n", me->name, type); in reloc_handler()
316 struct module *me, bool rela) in __apply_relocate() argument
334 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
347 me->name, strtab + sym->st_name); in __apply_relocate()
364 err = reloc_handler(type, me, location, base, v, rela); in __apply_relocate()
378 if (me->arch.r_mips_hi16_list) { in __apply_relocate()
379 free_relocation_chain(me->arch.r_mips_hi16_list); in __apply_relocate()
380 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
389 struct module *me) in apply_relocate() argument
391 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
397 struct module *me) in apply_relocate_add() argument
399 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
427 struct module *me) in module_finalize() argument
433 jump_label_apply_nops(me); in module_finalize()
435 INIT_LIST_HEAD(&me->arch.dbe_list); in module_finalize()
439 me->arch.dbe_start = (void *)s->sh_addr; in module_finalize()
440 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
442 list_add(&me->arch.dbe_list, &dbe_list); in module_finalize()