• Home
  • Raw
  • Download

Lines Matching refs:layout

115 	struct module_layout *layout = container_of(n, struct module_layout, mtn.node);  in __mod_tree_val()  local
117 return (unsigned long)layout->base; in __mod_tree_val()
122 struct module_layout *layout = container_of(n, struct module_layout, mtn.node); in __mod_tree_size() local
124 return (unsigned long)layout->size; in __mod_tree_size()
2025 static void frob_text(const struct module_layout *layout, in frob_text() argument
2028 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_text()
2029 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1)); in frob_text()
2030 set_memory((unsigned long)layout->base, in frob_text()
2031 layout->text_size >> PAGE_SHIFT); in frob_text()
2044 static void frob_rodata(const struct module_layout *layout, in frob_rodata() argument
2047 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_rodata()
2048 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1)); in frob_rodata()
2049 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1)); in frob_rodata()
2050 set_memory((unsigned long)layout->base + layout->text_size, in frob_rodata()
2051 (layout->ro_size - layout->text_size) >> PAGE_SHIFT); in frob_rodata()
2054 static void frob_ro_after_init(const struct module_layout *layout, in frob_ro_after_init() argument
2057 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_ro_after_init()
2058 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1)); in frob_ro_after_init()
2059 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1)); in frob_ro_after_init()
2060 set_memory((unsigned long)layout->base + layout->ro_size, in frob_ro_after_init()
2061 (layout->ro_after_init_size - layout->ro_size) >> PAGE_SHIFT); in frob_ro_after_init()
2064 static void frob_writable_data(const struct module_layout *layout, in frob_writable_data() argument
2067 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_writable_data()
2068 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1)); in frob_writable_data()
2069 BUG_ON((unsigned long)layout->size & (PAGE_SIZE-1)); in frob_writable_data()
2070 set_memory((unsigned long)layout->base + layout->ro_after_init_size, in frob_writable_data()
2071 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT); in frob_writable_data()