Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 166) sorted by relevance

1234567

/trusted-firmware-a/drivers/auth/mbedtls/
A Dmbedtls_x509_parser.c75 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 …]
/trusted-firmware-a/lib/zlib/
A Dinftrees.c107 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 Dinffast.c203 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 Dcrc32.c205 z_size_t len;
228 len -= 8;
230 if (len) do {
240 uInt len;
269 z_size_t len;
278 len--;
288 len -= 4;
292 if (len) do {
309 z_size_t len;
318 len--;
[all …]
A Dadler32.c66 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 …]
A Dzutil.c149 void ZLIB_INTERNAL zmemcpy(dest, source, len) in zmemcpy() argument
152 uInt len;
154 if (len == 0) return;
157 } while (--len != 0);
160 int ZLIB_INTERNAL zmemcmp(s1, s2, len) in zmemcmp() argument
163 uInt len;
167 for (j = 0; j < len; j++) {
173 void ZLIB_INTERNAL zmemzero(dest, len) in zmemzero() argument
175 uInt len;
177 if (len == 0) return;
[all …]
/trusted-firmware-a/lib/libfdt/
A Dfdt_wip.c16 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 Dfdt_overlay.c31 int len; in overlay_get_target_phandle() local
121 int len; in overlay_phandle_add_offset() local
125 return len; in overlay_phandle_add_offset()
433 int len; in overlay_fixup_phandle() local
441 return len; in overlay_fixup_phandle()
674 if (len == 0) in get_path_len()
675 len++; in get_path_len()
676 return len; in get_path_len()
792 len = ret; in overlay_symbol_update()
798 len + (len > 1) + rel_path_len + 1, &p); in overlay_symbol_update()
[all …]
A Dfdt_ro.c26 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 Dfdt_rw.c132 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 …]
A Dfdt_sw.c94 static void *fdt_grab_space_(void *fdt, size_t len) in fdt_grab_space_() argument
102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_()
105 fdt_set_size_dt_struct(fdt, offset + len); in fdt_grab_space_()
254 unsigned int len = strlen(s) + 1; in fdt_add_string_() local
257 offset = strtabsize + len; in fdt_add_string_()
262 memcpy(strtab - offset, s, len); in fdt_add_string_()
263 fdt_set_size_dt_strings(fdt, strtabsize + len); in fdt_add_string_()
271 int len = strlen(s) + 1; in fdt_del_last_string_() local
273 fdt_set_size_dt_strings(fdt, strtabsize - len); in fdt_del_last_string_()
320 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder()
[all …]
/trusted-firmware-a/drivers/auth/cryptocell/713/
A Dcryptocell_crypto.c88 size_t len; in verify_signature() local
131 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature()
136 end = p + len; in verify_signature()
147 rc = mbedtls_asn1_get_bitstring_null(&p, end, &len); in verify_signature()
151 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature()
162 p++; len--; in verify_signature()
164 if (len != BSV_CERT_RSA_KEY_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature()
173 p += len; in verify_signature()
188 if (len != BSV_CERT_RSA_KEY_SIZE_IN_BYTES || ((p + len) > end)) in verify_signature()
225 size_t len; in verify_hash() local
[all …]
/trusted-firmware-a/plat/mediatek/mt8183/drivers/sspm/
A Dsspm.c13 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 …]
/trusted-firmware-a/drivers/auth/cryptocell/712/
A Dcryptocell_crypto.c103 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 …]
/trusted-firmware-a/lib/libc/
A Dstrnlen.c39 size_t len; in strnlen() local
41 for (len = 0; len < maxlen; len++, s++) { in strnlen()
45 return (len); in strnlen()
A Dmemmove.c9 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()
/trusted-firmware-a/drivers/usb/
A Dusb_device.c65 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 …]
/trusted-firmware-a/plat/st/common/
A Dstm32cubeprogrammer_usb.c21 size_t len; member
41 dfu->len = 0; \
54 static int dfu_callback_upload(uint8_t alt, uintptr_t *buffer, uint32_t *len, in dfu_callback_upload() argument
95 *len = length; in dfu_callback_upload()
102 static int dfu_callback_download(uint8_t alt, uintptr_t *buffer, uint32_t *len, in dfu_callback_download() argument
114 VERBOSE("Download %d %lx %x\n", alt, dfu->address, *len); in dfu_callback_download()
116 dfu->address += *len; in dfu_callback_download()
118 if (dfu->address - dfu->base > dfu->len) { in dfu_callback_download()
149 dfu->len = 0; in dfu_callback_manifestation()
167 size_t len) in stm32cubeprog_usb_load() argument
[all …]
/trusted-firmware-a/tools/amlogic/
A Ddoimage.c25 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()
/trusted-firmware-a/plat/marvell/armada/a8k/a80x0_puzzle/board/
A Dsystem_power.c39 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()
/trusted-firmware-a/plat/brcm/board/common/
A Dbcm_elog.c44 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 …]
/trusted-firmware-a/include/lib/libc/
A Dstring.h16 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);
/trusted-firmware-a/plat/amlogic/common/
A Daml_scpi.c168 static inline void aml_scpi_copy_scp_data(uint8_t *data, size_t len) in aml_scpi_copy_scp_data() argument
173 mmio_write_32(AML_MHU_SECURE_AP_TO_SCP_PAYLOAD, len); in aml_scpi_copy_scp_data()
174 aml_scpi_secure_message_send(SCPI_CMD_FW_SIZE, len); in aml_scpi_copy_scp_data()
177 for (sz = 0; sz < len; sz += SIZE_FWBLK) { in aml_scpi_copy_scp_data()
178 memcpy(dst, data + sz, MIN(SIZE_FWBLK, len - sz)); in aml_scpi_copy_scp_data()
183 static inline void aml_scpi_set_scp_addr(uint64_t addr, size_t len) in aml_scpi_set_scp_addr() argument
195 mmio_write_32(AML_MHU_SECURE_AP_TO_SCP_PAYLOAD, len); in aml_scpi_set_scp_addr()
196 aml_scpi_secure_message_send(SCPI_CMD_FW_SIZE, len); in aml_scpi_set_scp_addr()
200 static inline void aml_scpi_send_fw_hash(uint8_t hash[], size_t len) in aml_scpi_send_fw_hash() argument
204 memcpy(dst, hash, len); in aml_scpi_send_fw_hash()
/trusted-firmware-a/drivers/auth/tbbr/
A Dtbbr_cot_bl2.c115 .len = (unsigned int)PK_DER_LEN
122 .len = (unsigned int)PK_DER_LEN
157 .len = (unsigned int)PK_DER_LEN
189 .len = (unsigned int)HASH_DER_LEN
238 .len = (unsigned int)PK_DER_LEN
270 .len = (unsigned int)HASH_DER_LEN
277 .len = (unsigned int)HASH_DER_LEN
341 .len = (unsigned int)PK_DER_LEN
373 .len = (unsigned int)HASH_DER_LEN
380 .len = (unsigned int)HASH_DER_LEN
[all …]
/trusted-firmware-a/drivers/nxp/i2c/
A Di2c.c145 unsigned char *buf, int len) in read_data() argument
153 if (len == 1) { in read_data()
159 for (i = 0; i < len; i++) { in read_data()
165 if (i == (len - 1)) { in read_data()
167 } else if (i == (len - 2)) { in read_data()
183 const unsigned char *buf, int len) in write_data() argument
188 for (i = 0; i < len; i++) { in write_data()
201 unsigned char *buf, int len) in i2c_read() argument
223 return read_data(ccsr_i2c, chip, buf, len); in i2c_read()
227 const unsigned char *buf, int len) in i2c_write() argument
[all …]

Completed in 57 milliseconds

1234567