/arm-trusted-firmware-2.8.0/drivers/auth/mbedtls/ |
A D | mbedtls_x509_parser.c | 75 size_t len; in get_ext() local 192 p += len; in cert_parse() 201 p += len; in cert_parse() 215 sig_alg1.len = (p + len) - sig_alg1.p; in cert_parse() 216 p += len; in cert_parse() 226 p += len; in cert_parse() 260 pk.len = (p + len) - pk.p; in cert_parse() 310 v3_ext.len = (p + len) - v3_ext.p; in cert_parse() 366 sig_alg2.len = (p + len) - sig_alg2.p; in cert_parse() 370 if (sig_alg1.len != sig_alg2.len) { in cert_parse() [all …]
|
/arm-trusted-firmware-2.8.0/lib/zlib/ |
A D | inftrees.c | 107 for (len = 0; len <= MAXBITS; len++) 108 count[len] = 0; 132 for (len = 1; len <= MAXBITS; len++) { 134 left -= count[len]; 142 for (len = 1; len < MAXBITS; len++) 143 offs[len + 1] = offs[len] + count[len]; 231 incr = 1U << (len - drop); 240 incr = 1U << (len - 1); 252 if (--(count[len]) == 0) { 253 if (len == max) break; [all …]
|
A D | inffast.c | 203 len -= op; 239 while (len > 2) { 243 len -= 3; 245 if (len) { 247 if (len > 1) 257 len -= 3; 259 if (len) { 261 if (len > 1) 293 len = bits >> 3; 294 in -= len; [all …]
|
A D | adler32.c | 66 z_size_t len; 76 if (len == 1) { 91 if (len < 16) { 92 while (len--) { 103 while (len >= NMAX) { 104 len -= NMAX; 116 while (len >= 16) { 117 len -= 16; 121 while (len--) { 134 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument [all …]
|
/arm-trusted-firmware-2.8.0/lib/libfdt/ |
A D | fdt_wip.c | 16 int len) in fdt_setprop_inplace_namelen_partial() argument 26 if ((unsigned)proplen < (len + idx)) in fdt_setprop_inplace_namelen_partial() 29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial() 34 const void *val, int len) in fdt_setprop_inplace() argument 43 if (proplen != len) in fdt_setprop_inplace() 48 val, len); in fdt_setprop_inplace() 51 static void fdt_nop_region_(void *start, int len) in fdt_nop_region_() argument 55 for (p = start; (char *)p < ((char *)start + len); p++) in fdt_nop_region_() 62 int len; in fdt_nop_property() local 66 return len; in fdt_nop_property() [all …]
|
A D | fdt_overlay.c | 31 int len; in overlay_get_target_phandle() local 106 int len; in overlay_phandle_add_offset() local 110 return len; in overlay_phandle_add_offset() 418 int len; in overlay_fixup_phandle() local 426 return len; in overlay_fixup_phandle() 659 if (len == 0) in get_path_len() 660 len++; in get_path_len() 661 return len; in get_path_len() 777 len = ret; in overlay_symbol_update() 783 len + (len > 1) + rel_path_len + 1, &p); in overlay_symbol_update() [all …]
|
A D | fdt_ro.c | 26 if (p[len] == '\0') in fdt_nodename_eq_() 28 else if (!memchr(s, '@', len) && (p[len] == '@')) in fdt_nodename_eq_() 38 size_t len; in fdt_get_string() local 111 return p && (slen == len) && (memcmp(p, s, len) == 0); in fdt_string_eq_() 327 if (len) in fdt_get_name() 333 if (len) in fdt_get_name() 334 *len = err; in fdt_get_name() 511 int len; in fdt_get_phandle() local 660 int len; in fdt_node_offset_by_prop_value() local 827 int len; in fdt_node_check_compatible() local [all …]
|
A D | fdt_rw.c | 132 int len = strlen(s) + 1; in fdt_find_add_string_() local 151 memcpy(new, s, len); in fdt_find_add_string_() 195 FDT_TAGALIGN(len)))) in fdt_resize_property_() 198 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_() 231 (*prop)->len = cpu_to_fdt32(len); in fdt_add_property_() 277 const void *val, int len) in fdt_setprop() argument 286 if (len) in fdt_setprop() 287 memcpy(prop_data, val, len); in fdt_setprop() 301 newlen = len + oldlen; in fdt_appendprop() 321 int len, proplen; in fdt_delprop() local [all …]
|
/arm-trusted-firmware-2.8.0/lib/libc/ |
A D | strnlen.c | 39 size_t len; in strnlen() local 41 for (len = 0; len < maxlen; len++, s++) { in strnlen() 45 return (len); in strnlen()
|
A D | memmove.c | 9 void *memmove(void *dst, const void *src, size_t len) in memmove() argument 19 if ((size_t)dst - (size_t)src >= len) { in memmove() 21 return memcpy(dst, src, len); in memmove() 25 const char *s = (const char *)src + len; in memmove() 26 char *d = (char *)dst + len; in memmove()
|
A D | memrchr.c | 11 void *memrchr(const void *src, int c, size_t len) in memrchr() argument 13 const unsigned char *s = src + (len - 1); in memrchr() 15 while (len--) { in memrchr()
|
/arm-trusted-firmware-2.8.0/plat/mediatek/mt8183/drivers/sspm/ |
A D | sspm.c | 13 static void memcpy_to_sspm(uint32_t dst, uint32_t *src, uint32_t len) in memcpy_to_sspm() argument 15 while (len--) { in memcpy_to_sspm() 22 static void memcpy_from_sspm(uint32_t *dst, uint32_t src, uint32_t len) in memcpy_from_sspm() argument 24 while (len--) { in memcpy_from_sspm() 31 int sspm_mbox_read(uint32_t slot, uint32_t *data, uint32_t len) in sspm_mbox_read() argument 41 len); in sspm_mbox_read() 46 int sspm_mbox_write(uint32_t slot, uint32_t *data, uint32_t len) in sspm_mbox_write() argument 56 len); in sspm_mbox_write() 105 int sspm_ipi_recv_non_blocking(uint32_t id, uint32_t *data, uint32_t len) in sspm_ipi_recv_non_blocking() argument 114 len); in sspm_ipi_recv_non_blocking() [all …]
|
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/713/ |
A D | cryptocell_crypto.c | 90 size_t len; in verify_signature() local 133 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 138 end = p + len; in verify_signature() 149 rc = mbedtls_asn1_get_bitstring_null(&p, end, &len); in verify_signature() 153 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 164 p++; len--; in verify_signature() 166 if (len != BSV_CERT_RSA_KEY_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature() 175 p += len; in verify_signature() 190 if (len != BSV_CERT_RSA_KEY_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature() 227 size_t len; in verify_hash() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/st/common/ |
A D | stm32mp_crypto_lib.c | 91 *len = 0U; in get_plain_pk_from_asn1() 104 end = p + *len; in get_plain_pk_from_asn1() 136 *len = *len - 1U; in get_plain_pk_from_asn1() 228 unsigned int len; in plat_convert_pk() local 254 size_t len; in get_plain_digest_from_asn1() local 291 *out_len = len; in get_plain_digest_from_asn1() 305 size_t len; in crypto_verify_signature() local 444 size_t len; in crypto_verify_hash() local 448 digest_info_len, &p, &len, in crypto_verify_hash() 455 digest_info_len = len; in crypto_verify_hash() [all …]
|
A D | stm32cubeprogrammer_usb.c | 22 size_t len; member 42 dfu->len = 0; \ 55 static int dfu_callback_upload(uint8_t alt, uintptr_t *buffer, uint32_t *len, in dfu_callback_upload() argument 96 *len = length; in dfu_callback_upload() 103 static int dfu_callback_download(uint8_t alt, uintptr_t *buffer, uint32_t *len, in dfu_callback_download() argument 115 VERBOSE("Download %d %lx %x\n", alt, dfu->address, *len); in dfu_callback_download() 117 dfu->address += *len; in dfu_callback_download() 119 if (dfu->address - dfu->base > dfu->len) { in dfu_callback_download() 150 dfu->len = 0; in dfu_callback_manifestation() 168 size_t len) in stm32cubeprog_usb_load() argument [all …]
|
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/712/ |
A D | cryptocell_crypto.c | 103 size_t len; in verify_signature() local 143 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 148 end = p + len; in verify_signature() 159 rc = mbedtls_asn1_get_bitstring_null(&p, end, &len); in verify_signature() 163 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 173 p++; len--; in verify_signature() 175 if (len != RSA_MOD_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature() 185 p += len; in verify_signature() 211 if (len != RSA_MOD_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature() 250 size_t len; in verify_hash() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/marvell/armada/a8k/a80x0_puzzle/board/ |
A D | system_power.c | 39 int i, len; in system_power_off() local 41 len = sizeof(system_off_now); in system_power_off() 42 system_off_now[len - 1] = add_xor_checksum(system_off_now, len); in system_power_off() 48 for (i = 0; i < len; i++) { in system_power_off()
|
/arm-trusted-firmware-2.8.0/tools/amlogic/ |
A D | doimage.c | 25 static inline int fdwrite(int fd, uint8_t *data, size_t len) in fdwrite() argument 31 for (l = 0; l < len; l += nr) { in fdwrite() 32 nr = write(fd, data + l, len - l); in fdwrite() 47 ssize_t len; in main() local 78 while ((len = read(fin, buf, sizeof(buf))) > 0) in main() 79 if (fdwrite(fout, buf, len) < 0) in main() 81 if (len < 0) { in main()
|
/arm-trusted-firmware-2.8.0/include/lib/libc/ |
A D | string.h | 16 void *memcpy(void *dst, const void *src, size_t len); 17 void *memmove(void *dst, const void *src, size_t len); 18 int memcmp(const void *s1, const void *s2, size_t len); 21 void *memchr(const void *src, int c, size_t len); 22 void *memrchr(const void *src, int c, size_t len);
|
/arm-trusted-firmware-2.8.0/drivers/usb/ |
A D | usb_device.c | 65 uint16_t len; in usb_core_get_desc() local 132 len = MIN(len, req->length); in usb_core_get_desc() 530 uint32_t len = 0U; in usb_core_handle_it() local 556 ep->xfer_buff += len; in usb_core_handle_it() 557 ep->xfer_count += len; in usb_core_handle_it() 651 ep->xfer_len = len; in usb_core_receive() 685 ep->xfer_len = len; in usb_core_transmit() 704 uint32_t len) in usb_core_receive_ep0() argument 707 if (len != 0U) { in usb_core_receive_ep0() 729 uint32_t len) in usb_core_transmit_ep0() argument [all …]
|
/arm-trusted-firmware-2.8.0/plat/brcm/board/common/ |
A D | bcm_elog.c | 44 extern void memcpy16(void *dst, const void *src, unsigned int len); 51 uint32_t offset, len; in elog_putchar() local 54 len = mmio_read_32(elog->base + BCM_ELOG_LEN_OFFSET); in elog_putchar() 63 if (len < elog->max_size - BCM_ELOG_HEADER_LEN) in elog_putchar() 64 len++; in elog_putchar() 67 mmio_write_32(elog->base + BCM_ELOG_LEN_OFFSET, len); in elog_putchar() 148 uint32_t offset, len; in bcm_elog_copy_log() local 168 len = mmio_read_32(elog->base + BCM_ELOG_LEN_OFFSET); in bcm_elog_copy_log() 169 if (len > max_size - BCM_ELOG_HEADER_LEN) { in bcm_elog_copy_log() 170 len = max_size - BCM_ELOG_HEADER_LEN; in bcm_elog_copy_log() [all …]
|
/arm-trusted-firmware-2.8.0/lib/psa/ |
A D | measured_boot.c | 17 static void print_byte_array(const uint8_t *array __unused, size_t len __unused) in print_byte_array() 22 if (array == NULL || len == 0U) { in print_byte_array() 25 for (i = 0U; i < len; ++i) { in print_byte_array() 29 if (i < (len - 1U)) { in print_byte_array() 88 .len = sizeof(struct measured_boot_extend_iovec_t)}, in rss_measured_boot_extend_measurement() 89 {.base = signer_id, .len = signer_id_size}, in rss_measured_boot_extend_measurement() 90 {.base = version, .len = version_size}, in rss_measured_boot_extend_measurement() 91 {.base = measurement_value, .len = measurement_value_size} in rss_measured_boot_extend_measurement()
|
/arm-trusted-firmware-2.8.0/include/drivers/nxp/flexspi/ |
A D | fspi_api.h | 37 int xspi_read(uint32_t src_off, uint32_t *des, uint32_t len); 61 int xspi_write(uint32_t dst_off, void *src, uint32_t len); 101 int xspi_ahb_read(uint32_t src_off, uint32_t *des, uint32_t len); 110 int xspi_ip_read(uint32_t src_off, uint32_t *des, uint32_t len);
|
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp/ |
A D | fvp_realm_attest_key.c | 22 int plat_rmmd_get_cca_realm_attest_key(uintptr_t buf, size_t *len, in plat_rmmd_get_cca_realm_attest_key() argument 27 if (*len < sizeof(sample_attest_priv_key)) { in plat_rmmd_get_cca_realm_attest_key() 33 *len = sizeof(sample_attest_priv_key); in plat_rmmd_get_cca_realm_attest_key()
|
/arm-trusted-firmware-2.8.0/lib/fconf/ |
A D | fconf_mpmm_getter.c | 29 int ret, len; in fconf_populate_mpmm_cpu() local 41 fdt_getprop(fdt, off, "supports-mpmm", &len); in fconf_populate_mpmm_cpu() 42 if (len >= 0) { in fconf_populate_mpmm_cpu() 47 ret = len; in fconf_populate_mpmm_cpu()
|