Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Dmempool.c19 void* mempool_alloc_tile(struct mempool *mp) { in mempool_alloc_tile() argument
25 assert(mp->tile_size >= sizeof(void*)); in mempool_alloc_tile()
26 assert(mp->at_least > 0); in mempool_alloc_tile()
28 if (mp->freelist) { in mempool_alloc_tile()
31 r = mp->freelist; in mempool_alloc_tile()
32 mp->freelist = * (void**) mp->freelist; in mempool_alloc_tile()
36 if (_unlikely_(!mp->first_pool) || in mempool_alloc_tile()
37 _unlikely_(mp->first_pool->n_used >= mp->first_pool->n_tiles)) { in mempool_alloc_tile()
41 n = mp->first_pool ? mp->first_pool->n_tiles : 0; in mempool_alloc_tile()
42 n = MAX(mp->at_least, n * 2); in mempool_alloc_tile()
[all …]
Dmempool.h16 void* mempool_alloc_tile(struct mempool *mp);
17 void* mempool_alloc0_tile(struct mempool *mp);
18 void mempool_free_tile(struct mempool *mp, void *p);
30 void mempool_drop(struct mempool *mp);