Lines Matching refs:me

210 				    struct module *me)
253 me->arch.ool_stub_count = sechdrs[i].sh_size / sizeof(unsigned long);
254 me->arch.ool_stub_index = 0;
255 relocs += roundup(me->arch.ool_stub_count * sizeof(struct ftrace_ool_stub),
300 struct module *me)
347 symindex, me->arch.pcpu_section);
434 struct module *me)
441 me->arch.stubs_section = i;
444 me->arch.pcpu_section = i;
446 me->arch.got_section = i;
452 me->arch.toc_section = i;
470 if (!me->arch.stubs_section) {
471 pr_err("%s: doesn't contain .stubs.\n", me->name);
476 if (!me->arch.got_section) {
477 pr_err("%s: doesn't contain .mygot.\n", me->name);
482 sechdrs[me->arch.got_section].sh_size = get_got_size(hdr, sechdrs, me);
488 if (!me->arch.toc_section)
489 me->arch.toc_section = me->arch.stubs_section;
493 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs, secstrings, me);
532 struct module *me)
537 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name);
549 me->name, (void *)addr);
560 me->name, (void *)addr);
593 struct module *me)
610 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me)
613 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000;
623 struct module *me,
631 return create_ftrace_stub(entry, addr, me);
634 pr_err("%s: Address of stub entry is not 8-byte aligned\n", me->name);
651 me->name, (void *)reladdr);
664 reladdr = (unsigned long)entry - my_r2(sechdrs, me);
667 me->name, (void *)reladdr, (void *)my_r2);
698 struct module *me,
704 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs);
707 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr;
716 if (!create_stub(sechdrs, &stubs[i], addr, me, name))
726 struct module *me,
735 num_got = sechdrs[me->arch.got_section].sh_size / sizeof(*got);
738 got = (void *)sechdrs[me->arch.got_section].sh_addr;
755 static int restore_r2(const char *name, u32 *instruction, struct module *me)
785 me->name, insn_val, instruction);
797 struct module *me)
810 if (!me->arch.toc_fixed) {
815 sym->st_value = my_r2(sechdrs, me);
816 me->arch.toc_fixed = true;
848 *(unsigned long *)location = my_r2(sechdrs, me);
853 value -= my_r2(sechdrs, me);
856 me->name, value);
866 value -= my_r2(sechdrs, me);
874 value -= my_r2(sechdrs, me);
877 me->name, value);
887 value -= my_r2(sechdrs, me);
890 me->name, value);
900 value -= my_r2(sechdrs, me);
917 value = stub_for_addr(sechdrs, value, me,
922 (u32 *)location + 1, me))
931 me->name, (long int)value);
954 me->name, (long int)value);
968 if (sym->st_shndx != me->arch.pcpu_section) {
970 me->name, (long)value);
979 value = got_for_addr(sechdrs, absvalue, me,
1018 value = my_r2(sechdrs, me) - (unsigned long)location;
1058 value = got_for_addr(sechdrs, value, me,
1072 me->name,
1118 static int setup_ftrace_ool_stubs(const Elf64_Shdr *sechdrs, unsigned long addr, struct module *me)
1124 total_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stub);
1125 num_stubs = roundup(me->arch.ool_stub_count * sizeof(struct ftrace_ool_stub),
1129 stub = (void *)sechdrs[me->arch.stubs_section].sh_addr;
1138 me->arch.ool_stubs = (struct ftrace_ool_stub *)stub;