| /optee_os/lib/libmbedtls/core/ |
| H A D | bignum.c | 21 assert(a != NULL); in crypto_bignum_num_bytes() 27 assert(a != NULL); in crypto_bignum_num_bits() 35 assert(a != NULL); in crypto_bignum_compare() 36 assert(b != NULL); in crypto_bignum_compare() 46 assert(from != NULL); in crypto_bignum_bn2bin() 47 assert(to != NULL); in crypto_bignum_bn2bin() 56 assert(from != NULL); in crypto_bignum_bin2bn() 57 assert(to != NULL); in crypto_bignum_bin2bn() 65 assert(from != NULL); in crypto_bignum_copy() 66 assert(to != NULL); in crypto_bignum_copy() [all …]
|
| H A D | aes.c | 19 assert(ctx); in mbedtls_aes_init() 32 assert(ctx && key); in mbedtls_aes_setkey_enc() 49 assert(ctx && key); in mbedtls_aes_setkey_dec()
|
| /optee_os/core/mm/ |
| H A D | fobj.c | 79 assert(!refcount_val(&fobj->refc)); in fobj_uninit() 80 assert(TAILQ_EMPTY(&fobj->regions)); in fobj_uninit() 111 assert(state->iv + 1 > state->iv); in rwp_save_page() 132 assert(rwp_state_base); in idx_to_state_padded() 138 assert(rwp_store_base); in idx_to_store() 177 assert(fobj->ops == &ops_rwp_paged_iv); in to_rwp_paged_iv() 189 assert(refcount_val(&fobj->refc)); in rwp_paged_iv_load_page() 190 assert(page_idx < fobj->num_pages); in rwp_paged_iv_load_page() 203 assert(page_idx < fobj->num_pages); in rwp_paged_iv_save_page() 210 assert(TAILQ_EMPTY(&fobj->regions)); in rwp_paged_iv_save_page() [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | spinlock.h | 25 assert(!have_spinlock()); in assert_have_no_spinlock() 40 assert(thread_foreign_intr_disabled()); in cpu_spin_lock_no_dldetect() 47 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in thread_spin_trylock() 57 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in thread_spin_lock() 63 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in thread_spin_unlock() 77 assert(thread_foreign_intr_disabled()); in cpu_spin_lock_dldetect() 104 assert(thread_foreign_intr_disabled()); in cpu_spin_trylock() 113 assert(thread_foreign_intr_disabled()); in cpu_spin_unlock()
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | sm4_armv8a_neon.c | 17 assert(sk && key); in crypto_accel_sm4_setkey_enc() 28 assert(sk && key); in crypto_accel_sm4_setkey_dec() 40 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_ecb_enc() 52 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_cbc_enc() 64 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_cbc_dec() 76 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_ctr_enc() 88 assert(out && in && key1 && key2 && (len >= 16)); in crypto_accel_sm4_xts_enc() 100 assert(out && in && key1 && key2 && (len >= 16)); in crypto_accel_sm4_xts_dec()
|
| H A D | sm4_armv8a_ce.c | 17 assert(sk && key); in crypto_accel_sm4_setkey_enc() 28 assert(sk && key); in crypto_accel_sm4_setkey_dec() 40 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_ecb_enc() 52 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_cbc_enc() 64 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_cbc_dec() 76 assert(out && in && key && !(len % 16)); in crypto_accel_sm4_ctr_enc() 88 assert(out && in && key1 && key2 && (len >= 16)); in crypto_accel_sm4_xts_enc() 100 assert(out && in && key1 && key2 && (len >= 16)); in crypto_accel_sm4_xts_dec()
|
| H A D | aes_armv8a_ce.c | 162 assert(out && in && key); in crypto_accel_aes_ecb_enc() 175 assert(out && in && key); in crypto_accel_aes_ecb_dec() 188 assert(out && in && key && iv); in crypto_accel_aes_cbc_enc() 201 assert(out && in && key && iv); in crypto_accel_aes_cbc_dec() 214 assert(out && in && key && iv); in crypto_accel_aes_ctr_be_enc() 228 assert(out && in && key1 && key2 && tweak); in crypto_accel_aes_xts_enc() 243 assert(out && in && key1 && key2 && tweak); in crypto_accel_aes_xts_dec()
|
| /optee_os/core/drivers/ |
| H A D | pl061_gpio.c | 50 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_get_direction() 66 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_set_direction() 90 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_get_value() 110 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_set_value() 127 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_get_interrupt() 144 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_set_interrupt() 161 assert(gpio_dev < MAX_GPIO_DEVICES); in pl061_register() 183 assert(pd); in pl061_init() 193 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_get_mode_control() 209 assert(gpio_pin < PLAT_PL061_MAX_GPIOS); in pl061_set_mode_control()
|
| H A D | gic.c | 363 assert(gd->gicd_base); in gic_init_per_cpu() 365 assert(gd->gicd_base && gd->gicc_base); in gic_init_per_cpu() 390 assert(it >= GIC_SGI_SEC_BASE && it <= GIC_SGI_SEC_MAX); in gic_init_donate_sgi_to_ns() 393 assert(!(gd->per_cpu_group_status & BIT32(it)) && in gic_init_donate_sgi_to_ns() 530 assert(cpu_mmu_enabled()); in gic_init_base_addr() 542 assert(vers == 4 || vers == 3); in gic_init_base_addr() 544 assert(vers == 2 || vers == 1); in gic_init_base_addr() 649 assert(gd == &gic_data); in gic_it_configure() 673 assert(gd == &gic_data); in gic_it_set_cpu_mask() 676 assert(!(io_read32(gd->gicd_base + GICD_IGROUPR(idx)) & mask)); in gic_it_set_cpu_mask() [all …]
|
| H A D | ls_gpio.c | 38 assert(gpio_pin <= MAX_GPIO_PINS); in ls_gpio_get_value() 63 assert(gpio_pin <= MAX_GPIO_PINS); in ls_gpio_set_value() 89 assert(gpio_pin <= MAX_GPIO_PINS); in ls_gpio_get_direction() 114 assert(gpio_pin <= MAX_GPIO_PINS); in ls_gpio_set_direction() 138 assert(gpio_pin <= MAX_GPIO_PINS); in gpio_get_interrupt() 163 assert(gpio_pin <= MAX_GPIO_PINS); in gpio_set_interrupt()
|
| H A D | hfic.c | 67 assert(!res || hfic_static_it(it)); in hfic_op_configure() 76 assert(!res || hfic_static_it(it)); in hfic_op_enable() 85 assert(!res || hfic_static_it(it)); in hfic_op_disable() 117 assert(!res); in interrupt_main_handler()
|
| /optee_os/core/drivers/firewall/ |
| H A D | firewall.c | 24 assert(parg->args_count >= 0); in firewall_get() 85 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_set_configuration() 96 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_set_memory_configuration() 106 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_check_access() 116 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_acquire_access() 128 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_check_memory_access() 140 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_acquire_memory_access() 151 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_release_access() 160 assert(fw && fw->ctrl && fw->ctrl->ops); in firewall_release_memory_access() 172 assert(ctrl); in firewall_dt_controller_register()
|
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.c | 643 assert(f2s == poolset->free2_sum - r2 + a2); in update_free2_sum() 644 assert(poolset->free2_sum >= r2); in update_free2_sum() 670 assert(size > 0); 716 assert(b->bh.prevfree == 0); 737 assert(b_next->prevfree == b->bh.bsize); 745 assert(b->ql.blink->ql.flink == b); 746 assert(b->ql.flink->ql.blink == b); 769 assert(b_alloc->bsize < 0); 786 assert(poolset->freelist.ql.blink->ql.flink == 788 assert(poolset->freelist.ql.flink->ql.blink == [all …]
|
| /optee_os/core/arch/arm/plat-rockchip/ |
| H A D | platform_px30.c | 34 assert(rgn <= 7); in platform_secure_ddr_region() 35 assert(st < ed); in platform_secure_ddr_region() 38 assert(st % SIZE_M(1) == 0); in platform_secure_ddr_region() 39 assert(ed % SIZE_M(1) == 0); in platform_secure_ddr_region()
|
| H A D | platform_rk3399.c | 28 assert(rgn <= 7); in platform_secure_ddr_region() 29 assert(st < ed); in platform_secure_ddr_region() 32 assert(st % SIZE_M(1) == 0); in platform_secure_ddr_region() 33 assert(ed % SIZE_M(1) == 0); in platform_secure_ddr_region()
|
| /optee_os/core/kernel/ |
| H A D | asan.c | 102 assert(!asan_va_base); in asan_set_shadowed() 103 assert(va_is_well_aligned(begin)); in asan_set_shadowed() 104 assert(va_is_well_aligned(end)); in asan_set_shadowed() 105 assert(b < e); in asan_set_shadowed() 113 assert(va_is_well_aligned(begin)); in asan_tag_no_access() 114 assert(va_is_well_aligned(end)); in asan_tag_no_access() 115 assert(va_range_inside_shadow(begin, end)); in asan_tag_no_access() 126 assert(va_range_inside_shadow(begin, end)); in asan_tag_access() 127 assert(va_is_well_aligned(begin)); in asan_tag_access() 140 assert(va_range_inside_shadow(begin, end)); in asan_tag_heap_free() [all …]
|
| H A D | mutex.c | 29 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in __mutex_lock() 30 assert(thread_is_in_normal_mode()); in __mutex_lock() 76 assert(thread_is_in_normal_mode()); in __mutex_lock_recursive() 86 assert(m->owner == THREAD_ID_INVALID); in __mutex_lock_recursive() 96 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in __mutex_unlock() 116 assert(m->owner == thread_get_id()); in __mutex_unlock_recursive() 135 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in __mutex_trylock() 157 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in __mutex_read_unlock() 176 assert(thread_get_id_may_fail() != THREAD_ID_INVALID); in __mutex_read_lock() 177 assert(thread_is_in_normal_mode()); in __mutex_read_lock() [all …]
|
| /optee_os/core/drivers/scmi-msg/ |
| H A D | entry.c | 58 assert(msg->out && msg->out_size >= sizeof(int32_t)); in scmi_status_response() 113 assert(!plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_fastcall_smc_entry() 122 assert(!plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_interrupt_entry() 131 assert(plat_scmi_get_channel(channel_id)->threaded); in scmi_smt_threaded_entry() 142 assert(plat_scmi_get_channel(channel_id)->threaded); in scmi_msg_threaded_entry()
|
| /optee_os/core/crypto/ |
| H A D | sm4_accel.c | 28 assert(!(length % 16)); in sm4_crypt_ecb() 36 assert(!(length % 16)); in sm4_crypt_cbc() 48 assert(!(length % 16)); in sm4_crypt_ctr() 57 assert(len >= 16); in sm4_crypt_xts()
|
| /optee_os/core/drivers/rstctrl/ |
| H A D | stm32_rstctrl.c | 40 assert(pdata->get_rstctrl_ops); in find_or_allocate_rstline() 54 assert(rstctrl); in to_stm32_rstline() 65 assert(rstline); in stm32mp_rcc_reset_id_to_rstctrl() 99 assert(info.reg == RCC_BASE && in stm32_rstctrl_provider_probe()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing_digest.c | 72 assert(session->processing->tee_op_handle == TEE_HANDLE_NULL); in allocate_tee_operation() 93 assert(processing_is_tee_digest(proc_params->id)); in init_digest_operation() 153 assert(proc->tee_op_handle != TEE_HANDLE_NULL); in step_digest_operation() 155 assert(processing_is_tee_digest(proc->mecha_type)); in step_digest_operation() 163 assert(obj); in step_digest_operation() 179 assert(!rc && secret_value && secret_value_size); in step_digest_operation()
|
| /optee_os/core/arch/riscv/mm/ |
| H A D | core_mmu_arch.c | 177 assert(!cpu_mmu_enabled()); in core_mmu_pgt_to_satp() 290 assert(core_pos < CFG_TEE_CORE_NB_CORE); in core_mmu_get_root_pgt_va() 325 assert(pgt); in core_mmu_pgt_alloc() 330 assert((vaddr_t)prtn->pool_pgts + in core_mmu_pgt_alloc() 388 assert(core_pos < CFG_TEE_CORE_NB_CORE); in core_mmu_get_vpn2_ta_table() 395 assert(core_pos < CFG_TEE_CORE_NB_CORE); in core_mmu_set_vpn2_ta_table() 409 assert(core_mmu_entry_is_branch(pte)); in core_mmu_get_next_level_pgt() 433 assert(prtn); in core_mmu_entry_copy() 483 assert(user_va_idx != -1); in core_init_mmu_prtn_ta_core() 512 assert(core_mmu_entry_is_branch(pte)); in core_init_mmu_prtn_ta_core() [all …]
|
| /optee_os/core/arch/arm/mm/ |
| H A D | core_mmu.c | 36 assert(granule == CORE_MMU_PGDIR_SIZE || granule == SMALL_PAGE_SIZE); in tlbi_va_range() 37 assert(!(va & (granule - 1)) && !(len & (granule - 1))); in tlbi_va_range() 51 assert(granule == CORE_MMU_PGDIR_SIZE || granule == SMALL_PAGE_SIZE); in tlbi_va_range_asid() 52 assert(!(va & (granule - 1)) && !(len & (granule - 1))); in tlbi_va_range_asid() 180 assert(!(asid & 1)); in asid_free() 185 assert(i < MMU_NUM_ASID_PAIRS && bit_test(g_asid, i)); in asid_free()
|
| /optee_os/core/arch/arm/plat-rcar/ |
| H A D | romapi.c | 66 assert(!cpu_mmu_enabled()); in __plat_romapi_direct() 129 assert(scratch_sz >= 4096); in plat_rom_getrndvector() 130 assert(rndbuff_pa % RCAR_CACHE_LINE_SZ == 0); in plat_rom_getrndvector() 131 assert(scratch_pa % RCAR_CACHE_LINE_SZ == 0); in plat_rom_getrndvector()
|
| /optee_os/core/arch/arm/plat-sunxi/ |
| H A D | psci.c | 80 assert(base); in psci_cpu_on() 81 assert(cpucfg); in psci_cpu_on() 149 assert(base); in psci_cpu_off() 150 assert(cpucfg); in psci_cpu_off()
|