Home
last modified time | relevance | path

Searched refs:mem_used (Results 1 – 2 of 2) sorted by relevance

/drivers/tty/
Dtty_buffer.c93 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail()
138 still_used = atomic_xchg(&buf->mem_used, 0); in tty_buffer_free_all()
173 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc()
181 atomic_add(size, &port->buf.mem_used); in tty_buffer_alloc()
199 WARN_ON(atomic_sub_return(b->size, &buf->mem_used) < 0); in tty_buffer_free()
577 atomic_set(&buf->mem_used, 0); in tty_buffer_init()
/drivers/block/zram/
Dzram_drv.c1053 u64 orig_size, mem_used = 0; in mm_stat_show() local
1061 mem_used = zs_get_total_pages(zram->mem_pool); in mm_stat_show()
1072 mem_used << PAGE_SHIFT, in mm_stat_show()