Home
last modified time | relevance | path

Searched refs:MUL_OVERFLOW (Results 1 – 18 of 18) sorted by relevance

/optee_os-3.20.0/core/pta/tests/
A Dmisc.c147 if (MUL_OVERFLOW(32, 30, &r_u32)) in self_test_mul_unsigned_overflow()
151 if (MUL_OVERFLOW(-32, -30, &r_u32)) in self_test_mul_unsigned_overflow()
156 if (MUL_OVERFLOW(UINTMAX_MAX, 1, &r_um)) in self_test_mul_unsigned_overflow()
179 if (MUL_OVERFLOW(32, -30, &r)) in self_test_mul_signed_overflow()
183 if (MUL_OVERFLOW(-32, 30, &r)) in self_test_mul_signed_overflow()
187 if (MUL_OVERFLOW(32, 30, &r)) in self_test_mul_signed_overflow()
192 if (MUL_OVERFLOW(INTMAX_MAX, 1, &r)) in self_test_mul_signed_overflow()
196 if (MUL_OVERFLOW(INTMAX_MAX / 4, 4, &r)) in self_test_mul_signed_overflow()
204 if (MUL_OVERFLOW(INTMAX_MIN + 1, 1, &r)) in self_test_mul_signed_overflow()
212 if (MUL_OVERFLOW(0, INTMAX_MIN, &r)) in self_test_mul_signed_overflow()
[all …]
/optee_os-3.20.0/core/kernel/
A Dmsg_param.c129 if (MUL_OVERFLOW(num_pages, sizeof(paddr_t), &msize)) in msg_param_mobj_from_noncontig()
/optee_os-3.20.0/core/drivers/
A Dsp805_wdt.c35 if (MUL_OVERFLOW(timeout, pd->clk_rate, &load)) in sp805_setload()
/optee_os-3.20.0/lib/libutils/ext/
A Dmempool.c171 if (MUL_OVERFLOW(nmemb, size, &sz)) in mempool_calloc()
/optee_os-3.20.0/core/mm/
A Dfobj.c153 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_paged_iv_alloc()
266 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in rwp_unpaged_iv_alloc()
759 if (MUL_OVERFLOW(num_pages, SMALL_PAGE_SIZE, &size)) in fobj_sec_mem_alloc()
/optee_os-3.20.0/lib/libutils/ext/include/
A Dutil.h152 #define MUL_OVERFLOW(a, b, res) __compiler_mul_overflow((a), (b), (res)) macro
/optee_os-3.20.0/core/arch/arm/mm/
A Dsp_mem.c39 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in mobj_sp_size()
A Dmobj_dyn_shm.c51 if (MUL_OVERFLOW(sizeof(paddr_t), nr_pages, &s)) in mobj_reg_shm_size()
A Dmobj_ffa.c55 if (MUL_OVERFLOW(sizeof(paddr_t), num_pages, &s)) in shm_size()
/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c172 if (MUL_OVERFLOW(subkey->attr_count, sizeof(*attrs), &end) || in check_attrs()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dthread_spmc.c554 if (MUL_OVERFLOW(sizeof(struct ffa_mem_access), num_mem_accs, &n) || in mem_share_init()
678 if (MUL_OVERFLOW(share.region_count, in add_mem_share()
736 if (MUL_OVERFLOW(page_count, SMALL_PAGE_SIZE, &len)) in handle_mem_share_tmem()
A Dspmc_sp_handler.c312 if (MUL_OVERFLOW(num_mem_accs, sizeof(*mem_acc), &needed_size) || in spmc_sp_add_share()
973 if (MUL_OVERFLOW(args->a2, SMALL_PAGE_SIZE, &region_size)) in handle_mem_perm_set()
A Dstmm_sp.c538 if (!va || !nr_pages || MUL_OVERFLOW(nr_pages, SMALL_PAGE_SIZE, &sz)) in sp_svc_set_mem_attr()
A Dsecure_partition.c713 if (MUL_OVERFLOW(pages_cnt, SMALL_PAGE_SIZE, &size)) in handle_fdt_mem_regions()
/optee_os-3.20.0/ldelf/
A Dta_elf.c261 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz)) in check_hashtab()
289 MUL_OVERFLOW(num_words, sizeof(uint32_t), &sz) || in check_gnu_hashtab()
513 if (MUL_OVERFLOW(elf->e_phnum, elf->e_phentsize, &sz) || in init_elf()
1100 if (MUL_OVERFLOW(elf->e_shnum, elf->e_shentsize, &sz)) in copy_section_headers()
/optee_os-3.20.0/core/tee/
A Dtee_svc_cryp.c1635 if (MUL_OVERFLOW(sizeof(struct utee_attribute), attr_count, &size)) in copy_in_attrs()
1922 if (MUL_OVERFLOW(sizeof(TEE_Attribute), attr_count, &alloc_size)) in syscall_cryp_obj_populate()
2318 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_obj_generate_key()
3383 if (MUL_OVERFLOW(sizeof(TEE_Attribute), param_count, &alloc_size)) in syscall_cryp_derive_key()
3425 if (MUL_OVERFLOW(bin_size, 8, &alloc_size)) { in syscall_cryp_derive_key()
4064 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_operate()
4247 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_verify()
A Dtee_rpmb_fs.c1131 if (MUL_OVERFLOW(dev_info.rpmb_size_mult, in tee_rpmb_init()
/optee_os-3.20.0/lib/libutils/isoc/
A Dbget_malloc.c471 if (MUL_OVERFLOW(pl_nmemb, pl_size, &s)) in raw_calloc()

Completed in 40 milliseconds