Lines Matching refs:num_bytes
600 size_t num_bytes = seg->filesz; in copy_remapped_to() local
603 n = MIN(elf->max_offs - offs, num_bytes); in copy_remapped_to()
607 num_bytes -= n; in copy_remapped_to()
610 if (num_bytes) { in copy_remapped_to()
611 TEE_Result res = sys_copy_from_ta_bin(dst, num_bytes, in copy_remapped_to()
727 size_t num_bytes = roundup(seg->memsz); in populate_segments_legacy() local
739 res = sys_map_zi(num_bytes, 0, &va, 0, pad_end); in populate_segments_legacy()
749 elf->max_addr = va + num_bytes; in populate_segments_legacy()
794 size_t num_bytes = roundup(seg->vaddr + seg->memsz) - in populate_segments() local
800 res = sys_map_zi(num_bytes, 0, &va, 0, pad_end); in populate_segments()
805 elf->max_addr = va + num_bytes; in populate_segments()
820 size_t num_bytes = 0; in populate_segments() local
835 num_bytes = roundup(vaddr + memsz) - in populate_segments()
838 assert(num_bytes); in populate_segments()
839 res = sys_map_zi(num_bytes, 0, &va, 0, in populate_segments()
843 elf->max_addr = roundup(va + num_bytes); in populate_segments()
1151 size_t num_bytes = 0; in clean_elf_load_main() local
1155 num_bytes = roundup(seg->vaddr + seg->memsz) - in clean_elf_load_main()
1158 num_bytes = seg->memsz; in clean_elf_load_main()
1160 res = sys_unmap(va, num_bytes); in clean_elf_load_main()