/trusted-firmware-a-latest/plat/rockchip/common/drivers/parameter/ |
D | ddr_parameter.c | 55 struct param_ddr_usage p; in ddr_region_usage_parse() local 57 memset(&p, 0, sizeof(p)); in ddr_region_usage_parse() 60 p.ns_nr = mmio_read_32(addr + REGION_NR_OFFSET); in ddr_region_usage_parse() 61 if ((p.ns_nr > DDR_REGION_NR_MAX) || (p.ns_nr == 0)) { in ddr_region_usage_parse() 63 p.ns_nr, DDR_REGION_NR_MAX); in ddr_region_usage_parse() 64 return p; in ddr_region_usage_parse() 68 p.boundary = max_mb; in ddr_region_usage_parse() 72 size_offset = REGION_ADDR_OFFSET + p.ns_nr * REGION_DATA_PER_BYTES; in ddr_region_usage_parse() 75 for (i = 0; i < p.ns_nr; i++) { in ddr_region_usage_parse() 82 p.ns_base[i] = RG_SIZE_MB(base); in ddr_region_usage_parse() [all …]
|
/trusted-firmware-a-latest/drivers/auth/mbedtls/ |
D | mbedtls_x509_parser.c | 76 unsigned char *p; in get_ext() local 81 p = v3_ext.p; in get_ext() 82 end = v3_ext.p + v3_ext.len; in get_ext() 93 ret = mbedtls_asn1_get_tag(&p, end, &len, in get_ext() 99 end_ext_data = p + len; in get_ext() 102 ret = mbedtls_asn1_get_tag(&p, end_ext_data, &extn_oid.len, in get_ext() 108 extn_oid.p = p; in get_ext() 109 p += extn_oid.len; in get_ext() 112 ret = mbedtls_asn1_get_bool(&p, end_ext_data, &is_critical); in get_ext() 121 ret = mbedtls_asn1_get_tag(&p, end_ext_data, &len, in get_ext() [all …]
|
D | mbedtls_crypto.c | 87 unsigned char *p, *end; in verify_signature() local 91 p = (unsigned char *)sig_alg; in verify_signature() 92 end = (unsigned char *)(p + sig_alg_len); in verify_signature() 93 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, &sig_params); in verify_signature() 106 p = (unsigned char *)pk_ptr; in verify_signature() 107 end = (unsigned char *)(p + pk_len); in verify_signature() 108 rc = mbedtls_pk_parse_subpubkey(&p, end, &pk); in verify_signature() 115 p = (unsigned char *)sig_ptr; in verify_signature() 116 end = (unsigned char *)(p + sig_len); in verify_signature() 117 signature.tag = *p; in verify_signature() [all …]
|
D | mbedtls_psa_crypto.c | 312 unsigned char *p, *end; in verify_signature() local 326 p = (unsigned char *)sig_alg; in verify_signature() 327 end = (unsigned char *)(p + sig_alg_len); in verify_signature() 328 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, &sig_params); in verify_signature() 340 p = (unsigned char *)sig_ptr; in verify_signature() 341 end = (unsigned char *)(p + sig_len); in verify_signature() 342 signature.tag = *p; in verify_signature() 343 rc = mbedtls_asn1_get_bitstring_null(&p, end, &signature.len); in verify_signature() 344 if ((rc != 0) || ((size_t)(end - p) != signature.len)) { in verify_signature() 349 local_sig_ptr = p; in verify_signature() [all …]
|
/trusted-firmware-a-latest/include/lib/libc/ |
D | endian.h | 88 uint8_t const *p = (uint8_t const *)pp; in be16dec() local 90 return ((p[0] << 8) | p[1]); in be16dec() 96 uint8_t const *p = (uint8_t const *)pp; in be32dec() local 98 return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]); in be32dec() 104 uint8_t const *p = (uint8_t const *)pp; in be64dec() local 106 return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); in be64dec() 112 uint8_t const *p = (uint8_t const *)pp; in le16dec() local 114 return ((p[1] << 8) | p[0]); in le16dec() 120 uint8_t const *p = (uint8_t const *)pp; in le32dec() local 122 return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]); in le32dec() [all …]
|
/trusted-firmware-a-latest/lib/bl_aux_params/ |
D | bl_aux_params.c | 16 struct bl_aux_param_header *p; in bl_aux_params_parse() local 18 for (p = (void *)head; p; p = (void *)(uintptr_t)p->next) { in bl_aux_params_parse() 19 if (handler && handler(p)) in bl_aux_params_parse() 22 switch (p->type) { in bl_aux_params_parse() 26 ((struct bl_aux_param_uint64 *)p)->value); in bl_aux_params_parse() 31 p->type); in bl_aux_params_parse()
|
/trusted-firmware-a-latest/plat/arm/common/ |
D | arm_tzc_dmc500.c | 25 const arm_tzc_regions_info_t *p; in arm_tzc_dmc500_setup() local 40 p = init_tzc_regions; in arm_tzc_dmc500_setup() 42 p = tzc_regions; in arm_tzc_dmc500_setup() 48 for (; p->base != 0ULL; p++) { in arm_tzc_dmc500_setup() 49 tzc_dmc500_configure_region(region_index, p->base, p->end, in arm_tzc_dmc500_setup() 50 p->sec_attr, p->nsaid_permissions); in arm_tzc_dmc500_setup()
|
D | arm_tzc400.c | 27 const arm_tzc_regions_info_t *p; in arm_tzc400_setup() local 43 p = init_tzc_regions; in arm_tzc400_setup() 45 p = tzc_regions; in arm_tzc400_setup() 51 for (; p->base != 0ULL; p++) { in arm_tzc400_setup() 53 p->base, p->end, p->sec_attr, p->nsaid_permissions); in arm_tzc400_setup()
|
/trusted-firmware-a-latest/plat/allwinner/sun50i_h616/include/ |
D | sunxi_spc.h | 12 #define SUNXI_SPC_DECPORT_STA_REG(p) (SUNXI_SPC_BASE + 0x0000 + 0x10 * (p)) argument 13 #define SUNXI_SPC_DECPORT_SET_REG(p) (SUNXI_SPC_BASE + 0x0004 + 0x10 * (p)) argument 14 #define SUNXI_SPC_DECPORT_CLR_REG(p) (SUNXI_SPC_BASE + 0x0008 + 0x10 * (p)) argument
|
/trusted-firmware-a-latest/plat/allwinner/sun50i_h6/include/ |
D | sunxi_spc.h | 12 #define SUNXI_SPC_DECPORT_STA_REG(p) (SUNXI_SPC_BASE + 0x0000 + 0x10 * (p)) argument 13 #define SUNXI_SPC_DECPORT_SET_REG(p) (SUNXI_SPC_BASE + 0x0004 + 0x10 * (p)) argument 14 #define SUNXI_SPC_DECPORT_CLR_REG(p) (SUNXI_SPC_BASE + 0x0008 + 0x10 * (p)) argument
|
/trusted-firmware-a-latest/plat/allwinner/sun50i_r329/include/ |
D | sunxi_spc.h | 13 #define SUNXI_SPC_DECPORT_STA_REG(p) (SUNXI_SPC_BASE + 0x0000 + 0x10 * (p)) argument 14 #define SUNXI_SPC_DECPORT_SET_REG(p) (SUNXI_SPC_BASE + 0x0004 + 0x10 * (p)) argument 15 #define SUNXI_SPC_DECPORT_CLR_REG(p) (SUNXI_SPC_BASE + 0x0008 + 0x10 * (p)) argument
|
/trusted-firmware-a-latest/plat/allwinner/sun50i_a64/include/ |
D | sunxi_spc.h | 12 #define SUNXI_SPC_DECPORT_STA_REG(p) (SUNXI_SPC_BASE + 0x0004 + 0x0c * (p)) argument 13 #define SUNXI_SPC_DECPORT_SET_REG(p) (SUNXI_SPC_BASE + 0x0008 + 0x0c * (p)) argument 14 #define SUNXI_SPC_DECPORT_CLR_REG(p) (SUNXI_SPC_BASE + 0x000c + 0x0c * (p)) argument
|
/trusted-firmware-a-latest/lib/libc/ |
D | strchr.c | 41 strchr(const char *p, int ch) in strchr() argument 46 for (;; ++p) { in strchr() 47 if (*p == c) in strchr() 48 return ((char *)p); in strchr() 49 if (*p == '\0') in strchr()
|
D | strrchr.c | 36 strrchr(const char *p, int ch) in strrchr() argument 42 for (save = NULL;; ++p) { in strrchr() 43 if (*p == c) in strrchr() 44 save = (char *)p; in strrchr() 45 if (*p == '\0') in strrchr()
|
/trusted-firmware-a-latest/plat/socionext/uniphier/ |
D | uniphier_scp.c | 73 uint8_t *p = packet; in uniphier_scp_send_cmd() local 77 *p++ = UNIPHIER_SCP_PACKET_START; in uniphier_scp_send_cmd() 78 *p++ = cmd_len; in uniphier_scp_send_cmd() 83 *p++ = UNIPHIER_SCP_PACKET_ESC; in uniphier_scp_send_cmd() 84 *p++ = c ^ BIT(7); in uniphier_scp_send_cmd() 86 *p++ = c; in uniphier_scp_send_cmd() 90 *p++ = UNIPHIER_SCP_PACKET_END; in uniphier_scp_send_cmd() 92 uniphier_scp_send_packet(packet, p - packet); in uniphier_scp_send_cmd()
|
/trusted-firmware-a-latest/lib/aarch32/ |
D | arm32_aeabi_divmod.c | 59 static void division_qr(unsigned int n, unsigned int p, struct qr *qr) in division_qr() argument 63 if (p == 0) { in division_qr() 68 while ((p >> 31) == 0) { in division_qr() 70 p = p << 1; /* increase p until it has maximum size*/ in division_qr() 75 if (n >= p) { in division_qr() 76 n -= p; in division_qr() 79 p = p >> 1; /* decrease p */ in division_qr()
|
/trusted-firmware-a-latest/lib/libfdt/ |
D | fdt_ro.c | 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() local 19 if (!p || olen < len) in fdt_nodename_eq_() 23 if (memcmp(p, s, len) != 0) in fdt_nodename_eq_() 26 if (p[len] == '\0') in fdt_nodename_eq_() 28 else if (!memchr(s, '@', len) && (p[len] == '@')) in fdt_nodename_eq_() 109 const char *p = fdt_get_string(fdt, stroffset, &slen); in fdt_string_eq_() local 111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_() 253 const char *p = path; in fdt_path_offset_namelen() local 260 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen() 265 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen() [all …]
|
D | fdt_wip.c | 53 fdt32_t *p; in fdt_nop_region_() local 55 for (p = start; (char *)p < ((char *)start + len); p++) in fdt_nop_region_() 56 *p = cpu_to_fdt32(FDT_NOP); in fdt_nop_region_()
|
D | libfdt_internal.h | 58 static inline uint32_t fdt32_ld_(const fdt32_t *p) in fdt32_ld_() argument 60 return fdt32_to_cpu(*p); in fdt32_ld_() 63 static inline uint64_t fdt64_ld_(const fdt64_t *p) in fdt64_ld_() argument 65 return fdt64_to_cpu(*p); in fdt64_ld_()
|
/trusted-firmware-a-latest/include/drivers/arm/css/ |
D | scmi.h | 148 int scmi_proto_msg_attr(void *p, uint32_t proto_id, uint32_t command_id, 150 int scmi_proto_version(void *p, uint32_t proto_id, uint32_t *version); 156 int scmi_pwr_state_set(void *p, uint32_t domain_id, uint32_t scmi_pwr_state); 157 int scmi_pwr_state_get(void *p, uint32_t domain_id, uint32_t *scmi_pwr_state); 163 int scmi_sys_pwr_state_set(void *p, uint32_t flags, uint32_t system_state); 164 int scmi_sys_pwr_state_get(void *p, uint32_t *system_state); 167 int scmi_ap_core_set_reset_addr(void *p, uint64_t reset_addr, uint32_t attr); 168 int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
|
/trusted-firmware-a-latest/tools/cert_create/src/ |
D | ext.c | 187 unsigned char *p = NULL; in ext_new_hash() local 212 sz = i2d_HASH(hash, &p); in ext_new_hash() 213 if ((sz <= 0) || (p == NULL)) { in ext_new_hash() 219 ex = ext_new(nid, crit, p, sz); in ext_new_hash() 222 OPENSSL_free(p); in ext_new_hash() 244 unsigned char *p = NULL; in ext_new_nvcounter() local 250 sz = i2d_ASN1_INTEGER(counter, &p); in ext_new_nvcounter() 253 ex = ext_new(nid, crit, p, sz); in ext_new_nvcounter() 256 OPENSSL_free(p); in ext_new_nvcounter() 280 unsigned char *p; in ext_new_key() local [all …]
|
/trusted-firmware-a-latest/plat/st/common/ |
D | stm32mp_crypto_lib.c | 87 unsigned char *p, *end; in get_plain_pk_from_asn1() local 96 p = (unsigned char *)pk_ptr; in get_plain_pk_from_asn1() 97 end = (unsigned char *)(p + pk_len); in get_plain_pk_from_asn1() 99 ret = mbedtls_asn1_get_tag(&p, end, len, in get_plain_pk_from_asn1() 105 end = p + *len; in get_plain_pk_from_asn1() 106 ret = mbedtls_asn1_get_alg(&p, end, &alg_oid, &alg_params); in get_plain_pk_from_asn1() 114 (memcmp(MBEDTLS_OID_EC_GRP_SECP256R1, alg_params.p, alg_params.len) == 0)) { in get_plain_pk_from_asn1() 117 (memcmp(OID_EC_GRP_BP256T1, alg_params.p, alg_params.len) == 0)) { in get_plain_pk_from_asn1() 125 ret = mbedtls_asn1_get_bitstring_null(&p, end, len); in get_plain_pk_from_asn1() 132 if ((*len < 1U) || (p[0] != MBEDTLS_ASN1_OCTET_STRING)) { in get_plain_pk_from_asn1() [all …]
|
/trusted-firmware-a-latest/lib/gpt_rme/ |
D | gpt_rme.c | 67 gpt_p_val_e p; member 251 if (!GPT_IS_L1_ALIGNED(gpt_config.p, pas_regions[idx].base_pa) || in gpt_validate_pas_mappings() 252 !GPT_IS_L1_ALIGNED(gpt_config.p, pas_regions[idx].size)) { in gpt_validate_pas_mappings() 374 GPT_PGS_ACTUAL_SIZE(gpt_config.p))) { in gpt_validate_l1_params() 379 if ((l1_mem_base & (GPT_L1_TABLE_SIZE(gpt_config.p) - 1)) != 0U) { in gpt_validate_l1_params() 386 l1_gpt_mem_sz = l1_gpt_cnt * GPT_L1_TABLE_SIZE(gpt_config.p); in gpt_validate_l1_params() 389 if ((l1_gpt_mem_sz / GPT_L1_TABLE_SIZE(gpt_config.p)) != l1_gpt_cnt) { in gpt_validate_l1_params() 501 assert((first & (GPT_PGS_ACTUAL_SIZE(gpt_config.p) - 1)) == 0U); in gpt_fill_l1_tbl() 502 assert((last & (GPT_PGS_ACTUAL_SIZE(gpt_config.p) - 1)) == 0U); in gpt_fill_l1_tbl() 507 gpi_mask = gpi_mask << (GPT_L1_GPI_IDX(gpt_config.p, first) << 2); in gpt_fill_l1_tbl() [all …]
|
/trusted-firmware-a-latest/plat/intel/soc/common/ |
D | socfpga_vab.c | 26 uint8_t *p = img_buf_end - cert_sz - sizeof(uint32_t); in get_img_size() local 29 if (p < img_buf || p > (img_buf_end - VAB_CERT_HEADER_SIZE)) in get_img_size() 32 if (get_unaligned_le32(p) == SDM_CERT_MAGIC_NUM) in get_img_size() 33 return (size_t)(p - img_buf); in get_img_size() 149 static uint32_t get_unaligned_le32(const void *p) in get_unaligned_le32() argument
|
/trusted-firmware-a-latest/lib/zlib/ |
D | tf_gunzip.c | 30 uintptr_t p, p_end; in zcalloc() local 34 p = round_up(zalloc_current, ZALLOC_ALIGNMENT); in zcalloc() 35 p_end = p + size; in zcalloc() 40 memset((void *)p, 0, size); in zcalloc() 44 return (void *)p; in zcalloc()
|