/linux/arch/x86/mm/ |
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 …]
|
/linux/drivers/soc/qcom/ |
A D | mdt_loader.c | 46 phys_addr_t max_addr = 0; in qcom_mdt_get_size() local 61 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_get_size() 62 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in qcom_mdt_get_size() 65 return min_addr < max_addr ? max_addr - min_addr : -EINVAL; in qcom_mdt_get_size() 140 phys_addr_t max_addr = 0; in __qcom_mdt_load() local 197 if (phdr->p_paddr + phdr->p_memsz > max_addr) in __qcom_mdt_load() 198 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in __qcom_mdt_load() 204 max_addr - min_addr); in __qcom_mdt_load()
|
/linux/kernel/ |
A D | cfi.c | 145 unsigned long min_addr, unsigned long max_addr) in add_module_to_shadow() argument 161 for (ptr = min_addr; ptr <= max_addr; ptr += PAGE_SIZE) { in add_module_to_shadow() 173 unsigned long min_addr, unsigned long max_addr) in remove_module_from_shadow() argument 177 for (ptr = min_addr; ptr <= max_addr; ptr += PAGE_SIZE) { in remove_module_from_shadow() 186 unsigned long min_addr, unsigned long max_addr); 193 unsigned long min_addr, max_addr; in update_shadow() local 206 max_addr = min_addr + mod->core_layout.text_size; in update_shadow() 207 fn(next, mod, min_addr & PAGE_MASK, max_addr & PAGE_MASK); in update_shadow()
|
/linux/lib/ |
A D | strnlen_user.c | 94 unsigned long max_addr, src_addr; in strnlen_user() local 99 max_addr = user_addr_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()
|
A D | strncpy_from_user.c | 115 unsigned long max_addr, src_addr; in strncpy_from_user() local 123 max_addr = user_addr_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()
|
/linux/arch/mips/cavium-octeon/ |
A D | dma-octeon.c | 194 phys_addr_t max_addr; in plat_swiotlb_setup() local 200 max_addr = 0; in plat_swiotlb_setup() 210 if (max_addr < end) in plat_swiotlb_setup() 211 max_addr = end; in plat_swiotlb_setup() 226 } else if (max_addr > 0xf0000000ul) { in plat_swiotlb_setup() 236 if (OCTEON_IS_OCTEON2() && max_addr >= 0x100000000ul) in plat_swiotlb_setup()
|
/linux/arch/s390/mm/ |
A D | dump_pagetables.c | 14 static unsigned long max_addr; variable 154 addr = max_addr; in note_page() 190 {.start = 0, .end = max_addr}, in ptdump_check_wx() 225 {.start = 0, .end = max_addr}, in ptdump_show() 276 max_addr = (S390_lowcore.kernel_asce & _REGION_ENTRY_TYPE_MASK) >> 2; in pt_dump_init() 277 max_addr = 1UL << (max_addr * 11 + 31); in pt_dump_init()
|
/linux/mm/ |
A D | memblock.c | 1485 max_addr = memblock.current_limit; in memblock_alloc_internal() 1526 &max_addr, (void *)_RET_IP_); in memblock_alloc_exact_nid_raw() 1558 &max_addr, (void *)_RET_IP_); in memblock_alloc_try_nid_raw() 1664 max_addr = r->base + limit; in __find_max_addr() 1670 return max_addr; in __find_max_addr() 1675 phys_addr_t max_addr; in memblock_enforce_memory_limit() local 1680 max_addr = __find_max_addr(limit); in memblock_enforce_memory_limit() 1683 if (max_addr == PHYS_ADDR_MAX) in memblock_enforce_memory_limit() 1728 phys_addr_t max_addr; in memblock_mem_limit_remove_map() local 1733 max_addr = __find_max_addr(limit); in memblock_mem_limit_remove_map() [all …]
|
/linux/arch/mips/cavium-octeon/executive/ |
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()
|
/linux/net/netfilter/ |
A D | nf_nat_redirect.c | 66 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in nf_nat_redirect_ipv4() 69 newrange.max_addr.ip = newdst; in nf_nat_redirect_ipv4() 114 newrange.max_addr.in6 = newdst; in nf_nat_redirect_ipv6()
|
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()
|
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()
|
A D | nf_nat_masquerade.c | 65 memset(&newrange.max_addr, 0, sizeof(newrange.max_addr)); in nf_nat_masquerade_ipv4() 68 newrange.max_addr.ip = newsrc; in nf_nat_masquerade_ipv4() 259 newrange.max_addr.in6 = src; in nf_nat_masquerade_ipv6()
|
A D | nf_nat_core.c | 205 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip); in nf_nat_inet_in_range() 208 ipv6_addr_cmp(&t->src.u3.in6, &range->max_addr.in6) <= 0; in nf_nat_inet_in_range() 330 if (nf_inet_addr_cmp(&range->min_addr, &range->max_addr)) { in find_best_ips_proto() 358 maxip = ntohl((__force __be32)range->max_addr.all[i]); in find_best_ips_proto() 367 if (var_ipp->all[i] != range->max_addr.all[i]) in find_best_ips_proto() 662 .max_addr = ip, in __nf_nat_alloc_null_binding() 905 range->max_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MAXIP]); in nf_nat_ipv4_nlattr_to_range() 907 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range() 922 nla_memcpy(&range->max_addr.ip6, tb[CTA_NAT_V6_MAXIP], in nf_nat_ipv6_nlattr_to_range() 925 range->max_addr = range->min_addr; in nf_nat_ipv6_nlattr_to_range()
|
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()
|
A D | nf_nat_helper.c | 189 range.min_addr = range.max_addr in nf_nat_follow_master() 196 range.min_addr = range.max_addr in nf_nat_follow_master()
|
/linux/arch/m68k/mm/ |
A D | motorola.c | 393 unsigned long min_addr, max_addr; in paging_init() local 412 max_addr = min_addr + m68k_memory[0].size; in paging_init() 428 if (addr > max_addr) in paging_init() 429 max_addr = addr; in paging_init() 433 m68k_virt_to_node_shift = fls(max_addr - min_addr - 1) - 6; in paging_init() 438 high_memory = phys_to_virt(max_addr); in paging_init() 441 max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT; in paging_init()
|
/linux/arch/mips/include/asm/octeon/ |
A D | cvmx-bootmem.h | 206 uint64_t max_addr, uint64_t align, 232 uint64_t max_addr, 300 uint64_t max_addr,
|
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,
|
/linux/include/uapi/linux/netfilter/ |
A D | nf_nat.h | 41 union nf_inet_addr max_addr; member 49 union nf_inet_addr max_addr; member
|
/linux/arch/x86/boot/compressed/ |
A D | misc.c | 185 unsigned long max_addr = min_addr + (VO___bss_start - VO__text); in handle_relocations() local 240 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 251 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 261 if (ptr < min_addr || ptr > max_addr) in handle_relocations()
|
/linux/drivers/firmware/efi/libstub/ |
A D | efi-stub.c | 137 unsigned long max_addr; in efi_pe_entry() local 244 max_addr = efi_get_max_initrd_addr(image_addr); in efi_pe_entry() 246 ULONG_MAX, max_addr); in efi_pe_entry()
|
/linux/drivers/net/phy/ |
A D | bcm54140.c | 500 int addr, min_addr, max_addr; in bcm54140_get_base_addr_and_port() local 506 max_addr = phydev->mdio.addr; in bcm54140_get_base_addr_and_port() 523 max_addr = addr; in bcm54140_get_base_addr_and_port() 558 if ((max_addr - min_addr + 1) % 4) { in bcm54140_get_base_addr_and_port() 561 min_addr, max_addr); in bcm54140_get_base_addr_and_port()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_mdio.c | 448 int addr, found, max_addr; in stmmac_mdio_register() local 470 max_addr = MII_XGMAC_MAX_C22ADDR + 1; in stmmac_mdio_register() 479 max_addr = PHY_MAX_ADDR; in stmmac_mdio_register() 505 for (addr = 0; addr < max_addr; addr++) { in stmmac_mdio_register()
|
/linux/include/linux/ |
A D | memblock.h | 416 phys_addr_t min_addr, phys_addr_t max_addr, 419 phys_addr_t min_addr, phys_addr_t max_addr, 422 phys_addr_t min_addr, phys_addr_t max_addr,
|