Lines Matching refs:me

341 			      struct module *me)  in module_frob_arch_sections()  argument
349 me->arch.stubs_section = i; in module_frob_arch_sections()
351 me->arch.toc_section = i; in module_frob_arch_sections()
370 if (!me->arch.stubs_section) { in module_frob_arch_sections()
371 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
379 if (!me->arch.toc_section) in module_frob_arch_sections()
380 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
383 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
393 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
395 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
402 struct module *me) in create_stub() argument
409 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
412 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
429 struct module *me) in stub_for_addr() argument
434 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
437 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
446 if (!create_stub(sechdrs, &stubs[i], addr, me)) in stub_for_addr()
497 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
514 me->name, *instruction, instruction); in restore_r2()
526 struct module *me) in apply_relocate_add() argument
538 if (!me->arch.toc_fixed) { in apply_relocate_add()
543 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
544 me->arch.toc_fixed = true; in apply_relocate_add()
575 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
580 value -= my_r2(sechdrs, me); in apply_relocate_add()
583 me->name, value); in apply_relocate_add()
593 value -= my_r2(sechdrs, me); in apply_relocate_add()
601 value -= my_r2(sechdrs, me); in apply_relocate_add()
604 me->name, value); in apply_relocate_add()
614 value -= my_r2(sechdrs, me); in apply_relocate_add()
617 me->name, value); in apply_relocate_add()
627 value -= my_r2(sechdrs, me); in apply_relocate_add()
639 value = stub_for_addr(sechdrs, value, me); in apply_relocate_add()
643 (u32 *)location + 1, me)) in apply_relocate_add()
654 me->name, (long int)value); in apply_relocate_add()
675 me->name, (long int)value); in apply_relocate_add()
694 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
738 me->name, in apply_relocate_add()
766 struct module *me, unsigned long addr) in create_ftrace_stub() argument
786 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*entry); in create_ftrace_stub()
789 entry = (void *)sechdrs[me->arch.stubs_section].sh_addr; in create_ftrace_stub()
793 pr_err("%s: Unable to find a free slot for ftrace stub.\n", me->name); in create_ftrace_stub()
803 me->name, (void *)addr); in create_ftrace_stub()
818 struct module *me, unsigned long addr) in create_ftrace_stub() argument
820 return stub_for_addr(sechdrs, addr, me); in create_ftrace_stub()