Lines Matching refs:mod

46 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val)  in get_module_plt()  argument
48 struct mod_plt_sec *pltsec = !within_module_init(loc, mod) ? in get_module_plt()
49 &mod->arch.core : &mod->arch.init; in get_module_plt()
210 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
223 mod->arch.core.plt = s; in module_frob_arch_sections()
225 mod->arch.init.plt = s; in module_frob_arch_sections()
230 if (!mod->arch.core.plt || !mod->arch.init.plt) { in module_frob_arch_sections()
231 pr_err("%s: module PLT section(s) missing\n", mod->name); in module_frob_arch_sections()
235 pr_err("%s: module symtab section missing\n", mod->name); in module_frob_arch_sections()
262 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
263 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
264 mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
265 mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
267 mod->arch.core.plt_count = 0; in module_frob_arch_sections()
268 mod->arch.core.plt_ent = NULL; in module_frob_arch_sections()
270 mod->arch.init.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
271 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
272 mod->arch.init.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
273 mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
275 mod->arch.init.plt_count = 0; in module_frob_arch_sections()
276 mod->arch.init.plt_ent = NULL; in module_frob_arch_sections()
279 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); in module_frob_arch_sections()
285 struct module *mod; in in_module_plt() local
289 mod = __module_text_address(loc); in in_module_plt()
290 ret = mod && (loc - (u32)mod->arch.core.plt_ent < mod->arch.core.plt_count * PLT_ENT_SIZE || in in_module_plt()
291 loc - (u32)mod->arch.init.plt_ent < mod->arch.init.plt_count * PLT_ENT_SIZE); in in_module_plt()