Searched refs:mem_limit (Results 1 – 12 of 12) sorted by relevance
78 Set memory limit by writing the value to sysfs node 'mem_limit'.83 echo $((50*1024*1024)) > /sys/block/zram0/mem_limit86 echo 256K > /sys/block/zram0/mem_limit87 echo 512M > /sys/block/zram0/mem_limit88 echo 1G > /sys/block/zram0/mem_limit91 echo 0 > /sys/block/zram0/mem_limit126 mem_limit RW the maximum amount of memory ZRAM can use to store170 mem_limit
86 static unsigned long mem_limit __read_mostly = MAX_MEM;111 if (limit < mem_limit) in mem_limit_func()112 mem_limit = limit; in mem_limit_func()222 if ((mem_max + rsize) > mem_limit) { in setup_bootmem()223 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem()224 if (mem_max == mem_limit) in setup_bootmem()227 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem()230 mem_max = mem_limit; in setup_bootmem()723 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
201 static unsigned long long mem_limit; variable224 .value = &mem_limit,254 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
92 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail()167 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc()527 buf->mem_limit = TTYB_DEFAULT_MEM_LIMIT; in tty_buffer_init()542 port->buf.mem_limit = limit; in tty_buffer_set_limit()
226 u16 mem_limit = cnspci->res_mem.end >> 16; in cns3xxx_pcie_hw_init() local243 pci_bus_write_config_word(&bus, devfn, PCI_MEMORY_LIMIT, mem_limit); in cns3xxx_pcie_hw_init()
57 static u64 mem_limit = ~0UL, max_addr = ~0UL, min_addr = 0UL; variable489 mem_limit = memparse(cp + 4, &cp); in efi_init()1028 if (total_mem + (ae - as) > mem_limit) in find_memmap_space()1029 ae -= total_mem + (ae - as) - mem_limit; in find_memmap_space()1147 if (total_mem + (ae - as) > mem_limit) in efi_memmap_init()1148 ae -= total_mem + (ae - as) - mem_limit; in efi_memmap_init()
109 What: /sys/block/zram<id>/mem_limit113 The mem_limit file is read/write and specifies the maximum
136 What: /sys/block/zram<id>/mem_limit140 The mem_limit file is read/write and specifies the maximum
288 move_initrd(unsigned long mem_limit) in move_initrd() argument295 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
47 INT_MODULE_PARM(mem_limit, 0x10000);517 if (ok >= mem_limit) in validate_mem()
91 int mem_limit; member
1070 static DEVICE_ATTR_RW(mem_limit);