Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 9 of 9) sorted by relevance

/optee_os/ldelf/
A Dsys.c39 TEE_Result sys_map_zi(size_t num_bytes, uint32_t flags, vaddr_t *va, in sys_map_zi() argument
42 return _ldelf_map_zi(va, num_bytes, pad_begin, pad_end, flags); in sys_map_zi()
45 TEE_Result sys_unmap(vaddr_t va, size_t num_bytes) in sys_unmap() argument
47 return _ldelf_unmap(va, num_bytes); in sys_unmap()
60 TEE_Result sys_map_ta_bin(vaddr_t *va, size_t num_bytes, uint32_t flags, in sys_map_ta_bin() argument
64 return _ldelf_map_bin(va, num_bytes, handle, offs, in sys_map_ta_bin()
72 return _ldelf_cp_from_bin(dst, offs, num_bytes, handle); in sys_copy_from_ta_bin()
75 TEE_Result sys_set_prot(vaddr_t va, size_t num_bytes, uint32_t flags) in sys_set_prot() argument
77 return _ldelf_set_prot(va, num_bytes, flags); in sys_set_prot()
80 TEE_Result sys_remap(vaddr_t old_va, vaddr_t *new_va, size_t num_bytes, in sys_remap() argument
[all …]
A Dsys.h37 TEE_Result sys_map_zi(size_t num_bytes, uint32_t flags, vaddr_t *va,
39 TEE_Result sys_unmap(vaddr_t va, size_t num_bytes);
42 TEE_Result sys_map_ta_bin(vaddr_t *va, size_t num_bytes, uint32_t flags,
45 TEE_Result sys_copy_from_ta_bin(void *dst, size_t num_bytes, uint32_t handle,
47 TEE_Result sys_set_prot(vaddr_t va, size_t num_bytes, uint32_t flags);
48 TEE_Result sys_remap(vaddr_t old_va, vaddr_t *new_va, size_t num_bytes,
A Dta_elf.c553 size_t num_bytes = seg->filesz; in copy_remapped_to() local
560 num_bytes -= n; in copy_remapped_to()
563 if (num_bytes) { in copy_remapped_to()
680 size_t num_bytes = roundup(seg->memsz); in populate_segments_legacy() local
702 elf->max_addr = va + num_bytes; in populate_segments_legacy()
758 elf->max_addr = va + num_bytes; in populate_segments()
773 size_t num_bytes = 0; in populate_segments() local
791 assert(num_bytes); in populate_segments()
1104 size_t num_bytes = 0; in clean_elf_load_main() local
1111 num_bytes = seg->memsz; in clean_elf_load_main()
[all …]
/optee_os/core/include/kernel/
A Dldelf_syscalls.h22 TEE_Result ldelf_syscall_map_zi(vaddr_t *va, size_t num_bytes, size_t pad_begin,
24 TEE_Result ldelf_syscall_unmap(vaddr_t va, size_t num_bytes);
28 TEE_Result ldelf_syscall_map_bin(vaddr_t *va, size_t num_bytes,
32 TEE_Result ldelf_syscall_copy_from_bin(void *dst, size_t offs, size_t num_bytes,
34 TEE_Result ldelf_syscall_set_prot(unsigned long va, size_t num_bytes,
37 size_t num_bytes, size_t pad_begin,
39 TEE_Result ldelf_syscall_gen_rnd_num(void *buf, size_t num_bytes);
/optee_os/ldelf/include/
A Dldelf_syscalls.h16 TEE_Result _ldelf_map_zi(vaddr_t *va, size_t num_bytes, size_t pad_begin,
18 TEE_Result _ldelf_unmap(vaddr_t va, size_t num_bytes);
22 TEE_Result _ldelf_map_bin(vaddr_t *va, size_t num_bytes, unsigned long handle,
25 TEE_Result _ldelf_cp_from_bin(void *dst, size_t offs, size_t num_bytes,
27 TEE_Result _ldelf_set_prot(unsigned long va, size_t num_bytes,
29 TEE_Result _ldelf_remap(unsigned long old_va, vaddr_t *new_va, size_t num_bytes,
31 TEE_Result _ldelf_gen_rnd_num(void *buf, size_t num_bytes);
/optee_os/core/kernel/
A Dldelf_syscalls.c53 res = vm_map_pad(uctx, va, num_bytes, prot, vm_flags, in ldelf_syscall_map_zi()
65 size_t sz = ROUNDUP(num_bytes, SMALL_PAGE_SIZE); in ldelf_syscall_unmap()
223 size_t offs_bytes, size_t num_bytes) in binh_copy_to() argument
231 if (ADD_OVERFLOW(offs_bytes, num_bytes, &next_offs)) in binh_copy_to()
248 memset((uint8_t *)va + rb, 0, num_bytes - rb); in binh_copy_to()
251 res = binh->op->read(binh->h, (void *)va, num_bytes); in binh_copy_to()
434 (uaddr_t)dst, num_bytes); in ldelf_syscall_copy_from_bin()
454 size_t sz = ROUNDUP(num_bytes, SMALL_PAGE_SIZE); in ldelf_syscall_set_prot()
499 size_t num_bytes, size_t pad_begin, in ldelf_syscall_remap() argument
527 (uaddr_t)buf, num_bytes); in ldelf_syscall_gen_rnd_num()
[all …]
A Dree_fs_ta.c456 size_t num_bytes = 0; in ree_fs_ta_read() local
464 while (num_bytes < len) { in ree_fs_ta_read()
465 size_t n = MIN(b_size, len - num_bytes); in ree_fs_ta_read()
468 src + num_bytes, n); in ree_fs_ta_read()
471 num_bytes += n; in ree_fs_ta_read()
/optee_os/core/pta/
A Dsystem.c132 size_t num_bytes = 0; in system_map_zi() local
143 num_bytes = params[0].value.a; in system_map_zi()
148 f = fobj_ta_mem_alloc(ROUNDUP_DIV(num_bytes, SMALL_PAGE_SIZE)); in system_map_zi()
155 res = vm_map_pad(uctx, &va, num_bytes, prot, vm_flags, in system_map_zi()
/optee_os/core/tee/
A Dtadb.c738 size_t num_bytes = 0; in tee_tadb_ta_read() local
745 while (num_bytes < l) { in tee_tadb_ta_read()
746 size_t n = MIN(b_size, l - num_bytes); in tee_tadb_ta_read()
750 num_bytes, n, b); in tee_tadb_ta_read()
753 num_bytes += n; in tee_tadb_ta_read()

Completed in 13 milliseconds