Home
last modified time | relevance | path

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

12345678910>>...19

/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/v2/
Dgicv2_main.c35 assert(driver_data); in gicv2_cpuif_enable()
36 assert(driver_data->gicc_base); in gicv2_cpuif_enable()
58 assert(driver_data); in gicv2_cpuif_disable()
59 assert(driver_data->gicc_base); in gicv2_cpuif_disable()
75 assert(driver_data); in gicv2_pcpu_distif_init()
76 assert(driver_data->gicd_base); in gicv2_pcpu_distif_init()
86 assert(driver_data->g0_interrupt_array); in gicv2_pcpu_distif_init()
103 assert(driver_data); in gicv2_distif_init()
104 assert(driver_data->gicd_base); in gicv2_distif_init()
122 assert(driver_data->g0_interrupt_array); in gicv2_distif_init()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/gpio/
Dgpio.c23 assert(ops); in gpio_get_direction()
24 assert(ops->get_direction != 0); in gpio_get_direction()
25 assert(gpio >= 0); in gpio_get_direction()
32 assert(ops); in gpio_set_direction()
33 assert(ops->set_direction != 0); in gpio_set_direction()
34 assert((direction == GPIO_DIR_OUT) || (direction == GPIO_DIR_IN)); in gpio_set_direction()
35 assert(gpio >= 0); in gpio_set_direction()
42 assert(ops); in gpio_get_value()
43 assert(ops->get_value != 0); in gpio_get_value()
44 assert(gpio >= 0); in gpio_get_value()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/v3/
Dgicv3_main.c62 assert(plat_driver_data); in gicv3_driver_init()
63 assert(plat_driver_data->gicd_base); in gicv3_driver_init()
64 assert(plat_driver_data->gicr_base); in gicv3_driver_init()
65 assert(plat_driver_data->rdistif_num); in gicv3_driver_init()
66 assert(plat_driver_data->rdistif_base_addrs); in gicv3_driver_init()
68 assert(IS_IN_EL3()); in gicv3_driver_init()
73 assert(plat_driver_data->interrupt_props_num == 0); in gicv3_driver_init()
79 assert(plat_driver_data->g0_interrupt_array || in gicv3_driver_init()
86 assert(plat_driver_data->g0_interrupt_array ? in gicv3_driver_init()
89 assert(plat_driver_data->g1s_interrupt_array ? in gicv3_driver_init()
[all …]
Darm_gicv3_common.c31 assert(gicv3_driver_data); in arm_gicv3_distif_pre_save()
32 assert(gicv3_driver_data->rdistif_base_addrs); in arm_gicv3_distif_pre_save()
41 assert(gicr_base); in arm_gicv3_distif_pre_save()
42 assert(gicr_read_waker(gicr_base) & WAKER_CA_BIT); in arm_gicv3_distif_pre_save()
43 assert(gicr_read_waker(gicr_base) & WAKER_PS_BIT); in arm_gicv3_distif_pre_save()
75 assert(gicv3_driver_data); in arm_gicv3_distif_post_restore()
76 assert(gicv3_driver_data->rdistif_base_addrs); in arm_gicv3_distif_post_restore()
84 assert(gicr_base); in arm_gicv3_distif_post_restore()
92 assert(gicr_read_waker(gicr_base) & WAKER_QSC_BIT); in arm_gicv3_distif_post_restore()
/device/linaro/bootloader/arm-trusted-firmware/drivers/auth/
Dcrypto_mod.c47 assert(crypto_lib_desc.name != NULL); in crypto_mod_init()
48 assert(crypto_lib_desc.init != NULL); in crypto_mod_init()
49 assert(crypto_lib_desc.verify_signature != NULL); in crypto_mod_init()
50 assert(crypto_lib_desc.verify_hash != NULL); in crypto_mod_init()
72 assert(data_ptr != NULL); in crypto_mod_verify_signature()
73 assert(data_len != 0); in crypto_mod_verify_signature()
74 assert(sig_ptr != NULL); in crypto_mod_verify_signature()
75 assert(sig_len != 0); in crypto_mod_verify_signature()
76 assert(sig_alg_ptr != NULL); in crypto_mod_verify_signature()
77 assert(sig_alg_len != 0); in crypto_mod_verify_signature()
[all …]
Dimg_parser_mod.c27 assert(desc != NULL); in validate_desc()
28 assert(desc->init != NULL); in validate_desc()
29 assert(desc->name != NULL); in validate_desc()
30 assert(desc->check_integrity != NULL); in validate_desc()
31 assert(desc->get_auth_param != NULL); in validate_desc()
47 assert(mod_num > 0); in img_parser_init()
59 assert(parser_lib_indices[parser_lib_descs[index].img_type] == in img_parser_init()
72 assert(img_ptr != NULL); in img_parser_check_integrity()
73 assert(img_len != 0); in img_parser_check_integrity()
82 assert(idx != INVALID_IDX); in img_parser_check_integrity()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/synopsys/ufs/
Ddw_ufs.c22 assert((params != NULL) && (params->reg_base != 0)); in dwufs_phy_init()
65 assert((result == 0) && (data == VS_MPHY_DISABLE_MPHYDIS)); in dwufs_phy_init()
71 assert(result == 0); in dwufs_phy_init()
73 assert(result == 0); in dwufs_phy_init()
86 assert((result == 0) && (data == 0)); in dwufs_phy_init()
101 assert((params != NULL) && (params->reg_base != 0)); in dwufs_phy_set_pwr_mode()
106 assert(result == 0); in dwufs_phy_set_pwr_mode()
109 assert(result == 0); in dwufs_phy_set_pwr_mode()
112 assert(result == 0); in dwufs_phy_set_pwr_mode()
114 assert(result == 0); in dwufs_phy_set_pwr_mode()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/ccn/
Dccn.c33 assert(periphbase); in ccn_reg_read()
34 assert(region_id < REGION_ID_LIMIT); in ccn_reg_read()
53 assert(periphbase); in ccn_reg_write()
54 assert(region_id < REGION_ID_LIMIT); in ccn_reg_write()
115 assert (info); in ccn_get_rn_master_info()
175 assert(plat_desc); in ccn_validate_plat_params()
176 assert(plat_desc->periphbase); in ccn_validate_plat_params()
177 assert(plat_desc->master_to_rn_id_map); in ccn_validate_plat_params()
178 assert(plat_desc->num_masters); in ccn_validate_plat_params()
179 assert(plat_desc->num_masters < CCN_MAX_RN_MASTERS); in ccn_validate_plat_params()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/common/
Dplat_gicv3.c55 assert(IS_IN_EL3()); in plat_ic_get_pending_interrupt_id()
77 assert(IS_IN_EL3()); in plat_ic_get_pending_interrupt_type()
99 assert(IS_IN_EL3()); in plat_ic_acknowledge_interrupt()
109 assert(IS_IN_EL3()); in plat_ic_get_interrupt_type()
120 assert(IS_IN_EL3()); in plat_ic_end_of_interrupt()
135 assert(type == INTR_TYPE_S_EL1 || in plat_interrupt_type_to_line()
139 assert(sec_state_is_valid(security_state)); in plat_interrupt_type_to_line()
140 assert(IS_IN_EL3()); in plat_interrupt_type_to_line()
162 assert(0); in plat_interrupt_type_to_line()
215 assert((type == INTR_TYPE_EL3) || (type == INTR_TYPE_S_EL1) || in plat_ic_has_interrupt_type()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/tzc/
Dtzc_dmc500.c87 assert(g_driver_data); in tzc_dmc500_config_complete()
90 assert(DMC_INST_BASE_ADDR(dmc_inst)); in tzc_dmc500_config_complete()
111 assert(g_driver_data); in tzc_dmc500_verify_complete()
113 assert(g_conf_regions[0].is_enabled); in tzc_dmc500_verify_complete()
121 assert(DMC_INST_BASE_ADDR(dmc_inst)); in tzc_dmc500_verify_complete()
152 assert(g_driver_data); in tzc_dmc500_configure_region0()
156 assert(DMC_INST_BASE_ADDR(dmc_inst)); in tzc_dmc500_configure_region0()
182 assert(g_driver_data); in tzc_dmc500_configure_region()
184 assert(region_no >= 0 && region_no <= MAX_REGION_VAL); in tzc_dmc500_configure_region()
190 assert(((region_top <= _tzc_get_max_top_addr(43)) && in tzc_dmc500_configure_region()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/lib/xlat_tables_v2/aarch64/
Dxlat_tables_arch.c23 assert((max_addr & ADDR_MASK_48_TO_63) == 0); in calc_physical_addr_size_bits()
61 assert(pa_range < ARRAY_SIZE(pa_range_bits_arr)); in xlat_arch_get_max_supported_pa()
70 assert(xlat_arch_current_el() >= 1); in is_mmu_enabled_ctx()
73 assert(ctx->xlat_regime == EL3_REGIME); in is_mmu_enabled_ctx()
74 assert(xlat_arch_current_el() >= 3); in is_mmu_enabled_ctx()
83 assert(IS_IN_EL(1)); in xlat_arch_tlbi_va()
86 assert(IS_IN_EL(3)); in xlat_arch_tlbi_va()
107 assert(xlat_arch_current_el() >= 1); in xlat_arch_tlbi_va_regime()
110 assert(xlat_regime == EL3_REGIME); in xlat_arch_tlbi_va_regime()
111 assert(xlat_arch_current_el() >= 3); in xlat_arch_tlbi_va_regime()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/cci400/
Dcci400.c29 assert(cci_base); in cci_init()
30 assert(slave_iface3_cluster_ix < MAX_CLUSTERS); in cci_init()
31 assert(slave_iface4_cluster_ix < MAX_CLUSTERS); in cci_init()
32 assert(slave_iface3_cluster_ix != slave_iface4_cluster_ix); in cci_init()
33 assert((slave_iface3_cluster_ix >= 0) || in cci_init()
59 assert(cluster_id < MAX_CLUSTERS); in get_slave_iface_base()
60 assert(cci_cluster_ix_to_iface[cluster_id] != 0); in get_slave_iface_base()
67 assert(cci_base_addr); in cci_enable_cluster_coherency()
79 assert(cci_base_addr); in cci_disable_cluster_coherency()
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
Dtspd_common.c30 assert(tsp_ctx); in tspd_init_tsp_ep_state()
31 assert(tsp_entry_point); in tspd_init_tsp_ep_state()
32 assert(pc); in tspd_init_tsp_ep_state()
38 assert(rw == TSP_AARCH64); in tspd_init_tsp_ep_state()
73 assert(tsp_ctx != NULL); in tspd_synchronous_sp_entry()
74 assert(tsp_ctx->c_rt_ctx == 0); in tspd_synchronous_sp_entry()
77 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_entry()
100 assert(tsp_ctx != NULL); in tspd_synchronous_sp_exit()
102 assert(cm_get_context(SECURE) == &tsp_ctx->cpu_ctx); in tspd_synchronous_sp_exit()
105 assert(tsp_ctx->c_rt_ctx != 0); in tspd_synchronous_sp_exit()
[all …]
Dtspd_main.c61 assert(handle == cm_get_context(SECURE)); in tspd_handle_sp_preemption()
65 assert(ns_cpu_context); in tspd_handle_sp_preemption()
102 assert(get_interrupt_src_ss(flags) == NON_SECURE); in tspd_sel1_interrupt_handler()
105 assert(handle == cm_get_context(NON_SECURE)); in tspd_sel1_interrupt_handler()
113 assert(&tsp_ctx->cpu_ctx == cm_get_context(SECURE)); in tspd_sel1_interrupt_handler()
164 assert(get_interrupt_src_ss(flags) == SECURE); in tspd_ns_interrupt_handler()
252 assert(tsp_entry_point); in tspd_init()
261 assert(rc != 0); in tspd_init()
318 assert(handle == cm_get_context(SECURE)); in tspd_smc_handler()
343 assert(ns_cpu_context); in tspd_smc_handler()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/lib/utils/
Dmem_region.c32 assert(tbl); in clear_mem_regions()
33 assert(nregions > 0); in clear_mem_regions()
36 assert(tbl->nbytes > 0); in clear_mem_regions()
37 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in clear_mem_regions()
61 assert(tbl); in mem_region_in_array_chk()
62 assert(nbytes > 0); in mem_region_in_array_chk()
63 assert(!check_uptr_overflow(addr, nbytes-1)); in mem_region_in_array_chk()
68 assert(tbl->nbytes > 0); in mem_region_in_array_chk()
69 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in mem_region_in_array_chk()
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/
Darm_gic.c52 assert(g_gicr_base); in gicv3_cpuif_setup()
93 assert(g_gicr_base); in gicv3_cpuif_deactivate()
122 assert(g_gicc_base); in arm_gic_cpuif_setup()
149 assert(g_gicc_base); in arm_gic_cpuif_deactivate()
174 assert(g_gicd_base); in arm_gic_pcpu_distif_setup()
182 assert(g_irq_sec_ptr); in arm_gic_pcpu_distif_setup()
230 assert(g_gicd_base); in arm_gic_distif_setup()
254 assert(g_irq_sec_ptr); in arm_gic_distif_setup()
288 assert(gicc_base); in arm_gic_init()
289 assert(gicd_base); in arm_gic_init()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/emmc/
Demmc.c38 assert(ret == 0); in emmc_device_state()
39 assert((cmd.resp_data[0] & STATUS_SWITCH_ERROR) == 0); in emmc_device_state()
56 assert(ret == 0); in emmc_set_ext_csd()
74 assert(ret == 0); in emmc_set_ios()
90 assert(ret == 0); in emmc_enumerate()
100 assert(ret == 0); in emmc_enumerate()
111 assert(ret == 0); in emmc_enumerate()
119 assert(ret == 0); in emmc_enumerate()
127 assert(ret == 0); in emmc_enumerate()
136 assert(ret == 0); in emmc_enumerate()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tlkd/
Dtlkd_common.c51 assert(0); in tlkd_va_translate()
85 assert(tlk_ctx); in tlkd_init_tlk_ep_state()
86 assert(tlk_entry_point); in tlkd_init_tlk_ep_state()
87 assert(pc); in tlkd_init_tlk_ep_state()
125 assert(tlk_ctx); in tlkd_synchronous_sp_entry()
126 assert(tlk_ctx->c_rt_ctx == 0); in tlkd_synchronous_sp_entry()
129 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_entry()
152 assert(tlk_ctx); in tlkd_synchronous_sp_exit()
155 assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); in tlkd_synchronous_sp_exit()
158 assert(tlk_ctx->c_rt_ctx != 0); in tlkd_synchronous_sp_exit()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_memmap.c80 assert(dev_info != NULL); in memmap_dev_open()
109 assert(block_spec != NULL); in memmap_block_open()
110 assert(entity != NULL); in memmap_block_open()
135 assert(entity != NULL); in memmap_block_seek()
140 assert((offset >= 0) && (offset < fp->size)); in memmap_block_seek()
154 assert(entity != NULL); in memmap_block_len()
155 assert(length != NULL); in memmap_block_len()
170 assert(entity != NULL); in memmap_block_read()
171 assert(buffer != (uintptr_t)NULL); in memmap_block_read()
172 assert(length_read != NULL); in memmap_block_read()
[all …]
Dio_semihosting.c63 assert(dev_info != NULL); in sh_dev_open()
77 assert(file_spec != NULL); in sh_file_open()
78 assert(entity != NULL); in sh_file_open()
95 assert(entity != NULL); in sh_file_seek()
110 assert(entity != NULL); in sh_file_len()
111 assert(length != NULL); in sh_file_len()
134 assert(entity != NULL); in sh_file_read()
135 assert(buffer != (uintptr_t)NULL); in sh_file_read()
136 assert(length_read != NULL); in sh_file_read()
159 assert(entity != NULL); in sh_file_write()
[all …]
Dio_storage.c77 assert(dev_info != NULL); in dev_open()
78 assert(is_valid_dev_connector(dev_con)); in dev_open()
88 assert(handle != NULL); in set_handle()
112 assert(entity != NULL); in allocate_entity()
117 assert(result == 0); in allocate_entity()
131 assert(entity != NULL); in free_entity()
149 assert(dev_info != NULL); in io_register_device()
166 assert(handle != NULL); in io_dev_open()
178 assert(dev_handle != (uintptr_t)NULL); in io_dev_init()
179 assert(is_valid_dev(dev_handle)); in io_dev_init()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/bl2/
Dbl2_image_load_v2.c35 assert(bl2_load_info); in bl2_load_images()
36 assert(bl2_load_info->head); in bl2_load_images()
37 assert(bl2_load_info->h.type == PARAM_BL_LOAD_INFO); in bl2_load_images()
38 assert(bl2_load_info->h.version >= VERSION_2); in bl2_load_images()
84 assert(bl2_to_next_bl_params); in bl2_load_images()
85 assert(bl2_to_next_bl_params->head); in bl2_load_images()
86 assert(bl2_to_next_bl_params->h.type == PARAM_BL_PARAMS); in bl2_load_images()
87 assert(bl2_to_next_bl_params->h.version >= VERSION_2); in bl2_load_images()
88 assert(bl2_to_next_bl_params->head->ep_info); in bl2_load_images()
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/
Dopteed_common.c28 assert(optee_ctx); in opteed_init_optee_ep_state()
29 assert(optee_entry_point); in opteed_init_optee_ep_state()
30 assert(pc); in opteed_init_optee_ep_state()
72 assert(optee_ctx != NULL); in opteed_synchronous_sp_entry()
73 assert(optee_ctx->c_rt_ctx == 0); in opteed_synchronous_sp_entry()
76 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_entry()
99 assert(optee_ctx != NULL); in opteed_synchronous_sp_exit()
101 assert(cm_get_context(SECURE) == &optee_ctx->cpu_ctx); in opteed_synchronous_sp_exit()
104 assert(optee_ctx->c_rt_ctx != 0); in opteed_synchronous_sp_exit()
108 assert(0); in opteed_synchronous_sp_exit()
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/cci/
Dcci.c107 assert(map); in cci_init()
108 assert(base); in cci_init()
121 assert(cci_num_slave_ports >= 0); in cci_init()
123 assert(validate_cci_map(map)); in cci_init()
130 assert(master_id <= max_master_id); in cci_enable_snoop_dvm_reqs()
131 assert((slave_if_id < cci_num_slave_ports) && (slave_if_id >= 0)); in cci_enable_snoop_dvm_reqs()
132 assert(cci_base); in cci_enable_snoop_dvm_reqs()
151 assert(master_id <= max_master_id); in cci_disable_snoop_dvm_reqs()
152 assert((slave_if_id < cci_num_slave_ports) && (slave_if_id >= 0)); in cci_disable_snoop_dvm_reqs()
153 assert(cci_base); in cci_disable_snoop_dvm_reqs()
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/scmi/
Dscmi_common.c18 assert(ch->lock); in scmi_get_channel()
22 assert(SCMI_IS_CHANNEL_FREE( in scmi_get_channel()
69 assert(SCMI_IS_CHANNEL_FREE( in scmi_put_channel()
72 assert(ch->lock); in scmi_put_channel()
99 assert(mbx_mem->len == SCMI_PROTO_VERSION_RESP_LEN); in scmi_proto_version()
100 assert(token == SCMI_MSG_GET_TOKEN(mbx_mem->msg_header)); in scmi_proto_version()
132 assert(mbx_mem->len == SCMI_PROTO_MSG_ATTR_RESP_LEN); in scmi_proto_msg_attr()
133 assert(token == SCMI_MSG_GET_TOKEN(mbx_mem->msg_header)); in scmi_proto_msg_attr()
149 assert(ch && ch->info); in scmi_init()
150 assert(ch->info->db_reg_addr); in scmi_init()
[all …]

12345678910>>...19