Lines Matching refs:me

290 				  struct module *me)  in get_got_size()  argument
337 symindex, me->arch.pcpu_section); in get_got_size()
406 struct module *me) in module_frob_arch_sections() argument
413 me->arch.stubs_section = i; in module_frob_arch_sections()
416 me->arch.pcpu_section = i; in module_frob_arch_sections()
418 me->arch.got_section = i; in module_frob_arch_sections()
424 me->arch.toc_section = i; in module_frob_arch_sections()
440 if (!me->arch.stubs_section) { in module_frob_arch_sections()
441 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
446 if (!me->arch.got_section) { in module_frob_arch_sections()
447 pr_err("%s: doesn't contain .mygot.\n", me->name); in module_frob_arch_sections()
452 sechdrs[me->arch.got_section].sh_size = get_got_size(hdr, sechdrs, me); in module_frob_arch_sections()
458 if (!me->arch.toc_section) in module_frob_arch_sections()
459 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
463 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
502 struct module *me) in create_ftrace_stub() argument
507 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name); in create_ftrace_stub()
519 me->name, (void *)addr); in create_ftrace_stub()
530 me->name, (void *)addr); in create_ftrace_stub()
563 struct module *me) in create_ftrace_stub() argument
580 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
583 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
593 struct module *me, in create_stub() argument
601 return create_ftrace_stub(entry, addr, me); in create_stub()
604 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name); in create_stub()
621 me->name, (void *)reladdr); in create_stub()
634 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
637 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
669 struct module *me, in stub_for_addr() argument
675 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
678 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
687 if (!create_stub(sechdrs, &stubs[i], addr, me, name)) in stub_for_addr()
697 struct module *me, in got_for_addr() argument
706 num_got = sechdrs[me->arch.got_section].sh_size / sizeof(*got); in got_for_addr()
709 got = (void *)sechdrs[me->arch.got_section].sh_addr; in got_for_addr()
726 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
756 me->name, insn_val, instruction); in restore_r2()
768 struct module *me) in apply_relocate_add() argument
781 if (!me->arch.toc_fixed) { in apply_relocate_add()
786 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
787 me->arch.toc_fixed = true; in apply_relocate_add()
819 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
824 value -= my_r2(sechdrs, me); in apply_relocate_add()
827 me->name, value); in apply_relocate_add()
837 value -= my_r2(sechdrs, me); in apply_relocate_add()
845 value -= my_r2(sechdrs, me); in apply_relocate_add()
848 me->name, value); in apply_relocate_add()
858 value -= my_r2(sechdrs, me); in apply_relocate_add()
861 me->name, value); in apply_relocate_add()
871 value -= my_r2(sechdrs, me); in apply_relocate_add()
888 value = stub_for_addr(sechdrs, value, me, in apply_relocate_add()
893 (u32 *)location + 1, me)) in apply_relocate_add()
902 me->name, (long int)value); in apply_relocate_add()
925 me->name, (long int)value); in apply_relocate_add()
939 if (sym->st_shndx != me->arch.pcpu_section) { in apply_relocate_add()
941 me->name, (long)value); in apply_relocate_add()
950 value = got_for_addr(sechdrs, absvalue, me, in apply_relocate_add()
989 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
1029 value = got_for_addr(sechdrs, value, me, in apply_relocate_add()
1043 me->name, in apply_relocate_add()