Lines Matching full:regions

23 struct regions {  struct
38 struct regions __initdata regions; argument
113 if (regions.reserved_mem < 0) in overlaps_reserved_region()
117 for (subnode = fdt_first_subnode(fdt, regions.reserved_mem); in overlaps_reserved_region()
125 while (len >= (regions.reserved_mem_addr_cells + in overlaps_reserved_region()
126 regions.reserved_mem_size_cells)) { in overlaps_reserved_region()
128 if (regions.reserved_mem_addr_cells == 2) in overlaps_reserved_region()
131 reg += regions.reserved_mem_addr_cells; in overlaps_reserved_region()
132 len -= 4 * regions.reserved_mem_addr_cells; in overlaps_reserved_region()
135 if (regions.reserved_mem_size_cells == 2) in overlaps_reserved_region()
138 reg += regions.reserved_mem_size_cells; in overlaps_reserved_region()
139 len -= 4 * regions.reserved_mem_size_cells; in overlaps_reserved_region()
141 if (base >= regions.pa_end) in overlaps_reserved_region()
159 if (regions_overlap(start, end, regions.dtb_start, in overlaps_region()
160 regions.dtb_end)) in overlaps_region()
163 if (regions_overlap(start, end, regions.initrd_start, in overlaps_region()
164 regions.initrd_end)) in overlaps_region()
167 if (regions_overlap(start, end, regions.crash_start, in overlaps_region()
168 regions.crash_end)) in overlaps_region()
187 regions.crash_start = (unsigned long)crash_base; in get_crash_kernel()
188 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel()
214 regions.initrd_start = (unsigned long)start; in get_initrd_range()
215 regions.initrd_end = (unsigned long)end; in get_initrd_range()
228 pa_end = pa + regions.kernel_size; in get_usable_address()
319 regions.reserved_mem = fdt_path_offset(dt_ptr, "/reserved-memory"); in kaslr_choose_location()
320 if (regions.reserved_mem >= 0) in kaslr_choose_location()
321 get_cell_sizes(dt_ptr, regions.reserved_mem, in kaslr_choose_location()
322 &regions.reserved_mem_addr_cells, in kaslr_choose_location()
323 &regions.reserved_mem_size_cells); in kaslr_choose_location()
325 regions.pa_start = memstart_addr; in kaslr_choose_location()
326 regions.pa_end = memstart_addr + linear_sz; in kaslr_choose_location()
327 regions.dtb_start = __pa(dt_ptr); in kaslr_choose_location()
328 regions.dtb_end = __pa(dt_ptr) + fdt_totalsize(dt_ptr); in kaslr_choose_location()
329 regions.kernel_size = kernel_sz; in kaslr_choose_location()