Lines Matching refs:init_layout

180 	mod->init_layout.mtn.mod = mod;  in mod_tree_insert()
183 if (mod->init_layout.size) in mod_tree_insert()
184 __mod_tree_insert(&mod->init_layout.mtn); in mod_tree_insert()
189 if (mod->init_layout.size) in mod_tree_remove_init()
190 __mod_tree_remove(&mod->init_layout.mtn); in mod_tree_remove_init()
251 if (mod->init_layout.size) in mod_update_bounds()
252 __mod_update_bounds(mod->init_layout.base, mod->init_layout.size); in mod_update_bounds()
1186 return sprintf(buffer, "%u\n", mk->mod->init_layout.size); in show_initsize()
1972 frob_text(&mod->init_layout, set_memory_x); in module_enable_x()
2015 set_vm_flush_reset_perms(mod->init_layout.base); in module_enable_ro()
2019 frob_text(&mod->init_layout, set_memory_ro); in module_enable_ro()
2020 frob_rodata(&mod->init_layout, set_memory_ro); in module_enable_ro()
2031 frob_rodata(&mod->init_layout, set_memory_nx); in module_enable_nx()
2032 frob_writable_data(&mod->init_layout, set_memory_nx); in module_enable_nx()
2203 module_memfree(mod->init_layout.base); in free_module()
2488 s->sh_entsize = (get_offset(mod, &mod->init_layout.size, s, i) in layout_sections()
2494 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2495 mod->init_layout.text_size = mod->init_layout.size; in layout_sections()
2498 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2499 mod->init_layout.ro_size = mod->init_layout.size; in layout_sections()
2506 mod->init_layout.ro_after_init_size = mod->init_layout.ro_size; in layout_sections()
2509 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2707 symsect->sh_entsize = get_offset(mod, &mod->init_layout.size, symsect, in layout_symtab()
2734 strsect->sh_entsize = get_offset(mod, &mod->init_layout.size, strsect, in layout_symtab()
2739 mod->init_layout.size = ALIGN(mod->init_layout.size, in layout_symtab()
2741 info->mod_kallsyms_init_off = mod->init_layout.size; in layout_symtab()
2742 mod->init_layout.size += sizeof(struct mod_kallsyms); in layout_symtab()
2743 info->init_typeoffs = mod->init_layout.size; in layout_symtab()
2744 mod->init_layout.size += nsrc * sizeof(char); in layout_symtab()
2745 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_symtab()
2762 mod->kallsyms = mod->init_layout.base + info->mod_kallsyms_init_off; in add_kallsyms()
2768 mod->kallsyms->typetab = mod->init_layout.base + info->init_typeoffs; in add_kallsyms()
3438 if (mod->init_layout.size) { in move_module()
3439 ptr = module_alloc(mod->init_layout.size); in move_module()
3451 memset(ptr, 0, mod->init_layout.size); in move_module()
3452 mod->init_layout.base = ptr; in move_module()
3454 mod->init_layout.base = NULL; in move_module()
3466 dest = mod->init_layout.base in move_module()
3524 if (mod->init_layout.base) in flush_module_icache()
3525 flush_icache_range((unsigned long)mod->init_layout.base, in flush_module_icache()
3526 (unsigned long)mod->init_layout.base in flush_module_icache()
3527 + mod->init_layout.size); in flush_module_icache()
3627 module_memfree(mod->init_layout.base); in module_deallocate()
3723 freeinit->module_init = mod->init_layout.base; in do_init_module()
3774 ftrace_free_mem(mod, mod->init_layout.base, mod->init_layout.base + in do_init_module()
3775 mod->init_layout.size); in do_init_module()
3787 mod->init_layout.base = NULL; in do_init_module()
3788 mod->init_layout.size = 0; in do_init_module()
3789 mod->init_layout.ro_size = 0; in do_init_module()
3790 mod->init_layout.ro_after_init_size = 0; in do_init_module()
3791 mod->init_layout.text_size = 0; in do_init_module()
4265 nextval = (unsigned long)mod->init_layout.base+mod->init_layout.text_size; in find_kallsyms_symbol()
4601 mod->name, mod->init_layout.size + mod->core_layout.size); in m_show()
4770 if (!within(addr, mod->init_layout.base, mod->init_layout.text_size) in __module_text_address()