/linux-6.3-rc2/arch/powerpc/kexec/ |
A D | core.c | 109 total_mem_sz = memory_limit ? memory_limit : memblock_phys_mem_size(); in reserve_crashkernel() 175 if (memory_limit && memory_limit <= crashk_res.end) { in reserve_crashkernel() 176 memory_limit = crashk_res.end + 1; in reserve_crashkernel() 177 total_mem_sz = memory_limit; in reserve_crashkernel() 179 memory_limit); in reserve_crashkernel() 253 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
|
/linux-6.3-rc2/arch/s390/boot/ |
A D | kaslr.c | 176 unsigned long memory_limit = get_mem_detect_end(); in get_random_base() local 185 memory_limit -= kasan_estimate_memory_needs(usable_total); in get_random_base() 186 memory_limit -= vmem_estimate_memory_needs(usable_total); in get_random_base() 190 if (safe_addr + kernel_size > memory_limit) in get_random_base() 193 max_pos = count_valid_kernel_positions(kernel_size, safe_addr, memory_limit); in get_random_base() 202 return position_to_address(base_pos + 1, kernel_size, safe_addr, memory_limit); in get_random_base()
|
A D | boot.h | 57 extern unsigned long memory_limit;
|
A D | ipl_parm.c | 29 unsigned long memory_limit; variable 273 memory_limit = round_down(memparse(val, NULL), PAGE_SIZE); in parse_boot_command_line()
|
A D | startup.c | 157 if (memory_limit) in setup_ident_map_size() 158 ident_map_size = min(ident_map_size, memory_limit); in setup_ident_map_size()
|
/linux-6.3-rc2/arch/arm64/mm/ |
A D | init.c | 268 static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; 278 memory_limit = memparse(p, &p) & PAGE_MASK; in early_mem() 279 pr_notice("Memory limited to %lldMB\n", memory_limit >> 20); in early_mem() 344 if (memory_limit != PHYS_ADDR_MAX) { in arm64_memblock_init() 345 memblock_mem_limit_remove_map(memory_limit); in arm64_memblock_init() 518 if (memory_limit != PHYS_ADDR_MAX) { in dump_mem_limit() 519 pr_emerg("Memory Limit: %llu MB\n", memory_limit >> 20); in dump_mem_limit()
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | prom.c | 86 memory_limit = PAGE_ALIGN(memparse(p, &p)); in early_parse_mem() 87 DBG("memory limit = 0x%llx\n", memory_limit); in early_parse_mem() 127 if ((memory_limit && (start + size) > PHYSICAL_START + memory_limit) || in move_device_tree() 444 memory_limit = *lprop; in early_init_dt_scan_chosen_ppc() 807 if (memory_limit) in early_init_devtree() 808 first_memblock_size = min_t(u64, first_memblock_size, memory_limit); in early_init_devtree() 827 limit = ALIGN(memory_limit ?: memblock_phys_mem_size(), PAGE_SIZE); in early_init_devtree()
|
A D | fadump.c | 352 if (memory_limit && size > memory_limit) in fadump_calculate_reserve_size() 353 size = memory_limit; in fadump_calculate_reserve_size() 583 if (memory_limit && memory_limit < memblock_end_of_DRAM()) { in fadump_reserve_mem() 585 if ((memory_limit + size) < memblock_end_of_DRAM()) in fadump_reserve_mem() 586 memory_limit += size; in fadump_reserve_mem() 588 memory_limit = memblock_end_of_DRAM(); in fadump_reserve_mem() 590 " dump, now %#016llx\n", memory_limit); in fadump_reserve_mem() 592 if (memory_limit) in fadump_reserve_mem() 593 mem_boundary = memory_limit; in fadump_reserve_mem()
|
/linux-6.3-rc2/arch/sh/kernel/ |
A D | machine_kexec.c | 168 unsigned long max = memblock_end_of_DRAM() - memory_limit; in reserve_crashkernel() 189 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel() 190 memory_limit = 0; in reserve_crashkernel()
|
A D | setup.c | 102 unsigned long memory_limit = 0; variable 113 memory_limit = PAGE_ALIGN(memparse(p, &p)); in early_parse_mem() 115 pr_notice("Memory limited to %ldMB\n", memory_limit >> 20); in early_parse_mem()
|
/linux-6.3-rc2/net/sched/ |
A D | sch_fq_pie.c | 65 u32 memory_limit; member 152 memory_limited = q->memory_usage > q->memory_limit + skb->truesize; in fq_pie_qdisc_enqueue() 336 q->memory_limit = nla_get_u32(tb[TCA_FQ_PIE_MEMORY_LIMIT]); in fq_pie_change() 404 q->memory_limit = SZ_32M; in fq_pie_init() 464 nla_put_u32(skb, TCA_FQ_PIE_MEMORY_LIMIT, q->memory_limit) || in fq_pie_dump()
|
A D | sch_fq_codel.c | 58 u32 memory_limit; member 216 memory_limited = q->memory_usage > q->memory_limit; in fq_codel_enqueue() 432 q->memory_limit = min(1U << 31, nla_get_u32(tb[TCA_FQ_CODEL_MEMORY_LIMIT])); in fq_codel_change() 435 q->memory_usage > q->memory_limit) { in fq_codel_change() 468 q->memory_limit = 32 << 20; /* 32 MBytes */ in fq_codel_init() 544 q->memory_limit) || in fq_codel_dump()
|
/linux-6.3-rc2/arch/riscv/mm/ |
A D | init.c | 170 static phys_addr_t memory_limit; variable 180 memory_limit = min_t(u64, size, memory_limit); in early_mem() 182 pr_notice("Memory limited to %lldMB\n", (u64)memory_limit >> 20); in early_mem() 199 memblock_enforce_memory_limit(memory_limit); in setup_bootmem() 996 memory_limit = KERN_VIRT_SIZE - (IS_ENABLED(CONFIG_64BIT) ? SZ_4G : 0); in setup_vm() 1111 if (end >= __pa(PAGE_OFFSET) + memory_limit) in setup_vm_final() 1112 end = __pa(PAGE_OFFSET) + memory_limit; in setup_vm_final()
|
/linux-6.3-rc2/include/net/ |
A D | fq_impl.h | 234 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue() 247 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue() 359 fq->memory_limit = 16 << 20; /* 16 MBytes */ in fq_init()
|
A D | fq.h | 76 u32 memory_limit; member
|
/linux-6.3-rc2/drivers/iommu/iommufd/ |
A D | iommufd_test.h | 87 } memory_limit; member
|
A D | selftest.c | 829 if (cmd->memory_limit.limit < in iommufd_test() 832 iommufd_test_memory_limit = cmd->memory_limit.limit; in iommufd_test()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | setup.h | 10 extern unsigned long long memory_limit;
|
/linux-6.3-rc2/arch/sh/mm/ |
A D | init.c | 294 memblock_enforce_memory_limit(memory_limit); in paging_init() 309 memory_end = memory_start + (memory_limit ?: memblock_phys_mem_size()); in paging_init()
|
/linux-6.3-rc2/arch/sh/include/asm/ |
A D | page.h | 51 extern unsigned long memory_start, memory_end, memory_limit;
|
/linux-6.3-rc2/arch/powerpc/mm/ |
A D | mem.c | 32 unsigned long long memory_limit; variable
|
/linux-6.3-rc2/tools/testing/selftests/iommu/ |
A D | iommufd_utils.h | 238 .memory_limit = { .limit = limit }, in _test_ioctl_set_temp_memory_limit()
|
A D | iommufd.c | 196 unsigned int memory_limit; in FIXTURE_VARIANT() local 208 if (!variant->memory_limit) { in FIXTURE_SETUP() 211 test_ioctl_set_temp_memory_limit(variant->memory_limit); in FIXTURE_SETUP() 243 .memory_limit = 16, in FIXTURE_VARIANT_ADD()
|
/linux-6.3-rc2/net/mac80211/ |
A D | debugfs.c | 105 fq->memory_limit, in aqm_read() 137 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
|
/linux-6.3-rc2/include/linux/ |
A D | memblock.h | 482 void memblock_enforce_memory_limit(phys_addr_t memory_limit);
|