/openbmc/linux/tools/testing/memblock/tests/ |
H A D | alloc_nid_api.c | 43 max_addr, nid); in run_memblock_alloc_nid() 46 max_addr, nid); in run_memblock_alloc_nid() 70 phys_addr_t max_addr; in alloc_nid_top_down_simple_check() local 123 phys_addr_t max_addr; in alloc_nid_top_down_end_misaligned_check() local 173 phys_addr_t max_addr; in alloc_nid_exact_address_generic_check() local 225 phys_addr_t max_addr; in alloc_nid_top_down_narrow_range_check() local 437 max_addr = r1.base; in alloc_nid_top_down_reserved_with_space_check() 500 max_addr = r1.base; in alloc_nid_reserved_full_merge_generic_check() 564 max_addr = r1.base; in alloc_nid_top_down_reserved_no_space_check() 629 max_addr = r1.base; in alloc_nid_reserved_all_generic_check() [all …]
|
H A D | alloc_exact_nid_api.c | 35 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_simple_check() local 88 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_part_reserved_check() local 148 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_split_range_low_check() local 206 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_no_overlap_split_check() local 264 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_no_overlap_low_check() local 304 phys_addr_t max_addr; in alloc_exact_nid_bottom_up_numa_simple_check() local 357 phys_addr_t max_addr; in alloc_exact_nid_bottom_up_numa_part_reserved_check() local 419 phys_addr_t max_addr; in alloc_exact_nid_bottom_up_numa_split_range_low_check() local 477 phys_addr_t max_addr; in alloc_exact_nid_bottom_up_numa_no_overlap_split_check() local 862 max_addr = r1.base; in alloc_exact_nid_numa_reserved_full_merge_generic_check() [all …]
|
/openbmc/linux/arch/x86/mm/ |
H A D | numa_emulation.c | 85 u64 addr, u64 max_addr, int nr_nodes) in split_nodes_interleave() argument 105 size = max_addr - addr - mem_hole_size(addr, max_addr); in split_nodes_interleave() 193 if (end > max_addr) { in find_end_of_node() 194 end = max_addr; in find_end_of_node() 203 unsigned long max_pfn = PHYS_PFN(max_addr); in uniform_size() 218 u64 addr, u64 max_addr, u64 size, in split_nodes_size_interleave_uniform() argument 248 min_size = uniform_size(max_addr, addr, 0, nr_nodes); in split_nodes_size_interleave_uniform() 258 min_size = uniform_size(max_addr, addr, in split_nodes_size_interleave_uniform() 259 mem_hole_size(addr, max_addr), nr_nodes); in split_nodes_size_interleave_uniform() 322 u64 addr, u64 max_addr, u64 size) in split_nodes_size_interleave() argument [all …]
|
/openbmc/linux/lib/ |
H A D | strnlen_user.c | 94 unsigned long max_addr, src_addr; in strnlen_user() local 99 max_addr = TASK_SIZE_MAX; in strnlen_user() 101 if (likely(src_addr < max_addr)) { in strnlen_user() 102 unsigned long max = max_addr - src_addr; in strnlen_user()
|
H A D | strncpy_from_user.c | 115 unsigned long max_addr, src_addr; in strncpy_from_user() local 123 max_addr = TASK_SIZE_MAX; in strncpy_from_user() 125 if (likely(src_addr < max_addr)) { in strncpy_from_user() 126 unsigned long max = max_addr - src_addr; in strncpy_from_user()
|
/openbmc/linux/arch/mips/cavium-octeon/ |
H A D | dma-octeon.c | 192 phys_addr_t max_addr; in plat_swiotlb_setup() local 197 max_addr = 0; in plat_swiotlb_setup() 207 if (max_addr < end) in plat_swiotlb_setup() 208 max_addr = end; in plat_swiotlb_setup() 223 } else if (max_addr > 0xf0000000ul) { in plat_swiotlb_setup() 233 if (OCTEON_IS_OCTEON2() && max_addr >= 0x100000000ul) in plat_swiotlb_setup()
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | mdt_loader.c | 84 phys_addr_t max_addr = 0; in qcom_mdt_get_size() local 99 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_get_size() 100 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in qcom_mdt_get_size() 103 return min_addr < max_addr ? max_addr - min_addr : -EINVAL; in qcom_mdt_get_size() 212 phys_addr_t max_addr = 0; in qcom_mdt_pas_init() local 234 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_pas_init() 235 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in qcom_mdt_pas_init() 254 ret = qcom_scm_pas_mem_setup(pas_id, mem_phys, max_addr - min_addr); in qcom_mdt_pas_init()
|
/openbmc/linux/arch/s390/mm/ |
H A D | dump_pagetables.c | 16 static unsigned long max_addr; variable 168 addr = max_addr; in note_page() 204 {.start = 0, .end = max_addr}, in ptdump_check_wx() 239 {.start = 0, .end = max_addr}, in ptdump_show() 290 max_addr = (S390_lowcore.kernel_asce & _REGION_ENTRY_TYPE_MASK) >> 2; in pt_dump_init() 291 max_addr = 1UL << (max_addr * 11 + 31); in pt_dump_init()
|
/openbmc/linux/net/netfilter/ |
H A D | xt_NETMAP.c | 31 range->max_addr.ip6[i]); in netmap_tg6() 47 newrange.max_addr = new_addr; in netmap_tg6() 93 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in netmap_tg4() 96 newrange.max_addr.ip = new_ip; in netmap_tg4()
|
H A D | nft_nat.c | 41 range->max_addr.ip = (__force __be32) in nft_nat_setup_addr() 47 memcpy(range->max_addr.ip6, ®s->data[priv->sreg_addr_max], in nft_nat_setup_addr() 48 sizeof(range->max_addr.ip6)); in nft_nat_setup_addr() 94 netmask = ~(range->min_addr.ip6[i] ^ range->max_addr.ip6[i]); in nft_nat_setup_netmap() 100 range->max_addr = new_addr; in nft_nat_setup_netmap()
|
H A D | nf_nat_masquerade.c | 66 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in nf_nat_masquerade_ipv4() 69 newrange.max_addr.ip = newsrc; in nf_nat_masquerade_ipv4() 264 newrange.max_addr.in6 = src; in nf_nat_masquerade_ipv6()
|
H A D | xt_nat.c | 41 memset(&dst->max_addr, 0, sizeof(dst->max_addr)); in xt_nat_convert_range() 46 dst->max_addr.ip = src->max_ip; in xt_nat_convert_range()
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-bootmem.c | 132 uint64_t min_addr, uint64_t max_addr) in cvmx_bootmem_alloc_range() argument 136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range() 152 uint64_t max_addr, uint64_t align, in cvmx_bootmem_alloc_named_range() argument 157 addr = cvmx_bootmem_phy_named_block_alloc(size, min_addr, max_addr, in cvmx_bootmem_alloc_named_range() 619 uint64_t max_addr, uint64_t align, in cvmx_bootmem_alloc_named_range_once() argument 637 addr = cvmx_bootmem_phy_named_block_alloc(size, min_addr, max_addr, in cvmx_bootmem_alloc_named_range_once() 719 uint64_t max_addr, in cvmx_bootmem_phy_named_block_alloc() argument 732 (unsigned long long)max_addr, in cvmx_bootmem_phy_named_block_alloc() 777 addr_allocated = cvmx_bootmem_phy_alloc(size, min_addr, max_addr, in cvmx_bootmem_phy_named_block_alloc()
|
/openbmc/linux/mm/ |
H A D | memblock.c | 1536 max_addr = memblock.current_limit; in memblock_alloc_internal() 1577 &max_addr, (void *)_RET_IP_); in memblock_alloc_exact_nid_raw() 1609 &max_addr, (void *)_RET_IP_); in memblock_alloc_try_nid_raw() 1715 max_addr = r->base + limit; in __find_max_addr() 1721 return max_addr; in __find_max_addr() 1726 phys_addr_t max_addr; in memblock_enforce_memory_limit() local 1731 max_addr = __find_max_addr(limit); in memblock_enforce_memory_limit() 1734 if (max_addr == PHYS_ADDR_MAX) in memblock_enforce_memory_limit() 1779 phys_addr_t max_addr; in memblock_mem_limit_remove_map() local 1784 max_addr = __find_max_addr(limit); in memblock_mem_limit_remove_map() [all …]
|
/openbmc/linux/arch/m68k/mm/ |
H A D | motorola.c | 421 unsigned long min_addr, max_addr; in paging_init() local 440 max_addr = min_addr + m68k_memory[0].size - 1; in paging_init() 456 if (addr > max_addr) in paging_init() 457 max_addr = addr; in paging_init() 461 m68k_virt_to_node_shift = fls(max_addr - min_addr) - 6; in paging_init() 466 high_memory = phys_to_virt(max_addr) + 1; in paging_init() 469 max_pfn = max_low_pfn = (max_addr >> PAGE_SHIFT) + 1; in paging_init() 488 early_memtest(min_addr, max_addr); in paging_init()
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-bootmem.h | 206 uint64_t max_addr, uint64_t align, 232 uint64_t max_addr, 300 uint64_t max_addr,
|
H A D | octeon.h | 17 uint64_t max_addr, 22 uint64_t min_addr, uint64_t max_addr, 27 uint64_t max_addr, uint64_t align,
|
/openbmc/u-boot/arch/arm/cpu/armv8/ |
H A D | cache_v8.c | 39 u64 max_addr = 0; in get_tcr() local 46 max_addr = max(max_addr, mem_map[i].virt + mem_map[i].size); in get_tcr() 49 if (max_addr > (1ULL << 44)) { in get_tcr() 52 } else if (max_addr > (1ULL << 42)) { in get_tcr() 55 } else if (max_addr > (1ULL << 40)) { in get_tcr() 58 } else if (max_addr > (1ULL << 36)) { in get_tcr() 61 } else if (max_addr > (1ULL << 32)) { in get_tcr()
|
/openbmc/linux/include/uapi/linux/netfilter/ |
H A D | nf_nat.h | 41 union nf_inet_addr max_addr; member 49 union nf_inet_addr max_addr; member
|
/openbmc/u-boot/lib/ |
H A D | lmb.c | 295 phys_addr_t lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr) in lmb_alloc_base() argument 299 alloc = __lmb_alloc_base(lmb, size, align, max_addr); in lmb_alloc_base() 303 (ulong)size, (ulong)max_addr); in lmb_alloc_base() 313 phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phys_addr_t max_addr) in __lmb_alloc_base() argument 325 if (max_addr == LMB_ALLOC_ANYWHERE) in __lmb_alloc_base() 327 else if (lmbbase < max_addr) { in __lmb_alloc_base() 331 base = min(base, max_addr); in __lmb_alloc_base()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | physmem.c | 157 const phys_addr_t max_addr = (phys_addr_t)~(uintptr_t)0; in arch_phys_memset() local 164 if (start <= max_addr) { in arch_phys_memset() 165 phys_size_t low_size = min(max_addr + 1 - start, size); in arch_phys_memset()
|
/openbmc/u-boot/include/ |
H A D | lmb.h | 41 phys_addr_t max_addr); 43 phys_addr_t max_addr);
|
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/ |
H A D | fsl_pamu.c | 378 uint64_t min_addr, max_addr; in config_pamu() local 384 max_addr = find_max(tbl->end_addr, num_entries); in config_pamu() 385 size = max_addr - min_addr + 1; in config_pamu() 393 debug("max end_addr is %llx\n", max_addr); in config_pamu() 401 if (min_addr + size > max_addr) in config_pamu()
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | misc.c | 191 unsigned long max_addr = min_addr + (VO___bss_start - VO__text); in handle_relocations() local 246 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 257 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 267 if (ptr < min_addr || ptr > max_addr) in handle_relocations()
|
/openbmc/u-boot/tools/ |
H A D | zynqmpbif.c | 551 size_t min_addr = -1, max_addr = 0; in elf2flat64() local 568 max_addr) in elf2flat64() 569 max_addr = le64_to_cpu(shdr->sh_addr) + in elf2flat64() 574 *flat_size = max_addr - min_addr; in elf2flat64() 599 size_t min_addr = -1, max_addr = 0; in elf2flat32() local 616 max_addr) in elf2flat32() 617 max_addr = le32_to_cpu(shdr->sh_addr) + in elf2flat32() 622 *flat_size = max_addr - min_addr; in elf2flat32()
|