Home
last modified time | relevance | path

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

/Linux-v5.10/arch/s390/boot/
Dkaslr.c174 unsigned long memory_limit = get_mem_detect_end(); in get_random_base() local
180 memory_limit = min(memory_limit, memory_end); in get_random_base()
198 memory_limit = get_mem_detect_end(); in get_random_base()
199 if (memory_end_set && memory_limit > memory_end) in get_random_base()
200 memory_limit = memory_end; in get_random_base()
203 kasan_needs = memory_limit / 8; in get_random_base()
205 kasan_needs += (memory_limit + kasan_needs) / PAGE_SIZE / in get_random_base()
207 memory_limit -= kasan_needs; in get_random_base()
211 if (safe_addr + kernel_size > memory_limit) in get_random_base()
214 max_pos = count_valid_kernel_positions(kernel_size, safe_addr, memory_limit); in get_random_base()
[all …]
/Linux-v5.10/arch/powerpc/kexec/
Dcore.c121 total_mem_sz = memory_limit ? memory_limit : memblock_phys_mem_size(); in reserve_crashkernel()
180 if (memory_limit && memory_limit <= crashk_res.end) { in reserve_crashkernel()
181 memory_limit = crashk_res.end + 1; in reserve_crashkernel()
182 total_mem_sz = memory_limit; in reserve_crashkernel()
184 memory_limit); in reserve_crashkernel()
258 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
/Linux-v5.10/arch/arm64/mm/
Dinit.c221 static phys_addr_t memory_limit = PHYS_ADDR_MAX; variable
231 memory_limit = memparse(p, &p) & PAGE_MASK; in early_mem()
232 pr_notice("Memory limited to %lldMB\n", memory_limit >> 20); in early_mem()
315 if (memory_limit != PHYS_ADDR_MAX) { in arm64_memblock_init()
316 memblock_mem_limit_remove_map(memory_limit); in arm64_memblock_init()
554 if (memory_limit != PHYS_ADDR_MAX) { in dump_mem_limit()
555 pr_emerg("Memory Limit: %llu MB\n", memory_limit >> 20); in dump_mem_limit()
/Linux-v5.10/arch/powerpc/kernel/
Dprom.c82 memory_limit = PAGE_ALIGN(memparse(p, &p)); in early_parse_mem()
83 DBG("memory limit = 0x%llx\n", memory_limit); in early_parse_mem()
123 if ((memory_limit && (start + size) > PHYSICAL_START + memory_limit) || in move_device_tree()
419 memory_limit = *lprop; in early_init_dt_scan_chosen_ppc()
756 if (memory_limit) in early_init_devtree()
757 first_memblock_size = min_t(u64, first_memblock_size, memory_limit); in early_init_devtree()
776 limit = ALIGN(memory_limit ?: memblock_phys_mem_size(), PAGE_SIZE); in early_init_devtree()
Dfadump.c345 if (memory_limit && size > memory_limit) in fadump_calculate_reserve_size()
346 size = memory_limit; in fadump_calculate_reserve_size()
571 if (memory_limit && memory_limit < memblock_end_of_DRAM()) { in fadump_reserve_mem()
573 if ((memory_limit + size) < memblock_end_of_DRAM()) in fadump_reserve_mem()
574 memory_limit += size; in fadump_reserve_mem()
576 memory_limit = memblock_end_of_DRAM(); in fadump_reserve_mem()
578 " dump, now %#016llx\n", memory_limit); in fadump_reserve_mem()
580 if (memory_limit) in fadump_reserve_mem()
581 mem_boundary = memory_limit; in fadump_reserve_mem()
/Linux-v5.10/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-v5.10/net/sched/
Dsch_fq_pie.c65 u32 memory_limit; member
145 memory_limited = q->memory_usage > q->memory_limit + skb->truesize; in fq_pie_qdisc_enqueue()
332 q->memory_limit = nla_get_u32(tb[TCA_FQ_PIE_MEMORY_LIMIT]); in fq_pie_change()
400 q->memory_limit = SZ_32M; in fq_pie_init()
460 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()
422 q->memory_limit = min(1U << 31, nla_get_u32(tb[TCA_FQ_CODEL_MEMORY_LIMIT])); in fq_codel_change()
425 q->memory_usage > q->memory_limit) { in fq_codel_change()
458 q->memory_limit = 32 << 20; /* 32 MBytes */ in fq_codel_init()
534 q->memory_limit) || in fq_codel_dump()
/Linux-v5.10/include/net/
Dfq_impl.h185 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue()
203 oom = (fq->memory_usage > fq->memory_limit); in fq_tin_enqueue()
313 fq->memory_limit = 16 << 20; /* 16 MBytes */ in fq_init()
Dfq.h73 u32 memory_limit; member
/Linux-v5.10/arch/powerpc/include/asm/
Dsetup.h11 extern unsigned long long memory_limit;
/Linux-v5.10/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-v5.10/arch/sh/include/asm/
Dpage.h51 extern unsigned long memory_start, memory_end, memory_limit;
/Linux-v5.10/net/mac80211/
Ddebugfs.c105 fq->memory_limit, in aqm_read()
138 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
Dtx.c1523 local->fq.memory_limit = local->hw.wiphy->txq_memory_limit; in ieee80211_txq_set_params()
1525 local->hw.wiphy->txq_memory_limit = local->fq.memory_limit; in ieee80211_txq_set_params()
1563 fq->memory_limit = 4 << 20; /* 4 Mbytes */ in ieee80211_txq_setup_flows()
/Linux-v5.10/arch/powerpc/mm/
Dmem.c62 unsigned long long memory_limit; variable
/Linux-v5.10/include/linux/
Dmemblock.h482 void memblock_enforce_memory_limit(phys_addr_t memory_limit);