/optee_os/core/kernel/ |
A D | asan.c | 59 vaddr_t b = (vaddr_t)begin; in va_range_inside_shadow() 69 vaddr_t b = (vaddr_t)begin; in va_range_outside_shadow() 89 vaddr_t b = (vaddr_t)begin; in asan_set_shadowed() 93 assert(va_is_well_aligned(begin)); in asan_set_shadowed() 103 assert(va_is_well_aligned(begin)); in asan_tag_no_access() 113 if (!asan_va_base || (begin == end)) in asan_tag_access() 117 assert(va_is_well_aligned(begin)); in asan_tag_access() 131 assert(va_is_well_aligned(begin)); in asan_tag_heap_free() 170 void *begin = (void *)addr; in check_access() local 177 if (va_range_outside_shadow(begin, end)) in check_access() [all …]
|
/optee_os/core/include/kernel/ |
A D | asan.h | 25 void asan_tag_no_access(const void *begin, const void *end); 26 void asan_tag_access(const void *begin, const void *end); 27 void asan_tag_heap_free(const void *begin, const void *end); 32 static inline void asan_tag_no_access(const void *begin __unused, in asan_tag_no_access() 36 static inline void asan_tag_access(const void *begin __unused, in asan_tag_access() 40 static inline void asan_tag_heap_free(const void *begin __unused, in asan_tag_heap_free()
|
/optee_os/core/arch/arm/mm/ |
A D | pgt_cache.c | 337 if (last <= begin) in pgt_entry_matches() 340 last - begin)) in pgt_entry_matches() 347 vaddr_t begin, vaddr_t last) in flush_ctx_range_from_list() argument 357 while (pgt_entry_matches(p, ctx, begin, last)) { in flush_ctx_range_from_list() 391 vaddr_t begin, vaddr_t last) in pgt_flush_ctx_range() argument 430 vaddr_t begin, vaddr_t end) in clear_ctx_range_from_list() argument 442 vaddr_t b = MAX(p->vabase, begin); in clear_ctx_range_from_list() 460 vaddr_t begin, vaddr_t end) in pgt_clear_ctx_range() argument 474 vaddr_t begin, vaddr_t last) in pgt_alloc_unlocked() argument 501 vaddr_t begin, vaddr_t last) in pgt_alloc() argument [all …]
|
A D | tee_pager.c | 1973 vaddr_t begin = ROUNDUP(va, SMALL_PAGE_SIZE); in tee_pager_release_phys() local 1978 if (end <= begin) in tee_pager_release_phys() 1983 for (va = begin; va < end; va += SMALL_PAGE_SIZE) { in tee_pager_release_phys() 1991 tlbi_mva_range(begin, end - begin, SMALL_PAGE_SIZE); in tee_pager_release_phys()
|
A D | core_mmu.c | 797 paddr_t begin = 0; in add_pager_vaspace() local 810 if (!begin) in add_pager_vaspace() 811 begin = mmap[n].pa; in add_pager_vaspace() 817 size = TEE_RAM_VA_SIZE - (end - begin); in add_pager_vaspace()
|
/optee_os/core/arch/arm/include/mm/ |
A D | pgt_cache.h | 61 vaddr_t begin, vaddr_t last); 65 vaddr_t begin, vaddr_t end); 68 vaddr_t begin, vaddr_t last); 72 vaddr_t begin __unused, in pgt_flush_ctx_range()
|
/optee_os/core/crypto/ |
A D | rng_fortuna.c | 68 unsigned int begin; member 185 next_begin = (ring_buffer.begin + 1) % ARRAY_SIZE(ring_buffer.elem); in push_ring_buffer() 194 atomic_store_uint(&ring_buffer.begin, next_begin); in push_ring_buffer() 206 if (atomic_load_uint(&ring_buffer.begin) == ring_buffer.end) in pop_ring_buffer()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pkwrite.c | 585 const char *begin, *end; in mbedtls_pk_write_key_pem() local 597 begin = PEM_BEGIN_PRIVATE_KEY_RSA; in mbedtls_pk_write_key_pem() 605 begin = PEM_BEGIN_PRIVATE_KEY_EC; in mbedtls_pk_write_key_pem() 612 if( ( ret = mbedtls_pem_write_buffer( begin, end, in mbedtls_pk_write_key_pem()
|
/optee_os/core/pta/tests/ |
A D | fs_htree.c | 222 struct tee_fs_htree **ht, size_t begin, in do_range() argument 229 res = fn(ht, n + begin, salt); in do_range() 239 struct tee_fs_htree **ht, size_t begin, in do_range_backwards() argument 246 res = fn(ht, num_blocks - 1 - n + begin, salt); in do_range_backwards()
|
/optee_os/core/mm/ |
A D | vm.c | 113 static size_t get_num_req_pgts(struct user_mode_ctx *uctx, vaddr_t *begin, in get_num_req_pgts() argument 132 if (begin) in get_num_req_pgts() 133 *begin = b; in get_num_req_pgts() 170 vaddr_t begin = ROUNDDOWN(r->va, CORE_MMU_PGDIR_SIZE); in rem_um_region() local 192 begin = MAX(begin, in rem_um_region() 196 if (begin >= last) in rem_um_region()
|
/optee_os/core/arch/arm/kernel/ |
A D | boot.c | 327 const vaddr_t begin = VCORE_START_VA; in init_vcore() local 332 if (begin + size > ASAN_SHADOW_PA) in init_vcore() 333 size = ASAN_MAP_PA - begin; in init_vcore() 336 if (!tee_mm_init(mm_vcore, begin, size, SMALL_PAGE_SHIFT, in init_vcore()
|