Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
Dtspd_common.c51 assert(tsp_ctx); in tspd_init_tsp_ep_state()
52 assert(tsp_entry_point); in tspd_init_tsp_ep_state()
53 assert(pc); in tspd_init_tsp_ep_state()
59 assert(rw == TSP_AARCH64); in tspd_init_tsp_ep_state()
94 assert(tsp_ctx != NULL); in tspd_synchronous_sp_entry()
95 assert(tsp_ctx->c_rt_ctx == 0); in tspd_synchronous_sp_entry()
98 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry()
121 assert(tsp_ctx != NULL); in tspd_synchronous_sp_exit()
123 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit()
126 assert(tsp_ctx->c_rt_ctx != 0); in tspd_synchronous_sp_exit()
[all …]
Dtspd_main.c78 assert(handle == cm_get_context(SECURE)); in tspd_handle_sp_preemption()
82 assert(ns_cpu_context); in tspd_handle_sp_preemption()
108 assert(get_interrupt_src_ss(flags) == NON_SECURE); in tspd_sel1_interrupt_handler()
112 assert(plat_ic_get_interrupt_type(id) == INTR_TYPE_S_EL1); in tspd_sel1_interrupt_handler()
117 assert(handle == cm_get_context(NON_SECURE)); in tspd_sel1_interrupt_handler()
125 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler()
176 assert(get_interrupt_src_ss(flags) == SECURE); in tspd_ns_interrupt_handler()
180 assert(plat_ic_get_interrupt_type(id) == INTR_TYPE_NS); in tspd_ns_interrupt_handler()
270 assert(tsp_entry_point); in tspd_init()
279 assert(rc != 0); in tspd_init()
[all …]
Dtspd_pm.c59 assert(tsp_vectors); in tspd_cpu_off_handler()
60 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_off_handler()
93 assert(tsp_vectors); in tspd_cpu_suspend_handler()
94 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_cpu_suspend_handler()
125 assert(tsp_vectors); in tspd_cpu_on_finish_handler()
126 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_OFF); in tspd_cpu_on_finish_handler()
170 assert(tsp_vectors); in tspd_cpu_suspend_finish_handler()
171 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_SUSPEND); in tspd_cpu_suspend_finish_handler()
210 assert(tsp_vectors); in tspd_system_off()
211 assert(get_tsp_pstate(tsp_ctx->state) == TSP_PSTATE_ON); in tspd_system_off()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/cci400/
Dcci400.c51 assert(cci_base); in cci_init()
52 assert(slave_iface3_cluster_ix < MAX_CLUSTERS); in cci_init()
53 assert(slave_iface4_cluster_ix < MAX_CLUSTERS); in cci_init()
54 assert(slave_iface3_cluster_ix != slave_iface4_cluster_ix); in cci_init()
55 assert((slave_iface3_cluster_ix >= 0) || in cci_init()
78 assert(cluster_id < MAX_CLUSTERS); in get_slave_iface_base()
79 assert(cci_cluster_ix_to_iface[cluster_id] != 0); in get_slave_iface_base()
86 assert(cci_base_addr); in cci_enable_cluster_coherency()
98 assert(cci_base_addr); in cci_disable_cluster_coherency()
/device/linaro/bootloader/arm-trusted-firmware/common/
Dauth.c40 assert(auth_mod.name); in auth_init()
41 assert(auth_mod.init); in auth_init()
42 assert(auth_mod.verify); in auth_init()
46 assert(0); in auth_init()
56 assert(obj_id < AUTH_NUM_OBJ); in auth_verify_obj()
57 assert(obj_buf != 0); in auth_verify_obj()
58 assert(auth_mod.verify); in auth_verify_obj()
Dbl_common.c64 assert(sec_state_is_valid(target_security_state)); in change_security_state()
96 assert(mem_start <= submem_start); in choose_mem_pos()
97 assert(submem_start <= submem_end); in choose_mem_pos()
98 assert(submem_end <= mem_end); in choose_mem_pos()
99 assert(small_chunk_size != NULL); in choose_mem_pos()
126 assert(free_base != NULL); in reserve_mem()
127 assert(free_size != NULL); in reserve_mem()
128 assert(is_mem_free(*free_base, *free_size, addr, size)); in reserve_mem()
167 assert(image_name != NULL); in image_size()
225 assert(mem_layout != NULL); in load_image()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/
Darm_gic.c76 assert(g_gicr_base); in gicv3_cpuif_setup()
143 assert(g_gicr_base); in gicv3_cpuif_deactivate()
172 assert(g_gicc_base); in arm_gic_cpuif_setup()
199 assert(g_gicc_base); in arm_gic_cpuif_deactivate()
224 assert(g_gicd_base); in arm_gic_pcpu_distif_setup()
235 assert(g_irq_sec_ptr); in arm_gic_pcpu_distif_setup()
270 assert(g_gicd_base); in arm_gic_distif_setup()
294 assert(g_irq_sec_ptr); in arm_gic_distif_setup()
329 assert(gicc_base); in arm_gic_init()
330 assert(gicd_base); in arm_gic_init()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/
Dopteed_common.c51 assert(optee_ctx); in opteed_init_optee_ep_state()
52 assert(optee_entry_point); in opteed_init_optee_ep_state()
53 assert(pc); in opteed_init_optee_ep_state()
94 assert(optee_ctx != NULL); in opteed_synchronous_sp_entry()
95 assert(optee_ctx->c_rt_ctx == 0); in opteed_synchronous_sp_entry()
98 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry()
121 assert(optee_ctx != NULL); in opteed_synchronous_sp_exit()
123 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_exit()
126 assert(optee_ctx->c_rt_ctx != 0); in opteed_synchronous_sp_exit()
130 assert(0); in opteed_synchronous_sp_exit()
Dopteed_pm.c58 assert(optee_vectors); in opteed_cpu_off_handler()
59 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_off_handler()
92 assert(optee_vectors); in opteed_cpu_suspend_handler()
93 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_cpu_suspend_handler()
124 assert(optee_vectors); in opteed_cpu_on_finish_handler()
125 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_OFF); in opteed_cpu_on_finish_handler()
160 assert(optee_vectors); in opteed_cpu_suspend_finish_handler()
161 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_SUSPEND); in opteed_cpu_suspend_finish_handler()
200 assert(optee_vectors); in opteed_system_off()
201 assert(get_optee_pstate(optee_ctx->state) == OPTEE_PSTATE_ON); in opteed_system_off()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_semihosting.c88 assert(dev_info != NULL); in sh_dev_open()
102 assert(file_spec != NULL); in sh_file_open()
103 assert(entity != NULL); in sh_file_open()
123 assert(entity != NULL); in sh_file_seek()
140 assert(entity != NULL); in sh_file_len()
141 assert(length != NULL); in sh_file_len()
164 assert(entity != NULL); in sh_file_read()
165 assert(buffer != (uintptr_t)NULL); in sh_file_read()
166 assert(length_read != NULL); in sh_file_read()
191 assert(entity != NULL); in sh_file_write()
[all …]
Dio_storage.c100 assert(dev_info != NULL); in dev_open()
101 assert(is_valid_dev_connector(dev_con)); in dev_open()
111 assert(handle != NULL); in set_handle()
135 assert(entity != NULL); in allocate_entity()
140 assert(result == IO_SUCCESS); in allocate_entity()
155 assert(entity != NULL); in free_entity()
173 assert(dev_info != NULL); in io_register_device()
192 assert(handle != NULL); in io_dev_open()
204 assert(dev_handle != (uintptr_t)NULL); in io_dev_init()
205 assert(is_valid_dev(dev_handle)); in io_dev_init()
[all …]
Dio_memmap.c101 assert(dev_info != NULL); in memmap_dev_open()
131 assert(block_spec != NULL); in memmap_block_open()
132 assert(entity != NULL); in memmap_block_open()
156 assert(entity != NULL); in memmap_block_seek()
175 assert(entity != NULL); in memmap_block_read()
176 assert(buffer != (uintptr_t)NULL); in memmap_block_read()
177 assert(length_read != NULL); in memmap_block_read()
197 assert(entity != NULL); in memmap_block_write()
198 assert(buffer != (uintptr_t)NULL); in memmap_block_write()
199 assert(length_written != NULL); in memmap_block_write()
[all …]
Dio_block.c116 assert(dev_info != NULL); in blk_dev_open()
153 assert(block_spec != NULL); in block_open()
154 assert(entity != NULL); in block_open()
178 assert(entity != NULL); in block_seek()
198 assert(entity != NULL); in block_read()
199 assert(buffer != (uintptr_t)NULL); in block_read()
200 assert(length_read != NULL); in block_read()
229 assert(entity != NULL); in block_write()
230 assert(buffer != (uintptr_t)NULL); in block_write()
231 assert(length_written != NULL); in block_write()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/
Dbl31_fvp_setup.c101 assert(sec_state_is_valid(type)); in bl31_plat_get_next_image_ep_info()
110 assert(sec_state_is_valid(type)); in bl31_plat_get_next_image_ep_info()
133 assert(sec_state_is_valid(type)); in bl31_plat_get_next_image_image_info()
142 assert(sec_state_is_valid(type)); in bl31_plat_get_next_image_image_info()
180 assert(from_bl2 == NULL); in bl31_early_platform_setup()
181 assert(plat_params_from_bl2 == NULL); in bl31_early_platform_setup()
217 assert(from_bl2 != NULL); in bl31_early_platform_setup()
218 assert(from_bl2->h.type == PARAM_BL31); in bl31_early_platform_setup()
219 assert(from_bl2->h.version >= VERSION_1); in bl31_early_platform_setup()
222 assert(((unsigned long)plat_params_from_bl2) == FVP_BL31_PLAT_PARAM_VAL); in bl31_early_platform_setup()
Dfvp_topology.c83 assert(topology_setup_done == 1); in plat_get_aff_count()
93 assert(parent_aff_id == 0); in plat_get_aff_count()
103 assert(parent_aff_id == 0); in plat_get_aff_count()
116 assert(parent_aff_id < PLATFORM_CLUSTER_COUNT); in plat_get_aff_count()
127 assert(0); in plat_get_aff_count()
153 assert(topology_setup_done == 1); in plat_get_aff_state()
173 assert(0); in plat_get_aff_state()
/device/linaro/bootloader/arm-trusted-firmware/bl31/
Dcontext_mgmt.c74 assert(sec_state_is_valid(security_state)); in cm_get_context_by_mpidr()
85 assert(sec_state_is_valid(security_state)); in cm_set_context_by_mpidr()
107 assert(sp_mode == MODE_SP_EL0); in cm_set_next_context()
143 assert(ctx); in cm_init_context()
225 assert(ctx); in cm_prepare_el3_exit()
277 assert(ctx); in cm_el1_sysregs_context_save()
287 assert(ctx); in cm_el1_sysregs_context_restore()
302 assert(ctx); in cm_set_elr_el3()
320 assert(ctx); in cm_set_elr_spsr_el3()
342 assert(ctx); in cm_write_scr_el3_bit()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/psci/
Dpsci_afflvl_on.c58 assert(psci_state == PSCI_STATE_OFF); in cpu_on_validate_state()
73 assert(cpu_node->level == MPIDR_AFFLVL0); in psci_afflvl0_on()
99 assert(cluster_node->level == MPIDR_AFFLVL1); in psci_afflvl1_on()
131 assert(system_node->level == MPIDR_AFFLVL2); in psci_afflvl2_on()
219 assert(psci_plat_pm_ops->affinst_on && in psci_afflvl_on()
232 assert(rc == PSCI_E_SUCCESS); in psci_afflvl_on()
266 assert(rc == PSCI_E_SUCCESS || rc == PSCI_E_INTERN_FAIL); in psci_afflvl_on()
305 assert(cpu_node->level == MPIDR_AFFLVL0); in psci_afflvl0_on_finish()
309 assert(state == PSCI_STATE_ON_PENDING); in psci_afflvl0_on_finish()
358 assert(cluster_node->level == MPIDR_AFFLVL1); in psci_afflvl1_on_finish()
[all …]
Dpsci_afflvl_suspend.c111 assert(cpu_node->level == MPIDR_AFFLVL0); in psci_afflvl0_suspend()
139 assert(cluster_node->level == MPIDR_AFFLVL1); in psci_afflvl1_suspend()
169 assert(system_node->level == MPIDR_AFFLVL2); in psci_afflvl2_suspend()
263 assert(psci_plat_pm_ops->affinst_suspend && in psci_afflvl_suspend()
275 assert(0); in psci_afflvl_suspend()
317 assert(max_phys_off_afflvl != PSCI_INVALID_DATA); in psci_afflvl_suspend()
361 assert(cpu_node->level == MPIDR_AFFLVL0); in psci_afflvl0_suspend_finish()
365 assert(state == PSCI_STATE_SUSPEND); in psci_afflvl0_suspend_finish()
398 assert (suspend_level != PSCI_INVALID_DATA); in psci_afflvl0_suspend_finish()
420 assert(cluster_node->level == MPIDR_AFFLVL1); in psci_afflvl1_suspend_finish()
[all …]
Dpsci_afflvl_off.c46 assert(cpu_node->level == MPIDR_AFFLVL0); in psci_afflvl0_off()
65 assert(cluster_node->level == MPIDR_AFFLVL1); in psci_afflvl1_off()
85 assert(system_node->level == MPIDR_AFFLVL2); in psci_afflvl2_off()
163 assert(psci_plat_pm_ops->affinst_off); in psci_afflvl_off()
176 assert(rc == PSCI_E_SUCCESS); in psci_afflvl_off()
212 assert(max_phys_off_afflvl != PSCI_INVALID_DATA); in psci_afflvl_off()
/device/linaro/bootloader/arm-trusted-firmware/include/stdlib/
Dassert.h45 #undef assert
49 #define assert(e) ((void)0) macro
52 #define _assert(e) assert(e)
54 #define assert(e) ((e) ? (void)0 : __assert(__func__, __FILE__, \ macro
/device/generic/goldfish-opengl/system/GLESv2_enc/
DGL2EncoderUtils.cpp28 assert (ctx->state() != NULL); in pixelDataSize()
35 assert (ctx->state() != NULL); in pixelDataSize3D()
42 assert (ctx->shared() != NULL); in uniformType()
48 assert (ctx->state() != NULL); in clearBufferNumElts()
54 assert (ctx->state() != NULL); in numActiveUniformsInUniformBlock()
60 assert (ctx->state() != NULL); in glActiveUniformBlockivParamSize()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DMemoryFile.c241 assert (InputMemoryFile != NULL); in CheckMemoryFileState()
245 assert (MemoryFile->FileImage != NULL); in CheckMemoryFileState()
246 assert (MemoryFile->CurrentFilePointer != NULL); in CheckMemoryFileState()
247 assert (MemoryFile->Eof != NULL); in CheckMemoryFileState()
248 assert (MemoryFile->Eof >= MemoryFile->FileImage); in CheckMemoryFileState()
249 assert (MemoryFile->CurrentFilePointer >= MemoryFile->FileImage); in CheckMemoryFileState()
250 assert (MemoryFile->CurrentFilePointer <= MemoryFile->Eof); in CheckMemoryFileState()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dobmalloc.c560 assert(usable_arenas == NULL); in new_arena()
561 assert(unused_arena_objects == NULL); in new_arena()
576 assert(unused_arena_objects != NULL); in new_arena()
579 assert(arenaobj->address == 0); in new_arena()
601 assert(POOL_SIZE * arenaobj->nfreepools == ARENA_SIZE); in new_arena()
787 assert(bp != NULL); in PyObject_Malloc()
832 assert(usable_arenas->address != 0); in PyObject_Malloc()
850 assert(usable_arenas->freepools == NULL); in PyObject_Malloc()
851 assert(usable_arenas->nextarena == NULL || in PyObject_Malloc()
858 assert(usable_arenas->address != 0); in PyObject_Malloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dobmalloc.c595 assert(usable_arenas == NULL); in new_arena()
596 assert(unused_arena_objects == NULL); in new_arena()
611 assert(unused_arena_objects != NULL); in new_arena()
614 assert(arenaobj->address == 0); in new_arena()
644 assert(POOL_SIZE * arenaobj->nfreepools == ARENA_SIZE); in new_arena()
830 assert(bp != NULL); in PyObject_Malloc()
875 assert(usable_arenas->address != 0); in PyObject_Malloc()
893 assert(usable_arenas->freepools == NULL); in PyObject_Malloc()
894 assert(usable_arenas->nextarena == NULL || in PyObject_Malloc()
901 assert(usable_arenas->address != 0); in PyObject_Malloc()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Containers/Queues/
DFifo.c135 assert(Self != NULL); in FIFO_Reduce()
165 assert(Self != NULL); in FIFO_IsEmpty()
184 assert(Self != NULL); in FIFO_IsFull()
221 assert(Self != NULL); in FIFO_Enqueue()
222 assert(pElement != NULL); in FIFO_Enqueue()
284 assert(Self != NULL); in FIFO_Dequeue()
285 assert(pElement != NULL); in FIFO_Dequeue()
373 assert(Self != NULL); in FIFO_GetRDex()
391 assert(Self != NULL); in FIFO_GetWDex()
407 assert(Self != NULL); in FIFO_Delete()
[all …]

12345678910>>...13