Lines Matching defs:obj_size
96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size)
100 for (obj = mem; obj <= mem + size - obj_size; obj += obj_size)
114 size = UNW_ALIGN(pool->obj_size, pg_size);
119 size = pool->obj_size;
123 add_memory (pool, mem, size, pool->obj_size);
127 mempool_init (struct mempool *pool, size_t obj_size, size_t reserve)
137 obj_size = UNW_ALIGN(obj_size, MAX_ALIGN);
141 reserve = pg_size / obj_size / 4;
146 pool->obj_size = obj_size;
148 pool->chunk_size = UNW_ALIGN(2*reserve*obj_size, pg_size);