Home
last modified time | relevance | path

Searched refs:memory_limit (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/arch/s390/boot/
Dkaslr.c175 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()
Dboot.h26 extern unsigned long memory_limit;
Dipl_parm.c29 unsigned long memory_limit; variable
264 memory_limit = round_down(memparse(val, NULL), PAGE_SIZE); in parse_boot_command_line()
Dstartup.c137 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/
Dcore.c109 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/
Dinit.c249 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/
Dprom.c84 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()
Dfadump.c352 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/
Dmachine_kexec.c168 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()
Dsetup.c102 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/
Dsch_fq_pie.c65 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()
Dsch_fq_codel.c58 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/
Dinit.c170 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/
Dfq_impl.h230 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()
Dfq.h76 u32 memory_limit; member
/linux-6.1.9/arch/powerpc/include/asm/
Dsetup.h10 extern unsigned long long memory_limit;
/linux-6.1.9/arch/sh/mm/
Dinit.c294 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/
Dpage.h51 extern unsigned long memory_start, memory_end, memory_limit;
/linux-6.1.9/arch/powerpc/mm/
Dmem.c32 unsigned long long memory_limit; variable
/linux-6.1.9/net/mac80211/
Ddebugfs.c105 fq->memory_limit, in aqm_read()
137 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
Dtx.c1585 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/
Dmemblock.h482 void memblock_enforce_memory_limit(phys_addr_t memory_limit);