/trusted-firmware-a/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 | 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()
|
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()
|
/trusted-firmware-a/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 …]
|
A D | bl1_main.c | 169 image_desc_t *desc; in bl1_load_bl2() local 174 desc = bl1_plat_get_image_desc(BL2_IMAGE_ID); in bl1_load_bl2() 175 assert(desc != NULL); in bl1_load_bl2() 178 info = &desc->image_info; in bl1_load_bl2()
|
/trusted-firmware-a/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 …]
|
/trusted-firmware-a/lib/xlat_tables_v2/ |
A D | xlat_tables_utils.c | 118 if ((desc & GP) != 0ULL) { in xlat_desc_print() 144 uint64_t desc; in xlat_tables_print_internal() local 159 desc = table_base[table_idx]; in xlat_tables_print_internal() 206 xlat_desc_print(ctx, desc); in xlat_tables_print_internal() 306 desc = table[idx]; in find_xlat_table_entry() 307 desc_type = desc & DESC_MASK; in find_xlat_table_entry() 349 uint64_t desc; in xlat_get_mem_attributes_internal() local 387 desc = *entry; in xlat_get_mem_attributes_internal() 391 xlat_desc_print(ctx, desc); in xlat_get_mem_attributes_internal() 493 uint64_t desc, attr_index; in xlat_change_mem_attributes_ctx() local [all …]
|
A D | xlat_tables_core.c | 110 uint64_t desc; in xlat_desc() local 117 desc = addr_pa; in xlat_desc() 130 desc |= xlat_arch_get_pas(attr); in xlat_desc() 205 desc |= LOWER_ATTRS(NSH); in xlat_desc() 207 desc |= LOWER_ATTRS(OSH); in xlat_desc() 209 desc |= LOWER_ATTRS(ISH); in xlat_desc() 220 desc |= GP; in xlat_desc() 229 return desc; in xlat_desc() 366 uint64_t desc; in xlat_tables_unmap_region() local 382 desc = table_base[table_idx]; in xlat_tables_unmap_region() [all …]
|
/trusted-firmware-a/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"
|
/trusted-firmware-a/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 …]
|
/trusted-firmware-a/drivers/amlogic/crypto/ |
A D | sha_dma.c | 115 struct asd_desc desc = { in asd_compute_sha() local 123 assert((uintptr_t)&desc == (uintptr_t)&desc); in asd_compute_sha() 125 ASD_DESC_LEN_SET(&desc, len); in asd_compute_sha() 126 ASD_DESC_OWNER_SET(&desc, 1u); in asd_compute_sha() 127 ASD_DESC_ENCONLY_SET(&desc, 1); in asd_compute_sha() 128 ASD_DESC_EOD_SET(&desc, 1); in asd_compute_sha() 130 ASD_DESC_BEGIN_SET(&desc, 1); in asd_compute_sha() 134 ASD_DESC_END_SET(&desc, 1); in asd_compute_sha() 138 ASD_DESC_MODE_SET(&desc, ASD_MODE_SHA224); in asd_compute_sha() 140 ASD_DESC_MODE_SET(&desc, ASD_MODE_SHA256); in asd_compute_sha() [all …]
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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,
|
/trusted-firmware-a/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 …]
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/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()
|
/trusted-firmware-a/drivers/synopsys/emmc/ |
A D | dw_mmc.c | 344 struct dw_idmac_desc *desc; in dw_prepare() local 361 desc = (struct dw_idmac_desc *)dw_params.desc_base; in dw_prepare() 371 desc[i].des0 = IDMAC_DES0_OWN | IDMAC_DES0_CH | IDMAC_DES0_DIC; in dw_prepare() 372 desc[i].des1 = IDMAC_DES1_BS1(DWMMC_DMA_MAX_BUFFER_SIZE); in dw_prepare() 373 desc[i].des2 = buf + DWMMC_DMA_MAX_BUFFER_SIZE * i; in dw_prepare() 374 desc[i].des3 = dw_params.desc_base + in dw_prepare() 378 desc->des0 |= IDMAC_DES0_FS; in dw_prepare() 381 (desc + last)->des0 |= IDMAC_DES0_LD; in dw_prepare() 382 (desc + last)->des0 &= ~(IDMAC_DES0_DIC | IDMAC_DES0_CH); in dw_prepare() 383 (desc + last)->des1 = IDMAC_DES1_BS1(size - (last * in dw_prepare() [all …]
|
/trusted-firmware-a/plat/socionext/uniphier/ |
A D | uniphier_image_desc.c | 114 struct bl_mem_params_node *desc; in uniphier_get_image_info() local 116 desc = get_bl_mem_params_node(image_id); in uniphier_get_image_info() 117 assert(desc); in uniphier_get_image_info() 118 return &desc->image_info; in uniphier_get_image_info()
|
/trusted-firmware-a/plat/arm/common/ |
A D | arm_bl1_setup.c | 153 image_desc_t *desc; in arm_bl1_platform_setup() local 201 desc = bl1_plat_get_image_desc(BL2_IMAGE_ID); in arm_bl1_platform_setup() 202 assert(desc != NULL); in arm_bl1_platform_setup() 203 desc->ep_info.args.arg0 = fw_config_info->config_addr; in arm_bl1_platform_setup()
|
/trusted-firmware-a/drivers/st/ddr/ |
A D | stm32mp1_ddr.c | 227 const struct reg_desc *desc; member 235 .desc = ddr_reg, 241 .desc = ddr_timing, 247 .desc = ddr_perf, 253 .desc = ddr_map, 259 .desc = ddrphy_reg, 265 .desc = ddrphy_timing, 271 .desc = ddrphy_cal, 277 .desc = ddr_dyn, 283 .desc = ddrphy_dyn, [all …]
|
/trusted-firmware-a/plat/st/stm32mp1/ |
A D | stm32mp1_usb_dfu.c | 136 static void stm32mp1_get_string(const char *desc, uint8_t *unicode, uint16_t *len) in stm32mp1_get_string() argument 140 if (desc == NULL) { in stm32mp1_get_string() 144 *len = strlen(desc) * 2U + 2U; in stm32mp1_get_string() 148 while (*desc != '\0') { in stm32mp1_get_string() 149 unicode[idx++] = *desc++; in stm32mp1_get_string()
|