Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 87) sorted by relevance

1234

/arm-trusted-firmware-2.8.0/plat/rockchip/common/drivers/parameter/
A Dddr_parameter.c57 memset(&p, 0, sizeof(p)); in ddr_region_usage_parse()
64 return p; in ddr_region_usage_parse()
107 p.s_base[p.s_nr] = 0; in ddr_region_usage_parse()
108 p.s_top[p.s_nr] = p.ns_base[0]; in ddr_region_usage_parse()
109 p.s_nr++; in ddr_region_usage_parse()
120 if (p.ns_top[i] == p.boundary) in ddr_region_usage_parse()
124 p.s_base[p.s_nr] = p.ns_top[i]; in ddr_region_usage_parse()
128 p.s_top[p.s_nr] = p.ns_base[i + 1]; in ddr_region_usage_parse()
130 p.s_top[p.s_nr] = p.boundary; in ddr_region_usage_parse()
131 p.s_nr++; in ddr_region_usage_parse()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/mbedtls/
A Dmbedtls_x509_parser.c85 p = v3_ext.p; in get_ext()
102 extn_oid.p = p; in get_ext()
174 tbs.p = p; in cert_parse()
206 sig_alg1.p = p; in cert_parse()
215 sig_alg1.len = (p + len) - sig_alg1.p; in cert_parse()
254 pk.p = p; in cert_parse()
260 pk.len = (p + len) - pk.p; in cert_parse()
304 v3_ext.p = p; in cert_parse()
310 v3_ext.len = (p + len) - v3_ext.p; in cert_parse()
357 sig_alg2.p = p; in cert_parse()
[all …]
A Dmbedtls_crypto.c86 unsigned char *p, *end; in verify_signature() local
90 p = (unsigned char *)sig_alg; in verify_signature()
105 p = (unsigned char *)pk_ptr; in verify_signature()
114 p = (unsigned char *)sig_ptr; in verify_signature()
116 signature.tag = *p; in verify_signature()
122 signature.p = p; in verify_signature()
130 p = (unsigned char *)data_ptr; in verify_signature()
140 signature.p, signature.len); in verify_signature()
168 unsigned char *p, *end, *hash; in verify_hash() local
175 end = p + digest_info_len; in verify_hash()
[all …]
/arm-trusted-firmware-2.8.0/include/lib/libc/
A Dendian.h90 return ((p[0] << 8) | p[1]); in be16dec()
98 return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]); in be32dec()
106 return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); in be64dec()
114 return ((p[1] << 8) | p[0]); in le16dec()
122 return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]); in le32dec()
130 return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p)); in le64dec()
138 p[0] = (u >> 8) & 0xff; in be16enc()
139 p[1] = u & 0xff; in be16enc()
150 p[3] = u & 0xff; in be32enc()
167 p[0] = u & 0xff; in le16enc()
[all …]
/arm-trusted-firmware-2.8.0/lib/bl_aux_params/
A Dbl_aux_params.c16 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()
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/713/
A Dcryptocell_crypto.c91 uint8_t *p, *end; in verify_signature() local
99 p = sig_alg; in verify_signature()
131 p = pk_ptr; in verify_signature()
132 end = p + pk_len; in verify_signature()
138 end = p + len; in verify_signature()
163 if (*p == 0) { in verify_signature()
164 p++; len--; in verify_signature()
175 p += len; in verify_signature()
184 p = sig_ptr; in verify_signature()
185 end = p + sig_len; in verify_signature()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/712/
A Dcryptocell_crypto.c104 uint8_t *p, *end; in verify_signature() local
110 p = sig_alg; in verify_signature()
141 p = pk_ptr; in verify_signature()
142 end = p + pk_len; in verify_signature()
148 end = p + len; in verify_signature()
172 if (*p == 0) { in verify_signature()
173 p++; len--; in verify_signature()
185 p += len; in verify_signature()
205 p = sig_ptr; in verify_signature()
206 end = p + sig_len; in verify_signature()
[all …]
/arm-trusted-firmware-2.8.0/plat/arm/common/
A Darm_tzc_dmc500.c25 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()
A Darm_tzc400.c27 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()
/arm-trusted-firmware-2.8.0/plat/allwinner/sun50i_a64/include/
A Dsunxi_spc.h12 #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
/arm-trusted-firmware-2.8.0/plat/allwinner/sun50i_h6/include/
A Dsunxi_spc.h12 #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
/arm-trusted-firmware-2.8.0/plat/allwinner/sun50i_h616/include/
A Dsunxi_spc.h12 #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
/arm-trusted-firmware-2.8.0/plat/allwinner/sun50i_r329/include/
A Dsunxi_spc.h13 #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
/arm-trusted-firmware-2.8.0/lib/libc/
A Dstrchr.c41 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()
A Dstrrchr.c36 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()
/arm-trusted-firmware-2.8.0/plat/socionext/uniphier/
A Duniphier_scp.c73 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()
/arm-trusted-firmware-2.8.0/lib/aarch32/
A Darm32_aeabi_divmod.c59 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()
/arm-trusted-firmware-2.8.0/lib/libfdt/
A Dfdt_ro.c111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_()
265 p = fdt_get_alias_namelen(fdt, p, q - p); in fdt_path_offset_namelen()
266 if (!p) in fdt_path_offset_namelen()
270 p = q; in fdt_path_offset_namelen()
277 p++; in fdt_path_offset_namelen()
281 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
285 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset_namelen()
289 p = q; in fdt_path_offset_namelen()
558 p--; in fdt_get_path()
580 p--; in fdt_get_path()
[all …]
A Dfdt_wip.c53 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_()
A Dlibfdt_internal.h58 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_()
A Dfdt.c170 const char *p; in fdt_next_tag() local
184 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
185 } while (p && (*p != '\0')); in fdt_next_tag()
186 if (!can_assume(VALID_DTB) && !p) in fdt_next_tag()
315 const char *p; in fdt_find_string_() local
317 for (p = strtab; p <= last; p++) in fdt_find_string_()
318 if (memcmp(p, s, len) == 0) in fdt_find_string_()
319 return p; in fdt_find_string_()
/arm-trusted-firmware-2.8.0/include/drivers/arm/css/
A Dscmi.h148 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);
/arm-trusted-firmware-2.8.0/tools/cert_create/src/
A Dext.c187 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
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
290 sz = BIO_read(mem, p, 4096); in ext_new_key()
[all …]
/arm-trusted-firmware-2.8.0/plat/st/common/
A Dstm32mp_crypto_lib.c86 unsigned char *p, *end; in get_plain_pk_from_asn1() local
95 p = (unsigned char *)pk_ptr; in get_plain_pk_from_asn1()
104 end = p + *len; in get_plain_pk_from_asn1()
137 *plain_pk = p + 1U; in get_plain_pk_from_asn1()
255 unsigned char *p, *end; in get_plain_digest_from_asn1() local
262 end = p + digest_len; in get_plain_digest_from_asn1()
290 *out = p; in get_plain_digest_from_asn1()
308 unsigned char *p, *end; in crypto_verify_signature() local
321 p = (unsigned char *)sig_alg; in crypto_verify_signature()
442 unsigned char *p; in crypto_verify_hash() local
[all …]
/arm-trusted-firmware-2.8.0/lib/gpt_rme/
A Dgpt_rme.c67 gpt_p_val_e p; member
374 GPT_PGS_ACTUAL_SIZE(gpt_config.p))) { in gpt_validate_l1_params()
513 if (i == GPT_L1_IDX(gpt_config.p, last)) { in gpt_fill_l1_tbl()
543 (GPT_L1_TABLE_SIZE(gpt_config.p) * in gpt_get_new_l1_tbl()
617 GPT_PGS_ACTUAL_SIZE(gpt_config.p); in gpt_generate_l0_tbl_desc()
835 gpt_config.p = gpt_p_lookup[pgs]; in gpt_init_pas_l1_tables()
894 GPT_L1_TABLE_SIZE(gpt_config.p) * in gpt_init_pas_l1_tables()
1099 GPT_PGS_ACTUAL_SIZE(gpt_config.p)); in gpt_delegate_pas()
1111 GPT_PGS_ACTUAL_SIZE(gpt_config.p)); in gpt_delegate_pas()
1229 GPT_PGS_ACTUAL_SIZE(gpt_config.p)); in gpt_undelegate_pas()
[all …]

Completed in 36 milliseconds

1234