/optee_os-3.20.0/core/mm/ |
A D | tee_mm.c | 65 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 D | mobj.c | 256 return (mm->offset << mm->pool->shift) + offs; in mobj_mm_offs() 317 tee_mm_pool_t *pool) in mobj_mm_alloc() argument 324 m->mm = tee_mm_alloc(pool, size); in mobj_mm_alloc()
|
/optee_os-3.20.0/lib/libutils/ext/ |
A D | mempool.c | 87 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-3.20.0/core/include/mm/ |
A D | tee_mm.h | 20 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 D | mobj.h | 230 tee_mm_pool_t *pool);
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
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-3.20.0/core/lib/libtomcrypt/src/prngs/ |
A D | fortuna.c | 126 if ((err = sha256_done(&prng->u.fortuna.pool[x], tmp)) != CRYPT_OK) { in s_fortuna_reseed() 136 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in s_fortuna_reseed() 227 if ((err = sha256_init(&prng->u.fortuna.pool[x])) != CRYPT_OK) { in fortuna_start() 229 sha256_done(&prng->u.fortuna.pool[y], tmp); in fortuna_start() 241 sha256_done(&prng->u.fortuna.pool[x], tmp); in fortuna_start() 266 if ((err = sha256_process(&prng->u.fortuna.pool[pool], tmp, 2)) != CRYPT_OK) { in s_fortuna_add() 269 if ((err = sha256_process(&prng->u.fortuna.pool[pool], in, inlen)) != CRYPT_OK) { in s_fortuna_add() 272 if (pool == 0) { in s_fortuna_add() 295 LTC_ARGCHK(pool < LTC_FORTUNA_POOLS); in fortuna_add_random_event() 299 err = s_fortuna_add(source, pool, in, inlen, prng); in fortuna_add_random_event() [all …]
|
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-3.20.0/lib/libutils/isoc/ |
A D | bget.doc | 25 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 D | bget.h | 50 void bpoold _((void *pool, int dumpalloc, int dumpfree)); 51 int bpoolv _((void *pool));
|
A D | bget_malloc.c | 135 struct malloc_pool *pool; member 344 bpoolv(ctx->pool[n].buf); in raw_malloc_validate_pools() 361 iterator->next_buf = BFH(ctx->pool[0].buf); in bpool_foreach_iterator_init() 411 iterator->next_buf = BFH(ctx->pool[iterator->pool_idx].buf); in bpool_foreach() 935 p = realloc_unlocked(ctx, ctx->pool, sizeof(struct malloc_pool) * l); in raw_malloc_add_pool() 937 ctx->pool = p; in raw_malloc_add_pool() 938 ctx->pool[ctx->pool_len].buf = (void *)start; in raw_malloc_add_pool() 939 ctx->pool[ctx->pool_len].len = end - start; in raw_malloc_add_pool() 941 ctx->mstats.size += ctx->pool[ctx->pool_len].len; in raw_malloc_add_pool() 956 uintptr_t pool_start = (uintptr_t)ctx->pool[n].buf; in raw_malloc_buffer_overlaps_heap() [all …]
|
A D | bget.c | 825 buf = bget(align, hdr_size, requested_size, pool); /* This can't, I say, can't
|
/optee_os-3.20.0/core/arch/arm/dts/ |
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";
|
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";
|
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";
|
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";
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | havege.h | 46 uint32_t pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
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-3.20.0/core/arch/arm/kernel/ |
A D | boot.c | 324 static void carve_out_asan_mem(tee_mm_pool_t *pool) in carve_out_asan_mem() argument 326 const size_t s = pool->hi - pool->lo; in carve_out_asan_mem() 331 if (core_is_buffer_outside(apa, asz, pool->lo, s)) in carve_out_asan_mem() 335 if (!core_is_buffer_inside(apa, asz, pool->lo, s)) { in carve_out_asan_mem() 336 if (apa < pool->lo) { in carve_out_asan_mem() 341 asz -= pool->lo - apa; in carve_out_asan_mem() 342 apa = pool->lo; in carve_out_asan_mem() 348 asz = pool->hi - apa; in carve_out_asan_mem() 351 mm = tee_mm_alloc2(pool, apa, asz); in carve_out_asan_mem() 355 static void carve_out_asan_mem(tee_mm_pool_t *pool __unused) in carve_out_asan_mem()
|
A D | thread_a32.S | 973 .pool
|
A D | thread_a64.S | 784 .pool
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | havege.c | 149 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-3.20.0/core/arch/arm/mm/ |
A D | mobj_dyn_shm.c | 118 assert(r->mm->pool->shift == SMALL_PAGE_SHIFT); in reg_shm_unmap_helper()
|
/optee_os-3.20.0/ |
A D | CHANGELOG.md | 1018 Resolves 32-bit truncation error when pool is at top of 32 bit address
|