• Home
  • Raw
  • Download

Lines Matching refs:layout

35 static void frob_text(const struct module_layout *layout,  in frob_text()  argument
38 set_memory((unsigned long)layout->base, in frob_text()
39 PAGE_ALIGN(layout->text_size) >> PAGE_SHIFT); in frob_text()
42 static void frob_rodata(const struct module_layout *layout, in frob_rodata() argument
45 set_memory((unsigned long)layout->base + layout->text_size, in frob_rodata()
46 (layout->ro_size - layout->text_size) >> PAGE_SHIFT); in frob_rodata()
49 static void frob_ro_after_init(const struct module_layout *layout, in frob_ro_after_init() argument
52 set_memory((unsigned long)layout->base + layout->ro_size, in frob_ro_after_init()
53 (layout->ro_after_init_size - layout->ro_size) >> PAGE_SHIFT); in frob_ro_after_init()
56 static void frob_writable_data(const struct module_layout *layout, in frob_writable_data() argument
59 set_memory((unsigned long)layout->base + layout->ro_after_init_size, in frob_writable_data()
60 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT); in frob_writable_data()
63 static bool layout_check_misalignment(const struct module_layout *layout) in layout_check_misalignment() argument
65 return WARN_ON(!PAGE_ALIGNED(layout->base)) || in layout_check_misalignment()
66 WARN_ON(!PAGE_ALIGNED(layout->text_size)) || in layout_check_misalignment()
67 WARN_ON(!PAGE_ALIGNED(layout->ro_size)) || in layout_check_misalignment()
68 WARN_ON(!PAGE_ALIGNED(layout->ro_after_init_size)) || in layout_check_misalignment()
69 WARN_ON(!PAGE_ALIGNED(layout->size)); in layout_check_misalignment()