/linux-6.12.1/tools/testing/memblock/tests/ |
D | alloc_helpers_api.c | 23 phys_addr_t min_addr; in alloc_from_simple_generic_check() local 28 min_addr = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_from_simple_generic_check() 30 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_simple_generic_check() 36 ASSERT_EQ(rgn->base, min_addr); in alloc_from_simple_generic_check() 66 phys_addr_t min_addr; in alloc_from_misaligned_generic_check() local 72 min_addr = memblock_end_of_DRAM() - (SMP_CACHE_BYTES * 2 - 1); in alloc_from_misaligned_generic_check() 74 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_misaligned_generic_check() 113 phys_addr_t min_addr; in alloc_from_top_down_high_addr_check() local 119 min_addr = memblock_end_of_DRAM() - SZ_16; in alloc_from_top_down_high_addr_check() 121 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_top_down_high_addr_check() [all …]
|
D | alloc_nid_api.c | 32 phys_addr_t min_addr, in run_memblock_alloc_nid() argument 42 return memblock_alloc_exact_nid_raw(size, align, min_addr, in run_memblock_alloc_nid() 45 return memblock_alloc_try_nid_raw(size, align, min_addr, in run_memblock_alloc_nid() 47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_nid() 69 phys_addr_t min_addr; in alloc_nid_top_down_simple_check() local 76 min_addr = memblock_start_of_DRAM() + SMP_CACHE_BYTES * 2; in alloc_nid_top_down_simple_check() 77 max_addr = min_addr + SZ_512; in alloc_nid_top_down_simple_check() 80 min_addr, max_addr, in alloc_nid_top_down_simple_check() 122 phys_addr_t min_addr; in alloc_nid_top_down_end_misaligned_check() local 129 min_addr = memblock_start_of_DRAM() + SMP_CACHE_BYTES * 2; in alloc_nid_top_down_end_misaligned_check() [all …]
|
D | alloc_exact_nid_api.c | 34 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_simple_check() local 42 min_addr = memblock_start_of_DRAM(); in alloc_exact_nid_top_down_numa_simple_check() 46 min_addr, max_addr, in alloc_exact_nid_top_down_numa_simple_check() 87 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_part_reserved_check() local 97 min_addr = memblock_start_of_DRAM(); in alloc_exact_nid_top_down_numa_part_reserved_check() 102 min_addr, max_addr, in alloc_exact_nid_top_down_numa_part_reserved_check() 147 phys_addr_t min_addr; in alloc_exact_nid_top_down_numa_split_range_low_check() local 155 min_addr = req_node_end - SZ_256; in alloc_exact_nid_top_down_numa_split_range_low_check() 156 max_addr = min_addr + size; in alloc_exact_nid_top_down_numa_split_range_low_check() 159 min_addr, max_addr, in alloc_exact_nid_top_down_numa_split_range_low_check() [all …]
|
/linux-6.12.1/drivers/soc/qcom/ |
D | mdt_loader.c | 81 phys_addr_t min_addr = PHYS_ADDR_MAX; in qcom_mdt_get_size() local 94 if (phdr->p_paddr < min_addr) in qcom_mdt_get_size() 95 min_addr = phdr->p_paddr; in qcom_mdt_get_size() 101 return min_addr < max_addr ? max_addr - min_addr : -EINVAL; in qcom_mdt_get_size() 209 phys_addr_t min_addr = PHYS_ADDR_MAX; in qcom_mdt_pas_init() local 229 if (phdr->p_paddr < min_addr) in qcom_mdt_pas_init() 230 min_addr = phdr->p_paddr; in qcom_mdt_pas_init() 252 ret = qcom_scm_pas_mem_setup(pas_id, mem_phys, max_addr - min_addr); in qcom_mdt_pas_init() 302 phys_addr_t min_addr = PHYS_ADDR_MAX; in __qcom_mdt_load() local 326 if (phdr->p_paddr < min_addr) in __qcom_mdt_load() [all …]
|
/linux-6.12.1/net/netfilter/ |
D | xt_NETMAP.c | 29 for (i = 0; i < ARRAY_SIZE(range->min_addr.ip6); i++) in netmap_tg6() 30 netmask.ip6[i] = ~(range->min_addr.ip6[i] ^ in netmap_tg6() 41 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6() 46 newrange.min_addr = new_addr; in netmap_tg6() 92 memset(&newrange.min_addr, 0, sizeof(newrange.min_addr)); in netmap_tg4() 95 newrange.min_addr.ip = new_ip; in netmap_tg4()
|
D | nft_nat.c | 39 range->min_addr.ip = (__force __be32) in nft_nat_setup_addr() 45 memcpy(range->min_addr.ip6, ®s->data[priv->sreg_addr_min], in nft_nat_setup_addr() 46 sizeof(range->min_addr.ip6)); in nft_nat_setup_addr() 94 netmask = ~(range->min_addr.ip6[i] ^ range->max_addr.ip6[i]); in nft_nat_setup_netmap() 96 new_addr.ip6[i] |= range->min_addr.ip6[i] & netmask; in nft_nat_setup_netmap() 99 range->min_addr = new_addr; in nft_nat_setup_netmap() 203 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init() 206 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init()
|
D | nf_nat_bpf.c | 44 range.min_addr = *addr; in bpf_ct_set_nat_info() 45 range.max_addr = range.min_addr; in bpf_ct_set_nat_info()
|
D | nf_nat_masquerade.c | 65 memset(&newrange.min_addr, 0, sizeof(newrange.min_addr)); in nf_nat_masquerade_ipv4() 68 newrange.min_addr.ip = newsrc; in nf_nat_masquerade_ipv4() 263 newrange.min_addr.in6 = src; in nf_nat_masquerade_ipv6()
|
D | xt_nat.c | 40 memset(&dst->min_addr, 0, sizeof(dst->min_addr)); in xt_nat_convert_range() 45 dst->min_addr.ip = src->min_ip; in xt_nat_convert_range()
|
D | nf_nat_core.c | 405 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) && in nf_nat_inet_in_range() 408 return ipv6_addr_cmp(&t->src.u3.in6, &range->min_addr.in6) >= 0 && in nf_nat_inet_in_range() 531 if (nf_inet_addr_cmp(&range->min_addr, &range->max_addr)) { in find_best_ips_proto() 532 *var_ipp = range->min_addr; in find_best_ips_proto() 558 minip = ntohl((__force __be32)range->min_addr.all[i]); in find_best_ips_proto() 864 .min_addr = ip, in __nf_nat_alloc_null_binding() 1089 range->min_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MINIP]); in nf_nat_ipv4_nlattr_to_range() 1096 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range() 1105 nla_memcpy(&range->min_addr.ip6, tb[CTA_NAT_V6_MINIP], in nf_nat_ipv6_nlattr_to_range() 1114 range->max_addr = range->min_addr; in nf_nat_ipv6_nlattr_to_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-6.12.1/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() 151 void *cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, 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() 618 void *cvmx_bootmem_alloc_named_range_once(uint64_t size, uint64_t min_addr, 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() 718 int64_t cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr, in cvmx_bootmem_phy_named_block_alloc() argument 731 (unsigned long long)min_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-6.12.1/arch/x86/boot/compressed/ |
D | misc.c | 204 unsigned long min_addr = (unsigned long)output; in handle_relocations() local 205 unsigned long max_addr = min_addr + (VO___bss_start - VO__text); in handle_relocations() 211 delta = min_addr - LOAD_PHYSICAL_ADDR; in handle_relocations() 260 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 271 if (ptr < min_addr || ptr > max_addr) in handle_relocations() 281 if (ptr < min_addr || ptr > max_addr) in handle_relocations()
|
D | kaslr.c | 823 unsigned long random_addr, min_addr; in choose_random_location() local 845 min_addr = min(*output, 512UL << 20); in choose_random_location() 847 min_addr = ALIGN(min_addr, CONFIG_PHYSICAL_ALIGN); in choose_random_location() 850 random_addr = find_random_phys_addr(min_addr, output_size); in choose_random_location()
|
/linux-6.12.1/arch/mips/include/asm/octeon/ |
D | cvmx-bootmem.h | 205 extern void *cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, 231 uint64_t min_addr, 299 int64_t cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr,
|
D | octeon.h | 16 uint64_t min_addr, 22 uint64_t min_addr, uint64_t max_addr, 26 extern void *octeon_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr,
|
/linux-6.12.1/arch/m68k/mm/ |
D | motorola.c | 421 unsigned long min_addr, max_addr; in paging_init() local 439 min_addr = m68k_memory[0].addr; in paging_init() 440 max_addr = min_addr + m68k_memory[0].size - 1; in paging_init() 444 if (m68k_memory[i].addr < min_addr) { in paging_init() 460 m68k_memoffset = min_addr - PAGE_OFFSET; in paging_init() 461 m68k_virt_to_node_shift = fls(max_addr - min_addr) - 6; in paging_init() 488 early_memtest(min_addr, max_addr); in paging_init()
|
/linux-6.12.1/include/uapi/linux/netfilter/ |
D | nf_nat.h | 40 union nf_inet_addr min_addr; member 48 union nf_inet_addr min_addr; member
|
/linux-6.12.1/include/linux/ |
D | memblock.h | 405 phys_addr_t min_addr, phys_addr_t max_addr, 408 phys_addr_t min_addr, phys_addr_t max_addr, 411 phys_addr_t min_addr, phys_addr_t max_addr, 430 phys_addr_t min_addr) in memblock_alloc_from() argument 432 return memblock_alloc_try_nid(size, align, min_addr, in memblock_alloc_from()
|
/linux-6.12.1/drivers/firmware/efi/libstub/ |
D | relocate.c | 115 unsigned long min_addr) in efi_relocate_kernel() argument 148 min_addr); in efi_relocate_kernel()
|
/linux-6.12.1/drivers/net/phy/ |
D | bcm54140.c | 508 int addr, min_addr, max_addr; in bcm54140_get_base_addr_and_port() local 513 min_addr = phydev->mdio.addr; in bcm54140_get_base_addr_and_port() 534 min_addr = addr; in bcm54140_get_base_addr_and_port() 566 if ((max_addr - min_addr + 1) % 4) { in bcm54140_get_base_addr_and_port() 569 min_addr, max_addr); in bcm54140_get_base_addr_and_port() 573 priv->port = (phydev->mdio.addr - min_addr) % 4; in bcm54140_get_base_addr_and_port()
|
/linux-6.12.1/mm/ |
D | memblock.c | 1573 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_internal() argument 1582 alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid, in memblock_alloc_internal() 1586 if (!alloc && min_addr) in memblock_alloc_internal() 1616 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_exact_nid_raw() argument 1620 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_exact_nid_raw() 1623 return memblock_alloc_internal(size, align, min_addr, max_addr, nid, in memblock_alloc_exact_nid_raw() 1648 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_try_nid_raw() argument 1652 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_try_nid_raw() 1655 return memblock_alloc_internal(size, align, min_addr, max_addr, nid, in memblock_alloc_try_nid_raw() 1678 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_try_nid() argument [all …]
|
/linux-6.12.1/security/ |
D | Makefile | 11 obj-$(CONFIG_MMU) += min_addr.o
|
/linux-6.12.1/arch/powerpc/mm/book3s64/ |
D | slice.c | 332 unsigned long min_addr = max(PAGE_SIZE, mmap_min_addr); in slice_find_area_topdown() local 343 while (addr > min_addr) { in slice_find_area_topdown() 355 if (addr < min_addr) in slice_find_area_topdown() 356 addr = min_addr; in slice_find_area_topdown()
|
/linux-6.12.1/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 383 range.min_addr = range.max_addr = in ip_nat_q931_expect() 390 range.min_addr = range.max_addr = in ip_nat_q931_expect() 467 range.min_addr = range.max_addr = in ip_nat_callforwarding_expect() 474 range.min_addr = range.max_addr = this->saved_addr; in ip_nat_callforwarding_expect()
|