Lines Matching full:me
210 struct module *me) in get_stubs_size() argument
253 me->arch.ool_stub_count = sechdrs[i].sh_size / sizeof(unsigned long); in get_stubs_size()
254 me->arch.ool_stub_index = 0; in get_stubs_size()
255 relocs += roundup(me->arch.ool_stub_count * sizeof(struct ftrace_ool_stub), in get_stubs_size()
262 pr_err("%s: doesn't contain __patchable_function_entries.\n", me->name); in get_stubs_size()
304 struct module *me) in get_got_size() argument
351 symindex, me->arch.pcpu_section); in get_got_size()
438 struct module *me) in module_frob_arch_sections() argument
445 me->arch.stubs_section = i; in module_frob_arch_sections()
448 me->arch.pcpu_section = i; in module_frob_arch_sections()
450 me->arch.got_section = i; in module_frob_arch_sections()
456 me->arch.toc_section = i; in module_frob_arch_sections()
474 if (!me->arch.stubs_section) { in module_frob_arch_sections()
475 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
480 if (!me->arch.got_section) { in module_frob_arch_sections()
481 pr_err("%s: doesn't contain .mygot.\n", me->name); in module_frob_arch_sections()
486 sechdrs[me->arch.got_section].sh_size = get_got_size(hdr, sechdrs, me); in module_frob_arch_sections()
492 if (!me->arch.toc_section) in module_frob_arch_sections()
493 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
497 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs, secstrings, me); in module_frob_arch_sections()
536 struct module *me) in create_ftrace_stub() argument
541 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name); in create_ftrace_stub()
553 me->name, (void *)addr); in create_ftrace_stub()
564 me->name, (void *)addr); in create_ftrace_stub()
597 struct module *me) in create_ftrace_stub() argument
614 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
617 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
627 struct module *me, in create_stub() argument
635 return create_ftrace_stub(entry, addr, me); in create_stub()
638 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name); in create_stub()
655 me->name, (void *)reladdr); in create_stub()
668 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
671 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
702 struct module *me, in stub_for_addr() argument
708 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
711 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
720 if (!create_stub(sechdrs, &stubs[i], addr, me, name)) in stub_for_addr()
730 struct module *me, in got_for_addr() argument
739 num_got = sechdrs[me->arch.got_section].sh_size / sizeof(*got); in got_for_addr()
742 got = (void *)sechdrs[me->arch.got_section].sh_addr; in got_for_addr()
759 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
789 me->name, insn_val, instruction); in restore_r2()
801 struct module *me) in apply_relocate_add() argument
814 if (!me->arch.toc_fixed) { in apply_relocate_add()
819 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
820 me->arch.toc_fixed = true; in apply_relocate_add()
852 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
857 value -= my_r2(sechdrs, me); in apply_relocate_add()
860 me->name, value); in apply_relocate_add()
870 value -= my_r2(sechdrs, me); in apply_relocate_add()
878 value -= my_r2(sechdrs, me); in apply_relocate_add()
881 me->name, value); in apply_relocate_add()
891 value -= my_r2(sechdrs, me); in apply_relocate_add()
894 me->name, value); in apply_relocate_add()
904 value -= my_r2(sechdrs, me); in apply_relocate_add()
921 value = stub_for_addr(sechdrs, value, me, in apply_relocate_add()
926 (u32 *)location + 1, me)) in apply_relocate_add()
935 me->name, (long int)value); in apply_relocate_add()
958 me->name, (long int)value); in apply_relocate_add()
972 if (sym->st_shndx != me->arch.pcpu_section) { in apply_relocate_add()
974 me->name, (long)value); in apply_relocate_add()
983 value = got_for_addr(sechdrs, absvalue, me, in apply_relocate_add()
1022 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
1062 value = got_for_addr(sechdrs, value, me, in apply_relocate_add()
1076 me->name, in apply_relocate_add()
1122 static int setup_ftrace_ool_stubs(const Elf64_Shdr *sechdrs, unsigned long addr, struct module *me) in setup_ftrace_ool_stubs() argument
1128 total_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stub); in setup_ftrace_ool_stubs()
1129 num_stubs = roundup(me->arch.ool_stub_count * sizeof(struct ftrace_ool_stub), in setup_ftrace_ool_stubs()
1133 stub = (void *)sechdrs[me->arch.stubs_section].sh_addr; in setup_ftrace_ool_stubs()
1142 me->arch.ool_stubs = (struct ftrace_ool_stub *)stub; in setup_ftrace_ool_stubs()