Lines Matching refs:layout
107 struct module_layout *layout = container_of(n, struct module_layout, mtn.node); in __mod_tree_val() local
109 return (unsigned long)layout->base; in __mod_tree_val()
114 struct module_layout *layout = container_of(n, struct module_layout, mtn.node); in __mod_tree_size() local
116 return (unsigned long)layout->size; in __mod_tree_size()
1955 static void frob_text(const struct module_layout *layout, in frob_text() argument
1958 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_text()
1959 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1)); in frob_text()
1960 set_memory((unsigned long)layout->base, in frob_text()
1961 layout->text_size >> PAGE_SHIFT); in frob_text()
1965 static void frob_rodata(const struct module_layout *layout, in frob_rodata() argument
1968 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_rodata()
1969 BUG_ON((unsigned long)layout->text_size & (PAGE_SIZE-1)); in frob_rodata()
1970 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1)); in frob_rodata()
1971 set_memory((unsigned long)layout->base + layout->text_size, in frob_rodata()
1972 (layout->ro_size - layout->text_size) >> PAGE_SHIFT); in frob_rodata()
1975 static void frob_ro_after_init(const struct module_layout *layout, in frob_ro_after_init() argument
1978 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_ro_after_init()
1979 BUG_ON((unsigned long)layout->ro_size & (PAGE_SIZE-1)); in frob_ro_after_init()
1980 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1)); in frob_ro_after_init()
1981 set_memory((unsigned long)layout->base + layout->ro_size, in frob_ro_after_init()
1982 (layout->ro_after_init_size - layout->ro_size) >> PAGE_SHIFT); in frob_ro_after_init()
1985 static void frob_writable_data(const struct module_layout *layout, in frob_writable_data() argument
1988 BUG_ON((unsigned long)layout->base & (PAGE_SIZE-1)); in frob_writable_data()
1989 BUG_ON((unsigned long)layout->ro_after_init_size & (PAGE_SIZE-1)); in frob_writable_data()
1990 BUG_ON((unsigned long)layout->size & (PAGE_SIZE-1)); in frob_writable_data()
1991 set_memory((unsigned long)layout->base + layout->ro_after_init_size, in frob_writable_data()
1992 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT); in frob_writable_data()