Searched refs:poolset (Results 1 – 3 of 3) sorted by relevance
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.c | 606 static uint64_t __maybe_unused get_free2_sum(struct bpoolset *poolset) in get_free2_sum() argument 608 struct bfhead *b = poolset->freelist.ql.flink; in get_free2_sum() 612 while (b != &poolset->freelist) { in get_free2_sum() 633 static void update_free2_sum(struct bpoolset *poolset __maybe_unused, in update_free2_sum() 641 uint64_t f2s __maybe_unused = get_free2_sum(poolset); in update_free2_sum() 643 assert(f2s == poolset->free2_sum - r2 + a2); in update_free2_sum() 644 assert(poolset->free2_sum >= r2); in update_free2_sum() 645 poolset->free2_sum -= r2; in update_free2_sum() 646 poolset->free2_sum += a2; in update_free2_sum() 652 void *bget(requested_align, hdr_size, requested_size, poolset) in bget() argument [all …]
|
| H A D | bget.h | 34 void bpool _((void *buffer, bufsize len, struct bpoolset *poolset)); 35 void *bget _((bufsize align, bufsize hdr_size, bufsize size, struct bpoolset *poolset)); 36 void *bgetz _((bufsize align, bufsize hdr_size, bufsize size, struct bpoolset *poolset)); 38 struct bpoolset *poolset)); 39 void brel _((void *buf, struct bpoolset *poolset, int wipe)); 43 struct bpoolset *poolset)); 45 long *nget, long *nrel, struct bpoolset *poolset)); 48 struct bpoolset *poolset));
|
| H A D | bget_malloc.c | 135 struct bpoolset poolset; member 173 { .poolset = { .freelist = { {0, 0}, \ 174 {&name.poolset.freelist, \ 175 &name.poolset.freelist}}}} 287 if (ctx->poolset.totalloc > ctx->mstats.max_allocated) in raw_malloc_return_hook() 288 ctx->mstats.max_allocated = ctx->poolset.totalloc; in raw_malloc_return_hook() 296 ctx->poolset.totalloc; in raw_malloc_return_hook() 452 p = bgetz(alignment, hdr_size, s, &ctx->poolset); in raw_malloc_flags() 454 p = bget(alignment, hdr_size, s, &ctx->poolset); in raw_malloc_flags() 470 brel(old_ptr, &ctx->poolset, false /*!wipe*/); in raw_malloc_flags() [all …]
|