/linux-5.19.10/tools/testing/memblock/tests/ |
D | alloc_nid_api.c | 26 phys_addr_t max_addr; in alloc_try_nid_top_down_simple_check() local 32 max_addr = min_addr + SZ_512; in alloc_try_nid_top_down_simple_check() 35 min_addr, max_addr, NUMA_NO_NODE); in alloc_try_nid_top_down_simple_check() 43 assert(rgn->base == max_addr - size); in alloc_try_nid_top_down_simple_check() 44 assert(rgn_end == max_addr); in alloc_try_nid_top_down_simple_check() 78 phys_addr_t max_addr; in alloc_try_nid_top_down_end_misaligned_check() local 84 max_addr = min_addr + SZ_512 + misalign; in alloc_try_nid_top_down_end_misaligned_check() 87 min_addr, max_addr, NUMA_NO_NODE); in alloc_try_nid_top_down_end_misaligned_check() 95 assert(rgn->base == max_addr - size - misalign); in alloc_try_nid_top_down_end_misaligned_check() 96 assert(rgn_end < max_addr); in alloc_try_nid_top_down_end_misaligned_check() [all …]
|
/linux-5.19.10/arch/x86/mm/ |
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() 187 static u64 __init find_end_of_node(u64 start, u64 max_addr, u64 size) in find_end_of_node() argument 193 if (end > max_addr) { in find_end_of_node() 194 end = max_addr; in find_end_of_node() 201 static u64 uniform_size(u64 max_addr, u64 base, u64 hole, int nr_nodes) in uniform_size() argument 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() [all …]
|
/linux-5.19.10/lib/ |
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()
|
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()
|
/linux-5.19.10/arch/mips/cavium-octeon/ |
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()
|
/linux-5.19.10/kernel/ |
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-5.19.10/drivers/soc/qcom/ |
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() 210 phys_addr_t max_addr = 0; in qcom_mdt_pas_init() local 228 if (phdr->p_paddr + phdr->p_memsz > max_addr) in qcom_mdt_pas_init() 229 max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K); in qcom_mdt_pas_init() 247 ret = qcom_scm_pas_mem_setup(pas_id, mem_phys, max_addr - min_addr); in qcom_mdt_pas_init()
|
/linux-5.19.10/arch/s390/mm/ |
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-5.19.10/net/netfilter/ |
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()
|
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()
|
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()
|
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()
|
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() 891 range->max_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MAXIP]); in nf_nat_ipv4_nlattr_to_range() 893 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range() 908 nla_memcpy(&range->max_addr.ip6, tb[CTA_NAT_V6_MAXIP], in nf_nat_ipv6_nlattr_to_range() 911 range->max_addr = range->min_addr; in nf_nat_ipv6_nlattr_to_range()
|
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()
|
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-5.19.10/arch/m68k/mm/ |
D | motorola.c | 392 unsigned long min_addr, max_addr; in paging_init() local 411 max_addr = min_addr + m68k_memory[0].size; in paging_init() 427 if (addr > max_addr) in paging_init() 428 max_addr = addr; in paging_init() 432 m68k_virt_to_node_shift = fls(max_addr - min_addr - 1) - 6; in paging_init() 437 high_memory = phys_to_virt(max_addr); in paging_init() 440 max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT; in paging_init() 459 early_memtest(min_addr, max_addr); in paging_init()
|
/linux-5.19.10/arch/mips/cavium-octeon/executive/ |
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-5.19.10/mm/ |
D | memblock.c | 1476 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_internal() argument 1489 if (max_addr > memblock.current_limit) in memblock_alloc_internal() 1490 max_addr = memblock.current_limit; in memblock_alloc_internal() 1492 alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid, in memblock_alloc_internal() 1497 alloc = memblock_alloc_range_nid(size, align, 0, max_addr, nid, in memblock_alloc_internal() 1526 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_exact_nid_raw() argument 1531 &max_addr, (void *)_RET_IP_); in memblock_alloc_exact_nid_raw() 1533 return memblock_alloc_internal(size, align, min_addr, max_addr, nid, in memblock_alloc_exact_nid_raw() 1558 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_try_nid_raw() argument 1563 &max_addr, (void *)_RET_IP_); in memblock_alloc_try_nid_raw() [all …]
|
/linux-5.19.10/arch/mips/include/asm/octeon/ |
D | cvmx-bootmem.h | 206 uint64_t max_addr, uint64_t align, 232 uint64_t max_addr, 300 uint64_t max_addr,
|
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-5.19.10/include/uapi/linux/netfilter/ |
D | nf_nat.h | 41 union nf_inet_addr max_addr; member 49 union nf_inet_addr max_addr; member
|
/linux-5.19.10/arch/x86/boot/compressed/ |
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()
|
/linux-5.19.10/drivers/net/phy/ |
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-5.19.10/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 440 int addr, found, max_addr; in stmmac_mdio_register() local 462 max_addr = MII_XGMAC_MAX_C22ADDR + 1; in stmmac_mdio_register() 471 max_addr = PHY_MAX_ADDR; in stmmac_mdio_register() 497 for (addr = 0; addr < max_addr; addr++) { in stmmac_mdio_register()
|
/linux-5.19.10/include/linux/ |
D | memblock.h | 415 phys_addr_t min_addr, phys_addr_t max_addr, 418 phys_addr_t min_addr, phys_addr_t max_addr, 421 phys_addr_t min_addr, phys_addr_t max_addr,
|