Lines Matching full:regions
24 struct regions { struct
39 struct regions __initdata regions; argument
114 if (regions.reserved_mem < 0) in overlaps_reserved_region()
118 for (subnode = fdt_first_subnode(fdt, regions.reserved_mem); in overlaps_reserved_region()
126 while (len >= (regions.reserved_mem_addr_cells + in overlaps_reserved_region()
127 regions.reserved_mem_size_cells)) { in overlaps_reserved_region()
129 if (regions.reserved_mem_addr_cells == 2) in overlaps_reserved_region()
132 reg += regions.reserved_mem_addr_cells; in overlaps_reserved_region()
133 len -= 4 * regions.reserved_mem_addr_cells; in overlaps_reserved_region()
136 if (regions.reserved_mem_size_cells == 2) in overlaps_reserved_region()
139 reg += regions.reserved_mem_size_cells; in overlaps_reserved_region()
140 len -= 4 * regions.reserved_mem_size_cells; in overlaps_reserved_region()
142 if (base >= regions.pa_end) in overlaps_reserved_region()
160 if (regions_overlap(start, end, regions.dtb_start, in overlaps_region()
161 regions.dtb_end)) in overlaps_region()
164 if (regions_overlap(start, end, regions.initrd_start, in overlaps_region()
165 regions.initrd_end)) in overlaps_region()
168 if (regions_overlap(start, end, regions.crash_start, in overlaps_region()
169 regions.crash_end)) in overlaps_region()
188 regions.crash_start = (unsigned long)crash_base; in get_crash_kernel()
189 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel()
215 regions.initrd_start = (unsigned long)start; in get_initrd_range()
216 regions.initrd_end = (unsigned long)end; in get_initrd_range()
229 pa_end = pa + regions.kernel_size; in get_usable_address()
320 regions.reserved_mem = fdt_path_offset(dt_ptr, "/reserved-memory"); in kaslr_choose_location()
321 if (regions.reserved_mem >= 0) in kaslr_choose_location()
322 get_cell_sizes(dt_ptr, regions.reserved_mem, in kaslr_choose_location()
323 ®ions.reserved_mem_addr_cells, in kaslr_choose_location()
324 ®ions.reserved_mem_size_cells); in kaslr_choose_location()
326 regions.pa_start = memstart_addr; in kaslr_choose_location()
327 regions.pa_end = memstart_addr + linear_sz; in kaslr_choose_location()
328 regions.dtb_start = __pa(dt_ptr); in kaslr_choose_location()
329 regions.dtb_end = __pa(dt_ptr) + fdt_totalsize(dt_ptr); in kaslr_choose_location()
330 regions.kernel_size = kernel_sz; in kaslr_choose_location()