Lines Matching refs:me
44 static int apply_r_mips_none(struct module *me, u32 *location, in apply_r_mips_none() argument
50 static int apply_r_mips_32(struct module *me, u32 *location, in apply_r_mips_32() argument
58 static int apply_r_mips_26(struct module *me, u32 *location, in apply_r_mips_26() argument
63 me->name); in apply_r_mips_26()
69 me->name); in apply_r_mips_26()
79 static int apply_r_mips_hi16(struct module *me, u32 *location, in apply_r_mips_hi16() argument
101 n->next = me->arch.r_mips_hi16_list; in apply_r_mips_hi16()
102 me->arch.r_mips_hi16_list = n; in apply_r_mips_hi16()
118 static int apply_r_mips_lo16(struct module *me, u32 *location, in apply_r_mips_lo16() argument
133 if (me->arch.r_mips_hi16_list != NULL) { in apply_r_mips_lo16()
134 l = me->arch.r_mips_hi16_list; in apply_r_mips_lo16()
169 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
183 me->arch.r_mips_hi16_list = NULL; in apply_r_mips_lo16()
185 pr_err("module %s: dangerous R_MIPS_LO16 relocation\n", me->name); in apply_r_mips_lo16()
190 static int apply_r_mips_pc(struct module *me, u32 *location, u32 base, in apply_r_mips_pc() argument
199 me->name, bits); in apply_r_mips_pc()
212 pr_err("module %s: relocation overflow\n", me->name); in apply_r_mips_pc()
221 static int apply_r_mips_pc16(struct module *me, u32 *location, in apply_r_mips_pc16() argument
224 return apply_r_mips_pc(me, location, base, v, 16); in apply_r_mips_pc16()
227 static int apply_r_mips_pc21(struct module *me, u32 *location, in apply_r_mips_pc21() argument
230 return apply_r_mips_pc(me, location, base, v, 21); in apply_r_mips_pc21()
233 static int apply_r_mips_pc26(struct module *me, u32 *location, in apply_r_mips_pc26() argument
236 return apply_r_mips_pc(me, location, base, v, 26); in apply_r_mips_pc26()
239 static int apply_r_mips_64(struct module *me, u32 *location, in apply_r_mips_64() argument
250 static int apply_r_mips_higher(struct module *me, u32 *location, in apply_r_mips_higher() argument
262 static int apply_r_mips_highest(struct module *me, u32 *location, in apply_r_mips_highest() argument
289 typedef int (*reloc_handler)(struct module *me, u32 *location,
309 struct module *me, bool rela) in __apply_relocate() argument
328 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
341 me->name, strtab + sym->st_name); in __apply_relocate()
354 me->name, type); in __apply_relocate()
369 err = handler(me, location, base, v, rela); in __apply_relocate()
383 if (me->arch.r_mips_hi16_list) { in __apply_relocate()
384 free_relocation_chain(me->arch.r_mips_hi16_list); in __apply_relocate()
385 me->arch.r_mips_hi16_list = NULL; in __apply_relocate()
394 struct module *me) in apply_relocate() argument
396 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false); in apply_relocate()
402 struct module *me) in apply_relocate_add() argument
404 return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true); in apply_relocate_add()
432 struct module *me) in module_finalize() argument
438 jump_label_apply_nops(me); in module_finalize()
440 INIT_LIST_HEAD(&me->arch.dbe_list); in module_finalize()
444 me->arch.dbe_start = (void *)s->sh_addr; in module_finalize()
445 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
447 list_add(&me->arch.dbe_list, &dbe_list); in module_finalize()