Lines Matching refs:me
283 struct module *me) in module_frob_arch_sections() argument
291 me->arch.stubs_section = i; in module_frob_arch_sections()
293 me->arch.toc_section = i; in module_frob_arch_sections()
312 if (!me->arch.stubs_section) { in module_frob_arch_sections()
313 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
321 if (!me->arch.toc_section) in module_frob_arch_sections()
322 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
325 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
353 struct module *me) in create_ftrace_stub() argument
363 me->name, (void *)addr); in create_ftrace_stub()
395 struct module *me) in create_ftrace_stub() argument
412 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
414 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
421 struct module *me, in create_stub() argument
429 return create_ftrace_stub(entry, addr, me); in create_stub()
438 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
441 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
472 struct module *me, in stub_for_addr() argument
478 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
481 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
490 if (!create_stub(sechdrs, &stubs[i], addr, me, name)) in stub_for_addr()
498 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
515 me->name, *instruction, instruction); in restore_r2()
530 struct module *me) in apply_relocate_add() argument
542 if (!me->arch.toc_fixed) { in apply_relocate_add()
547 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
548 me->arch.toc_fixed = true; in apply_relocate_add()
579 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
584 value -= my_r2(sechdrs, me); in apply_relocate_add()
587 me->name, value); in apply_relocate_add()
597 value -= my_r2(sechdrs, me); in apply_relocate_add()
605 value -= my_r2(sechdrs, me); in apply_relocate_add()
608 me->name, value); in apply_relocate_add()
618 value -= my_r2(sechdrs, me); in apply_relocate_add()
621 me->name, value); in apply_relocate_add()
631 value -= my_r2(sechdrs, me); in apply_relocate_add()
643 value = stub_for_addr(sechdrs, value, me, in apply_relocate_add()
648 (u32 *)location + 1, me)) in apply_relocate_add()
657 me->name, (long int)value); in apply_relocate_add()
681 me->name, (long int)value); in apply_relocate_add()
700 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
740 me->name, in apply_relocate_add()