Home
last modified time | relevance | path

Searched refs:max_addr (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.6.21/tools/testing/memblock/tests/
Dalloc_nid_api.c33 phys_addr_t max_addr, int nid) in run_memblock_alloc_nid() argument
43 max_addr, nid); in run_memblock_alloc_nid()
46 max_addr, nid); in run_memblock_alloc_nid()
47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_nid()
70 phys_addr_t max_addr; in alloc_nid_top_down_simple_check() local
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()
88 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_simple_check()
89 ASSERT_EQ(rgn_end, max_addr); in alloc_nid_top_down_simple_check()
123 phys_addr_t max_addr; in alloc_nid_top_down_end_misaligned_check() local
[all …]
Dalloc_exact_nid_api.c35 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_simple_check() local
43 max_addr = memblock_end_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()
88 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_part_reserved_check() local
98 max_addr = memblock_end_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()
148 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_split_range_low_check() local
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()
206 phys_addr_t max_addr; in alloc_exact_nid_top_down_numa_no_overlap_split_check() local
[all …]
/linux-6.6.21/arch/x86/mm/
Dnuma_emulation.c85 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-6.6.21/lib/
Dstrnlen_user.c94 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()
Dstrncpy_from_user.c115 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-6.6.21/arch/mips/cavium-octeon/
Ddma-octeon.c192 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-6.6.21/drivers/soc/qcom/
Dmdt_loader.c84 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()
/linux-6.6.21/arch/s390/mm/
Ddump_pagetables.c16 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()
/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()
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-6.6.21/net/netfilter/
Dxt_NETMAP.c31 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()
Dnft_nat.c41 range->max_addr.ip = (__force __be32) in nft_nat_setup_addr()
47 memcpy(range->max_addr.ip6, &regs->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()
Dnf_nat_masquerade.c66 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()
Dxt_nat.c41 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()
Dnf_nat_core.c290 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip); in nf_nat_inet_in_range()
293 ipv6_addr_cmp(&t->src.u3.in6, &range->max_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()
443 maxip = ntohl((__force __be32)range->max_addr.all[i]); in find_best_ips_proto()
452 if (var_ipp->all[i] != range->max_addr.all[i]) in find_best_ips_proto()
746 .max_addr = ip, in __nf_nat_alloc_null_binding()
975 range->max_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MAXIP]); in nf_nat_ipv4_nlattr_to_range()
977 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range()
992 nla_memcpy(&range->max_addr.ip6, tb[CTA_NAT_V6_MAXIP], 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()
Dnf_nat_bpf.c47 range.max_addr = range.min_addr; in bpf_ct_set_nat_info()
/linux-6.6.21/mm/
Dmemblock.c1522 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_internal() argument
1535 if (max_addr > memblock.current_limit) in memblock_alloc_internal()
1536 max_addr = memblock.current_limit; in memblock_alloc_internal()
1538 alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid, in memblock_alloc_internal()
1543 alloc = memblock_alloc_range_nid(size, align, 0, max_addr, nid, in memblock_alloc_internal()
1572 phys_addr_t min_addr, phys_addr_t max_addr, in memblock_alloc_exact_nid_raw() argument
1577 &max_addr, (void *)_RET_IP_); 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
1609 &max_addr, (void *)_RET_IP_); in memblock_alloc_try_nid_raw()
[all …]
/linux-6.6.21/arch/m68k/mm/
Dmotorola.c421 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()
/linux-6.6.21/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h206 uint64_t max_addr, uint64_t align,
232 uint64_t max_addr,
300 uint64_t max_addr,
Docteon.h17 uint64_t max_addr,
22 uint64_t min_addr, uint64_t max_addr,
27 uint64_t max_addr, uint64_t align,
/linux-6.6.21/include/uapi/linux/netfilter/
Dnf_nat.h41 union nf_inet_addr max_addr; member
49 union nf_inet_addr max_addr; member
/linux-6.6.21/arch/x86/boot/compressed/
Dmisc.c191 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-6.6.21/drivers/net/phy/
Dbcm54140.c500 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-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c541 int addr, found, max_addr; in stmmac_mdio_register() local
563 max_addr = MII_XGMAC_MAX_C22ADDR + 1; in stmmac_mdio_register()
571 max_addr = PHY_MAX_ADDR; in stmmac_mdio_register()
581 max_addr = PHY_MAX_ADDR; in stmmac_mdio_register()
624 for (addr = 0; addr < max_addr; addr++) { in stmmac_mdio_register()
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_dsc_1_2.c61 int max_addr = 2400 / num_softslice; in _dsc_calc_output_buf_max_addr() local
64 max_addr /= 2; in _dsc_calc_output_buf_max_addr()
66 return max_addr - 1; in _dsc_calc_output_buf_max_addr()

12