/linux-6.1.9/arch/s390/boot/ |
D | kaslr.c | 175 unsigned long memory_limit = get_mem_detect_end(); in get_random_base() local 180 memory_limit = min(memory_limit, ident_map_size); in get_random_base() 187 memory_limit -= kasan_estimate_memory_needs(memory_limit); in get_random_base() 196 if (safe_addr + kernel_size > memory_limit) in get_random_base() 199 max_pos = count_valid_kernel_positions(kernel_size, safe_addr, memory_limit); in get_random_base() 208 return position_to_address(base_pos + 1, kernel_size, safe_addr, memory_limit); in get_random_base()
|
D | boot.h | 26 extern unsigned long memory_limit;
|
D | ipl_parm.c | 29 unsigned long memory_limit; variable 264 memory_limit = round_down(memparse(val, NULL), PAGE_SIZE); in parse_boot_command_line()
|
D | startup.c | 137 if (memory_limit) in setup_ident_map_size() 138 ident_map_size = min(ident_map_size, memory_limit); in setup_ident_map_size()
|
/linux-6.1.9/arch/powerpc/kexec/ |
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.1.9/arch/arm64/mm/ |
D | init.c | 249 static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX; 259 memory_limit = memparse(p, &p) & PAGE_MASK; in early_mem() 260 pr_notice("Memory limited to %lldMB\n", memory_limit >> 20); in early_mem() 325 if (memory_limit != PHYS_ADDR_MAX) { in arm64_memblock_init() 326 memblock_mem_limit_remove_map(memory_limit); in arm64_memblock_init() 499 if (memory_limit != PHYS_ADDR_MAX) { in dump_mem_limit() 500 pr_emerg("Memory Limit: %llu MB\n", memory_limit >> 20); in dump_mem_limit()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | prom.c | 84 memory_limit = PAGE_ALIGN(memparse(p, &p)); in early_parse_mem() 85 DBG("memory limit = 0x%llx\n", memory_limit); in early_parse_mem() 125 if ((memory_limit && (start + size) > PHYSICAL_START + memory_limit) || in move_device_tree() 439 memory_limit = *lprop; in early_init_dt_scan_chosen_ppc() 803 if (memory_limit) in early_init_devtree() 804 first_memblock_size = min_t(u64, first_memblock_size, memory_limit); in early_init_devtree() 823 limit = ALIGN(memory_limit ?: memblock_phys_mem_size(), PAGE_SIZE); in early_init_devtree()
|
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.1.9/arch/sh/kernel/ |
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()
|
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.1.9/net/sched/ |
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()
|
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.1.9/arch/riscv/mm/ |
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() 995 memory_limit = KERN_VIRT_SIZE - (IS_ENABLED(CONFIG_64BIT) ? SZ_4G : 0); in setup_vm() 1110 if (end >= __pa(PAGE_OFFSET) + memory_limit) in setup_vm_final() 1111 end = __pa(PAGE_OFFSET) + memory_limit; in setup_vm_final()
|
/linux-6.1.9/include/net/ |
D | fq_impl.h | 230 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue() 243 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue() 355 fq->memory_limit = 16 << 20; /* 16 MBytes */ in fq_init()
|
D | fq.h | 76 u32 memory_limit; member
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | setup.h | 10 extern unsigned long long memory_limit;
|
/linux-6.1.9/arch/sh/mm/ |
D | init.c | 294 memblock_enforce_memory_limit(memory_limit); in paging_init() 308 memory_end = memory_start + (memory_limit ?: memblock_phys_mem_size()); in paging_init()
|
/linux-6.1.9/arch/sh/include/asm/ |
D | page.h | 51 extern unsigned long memory_start, memory_end, memory_limit;
|
/linux-6.1.9/arch/powerpc/mm/ |
D | mem.c | 32 unsigned long long memory_limit; variable
|
/linux-6.1.9/net/mac80211/ |
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()
|
D | tx.c | 1585 local->fq.memory_limit = local->hw.wiphy->txq_memory_limit; in ieee80211_txq_set_params() 1587 local->hw.wiphy->txq_memory_limit = local->fq.memory_limit; in ieee80211_txq_set_params() 1625 fq->memory_limit = 4 << 20; /* 4 Mbytes */ in ieee80211_txq_setup_flows()
|
/linux-6.1.9/include/linux/ |
D | memblock.h | 482 void memblock_enforce_memory_limit(phys_addr_t memory_limit);
|