Home
last modified time | relevance | path

Searched refs:min_addr (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.6.21/tools/testing/memblock/tests/
Dalloc_helpers_api.c23 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 …]
Dalloc_nid_api.c32 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 …]
Dalloc_exact_nid_api.c34 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.6.21/drivers/soc/qcom/
Dmdt_loader.c83 phys_addr_t min_addr = PHYS_ADDR_MAX; in qcom_mdt_get_size() local
96 if (phdr->p_paddr < min_addr) in qcom_mdt_get_size()
97 min_addr = phdr->p_paddr; in qcom_mdt_get_size()
103 return min_addr < max_addr ? max_addr - min_addr : -EINVAL; in qcom_mdt_get_size()
211 phys_addr_t min_addr = PHYS_ADDR_MAX; in qcom_mdt_pas_init() local
231 if (phdr->p_paddr < min_addr) in qcom_mdt_pas_init()
232 min_addr = phdr->p_paddr; 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()
304 phys_addr_t min_addr = PHYS_ADDR_MAX; in __qcom_mdt_load() local
328 if (phdr->p_paddr < min_addr) in __qcom_mdt_load()
[all …]
/linux-6.6.21/net/netfilter/
Dxt_NETMAP.c29 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()
Dnft_nat.c39 range->min_addr.ip = (__force __be32) in nft_nat_setup_addr()
45 memcpy(range->min_addr.ip6, &regs->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()
204 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init()
207 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init()
Dnf_nat_bpf.c46 range.min_addr = *addr; in bpf_ct_set_nat_info()
47 range.max_addr = range.min_addr; in bpf_ct_set_nat_info()
Dnf_nat_masquerade.c65 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()
Dxt_nat.c40 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()
Dnf_nat_core.c289 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) && in nf_nat_inet_in_range()
292 return ipv6_addr_cmp(&t->src.u3.in6, &range->min_addr.in6) >= 0 && in nf_nat_inet_in_range()
415 if (nf_inet_addr_cmp(&range->min_addr, &range->max_addr)) { in find_best_ips_proto()
416 *var_ipp = range->min_addr; in find_best_ips_proto()
442 minip = ntohl((__force __be32)range->min_addr.all[i]); in find_best_ips_proto()
745 .min_addr = ip, in __nf_nat_alloc_null_binding()
970 range->min_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MINIP]); in nf_nat_ipv4_nlattr_to_range()
977 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range()
986 nla_memcpy(&range->min_addr.ip6, tb[CTA_NAT_V6_MINIP], in nf_nat_ipv6_nlattr_to_range()
995 range->max_addr = range->min_addr; in nf_nat_ipv6_nlattr_to_range()
Dnf_nat_helper.c189 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.6.21/arch/mips/cavium-octeon/executive/
Dcvmx-bootmem.c132 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.6.21/arch/x86/boot/compressed/
Dmisc.c190 unsigned long min_addr = (unsigned long)output; in handle_relocations() local
191 unsigned long max_addr = min_addr + (VO___bss_start - VO__text); in handle_relocations()
197 delta = min_addr - LOAD_PHYSICAL_ADDR; in handle_relocations()
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()
Dkaslr.c848 unsigned long random_addr, min_addr; in choose_random_location() local
870 min_addr = min(*output, 512UL << 20); in choose_random_location()
872 min_addr = ALIGN(min_addr, CONFIG_PHYSICAL_ALIGN); in choose_random_location()
875 random_addr = find_random_phys_addr(min_addr, output_size); in choose_random_location()
/linux-6.6.21/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h205 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,
Docteon.h16 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.6.21/arch/m68k/mm/
Dmotorola.c421 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.6.21/include/uapi/linux/netfilter/
Dnf_nat.h40 union nf_inet_addr min_addr; member
48 union nf_inet_addr min_addr; member
/linux-6.6.21/drivers/firmware/efi/libstub/
Drelocate.c115 unsigned long min_addr) in efi_relocate_kernel() argument
148 min_addr); in efi_relocate_kernel()
/linux-6.6.21/include/linux/
Dmemblock.h416 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,
441 phys_addr_t min_addr) in memblock_alloc_from() argument
443 return memblock_alloc_try_nid(size, align, min_addr, in memblock_alloc_from()
/linux-6.6.21/drivers/net/phy/
Dbcm54140.c500 int addr, min_addr, max_addr; in bcm54140_get_base_addr_and_port() local
505 min_addr = phydev->mdio.addr; in bcm54140_get_base_addr_and_port()
526 min_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()
565 priv->port = (phydev->mdio.addr - min_addr) % 4; in bcm54140_get_base_addr_and_port()
/linux-6.6.21/mm/
Dmemblock.c1522 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_internal() argument
1538 alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid, in memblock_alloc_internal()
1542 if (!alloc && min_addr) in memblock_alloc_internal()
1572 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_exact_nid_raw() argument
1576 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_exact_nid_raw()
1579 return memblock_alloc_internal(size, align, min_addr, max_addr, nid, in memblock_alloc_exact_nid_raw()
1604 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_try_nid_raw() argument
1608 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_try_nid_raw()
1611 return memblock_alloc_internal(size, align, min_addr, max_addr, nid, in memblock_alloc_try_nid_raw()
1634 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_try_nid() argument
[all …]
/linux-6.6.21/security/
DMakefile10 obj-$(CONFIG_MMU) += min_addr.o
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dslice.c330 unsigned long min_addr = max(PAGE_SIZE, mmap_min_addr); in slice_find_area_topdown() local
345 while (addr > min_addr) { in slice_find_area_topdown()
357 if (addr < min_addr) in slice_find_area_topdown()
358 addr = min_addr; in slice_find_area_topdown()
/linux-6.6.21/net/ipv4/netfilter/
Dnf_nat_h323.c383 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()

12