/arm-trusted-firmware-2.8.0/drivers/nxp/crypto/caam/src/ |
A D | jobdesc.c | 24 return desc[0] & DESC_LEN_MASK; in desc_length() 34 void desc_init(uint32_t *desc) in desc_init() argument 36 *desc = 0; in desc_init() 45 uint32_t *last = desc + len; in desc_add_word() 49 desc[0] += 1; in desc_add_word() 88 desc_init(desc); in cnstr_rng_jobdesc() 102 desc_init(desc); in cnstr_rng_instantiate_jobdesc() 132 desc_init(desc); in cnstr_hw_encap_blob_jobdesc() 145 desc_add_word(desc, in_sz); in cnstr_hw_encap_blob_jobdesc() 183 desc_init(desc); in cnstr_jobdesc_pkha_rsaexp() [all …]
|
A D | hw_key_blob.c | 23 static void blob_done(uint32_t *desc, uint32_t status, void *arg, in blob_done() argument 42 struct job_descriptor desc __aligned(CACHE_WRITEBACK_GRANULE); in get_hw_unq_key_blob_hw() 43 struct job_descriptor *jobdesc = &desc; in get_hw_unq_key_blob_hw() 64 ret = cnstr_hw_encap_blob_jobdesc(jobdesc->desc, key_data, key_sz, in get_hw_unq_key_blob_hw()
|
A D | rng.c | 21 static void rng_done(uint32_t *desc, uint32_t status, void *arg, in rng_done() argument 100 struct job_descriptor desc __aligned(CACHE_WRITEBACK_GRANULE); in instantiate_rng() 101 struct job_descriptor *jobdesc = &desc; in instantiate_rng() 107 cnstr_rng_instantiate_jobdesc(jobdesc->desc); in instantiate_rng() 133 struct job_descriptor desc __aligned(CACHE_WRITEBACK_GRANULE); in hw_rng_generate() 134 struct job_descriptor *jobdesc = &desc; in hw_rng_generate() 145 ret = cnstr_rng_jobdesc(jobdesc->desc, state_handle, in hw_rng_generate()
|
/arm-trusted-firmware-2.8.0/bl1/ |
A D | bl1_fwu.c | 192 assert ((desc != NULL) && (desc->state != IMAGE_STATE_RESET)); in bl1_fwu_image_check_overlaps() 232 image_desc_t *desc; in bl1_fwu_image_copy() local 236 if (desc == NULL) { in bl1_fwu_image_copy() 352 dest_addr = desc->image_info.image_base + desc->copied_size; in bl1_fwu_image_copy() 375 image_desc_t *desc; in bl1_fwu_image_auth() local 379 if (desc == NULL) in bl1_fwu_image_auth() 518 if ((desc == NULL) || in bl1_fwu_image_execute() 556 image_desc_t *desc; in bl1_fwu_image_resume() local 563 if (desc == NULL) { in bl1_fwu_image_resume() 621 image_desc_t *desc; in bl1_fwu_sec_image_done() local [all …]
|
/arm-trusted-firmware-2.8.0/tools/fiptool/ |
A D | fiptool.c | 142 desc = xzalloc(sizeof(*desc), in new_image_desc() 236 for (desc = image_desc_head; desc != NULL; desc = desc->next) in lookup_image_desc_from_uuid() 246 for (desc = image_desc_head; desc != NULL; desc = desc->next) in lookup_image_desc_from_opt() 443 for (desc = image_desc_head; desc != NULL; desc = desc->next) in fill_common_opts() 477 for (desc = image_desc_head; desc != NULL; desc = desc->next) { in info_cmd() 518 for (desc = image_desc_head; desc != NULL; desc = desc->next) in pack_images() 537 for (desc = image_desc_head; desc != NULL; desc = desc->next) { in pack_images() 570 for (desc = image_desc_head; desc != NULL; desc = desc->next) { in pack_images() 605 for (desc = image_desc_head; desc != NULL; desc = desc->next) { in update_fip() 978 for (desc = image_desc_head; desc != NULL; desc = desc->next) { in unpack_cmd() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/st/regulator/ |
A D | regulator_core.c | 32 rdev->desc->ops->lock(rdev->desc); in lock_driver() 39 rdev->desc->ops->unlock(rdev->desc); in unlock_driver() 125 return rdev->desc->ops->set_state(rdev->desc, state); in __regulator_set_state() 190 ret = rdev->desc->ops->get_state(rdev->desc); in regulator_is_enabled() 226 ret = rdev->desc->ops->set_voltage(rdev->desc, mvolt); in regulator_set_voltage() 268 ret = rdev->desc->ops->get_voltage(rdev->desc); in regulator_get_voltage() 304 ret = rdev->desc->ops->list_voltages(rdev->desc, levels, count); in regulator_list_voltages() 404 ret = rdev->desc->ops->set_flag(rdev->desc, flag); in regulator_set_flag() 518 assert(desc != NULL); in regulator_register() 533 rdev->desc = desc; in regulator_register() [all …]
|
A D | regulator_fixed.c | 25 struct regul_description desc; member 30 static int fixed_set_state(const struct regul_description *desc, bool state) in fixed_set_state() argument 35 static int fixed_get_state(const struct regul_description *desc) in fixed_get_state() argument 70 d->desc.node_name = d->name; in fixed_regulator_register() 71 d->desc.driver_data = d; in fixed_regulator_register() 72 d->desc.ops = &fixed_ops; in fixed_regulator_register() 74 ret = regulator_register(&d->desc, node); in fixed_regulator_register()
|
/arm-trusted-firmware-2.8.0/tools/cert_create/src/tbbr/ |
A D | tbb_key.c | 19 .desc = "Root Of Trust key" 25 .desc = "Trusted World key" 31 .desc = "Non Trusted World key" 37 .desc = "SCP Firmware Content Certificate key" 43 .desc = "SoC Firmware Content Certificate key" 49 .desc = "Trusted OS Firmware Content Certificate key" 55 .desc = "Non Trusted Firmware Content Certificate key"
|
/arm-trusted-firmware-2.8.0/include/drivers/st/ |
A D | regulator.h | 77 int (*set_state)(const struct regul_description *desc, bool state); 78 int (*get_state)(const struct regul_description *desc); 79 int (*set_voltage)(const struct regul_description *desc, uint16_t mv); 80 int (*get_voltage)(const struct regul_description *desc); 81 int (*list_voltages)(const struct regul_description *desc, 83 int (*set_flag)(const struct regul_description *desc, uint16_t flag); 84 void (*lock)(const struct regul_description *desc); 85 void (*unlock)(const struct regul_description *desc); 88 int regulator_register(const struct regul_description *desc, int node); 96 const struct regul_description *desc; member
|
/arm-trusted-firmware-2.8.0/lib/xlat_tables_v2/ |
A D | xlat_tables_utils.c | 119 if ((desc & GP) != 0ULL) { in xlat_desc_print() 145 uint64_t desc; in xlat_tables_print_internal() local 160 desc = table_base[table_idx]; in xlat_tables_print_internal() 207 xlat_desc_print(ctx, desc); in xlat_tables_print_internal() 307 desc = table[idx]; in find_xlat_table_entry() 308 desc_type = desc & DESC_MASK; in find_xlat_table_entry() 350 uint64_t desc; in xlat_get_mem_attributes_internal() local 388 desc = *entry; in xlat_get_mem_attributes_internal() 392 xlat_desc_print(ctx, desc); in xlat_get_mem_attributes_internal() 494 uint64_t desc, attr_index; in xlat_change_mem_attributes_ctx() local [all …]
|
/arm-trusted-firmware-2.8.0/drivers/st/pmic/ |
A D | stm32mp_pmic.c | 384 return stpmic1_regulator_enable(desc->node_name); in pmic_set_state() 386 return stpmic1_regulator_disable(desc->node_name); in pmic_set_state() 392 VERBOSE("%s: get state\n", desc->node_name); in pmic_get_state() 399 VERBOSE("%s: get volt\n", desc->node_name); in pmic_get_voltage() 406 VERBOSE("%s: get volt\n", desc->node_name); in pmic_set_voltage() 414 VERBOSE("%s: list volt\n", desc->node_name); in pmic_list_voltages() 425 return stpmic1_regulator_icc_set(desc->node_name); in pmic_set_flag() 505 const struct regul_description *desc; in register_pmic() local 510 desc = &pmic_regs[i]; in register_pmic() 511 if (strcmp(desc->node_name, reg_name) == 0) { in register_pmic() [all …]
|
/arm-trusted-firmware-2.8.0/common/ |
A D | runtime_svc.c | 61 static int32_t validate_rt_svc_desc(const rt_svc_desc_t *desc) in validate_rt_svc_desc() argument 63 if (desc == NULL) in validate_rt_svc_desc() 66 if (desc->start_oen > desc->end_oen) in validate_rt_svc_desc() 69 if (desc->end_oen >= OEN_LIMIT) in validate_rt_svc_desc() 72 if ((desc->call_type != SMC_TYPE_FAST) && in validate_rt_svc_desc() 73 (desc->call_type != SMC_TYPE_YIELD)) in validate_rt_svc_desc() 77 if ((desc->init == NULL) && (desc->handle == NULL)) in validate_rt_svc_desc()
|
/arm-trusted-firmware-2.8.0/include/drivers/nxp/crypto/caam/ |
A D | jobdesc.h | 35 uint32_t desc_length(uint32_t *desc); 37 int cnstr_rng_jobdesc(uint32_t *desc, uint32_t state_handle, 41 int cnstr_rng_instantiate_jobdesc(uint32_t *desc); 44 int cnstr_hw_encap_blob_jobdesc(uint32_t *desc, 50 void cnstr_hash_jobdesc(uint32_t *desc, uint8_t *msg, uint32_t msgsz, 53 void cnstr_jobdesc_pkha_rsaexp(uint32_t *desc,
|
/arm-trusted-firmware-2.8.0/drivers/amlogic/crypto/ |
A D | sha_dma.c | 116 struct asd_desc desc = { in asd_compute_sha() local 124 assert((uintptr_t)&desc == (uintptr_t)&desc); in asd_compute_sha() 126 ASD_DESC_LEN_SET(&desc, len); in asd_compute_sha() 127 ASD_DESC_OWNER_SET(&desc, 1u); in asd_compute_sha() 128 ASD_DESC_ENCONLY_SET(&desc, 1); in asd_compute_sha() 129 ASD_DESC_EOD_SET(&desc, 1); in asd_compute_sha() 131 ASD_DESC_BEGIN_SET(&desc, 1); in asd_compute_sha() 135 ASD_DESC_END_SET(&desc, 1); in asd_compute_sha() 139 ASD_DESC_MODE_SET(&desc, ASD_MODE_SHA224); in asd_compute_sha() 141 ASD_DESC_MODE_SET(&desc, ASD_MODE_SHA256); in asd_compute_sha() [all …]
|
/arm-trusted-firmware-2.8.0/lib/xlat_tables/ |
A D | xlat_tables_common.c | 192 uint64_t desc; in mmap_desc() local 198 desc = addr_pa; in mmap_desc() 211 desc |= ap1_mask; in mmap_desc() 232 desc |= execute_never_mask; in mmap_desc() 267 return desc; in mmap_desc() 341 uint64_t desc = UNSET_DESC; in init_xlation_table_inner() local 345 desc = INVALID_DESC; in init_xlation_table_inner() 357 desc = INVALID_DESC; in init_xlation_table_inner() 370 desc = mmap_desc(attr, in init_xlation_table_inner() 376 if (desc == UNSET_DESC) { in init_xlation_table_inner() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp_r/ |
A D | fvp_r_bl1_main.c | 60 image_desc_t *desc; in bl1_load_bl33() local 65 desc = bl1_plat_get_image_desc(BL33_IMAGE_ID); in bl1_load_bl33() 66 assert(desc != NULL); in bl1_load_bl33() 69 info = &desc->image_info; in bl1_load_bl33() 121 image_desc_t *desc; in bl1_prepare_next_image() local 137 desc = bl1_plat_get_image_desc(image_id); in bl1_prepare_next_image() 138 assert(desc != NULL); in bl1_prepare_next_image() 141 next_bl_ep = &desc->ep_info; in bl1_prepare_next_image() 157 desc->state = IMAGE_STATE_EXECUTED; in bl1_prepare_next_image()
|
/arm-trusted-firmware-2.8.0/services/std_svc/spm/el3_spmc/ |
A D | spmc_shared_mem.c | 32 struct ffa_mtd desc; member 97 obj->desc = (struct ffa_mtd) {0}; in spmc_shmem_obj_alloc() 148 if (obj->desc.handle == handle) { in spmc_shmem_obj_lookup() 205 (struct ffa_mtd_v1_0 *) desc; in spmc_shmem_obj_get_emad() 213 emad = ((uint8_t *) desc + desc->emad_offset); in spmc_shmem_obj_get_emad() 214 *emad_size = desc->emad_size; in spmc_shmem_obj_get_emad() 689 if (obj->desc.emad_count == 0U) { in spmc_shmem_check_obj() 852 if ((obj->desc.handle != inflight_obj->desc.handle) && in spmc_shmem_check_state_obj() 938 obj->desc.flags |= mtd_flag; in spmc_ffa_fill_desc() 1060 mem_handle = obj->desc.handle; in spmc_ffa_fill_desc() [all …]
|
/arm-trusted-firmware-2.8.0/lib/xlat_tables/aarch32/ |
A D | nonlpae_tables.c | 295 uint32_t desc; in mmap_desc() local 305 desc |= SECTION_ACCESS_FLAG; in mmap_desc() 312 desc |= SECTION_XN; in mmap_desc() 320 desc |= SMALL_PAGE_ACCESS_FLAG; in mmap_desc() 327 desc |= SMALL_PAGE_XN; in mmap_desc() 341 return desc | addr_pa; in mmap_desc() 427 desc = MMU32B_INVALID_DESC; in init_xlation_table_inner() 437 desc = mmap_desc(attr, in init_xlation_table_inner() 443 if (desc == MMU32B_UNSET_DESC) { in init_xlation_table_inner() 458 desc = *table; in init_xlation_table_inner() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/auth/ |
A D | img_parser_mod.c | 24 static void validate_desc(img_parser_lib_desc_t *desc) in validate_desc() argument 26 assert(desc != NULL); in validate_desc() 27 assert(desc->init != NULL); in validate_desc() 28 assert(desc->name != NULL); in validate_desc() 29 assert(desc->check_integrity != NULL); in validate_desc() 30 assert(desc->get_auth_param != NULL); in validate_desc()
|
/arm-trusted-firmware-2.8.0/bl1/aarch64/ |
A D | bl1_context_mgmt.c | 82 image_desc_t *desc; in bl1_prepare_next_image() local 98 desc = bl1_plat_get_image_desc(image_id); in bl1_prepare_next_image() 99 assert(desc != NULL); in bl1_prepare_next_image() 102 next_bl_ep = &desc->ep_info; in bl1_prepare_next_image() 127 desc->state = IMAGE_STATE_EXECUTED; in bl1_prepare_next_image()
|
/arm-trusted-firmware-2.8.0/drivers/st/ddr/ |
A D | stm32mp_ddr.c | 34 const struct stm32mp_ddr_reg_desc *desc = ddr_registers[type].desc; in stm32mp_ddr_set_reg() local 38 uintptr_t ptr = base_addr + desc[i].offset; in stm32mp_ddr_set_reg() 40 if (desc[i].par_offset == INVALID_OFFSET) { in stm32mp_ddr_set_reg() 41 ERROR("invalid parameter offset for %s", desc[i].name); in stm32mp_ddr_set_reg() 45 desc[i].par_offset)); in stm32mp_ddr_set_reg()
|
/arm-trusted-firmware-2.8.0/plat/ti/k3/common/drivers/sec_proxy/ |
A D | sec_proxy.c | 73 const struct k3_sec_proxy_desc desc; member 93 .desc = { 162 (spm.desc.timeout_us * ticks_per_us)) { in k3_sec_proxy_verify_thread() 204 mmio_read_32(spt->data + spm.desc.data_end_offset); in k3_sec_proxy_clear_rx_thread() 231 if (msg->len + sizeof(secure_header) > spm.desc.max_msg_size) { in k3_sec_proxy_send() 241 data_reg = spm.desc.data_start_offset; in k3_sec_proxy_send() 273 while (data_reg <= spm.desc.data_end_offset) { in k3_sec_proxy_send() 304 data_reg = spm.desc.data_start_offset; in k3_sec_proxy_recv() 332 if (data_reg <= spm.desc.data_end_offset) in k3_sec_proxy_recv() 333 mmio_read_32(spt->data + spm.desc.data_end_offset); in k3_sec_proxy_recv()
|
/arm-trusted-firmware-2.8.0/plat/socionext/synquacer/ |
A D | sq_image_desc.c | 71 struct bl_mem_params_node *desc; in REGISTER_BL_IMAGE_DESCS() local 73 desc = get_bl_mem_params_node(image_id); in REGISTER_BL_IMAGE_DESCS() 74 assert(desc); in REGISTER_BL_IMAGE_DESCS() 75 return &desc->image_info; in REGISTER_BL_IMAGE_DESCS()
|
/arm-trusted-firmware-2.8.0/bl1/aarch32/ |
A D | bl1_context_mgmt.c | 106 image_desc_t *desc; in bl1_prepare_next_image() local 110 desc = bl1_plat_get_image_desc(image_id); in bl1_prepare_next_image() 111 assert(desc != NULL); in bl1_prepare_next_image() 114 next_bl_ep = &desc->ep_info; in bl1_prepare_next_image() 169 desc->state = IMAGE_STATE_EXECUTED; in bl1_prepare_next_image()
|
/arm-trusted-firmware-2.8.0/drivers/allwinner/ |
A D | sunxi_rsb.c | 37 static int rsb_wait_bit(const char *desc, unsigned int offset, uint32_t mask) in rsb_wait_bit() argument 45 ERROR("%s: timed out\n", desc); in rsb_wait_bit() 52 static int rsb_wait_stat(const char *desc) in rsb_wait_stat() argument 55 int ret = rsb_wait_bit(desc, RSB_CTRL, BIT(7)); in rsb_wait_stat() 64 ERROR("%s: 0x%x\n", desc, reg); in rsb_wait_stat()
|