Searched refs:avail (Results 1 – 1 of 1) sorted by relevance
192 atomic_set(&chunk->avail, size); in gen_pool_add_virt()283 if (size > atomic_read(&chunk->avail)) in gen_pool_alloc()302 atomic_sub(size, &chunk->avail); in gen_pool_alloc()339 atomic_add(size, &chunk->avail); in gen_pool_free()380 size_t avail = 0; in gen_pool_avail() local384 avail += atomic_read(&chunk->avail); in gen_pool_avail()386 return avail; in gen_pool_avail()