| /optee_os/core/mm/ |
| H A D | tee_mm.c | 15 bool tee_mm_init(tee_mm_pool_t *pool, paddr_t lo, paddr_size_t size, in tee_mm_init() argument 21 if (pool == NULL) in tee_mm_init() 30 *pool = (tee_mm_pool_t){ in tee_mm_init() 37 pool->entry = malloc_flags(pool->flags | MAF_ZERO_INIT, NULL, in tee_mm_init() 40 if (pool->entry == NULL) in tee_mm_init() 43 if (pool->flags & TEE_MM_POOL_HI_ALLOC) in tee_mm_init() 44 pool->entry->offset = ((size - 1) >> shift) + 1; in tee_mm_init() 46 pool->entry->pool = pool; in tee_mm_init() 47 pool->lock = SPINLOCK_UNLOCK; in tee_mm_init() 52 void tee_mm_final(tee_mm_pool_t *pool) in tee_mm_final() argument [all …]
|
| H A D | phys_mem.c | 19 tee_mm_pool_t *pool = NULL; in init_pool() local 29 pool = nex_malloc(sizeof(*pool)); in init_pool() 31 pool = malloc(sizeof(*pool)); in init_pool() 32 if (!pool) in init_pool() 35 if (!tee_mm_init(pool, b, sz, CORE_MMU_USER_CODE_SHIFT, flags)) in init_pool() 38 return pool; in init_pool() 68 static bool is_in_pool_range(tee_mm_pool_t *pool, paddr_t addr) in is_in_pool_range() argument 70 return pool && core_is_buffer_inside(addr, 1, pool->lo, pool->size); in is_in_pool_range() 126 static void partial_carve_out(tee_mm_pool_t *pool, paddr_t base, size_t size) in partial_carve_out() argument 128 if (pool && in partial_carve_out() [all …]
|
| H A D | page_alloc.c | 19 static void init_virt_pool(tee_mm_pool_t *pool, uint32_t flags, in init_virt_pool() argument 29 if (!tee_mm_init(pool, start, end - start, SMALL_PAGE_SHIFT, flags)) in init_virt_pool() 49 tee_mm_pool_t *pool = NULL; in virt_page_alloc() local 58 pool = &core_virt_nex_pool; in virt_page_alloc() 61 pool = &core_virt_tee_pool; in virt_page_alloc() 71 mmv = tee_mm_alloc_flags(pool, vcount * SMALL_PAGE_SIZE, flags); in virt_page_alloc()
|
| H A D | mobj_dyn_shm.c | 133 assert(r->mm->pool->shift == SMALL_PAGE_SHIFT); in reg_shm_unmap_helper()
|
| /optee_os/lib/libutils/ext/ |
| H A D | mempool.c | 73 static void init_mpool(struct mempool *pool) in init_mpool() argument 75 size_t sz = pool->size - raw_malloc_get_ctx_size(); in init_mpool() 76 vaddr_t v = ROUNDDOWN(pool->data + sz, sizeof(long) * 2); in init_mpool() 85 assert(v > pool->data); in init_mpool() 86 pool->mctx = (struct malloc_ctx *)v; in init_mpool() 87 raw_malloc_init_ctx(pool->mctx); in init_mpool() 88 raw_malloc_add_pool(pool->mctx, (void *)pool->data, v - pool->data); in init_mpool() 91 static void get_pool(struct mempool *pool __maybe_unused) in get_pool() 94 mutex_lock_recursive(&pool->mu); in get_pool() 95 if (!pool->mctx) in get_pool() [all …]
|
| /optee_os/core/include/mm/ |
| H A D | tee_mm.h | 21 struct _tee_mm_pool_t *pool; member 45 tee_mm_entry_t *tee_mm_find(const tee_mm_pool_t *pool, paddr_t addr); 53 static inline bool tee_mm_validate(const tee_mm_pool_t *pool, paddr_t addr) in tee_mm_validate() argument 55 return tee_mm_find(pool, addr) != 0; in tee_mm_validate() 65 bool tee_mm_init(tee_mm_pool_t *pool, paddr_t lo, paddr_size_t size, 69 void tee_mm_final(tee_mm_pool_t *pool); 71 tee_mm_entry_t *tee_mm_alloc_flags(tee_mm_pool_t *pool, size_t size, 79 static inline tee_mm_entry_t *tee_mm_alloc(tee_mm_pool_t *pool, size_t size) in tee_mm_alloc() argument 81 return tee_mm_alloc_flags(pool, size, MAF_NULL); in tee_mm_alloc() 85 tee_mm_entry_t *tee_mm_alloc2(tee_mm_pool_t *pool, paddr_t base, size_t size); [all …]
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | mempool.h | 58 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/lib/libtomcrypt/src/prngs/ |
| H A D | fortuna.c | 138 if ((err = sha256_done(&prng->u.fortuna.pool[x], tmp)) != CRYPT_OK) { in s_fortuna_reseed() 148 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in s_fortuna_reseed() 239 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in fortuna_start() 241 sha256_done(&prng->u.fortuna.pool[y], tmp); in fortuna_start() 253 sha256_done(&prng->u.fortuna.pool[x], tmp); in fortuna_start() 264 static int s_fortuna_add(unsigned long source, unsigned long pool, const unsigned char *in, unsigne… in s_fortuna_add() argument 278 if ((err = sha256_process(&prng->u.fortuna.pool[pool], tmp, 2)) != CRYPT_OK) { in s_fortuna_add() 281 if ((err = sha256_process(&prng->u.fortuna.pool[pool], in, inlen)) != CRYPT_OK) { in s_fortuna_add() 284 if (pool == 0) { in s_fortuna_add() 299 int fortuna_add_random_event(unsigned long source, unsigned long pool, const unsigned char *in, uns… in fortuna_add_random_event() argument [all …]
|
| H A D | yarrow.c | 115 zeromem(prng->u.yarrow.pool, sizeof(prng->u.yarrow.pool)); in yarrow_start() 149 if ((err = hash_descriptor[prng->u.yarrow.hash]->process(&md, prng->u.yarrow.pool, in yarrow_add_entropy() 160 err = hash_descriptor[prng->u.yarrow.hash]->done(&md, prng->u.yarrow.pool); in yarrow_add_entropy() 195 prng->u.yarrow.pool, /* IV */ in yarrow_ready() 196 prng->u.yarrow.pool, ks, /* KEY and key size */ in yarrow_ready()
|
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.doc | 11 overhead required for buffer pool management. It automatically 25 entire buffer pool. 27 * Retrieval of allocation and pool size statistics. 32 * Automatic pool compaction, growth, and shrinkage by 94 the buffer pool area in RAM, then allocate buffers with bget() and 105 Initially define a buffer pool of an appropriate size with 112 the underlying operating system, add it to the buffer pool by another 119 implement automatic storage pool expansion, contraction, and optionally 122 storage compaction, acquisition, and release, as well as a standard pool 127 release storage as before. You can supply an initial buffer pool with [all …]
|
| H A D | bget.h | 50 void bpoold _((void *pool, int dumpalloc, int dumpfree)); 51 int bpoolv _((void *pool));
|
| H A D | bget_malloc.c | 136 struct malloc_pool *pool; member 353 bpoolv(ctx->pool[n].buf); in raw_malloc_validate_pools() 370 iterator->next_buf = BFH(ctx->pool[0].buf); in bpool_foreach_iterator_init() 420 iterator->next_buf = BFH(ctx->pool[iterator->pool_idx].buf); in bpool_foreach() 833 p = realloc_unlocked(ctx, ctx->pool, sizeof(struct malloc_pool) * l); in raw_malloc_add_pool() 835 ctx->pool = p; in raw_malloc_add_pool() 836 ctx->pool[ctx->pool_len].buf = (void *)start; in raw_malloc_add_pool() 837 ctx->pool[ctx->pool_len].len = end - start; in raw_malloc_add_pool() 839 ctx->mstats.size += ctx->pool[ctx->pool_len].len; in raw_malloc_add_pool() 854 uintptr_t pool_start = (uintptr_t)strip_tag(ctx->pool[n].buf); in raw_malloc_buffer_overlaps_heap() [all …]
|
| H A D | bget.c | 874 buf = bget(align, hdr_size, requested_size, pool); /* This can't, I say, can't
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp15xx-dhcor-som.dtsi | 30 compatible = "shared-dma-pool"; 36 compatible = "shared-dma-pool"; 42 compatible = "shared-dma-pool"; 48 compatible = "shared-dma-pool"; 54 compatible = "shared-dma-pool"; 60 compatible = "shared-dma-pool";
|
| H A D | stm32mp157c-ed1.dts | 34 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"; 70 compatible = "shared-dma-pool";
|
| H A D | stm32mp15xx-dhcom-som.dtsi | 31 compatible = "shared-dma-pool"; 37 compatible = "shared-dma-pool"; 43 compatible = "shared-dma-pool"; 49 compatible = "shared-dma-pool"; 55 compatible = "shared-dma-pool"; 61 compatible = "shared-dma-pool";
|
| H A D | stm32mp15xx-dkx.dtsi | 22 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"; 58 compatible = "shared-dma-pool";
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_prng.h | 8 unsigned char pool[MAXBLOCKSIZE]; member 29 hash_state pool[LTC_FORTUNA_POOLS]; /* the pools */ member 144 int fortuna_add_random_event(unsigned long source, unsigned long pool, const unsigned char *in, uns…
|
| /optee_os/core/tee/ |
| H A D | tee_rpmb_fs.c | 3184 tee_mm_pool_t pool = { }; in rpmb_mem_stats() local 3195 pool_result = tee_mm_init(&pool, RPMB_STORAGE_START_ADDRESS, in rpmb_mem_stats() 3221 mm = tee_mm_alloc2(&pool, fe->start_address, fe->data_size); in rpmb_mem_stats() 3234 tee_mm_get_pool_stats(&pool, stats, reset); in rpmb_mem_stats() 3236 tee_mm_final(&pool); in rpmb_mem_stats()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | thread_a32.S | 1021 .pool
|
| H A D | thread_a64.S | 792 .pool
|
| /optee_os/ |
| H A D | CHANGELOG.md | 1348 Resolves 32-bit truncation error when pool is at top of 32 bit address
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 1850 https://mbed-tls.readthedocs.io/en/latest/kb/how-to/add-entropy-sources-to-entropy-pool/ for
|