Lines Matching refs:me
292 struct module *me) in module_frob_arch_sections() argument
299 me->arch.stubs_section = i; in module_frob_arch_sections()
301 me->arch.toc_section = i; in module_frob_arch_sections()
316 if (!me->arch.stubs_section) { in module_frob_arch_sections()
317 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
325 if (!me->arch.toc_section) in module_frob_arch_sections()
326 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
329 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
357 struct module *me) in create_ftrace_stub() argument
367 me->name, (void *)addr); in create_ftrace_stub()
399 struct module *me) in create_ftrace_stub() argument
416 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
418 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
425 struct module *me, in create_stub() argument
433 return create_ftrace_stub(entry, addr, me); in create_stub()
442 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
445 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
476 struct module *me, in stub_for_addr() argument
482 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
485 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
494 if (!create_stub(sechdrs, &stubs[i], addr, me, name)) in stub_for_addr()
502 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
529 me->name, insn_val, instruction); in restore_r2()
541 struct module *me) in apply_relocate_add() argument
553 if (!me->arch.toc_fixed) { in apply_relocate_add()
558 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
559 me->arch.toc_fixed = true; in apply_relocate_add()
590 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
595 value -= my_r2(sechdrs, me); in apply_relocate_add()
598 me->name, value); in apply_relocate_add()
608 value -= my_r2(sechdrs, me); in apply_relocate_add()
616 value -= my_r2(sechdrs, me); in apply_relocate_add()
619 me->name, value); in apply_relocate_add()
629 value -= my_r2(sechdrs, me); in apply_relocate_add()
632 me->name, value); in apply_relocate_add()
642 value -= my_r2(sechdrs, me); in apply_relocate_add()
654 value = stub_for_addr(sechdrs, value, me, in apply_relocate_add()
659 (u32 *)location + 1, me)) in apply_relocate_add()
668 me->name, (long int)value); in apply_relocate_add()
691 me->name, (long int)value); in apply_relocate_add()
710 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
750 me->name, in apply_relocate_add()