Lines Matching refs:me

282 			      struct module *me)  in module_frob_arch_sections()  argument
289 me->arch.stubs_section = i; in module_frob_arch_sections()
291 me->arch.toc_section = i; in module_frob_arch_sections()
306 if (!me->arch.stubs_section) { in module_frob_arch_sections()
307 pr_err("%s: doesn't contain .stubs.\n", me->name); in module_frob_arch_sections()
315 if (!me->arch.toc_section) in module_frob_arch_sections()
316 me->arch.toc_section = me->arch.stubs_section; in module_frob_arch_sections()
319 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections()
347 struct module *me) in create_ftrace_stub() argument
357 me->name, (void *)addr); in create_ftrace_stub()
389 struct module *me) in create_ftrace_stub() argument
406 static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me) in my_r2() argument
408 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
415 struct module *me, in create_stub() argument
423 return create_ftrace_stub(entry, addr, me); in create_stub()
432 reladdr = (unsigned long)entry - my_r2(sechdrs, me); in create_stub()
435 me->name, (void *)reladdr, (void *)my_r2); in create_stub()
466 struct module *me, in stub_for_addr() argument
472 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr()
475 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
484 if (!create_stub(sechdrs, &stubs[i], addr, me, name)) in stub_for_addr()
492 static int restore_r2(const char *name, u32 *instruction, struct module *me) in restore_r2() argument
509 me->name, *instruction, instruction); in restore_r2()
524 struct module *me) in apply_relocate_add() argument
536 if (!me->arch.toc_fixed) { in apply_relocate_add()
541 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add()
542 me->arch.toc_fixed = true; in apply_relocate_add()
573 *(unsigned long *)location = my_r2(sechdrs, me); in apply_relocate_add()
578 value -= my_r2(sechdrs, me); in apply_relocate_add()
581 me->name, value); in apply_relocate_add()
591 value -= my_r2(sechdrs, me); in apply_relocate_add()
599 value -= my_r2(sechdrs, me); in apply_relocate_add()
602 me->name, value); in apply_relocate_add()
612 value -= my_r2(sechdrs, me); in apply_relocate_add()
615 me->name, value); in apply_relocate_add()
625 value -= my_r2(sechdrs, me); in apply_relocate_add()
637 value = stub_for_addr(sechdrs, value, me, in apply_relocate_add()
642 (u32 *)location + 1, me)) in apply_relocate_add()
651 me->name, (long int)value); in apply_relocate_add()
674 me->name, (long int)value); in apply_relocate_add()
693 value = my_r2(sechdrs, me) - (unsigned long)location; in apply_relocate_add()
733 me->name, in apply_relocate_add()