Lines Matching defs:layout
112 struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
114 return (unsigned long)layout->base;
119 struct module_layout *layout = container_of(n, struct module_layout, mtn.node);
121 return (unsigned long)layout->size;
2004 * General layout of module is:
2021 static void frob_text(const struct module_layout *layout,
2024 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1));
2025 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1));
2026 set_memory((unsigned long)layout->base,
2027 layout->text_size >> PAGE_SHIFT);
2040 static void frob_rodata(const struct module_layout *layout,
2043 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1));
2044 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1));
2045 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1));
2046 set_memory((unsigned long)layout->base + layout->text_size,
2047 (layout->ro_size - layout->text_size) >> PAGE_SHIFT);
2050 static void frob_ro_after_init(const struct module_layout *layout,
2053 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1));
2054 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1));
2055 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1));
2056 set_memory((unsigned long)layout->base + layout->ro_size,
2057 (layout->ro_after_init_size - layout->ro_size) >> PAGE_SHIFT);
2060 static void frob_writable_data(const struct module_layout *layout,
2063 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1));
2064 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1));
2065 BUG_ON((unsigned long)layout->size & (PAGE_SIZE-1));
2066 set_memory((unsigned long)layout->base + layout->ro_after_init_size,
2067 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT);
4020 /* Figure out module layout, and allocate all the memory. */