Searched refs:mem_limit (Results 1 – 4 of 4) sorted by relevance
93 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail()173 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc()606 buf->mem_limit = TTYB_DEFAULT_MEM_LIMIT; in tty_buffer_init()621 port->buf.mem_limit = limit; in tty_buffer_set_limit()
1318 unsigned long mem_limit = rlimit(RLIMIT_MEMLOCK); in siw_reg_user_mr() local1334 if (mem_limit != RLIM_INFINITY) { in siw_reg_user_mr()1337 mem_limit >>= PAGE_SHIFT; in siw_reg_user_mr()1339 if (num_pages > mem_limit - current->mm->locked_vm) { in siw_reg_user_mr()1341 num_pages, mem_limit, in siw_reg_user_mr()
44 INT_MODULE_PARM(mem_limit, 0x10000);512 if (ok >= mem_limit) in validate_mem()
1856 static DEVICE_ATTR_WO(mem_limit);