Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 12 of 12) sorted by relevance

/optee_os/core/kernel/
H A Dasan.c62 static size_t va_range_to_shadow_size(const void *begin, const void *end) in va_range_to_shadow_size() argument
64 return ((vaddr_t)end - (vaddr_t)begin) / ASAN_BLOCK_SIZE; in va_range_to_shadow_size()
67 static bool va_range_inside_shadow(const void *begin, const void *end) in va_range_inside_shadow() argument
69 vaddr_t b = (vaddr_t)begin; in va_range_inside_shadow()
77 static bool va_range_outside_shadow(const void *begin, const void *end) in va_range_outside_shadow() argument
79 vaddr_t b = (vaddr_t)begin; in va_range_outside_shadow()
97 void asan_set_shadowed(const void *begin, const void *end) in asan_set_shadowed() argument
99 vaddr_t b = (vaddr_t)begin; in asan_set_shadowed()
103 assert(va_is_well_aligned(begin)); in asan_set_shadowed()
111 void asan_tag_no_access(const void *begin, const void *end) in asan_tag_no_access() argument
[all …]
H A Dinitcall.c12 const struct initcall *begin, in do_init_calls() argument
18 for (call = begin; call < end; call++) { in do_init_calls()
/optee_os/core/include/kernel/
H A Dasan.h30 void asan_tag_no_access(const void *begin, const void *end);
31 void asan_tag_access(const void *begin, const void *end);
32 void asan_tag_heap_free(const void *begin, const void *end);
37 static inline void asan_tag_no_access(const void *begin __unused, in asan_tag_no_access()
41 static inline void asan_tag_access(const void *begin __unused, in asan_tag_access()
45 static inline void asan_tag_heap_free(const void *begin __unused, in asan_tag_heap_free()
/optee_os/core/mm/
H A Dpgt_cache.c161 static bool pgt_entry_matches(struct pgt *p, vaddr_t begin, vaddr_t last) in pgt_entry_matches() argument
165 if (last <= begin) in pgt_entry_matches()
167 return core_is_buffer_inside(p->vabase, CORE_MMU_PGDIR_SIZE, begin, in pgt_entry_matches()
168 last - begin); in pgt_entry_matches()
171 void pgt_flush_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t last) in pgt_flush_range() argument
182 while (pgt_entry_matches(p, begin, last)) { in pgt_flush_range()
203 if (pgt_entry_matches(next_p, begin, last)) { in pgt_flush_range()
227 void pgt_clear_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t end) in pgt_clear_range() argument
240 vaddr_t b = MAX(p->vabase, begin); in pgt_clear_range()
658 static bool pgt_entry_matches(struct pgt *p, void *ctx, vaddr_t begin, in pgt_entry_matches() argument
[all …]
H A Dvm.c136 vaddr_t begin = ROUNDDOWN(r->va, CORE_MMU_PGDIR_SIZE); in rem_um_region() local
162 begin = MAX(begin, in rem_um_region()
165 if (begin < last) in rem_um_region()
166 pgt_flush_range(uctx, begin, last); in rem_um_region()
H A Dcore_mmu.c1021 paddr_t begin = 0; in add_pager_vaspace() local
1030 if (!begin) in add_pager_vaspace()
1031 begin = mem_map->map[n].pa; in add_pager_vaspace()
1037 assert(end - begin < TEE_RAM_VA_SIZE); in add_pager_vaspace()
1038 size = TEE_RAM_VA_SIZE - (end - begin); in add_pager_vaspace()
/optee_os/core/include/mm/
H A Dpgt_cache.h70 void pgt_clear_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t end);
71 void pgt_flush_range(struct user_mode_ctx *uctx, vaddr_t begin, vaddr_t last);
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpkwrite.c587 const char *begin, *end; in mbedtls_pk_write_key_pem() local
596 begin = PEM_BEGIN_PRIVATE_KEY_RSA "\n"; in mbedtls_pk_write_key_pem()
603 begin = PEM_BEGIN_PRIVATE_KEY_PKCS8 "\n"; in mbedtls_pk_write_key_pem()
606 begin = PEM_BEGIN_PRIVATE_KEY_EC "\n"; in mbedtls_pk_write_key_pem()
616 if ((ret = mbedtls_pem_write_buffer(begin, end, in mbedtls_pk_write_key_pem()
/optee_os/core/crypto/
H A Drng_fortuna.c68 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/core/pta/tests/
H A Dfs_htree.c222 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/arch/arm/kernel/
H A Dboot.c408 const vaddr_t begin = VCORE_START_VA; in init_virt_pool() local
413 if (begin + size > ASAN_SHADOW_PA) in init_virt_pool()
414 size = ASAN_MAP_PA - begin; in init_virt_pool()
417 if (!tee_mm_init(virt_pool, begin, size, SMALL_PAGE_SHIFT, in init_virt_pool()
/optee_os/core/arch/arm/mm/
H A Dtee_pager.c1973 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_va_range(begin, end - begin, SMALL_PAGE_SIZE); in tee_pager_release_phys()