Searched refs:mem_limit (Results 1 – 10 of 10) sorted by relevance
81 static u64 mem_limit; variable183 if (size > 0 && size < mem_limit) in mem_avoid_memmap()184 mem_limit = size; in mem_avoid_memmap()269 if (mem_size < mem_limit) in handle_mem_options()270 mem_limit = mem_size; in handle_mem_options()560 region_end = min(entry->start + entry->size, mem_limit); in __process_mem_region()812 if (minimum + image_size > mem_limit) in find_random_phys_addr()832 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr()877 mem_limit = KERNEL_IMAGE_SIZE; in choose_random_location()879 mem_limit = MAXMEM; in choose_random_location()
152 static __be_word mem_limit; variable169 .value = &mem_limit,192 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
96 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail()178 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc()587 buf->mem_limit = TTYB_DEFAULT_MEM_LIMIT; in tty_buffer_init()603 port->buf.mem_limit = limit; in tty_buffer_set_limit()
43 int mem_limit; member
150 Set memory limit by writing the value to sysfs node 'mem_limit'.156 echo $((50*1024*1024)) > /sys/block/zram0/mem_limit159 echo 256K > /sys/block/zram0/mem_limit160 echo 512M > /sys/block/zram0/mem_limit161 echo 1G > /sys/block/zram0/mem_limit164 echo 0 > /sys/block/zram0/mem_limit212 mem_limit WO specifies the maximum amount of memory ZRAM can274 mem_limit the maximum amount of memory ZRAM can use to store
43 What: /sys/block/zram<id>/mem_limit47 The mem_limit file is write-only and specifies the maximum
266 move_initrd(unsigned long mem_limit) in move_initrd() argument273 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
44 INT_MODULE_PARM(mem_limit, 0x10000);513 if (ok >= mem_limit) in validate_mem()
944 kvm->arch.mem_limit); in kvm_s390_get_mem_control()945 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control()1004 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control()1005 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control()3261 kvm->arch.mem_limit = type & KVM_VM_S390_UCONTROL ? KVM_S390_NO_MEM_LIMIT : sclp.hamax + 1; in kvm_arch_init_vm()3262 kvm->arch.gmap = gmap_new(kvm, gpa_to_gfn(kvm->arch.mem_limit)); in kvm_arch_init_vm()5663 if ((new->base_gfn * PAGE_SIZE) + size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
2999 static DEVICE_ATTR_WO(mem_limit);