Lines Matching refs:phys_addr_t
55 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size()
57 return *size = min(*size, (phys_addr_t)ULLONG_MAX - base); in memblock_cap_size()
63 static unsigned long __init_memblock memblock_addrs_overlap(phys_addr_t base1, phys_addr_t size1, in memblock_addrs_overlap()
64 phys_addr_t base2, phys_addr_t size2) in memblock_addrs_overlap()
70 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region()
75 phys_addr_t rgnbase = type->regions[i].base; in memblock_overlaps_region()
76 phys_addr_t rgnsize = type->regions[i].size; in memblock_overlaps_region()
97 phys_addr_t __init_memblock memblock_find_in_range_node(phys_addr_t start, in memblock_find_in_range_node()
98 phys_addr_t end, phys_addr_t size, in memblock_find_in_range_node()
99 phys_addr_t align, int nid) in memblock_find_in_range_node()
101 phys_addr_t this_start, this_end, cand; in memblock_find_in_range_node()
109 start = max_t(phys_addr_t, start, PAGE_SIZE); in memblock_find_in_range_node()
138 phys_addr_t __init_memblock memblock_find_in_range(phys_addr_t start, in memblock_find_in_range()
139 phys_addr_t end, phys_addr_t size, in memblock_find_in_range()
140 phys_addr_t align) in memblock_find_in_range()
163 phys_addr_t __init_memblock get_allocated_memblock_reserved_regions_info( in get_allocated_memblock_reserved_regions_info()
164 phys_addr_t *addr) in get_allocated_memblock_reserved_regions_info()
191 phys_addr_t new_area_start, in memblock_double_array()
192 phys_addr_t new_area_size) in memblock_double_array()
195 phys_addr_t old_alloc_size, new_alloc_size; in memblock_double_array()
196 phys_addr_t old_size, new_size, addr; in memblock_double_array()
331 int idx, phys_addr_t base, in memblock_insert_region()
332 phys_addr_t size, int nid) in memblock_insert_region()
361 phys_addr_t base, phys_addr_t size, int nid) in memblock_add_region()
364 phys_addr_t obase = base; in memblock_add_region()
365 phys_addr_t end = base + memblock_cap_size(base, &size); in memblock_add_region()
391 phys_addr_t rbase = rgn->base; in memblock_add_region()
392 phys_addr_t rend = rbase + rgn->size; in memblock_add_region()
435 int __init_memblock memblock_add_node(phys_addr_t base, phys_addr_t size, in memblock_add_node()
441 int __init_memblock memblock_add(phys_addr_t base, phys_addr_t size) in memblock_add()
463 phys_addr_t base, phys_addr_t size, in memblock_isolate_range()
466 phys_addr_t end = base + memblock_cap_size(base, &size); in memblock_isolate_range()
481 phys_addr_t rbase = rgn->base; in memblock_isolate_range()
482 phys_addr_t rend = rbase + rgn->size; in memblock_isolate_range()
521 phys_addr_t base, phys_addr_t size) in __memblock_remove()
535 int __init_memblock memblock_remove(phys_addr_t base, phys_addr_t size) in memblock_remove()
540 int __init_memblock memblock_free(phys_addr_t base, phys_addr_t size) in memblock_free()
550 int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size) in memblock_reserve()
586 phys_addr_t *out_start, in __next_free_mem_range()
587 phys_addr_t *out_end, int *out_nid) in __next_free_mem_range()
596 phys_addr_t m_start = m->base; in __next_free_mem_range()
597 phys_addr_t m_end = m->base + m->size; in __next_free_mem_range()
606 phys_addr_t r_start = ri ? r[-1].base + r[-1].size : 0; in __next_free_mem_range()
607 phys_addr_t r_end = ri < rsv->cnt ? r->base : ULLONG_MAX; in __next_free_mem_range()
649 phys_addr_t *out_start, in __next_free_mem_range_rev()
650 phys_addr_t *out_end, int *out_nid) in __next_free_mem_range_rev()
664 phys_addr_t m_start = m->base; in __next_free_mem_range_rev()
665 phys_addr_t m_end = m->base + m->size; in __next_free_mem_range_rev()
674 phys_addr_t r_start = ri ? r[-1].base + r[-1].size : 0; in __next_free_mem_range_rev()
675 phys_addr_t r_end = ri < rsv->cnt ? r->base : ULLONG_MAX; in __next_free_mem_range_rev()
746 int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, in memblock_set_node()
765 static phys_addr_t __init memblock_alloc_base_nid(phys_addr_t size, in memblock_alloc_base_nid()
766 phys_addr_t align, phys_addr_t max_addr, in memblock_alloc_base_nid()
769 phys_addr_t found; in memblock_alloc_base_nid()
781 phys_addr_t __init memblock_alloc_nid(phys_addr_t size, phys_addr_t align, int nid) in memblock_alloc_nid()
786 phys_addr_t __init __memblock_alloc_base(phys_addr_t size, phys_addr_t align, phys_addr_t max_addr) in __memblock_alloc_base()
791 phys_addr_t __init memblock_alloc_base(phys_addr_t size, phys_addr_t align, phys_addr_t max_addr) in memblock_alloc_base()
793 phys_addr_t alloc; in memblock_alloc_base()
804 phys_addr_t __init memblock_alloc(phys_addr_t size, phys_addr_t align) in memblock_alloc()
809 phys_addr_t __init memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid) in memblock_alloc_try_nid()
811 phys_addr_t res = memblock_alloc_nid(size, align, nid); in memblock_alloc_try_nid()
823 phys_addr_t __init memblock_phys_mem_size(void) in memblock_phys_mem_size()
829 phys_addr_t __init_memblock memblock_start_of_DRAM(void) in memblock_start_of_DRAM()
834 phys_addr_t __init_memblock memblock_end_of_DRAM(void) in memblock_end_of_DRAM()
841 void __init memblock_enforce_memory_limit(phys_addr_t limit) in memblock_enforce_memory_limit()
844 phys_addr_t max_addr = (phys_addr_t)ULLONG_MAX; in memblock_enforce_memory_limit()
861 __memblock_remove(&memblock.memory, max_addr, (phys_addr_t)ULLONG_MAX); in memblock_enforce_memory_limit()
862 __memblock_remove(&memblock.reserved, max_addr, (phys_addr_t)ULLONG_MAX); in memblock_enforce_memory_limit()
865 static int __init_memblock memblock_search(struct memblock_type *type, phys_addr_t addr) in memblock_search()
883 int __init memblock_is_reserved(phys_addr_t addr) in memblock_is_reserved()
888 int __init_memblock memblock_is_memory(phys_addr_t addr) in memblock_is_memory()
893 int __init_memblock memblock_is_region_memory(phys_addr_t base, phys_addr_t size) in memblock_is_region_memory()
896 phys_addr_t end = base + memblock_cap_size(base, &size); in memblock_is_region_memory()
905 int __init_memblock memblock_is_region_reserved(phys_addr_t base, phys_addr_t size) in memblock_is_region_reserved()
911 void __init_memblock memblock_trim_memory(phys_addr_t align) in memblock_trim_memory()
914 phys_addr_t start, end, orig_start, orig_end; in memblock_trim_memory()
936 void __init_memblock memblock_set_current_limit(phys_addr_t limit) in memblock_set_current_limit()
999 if (sizeof(phys_addr_t) == 4) in memblock_debug_show()