Lines Matching full:memory
46 * @mem_rngs: Memory ranges.
61 * Memory is allocated in size multiple of MEM_RANGE_CHUNK_SZ. in get_mem_rngs_size()
68 * __add_mem_range - add a memory range to memory ranges list.
69 * @mem_ranges: Range list to add the memory range to.
71 * @size: Size of the memory range to add.
73 * (Re)allocates memory, if needed.
89 pr_debug("Added memory range [%#016llx - %#016llx] at index %d\n", in __add_mem_range()
96 * __merge_memory_ranges - Merges the given memory ranges list.
140 * sort_memory_ranges - Sorts the given memory ranges list.
161 pr_debug("Memory ranges:\n"); in sort_memory_ranges()
171 * by MEM_RANGE_CHUNK_SZ. Frees up the old memory,
172 * if memory allocation fails.
173 * @mem_ranges: Memory ranges to reallocate.
175 * Returns pointer to reallocated memory on success, NULL otherwise.
202 * add_mem_range - Updates existing memory range, if there is an overlap.
203 * Else, adds a new memory range.
204 * @mem_ranges: Range list to add the memory range to.
206 * @size: Size of the memory range to add.
208 * (Re)allocates memory, if needed.
245 * add_tce_mem_ranges - Adds tce-table range to the given memory ranges list.
246 * @mem_ranges: Range list to add the memory range(s) to.
283 * add_initrd_mem_range - Adds initrd range to the given memory ranges list,
285 * @mem_ranges: Range list to add the memory range to.
307 * add_htab_mem_range - Adds htab range to the given memory ranges list,
309 * @mem_ranges: Range list to add the memory range to.
328 * memory ranges list.
329 * @mem_ranges: Range list to add the memory range to.
341 * add_rtas_mem_range - Adds RTAS region to the given memory ranges list.
342 * @mem_ranges: Range list to add the memory range to.
366 * add_opal_mem_range - Adds OPAL region to the given memory ranges list.
367 * @mem_ranges: Range list to add the memory range to.
394 * to the given memory ranges list.
395 * @mem_ranges: Range list to add the memory ranges to.
431 * get_reserved_memory_ranges - Get reserve memory ranges. This list includes
432 * memory regions that should be added to the
433 * memory reserve map to ensure the region is
435 * @mem_ranges: Range list to add the memory ranges to.
454 pr_err("Failed to setup reserved memory ranges\n"); in get_reserved_memory_ranges()
459 * get_exclude_memory_ranges - Get exclude memory ranges. This list includes
463 * @mem_ranges: Range list to add the memory ranges to.
499 /* exclude memory ranges should be sorted for easy lookup */ in get_exclude_memory_ranges()
503 pr_err("Failed to setup exclude memory ranges\n"); in get_exclude_memory_ranges()
509 * get_usable_memory_ranges - Get usable memory ranges. This list includes
512 * @mem_ranges: Range list to add the memory ranges to.
521 * Early boot failure observed on guests when low memory (first memory in get_usable_memory_ranges()
522 * block?) is not added to usable memory. So, add [0, crashk_res.end] in get_usable_memory_ranges()
524 * Also, crashed kernel's memory must be added to reserve map to in get_usable_memory_ranges()
542 pr_err("Failed to setup usable memory ranges\n"); in get_usable_memory_ranges()
550 * get_crash_memory_ranges - Get crash memory ranges. This list includes
551 * first/crashing kernel's memory regions that
553 * @mem_ranges: Range list to add the memory ranges to.
567 /* Skip backup memory region, which needs a separate entry */ in get_crash_memory_ranges()
585 /* Reallocate memory ranges if there is no space to split ranges */ in get_crash_memory_ranges()
602 * first 64K bytes of memory. in get_crash_memory_ranges()
620 pr_err("Failed to setup crash memory ranges\n"); in get_crash_memory_ranges()
625 * remove_mem_range - Removes the given memory range from the range list.
626 * @mem_ranges: Range list to remove the memory range to.
628 * @size: Size of the memory range to remove.
630 * (Re)allocates memory, if needed.
646 * Memory range are stored as start and end address, use in remove_mem_range()
656 * Memory range to remove is not part of this range entry in remove_mem_range()
657 * in the memory range list in remove_mem_range()
663 * Memory range to remove is equivalent to this entry in the in remove_mem_range()
664 * memory range list. Remove the range entry from the list. in remove_mem_range()
675 * Start address of the memory range to remove and the in remove_mem_range()
676 * current memory range entry in the list is same. Just in remove_mem_range()
677 * move the start address of the current memory range in remove_mem_range()
685 * End address of the memory range to remove and the in remove_mem_range()
686 * current memory range entry in the list is same. in remove_mem_range()
687 * Just move the end address of the current memory in remove_mem_range()
695 * Memory range to remove is not at the edge of current in remove_mem_range()
696 * memory range entry. Split the current memory entry into in remove_mem_range()