Lines Matching defs:base

25  * be empty).  The base pointer, rmm->base, points at the beginning of
27 * apr_rmm_off_t value, which represents the offset from the base
29 * "offset from rmm->base".
32 * the "header block", which is always stored at the base pointer.
42 * i.e. rmm->base is *not* a valid address for a block, since the
71 rmm_hdr_block_t *base;
82 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + next);
99 apr_rmm_off_t next = rmm->base->firstfree;
104 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + next);
124 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + best);
125 struct rmm_block_t *new = (rmm_block_t*)((char*)rmm->base + best + size);
135 blk = (rmm_block_t*)((char*)rmm->base + new->next);
145 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + this);
149 struct rmm_block_t *prev = (rmm_block_t*)((char*)rmm->base + blk->prev);
154 rmm->base->firstused = blk->next;
157 rmm->base->firstfree = blk->next;
161 struct rmm_block_t *next = (rmm_block_t*)((char*)rmm->base + blk->next);
167 blk->prev = find_block_by_offset(rmm, rmm->base->firstfree, this, 1);
169 blk->next = rmm->base->firstfree;
170 rmm->base->firstfree = this;
174 blk->prev = find_block_by_offset(rmm, rmm->base->firstused, this, 1);
176 blk->next = rmm->base->firstused;
177 rmm->base->firstused = this;
183 struct rmm_block_t *prev = (rmm_block_t*)((char*)rmm->base + blk->prev);
197 struct rmm_block_t *next = (rmm_block_t*)((char*)rmm->base + blk->next);
203 next = (rmm_block_t*)((char*)rmm->base + blk->next);
214 void *base, apr_size_t size,
231 (*rmm)->base = base;
235 (*rmm)->base->abssize = size;
236 (*rmm)->base->firstused = 0;
237 (*rmm)->base->firstfree = RMM_HDR_BLOCK_SIZE;
239 blk = (rmm_block_t *)((char*)base + (*rmm)->base->firstfree);
241 blk->size = size - (*rmm)->base->firstfree;
257 if (rmm->base->firstused) {
258 apr_rmm_off_t this = rmm->base->firstused;
260 blk = (rmm_block_t *)((char*)rmm->base + this);
264 rmm->base->firstused = 0;
266 if (rmm->base->firstfree) {
267 apr_rmm_off_t this = rmm->base->firstfree;
269 blk = (rmm_block_t *)((char*)rmm->base + this);
273 rmm->base->firstfree = 0;
275 rmm->base->abssize = 0;
282 void *base, apr_pool_t *p)
295 (*rmm)->base = base;
296 (*rmm)->size = (*rmm)->base->abssize;
347 memset((char*)rmm->base + this, 0, size - RMM_BLOCK_SIZE);
376 blk = (rmm_block_t*)((char*)rmm->base + old - RMM_BLOCK_SIZE);
400 blk = (rmm_block_t*)((char*)rmm->base + this);
406 struct rmm_block_t *prev = (rmm_block_t*)((char*)rmm->base + blk->prev);
413 if (rmm->base->firstused != this) {
420 struct rmm_block_t *next = (rmm_block_t*)((char*)rmm->base + blk->next);
438 return (void*)((char*)rmm->base + entity);
448 return ((char*)entity - (char*)rmm->base);