Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 29) sorted by relevance

12

/optee_os/core/arch/arm/mm/
A Dtee_mm.c65 pool->entry->pool = pool; in tee_mm_init()
73 if (pool == NULL || pool->entry == NULL) in tee_mm_final()
78 pfree(pool, pool->entry); in tee_mm_final()
150 if (!pool || !pool->entry) in tee_mm_alloc()
215 nn->pool = pool; in tee_mm_alloc()
240 (offshi << pool->shift) > pool->size) in fit_in_gap()
257 if (!pool || !pool->entry) in tee_mm_alloc2()
292 mm->pool = pool; in tee_mm_alloc2()
337 return pool && addr >= pool->lo && in tee_mm_addr_is_within_range()
338 addr <= (pool->lo + (pool->size - 1)); in tee_mm_addr_is_within_range()
[all …]
A Dmobj_dyn_shm.c118 assert(r->mm->pool->shift == SMALL_PAGE_SHIFT); in reg_shm_unmap_helper()
/optee_os/lib/libutils/ext/
A Dmempool.c87 raw_malloc_add_pool(pool->mctx, (void *)pool->data, v - pool->data); in init_mpool()
94 if (!pool->mctx) in get_pool()
95 init_mpool(pool); in get_pool()
110 pool->release_mem((void *)pool->data, pool->size); in put_pool()
121 struct mempool *pool = calloc(1, sizeof(*pool)); in mempool_alloc_pool() local
126 if (pool) { in mempool_alloc_pool()
133 init_mpool(pool); in mempool_alloc_pool()
137 return pool; in mempool_alloc_pool()
144 get_pool(pool); in mempool_alloc()
162 put_pool(pool); in mempool_alloc()
[all …]
/optee_os/core/include/mm/
A Dtee_mm.h20 struct _tee_mm_pool_t *pool; member
53 tee_mm_entry_t *tee_mm_find(const tee_mm_pool_t *pool, paddr_t addr);
61 static inline bool tee_mm_validate(const tee_mm_pool_t *pool, paddr_t addr) in tee_mm_validate() argument
63 return tee_mm_find(pool, addr) != 0; in tee_mm_validate()
73 bool tee_mm_init(tee_mm_pool_t *pool, paddr_t lo, paddr_size_t size,
77 void tee_mm_final(tee_mm_pool_t *pool);
84 tee_mm_entry_t *tee_mm_alloc(tee_mm_pool_t *pool, size_t size);
87 tee_mm_entry_t *tee_mm_alloc2(tee_mm_pool_t *pool, paddr_t base, size_t size);
110 bool tee_mm_addr_is_within_range(const tee_mm_pool_t *pool, paddr_t addr);
112 bool tee_mm_is_empty(tee_mm_pool_t *pool);
[all …]
A Dmobj.h230 tee_mm_pool_t *pool);
/optee_os/core/lib/libtomcrypt/src/prngs/
A Dfortuna.c133 if ((err = sha256_done(&prng->u.fortuna.pool[x], tmp)) != CRYPT_OK) { in _fortuna_reseed()
143 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in _fortuna_reseed()
234 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in fortuna_start()
236 sha256_done(&prng->u.fortuna.pool[y], tmp); in fortuna_start()
248 sha256_done(&prng->u.fortuna.pool[x], tmp); in fortuna_start()
273 if ((err = sha256_process(&prng->u.fortuna.pool[pool], tmp, 2)) != CRYPT_OK) { in _fortuna_add()
276 if ((err = sha256_process(&prng->u.fortuna.pool[pool], in, inlen)) != CRYPT_OK) { in _fortuna_add()
279 if (pool == 0) { in _fortuna_add()
302 LTC_ARGCHK(pool < LTC_FORTUNA_POOLS); in fortuna_add_random_event()
306 err = _fortuna_add(source, pool, in, inlen, prng); in fortuna_add_random_event()
[all …]
A Dyarrow.c122 zeromem(prng->u.yarrow.pool, sizeof(prng->u.yarrow.pool)); in yarrow_start()
156 if ((err = hash_descriptor[prng->u.yarrow.hash]->process(&md, prng->u.yarrow.pool, in yarrow_add_entropy()
167 err = hash_descriptor[prng->u.yarrow.hash]->done(&md, prng->u.yarrow.pool); in yarrow_add_entropy()
202 prng->u.yarrow.pool, /* IV */ in yarrow_ready()
203 prng->u.yarrow.pool, ks, /* KEY and key size */ in yarrow_ready()
/optee_os/lib/libutils/isoc/
A Dbget.doc25 entire buffer pool.
27 * Retrieval of allocation and pool size statistics.
32 * Automatic pool compaction, growth, and shrinkage by
172 storage to the overall buffer pool.
196 space pool.
280 All buffers in the buffer pool <pool>, previously initialised by a call
285 int bpoolv(void *pool);
290 is returned if the pool is valid, 0 if an error is found.
311 a buffer pool. */
321 pool, the largest available
[all …]
A Dbget.h50 void bpoold _((void *pool, int dumpalloc, int dumpfree));
51 int bpoolv _((void *pool));
A Dbget_malloc.c151 struct malloc_pool *pool; member
273 bpoolv(ctx->pool[n].buf); in raw_malloc_validate_pools()
290 iterator->next_buf = BFH(ctx->pool[0].buf); in bpool_foreach_iterator_init()
340 iterator->next_buf = BFH(ctx->pool[iterator->pool_idx].buf); in bpool_foreach()
814 p = realloc_unlocked(ctx, ctx->pool, sizeof(struct malloc_pool) * l); in gen_malloc_add_pool()
816 ctx->pool = p; in gen_malloc_add_pool()
817 ctx->pool[ctx->pool_len].buf = (void *)start; in gen_malloc_add_pool()
818 ctx->pool[ctx->pool_len].len = end - start; in gen_malloc_add_pool()
820 ctx->mstats.size += ctx->pool[ctx->pool_len].len; in gen_malloc_add_pool()
874 uintptr_t pool_start = (uintptr_t)ctx->pool[n].buf; in gen_malloc_buffer_overlaps_heap()
[all …]
/optee_os/lib/libutils/ext/include/
A Dmempool.h58 void *mempool_alloc(struct mempool *pool, size_t size);
68 void *mempool_calloc(struct mempool *pool, size_t nmemb, size_t size);
75 void mempool_free(struct mempool *pool, void *ptr);
/optee_os/out/arm/export-ta_arm32/include/
A Dmempool.h58 void *mempool_alloc(struct mempool *pool, size_t size);
68 void *mempool_calloc(struct mempool *pool, size_t nmemb, size_t size);
75 void mempool_free(struct mempool *pool, void *ptr);
/optee_os/out/arm/export-ta_arm64/include/
A Dmempool.h58 void *mempool_alloc(struct mempool *pool, size_t size);
68 void *mempool_calloc(struct mempool *pool, size_t nmemb, size_t size);
75 void mempool_free(struct mempool *pool, void *ptr);
/optee_os/core/arch/arm/dts/
A Dstm32mp157c-ed1.dts34 compatible = "shared-dma-pool";
40 compatible = "shared-dma-pool";
46 compatible = "shared-dma-pool";
52 compatible = "shared-dma-pool";
58 compatible = "shared-dma-pool";
64 compatible = "shared-dma-pool";
A Dstm32mp15xx-dkx.dtsi22 compatible = "shared-dma-pool";
28 compatible = "shared-dma-pool";
34 compatible = "shared-dma-pool";
40 compatible = "shared-dma-pool";
46 compatible = "shared-dma-pool";
52 compatible = "shared-dma-pool";
/optee_os/core/arch/arm/kernel/
A Dboot.c280 static void carve_out_asan_mem(tee_mm_pool_t *pool) in carve_out_asan_mem() argument
282 const size_t s = pool->hi - pool->lo; in carve_out_asan_mem()
287 if (core_is_buffer_outside(apa, asz, pool->lo, s)) in carve_out_asan_mem()
291 if (!core_is_buffer_inside(apa, asz, pool->lo, s)) { in carve_out_asan_mem()
292 if (apa < pool->lo) { in carve_out_asan_mem()
297 asz -= pool->lo - apa; in carve_out_asan_mem()
298 apa = pool->lo; in carve_out_asan_mem()
304 asz = pool->hi - apa; in carve_out_asan_mem()
307 mm = tee_mm_alloc2(pool, apa, asz); in carve_out_asan_mem()
311 static void carve_out_asan_mem(tee_mm_pool_t *pool __unused) in carve_out_asan_mem()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_prng.h15 unsigned char pool[MAXBLOCKSIZE]; member
36 hash_state pool[LTC_FORTUNA_POOLS]; /* the pools */ member
151 int fortuna_add_random_event(unsigned long source, unsigned long pool, const unsigned char *in, uns…
/optee_os/lib/libmbedtls/mbedtls/library/
A Dhavege.c149 hs->pool[n % MBEDTLS_HAVEGE_COLLECT_SIZE] ^= RES[i];
225 val = hs->pool[hs->offset[0]++]; in mbedtls_havege_random()
226 val ^= hs->pool[hs->offset[1]++]; in mbedtls_havege_random()
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dhavege.h46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dhavege.h46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dhavege.h46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dhavege.h46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dhavege.h46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/optee_os/
A D.azure-pipelines.yml4 pool:
47 pool:
229 pool:
254 pool:
/optee_os/core/mm/
A Dmobj.c254 return (mm->offset << mm->pool->shift) + offs; in mobj_mm_offs()
315 tee_mm_pool_t *pool) in mobj_mm_alloc() argument
322 m->mm = tee_mm_alloc(pool, size); in mobj_mm_alloc()

Completed in 25 milliseconds

12