Searched refs:SUB_OVERFLOW (Results 1 – 13 of 13) sorted by relevance
| /optee_os/core/pta/tests/ |
| H A D | misc.c | 98 if (SUB_OVERFLOW(8U, 1U, &r_s32)) in self_test_sub_overflow() 102 if (SUB_OVERFLOW(32U, 30U, &r_u32)) in self_test_sub_overflow() 106 if (!SUB_OVERFLOW(30U, 31U, &r_u32)) in self_test_sub_overflow() 109 if (SUB_OVERFLOW(30, 31, &r_s32)) in self_test_sub_overflow() 113 if (SUB_OVERFLOW(-1, INT32_MAX, &r_s32)) in self_test_sub_overflow() 117 if (!SUB_OVERFLOW(-2, INT32_MAX, &r_s32)) in self_test_sub_overflow() 120 if (SUB_OVERFLOW((uint32_t)30, (int32_t)-31, &r_s32)) in self_test_sub_overflow() 124 if (SUB_OVERFLOW((int32_t)30, (int32_t)-31, &r_s32)) in self_test_sub_overflow() 128 if (SUB_OVERFLOW((int32_t)-31, (uint32_t)30, &r_s32)) in self_test_sub_overflow() 132 if (SUB_OVERFLOW((int32_t)-31, (int32_t)-30, &r_s32)) in self_test_sub_overflow() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | unwind_arm32.c | 66 if (SUB_OVERFLOW((vaddr_t)__exidx_end, (vaddr_t)__exidx_start, in unw_get_kernel_stack()
|
| /optee_os/core/drivers/rtc/ |
| H A D | rtc.c | 96 if (SUB_OVERFLOW(rtc_time_to_ms(ref1), rtc_time_to_ms(ref2), &res)) { in rtc_diff_calendar_ms()
|
| /optee_os/ldelf/ |
| H A D | ftrace.c | 42 if (SUB_OVERFLOW(finfo->buf_end.ptr64, finfo->buf_start.ptr64, in ftrace_init()
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | util.h | 222 #define SUB_OVERFLOW(a, b, res) __compiler_sub_overflow((a), (b), (res)) macro
|
| /optee_os/ta/trusted_keys/ |
| H A D | entry.c | 131 if (SUB_OVERFLOW(in_sz, sizeof(*hdr), &enc_key_len)) in huk_ae_decrypt()
|
| /optee_os/core/mm/ |
| H A D | boot_mem.c | 70 if (SUB_OVERFLOW(desc->mem_end, len, &va)) in mem_alloc_tmp()
|
| H A D | core_mmu.c | 234 if (SUB_OVERFLOW(len, 1, &end_pa) || ADD_OVERFLOW(pa, end_pa, &end_pa)) in pa_is_in_map() 1325 if (SUB_OVERFLOW(va, map->size, &va)) in assign_mem_va_dir() 1334 if (SUB_OVERFLOW(va, CORE_MMU_PGDIR_SIZE, &va)) in assign_mem_va_dir() 2596 if (SUB_OVERFLOW(len, 1, &end_pa) || ADD_OVERFLOW(pa, end_pa, &end_pa)) in phys_to_virt_tee_ram()
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | ecc.c | 452 if (SUB_OVERFLOW(ciphertext_len, 2 * size_bytes + TEE_SM3_HASH_SIZE, in ecc_sm2_decrypt()
|
| /optee_os/core/drivers/ |
| H A D | stm32_i2c.c | 453 if (SUB_OVERFLOW(sdadel_min, delay, &sdadel_min)) in i2c_compute_timing() 458 if (SUB_OVERFLOW(sdadel_max, delay, &sdadel_max)) in i2c_compute_timing()
|
| /optee_os/core/arch/arm/plat-stm32mp1/ |
| H A D | scmi_server.c | 1046 if (SUB_OVERFLOW(full_count, start_index, &out_count)) in plat_scmi_perf_levels_array()
|
| /optee_os/lib/libutee/ |
| H A D | tee_api_arith_mpi.c | 235 if (SUB_OVERFLOW(0, TEE_U32_FROM_BIG_ENDIAN(v), dest)) in TEE_BigIntConvertToS32()
|
| /optee_os/core/tee/ |
| H A D | tee_rpmb_fs.c | 1125 SUB_OVERFLOW(nblocks, 1, &rpmb_ctx->max_blk_idx)) in rpmb_set_dev_info()
|