Lines Matching refs:sz

226 			size_t sz)  in check_range()  argument
233 if (ADD_OVERFLOW((vaddr_t)ptr, sz, &max_addr)) in check_range()
252 size_t sz = 0; in check_hashtab() local
259 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz)) in check_hashtab()
262 check_range(elf, "DT_HASH", ptr, sz); in check_hashtab()
435 size_t sz = 0; in init_elf() local
466 if (MUL_OVERFLOW(elf->e_phnum, elf->e_phentsize, &sz) || in init_elf()
467 ADD_OVERFLOW(sz, elf->e_phoff, &sz)) in init_elf()
470 if (sz > SMALL_PAGE_SIZE) in init_elf()
953 size_t sz = elf->max_addr - elf->load_addr; in map_segments() local
968 res = sys_remap(elf->load_addr, &va, sz, pad_begin, in map_segments()
971 res = sys_remap(elf->load_addr, &va, sz, 0, in map_segments()
977 elf->max_addr = va + sz; in map_segments()
1050 size_t sz = 0; in copy_section_headers() local
1053 if (MUL_OVERFLOW(elf->e_shnum, elf->e_shentsize, &sz)) in copy_section_headers()
1056 elf->shdr = malloc(sz); in copy_section_headers()
1067 offs = MIN(SMALL_PAGE_SIZE - elf->e_shoff, sz); in copy_section_headers()
1072 if (offs < sz) { in copy_section_headers()
1074 sz - offs, elf->handle, in copy_section_headers()
1310 size_t sz __maybe_unused, uint32_t flags) in print_seg()
1346 idx, width, va, width, pa, sz, flags_str, desc); in print_seg()
1414 size_t sz = 0; in ta_elf_print_mappings() local
1420 sz = roundup(seg->vaddr + seg->memsz) - in ta_elf_print_mappings()
1436 maps[map_idx].sz == SMALL_PAGE_SIZE) { in ta_elf_print_mappings()
1438 maps[map_idx].sz; in ta_elf_print_mappings()
1439 size_t comb_sz = maps[map_idx].sz + in ta_elf_print_mappings()
1440 maps[map_idx + 1].sz; in ta_elf_print_mappings()
1443 comb_sz == sz && in ta_elf_print_mappings()
1451 assert(maps[map_idx].sz == sz); in ta_elf_print_mappings()
1457 maps[map_idx].sz, in ta_elf_print_mappings()
1475 print_seg(pctx, print_func, idx, elf_idx, va, offs, sz, flags); in ta_elf_print_mappings()