Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 189) sorted by relevance

12345678

/u-boot/lib/libavb/
A Davb_hashtree_descriptor.c25 dest->image_size = avb_be64toh(dest->image_size); in avb_hashtree_descriptor_validate_and_byteswap()
26 dest->tree_offset = avb_be64toh(dest->tree_offset); in avb_hashtree_descriptor_validate_and_byteswap()
27 dest->tree_size = avb_be64toh(dest->tree_size); in avb_hashtree_descriptor_validate_and_byteswap()
28 dest->data_block_size = avb_be32toh(dest->data_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
29 dest->hash_block_size = avb_be32toh(dest->hash_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
30 dest->fec_num_roots = avb_be32toh(dest->fec_num_roots); in avb_hashtree_descriptor_validate_and_byteswap()
31 dest->fec_offset = avb_be64toh(dest->fec_offset); in avb_hashtree_descriptor_validate_and_byteswap()
32 dest->fec_size = avb_be64toh(dest->fec_size); in avb_hashtree_descriptor_validate_and_byteswap()
34 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hashtree_descriptor_validate_and_byteswap()
35 dest->root_digest_len = avb_be32toh(dest->root_digest_len); in avb_hashtree_descriptor_validate_and_byteswap()
[all …]
A Davb_hash_descriptor.c13 avb_memcpy(dest, src, sizeof(AvbHashDescriptor)); in avb_hash_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_hash_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_HASH) { in avb_hash_descriptor_validate_and_byteswap()
24 dest->image_size = avb_be64toh(dest->image_size); in avb_hash_descriptor_validate_and_byteswap()
25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap()
26 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hash_descriptor_validate_and_byteswap()
27 dest->digest_len = avb_be32toh(dest->digest_len); in avb_hash_descriptor_validate_and_byteswap()
28 dest->flags = avb_be32toh(dest->flags); in avb_hash_descriptor_validate_and_byteswap()
32 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
33 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
[all …]
A Davb_footer.c9 bool avb_footer_validate_and_byteswap(const AvbFooter* src, AvbFooter* dest) { in avb_footer_validate_and_byteswap() argument
10 avb_memcpy(dest, src, sizeof(AvbFooter)); in avb_footer_validate_and_byteswap()
12 dest->version_major = avb_be32toh(dest->version_major); in avb_footer_validate_and_byteswap()
13 dest->version_minor = avb_be32toh(dest->version_minor); in avb_footer_validate_and_byteswap()
15 dest->original_image_size = avb_be64toh(dest->original_image_size); in avb_footer_validate_and_byteswap()
16 dest->vbmeta_offset = avb_be64toh(dest->vbmeta_offset); in avb_footer_validate_and_byteswap()
17 dest->vbmeta_size = avb_be64toh(dest->vbmeta_size); in avb_footer_validate_and_byteswap()
20 if (avb_safe_memcmp(dest->magic, AVB_FOOTER_MAGIC, AVB_FOOTER_MAGIC_LEN) != in avb_footer_validate_and_byteswap()
29 if (dest->version_major > AVB_FOOTER_VERSION_MAJOR) { in avb_footer_validate_and_byteswap()
A Davb_chain_partition_descriptor.c10 const AvbChainPartitionDescriptor* src, AvbChainPartitionDescriptor* dest) { in avb_chain_partition_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbChainPartitionDescriptor)); in avb_chain_partition_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_chain_partition_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_CHAIN_PARTITION) { in avb_chain_partition_descriptor_validate_and_byteswap()
24 dest->rollback_index_location = avb_be32toh(dest->rollback_index_location); in avb_chain_partition_descriptor_validate_and_byteswap()
25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap()
26 dest->public_key_len = avb_be32toh(dest->public_key_len); in avb_chain_partition_descriptor_validate_and_byteswap()
28 if (dest->rollback_index_location < 1) { in avb_chain_partition_descriptor_validate_and_byteswap()
35 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
36 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
[all …]
A Davb_vbmeta_image.c237 dest->algorithm_type = avb_be32toh(dest->algorithm_type); in avb_vbmeta_image_header_to_host_byte_order()
239 dest->hash_offset = avb_be64toh(dest->hash_offset); in avb_vbmeta_image_header_to_host_byte_order()
240 dest->hash_size = avb_be64toh(dest->hash_size); in avb_vbmeta_image_header_to_host_byte_order()
242 dest->signature_offset = avb_be64toh(dest->signature_offset); in avb_vbmeta_image_header_to_host_byte_order()
243 dest->signature_size = avb_be64toh(dest->signature_size); in avb_vbmeta_image_header_to_host_byte_order()
245 dest->public_key_offset = avb_be64toh(dest->public_key_offset); in avb_vbmeta_image_header_to_host_byte_order()
246 dest->public_key_size = avb_be64toh(dest->public_key_size); in avb_vbmeta_image_header_to_host_byte_order()
252 dest->descriptors_offset = avb_be64toh(dest->descriptors_offset); in avb_vbmeta_image_header_to_host_byte_order()
253 dest->descriptors_size = avb_be64toh(dest->descriptors_size); in avb_vbmeta_image_header_to_host_byte_order()
255 dest->rollback_index = avb_be64toh(dest->rollback_index); in avb_vbmeta_image_header_to_host_byte_order()
[all …]
A Davb_kernel_cmdline_descriptor.c10 const AvbKernelCmdlineDescriptor* src, AvbKernelCmdlineDescriptor* dest) { in avb_kernel_cmdline_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbKernelCmdlineDescriptor)); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_kernel_cmdline_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_KERNEL_CMDLINE) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
24 dest->flags = avb_be32toh(dest->flags); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
25 dest->kernel_cmdline_length = avb_be32toh(dest->kernel_cmdline_length); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
33 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
A Davb_property_descriptor.c10 const AvbPropertyDescriptor* src, AvbPropertyDescriptor* dest) { in avb_property_descriptor_validate_and_byteswap() argument
13 avb_memcpy(dest, src, sizeof(AvbPropertyDescriptor)); in avb_property_descriptor_validate_and_byteswap()
16 (AvbDescriptor*)dest)) in avb_property_descriptor_validate_and_byteswap()
19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_PROPERTY) { in avb_property_descriptor_validate_and_byteswap()
24 dest->key_num_bytes = avb_be64toh(dest->key_num_bytes); in avb_property_descriptor_validate_and_byteswap()
25 dest->value_num_bytes = avb_be64toh(dest->value_num_bytes); in avb_property_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
30 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
34 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
A Davb_crypto.c346 const AvbRSAPublicKeyHeader* src, AvbRSAPublicKeyHeader* dest) { in avb_rsa_public_key_header_validate_and_byteswap() argument
347 avb_memcpy(dest, src, sizeof(AvbRSAPublicKeyHeader)); in avb_rsa_public_key_header_validate_and_byteswap()
349 dest->key_num_bits = avb_be32toh(dest->key_num_bits); in avb_rsa_public_key_header_validate_and_byteswap()
350 dest->n0inv = avb_be32toh(dest->n0inv); in avb_rsa_public_key_header_validate_and_byteswap()
/u-boot/arch/arm/mach-imx/
A Dcmd_bmode.c41 if (dest) { in create_usage()
42 memcpy(dest, p->name, len); in create_usage()
43 dest += len; in create_usage()
44 *dest++ = '|'; in create_usage()
51 if (dest) in create_usage()
55 if (dest) in create_usage()
100 char *dest; in add_board_boot_modes() local
112 dest = malloc(size); in add_board_boot_modes()
113 if (dest) { in add_board_boot_modes()
114 create_usage(dest); in add_board_boot_modes()
[all …]
/u-boot/lib/
A Dstring.c76 char *tmp = dest; in strcpy()
97 char *tmp = dest; in strncpy()
141 while (*dest) in strcat()
142 dest++; in strcat()
165 while (*dest) in strncat()
166 dest++; in strncat()
169 *dest = '\0'; in strncat()
538 return dest; in memcpy()
553 return dest; in memcpy()
570 if (dest <= src || (src + count) <= dest) { in memmove()
[all …]
A Dcharset.c404 u16 *tmp = dest; in u16_strcpy()
406 for (;; dest++, src++) { in u16_strcpy()
407 *dest = *src; in u16_strcpy()
444 *dest++ = (code >> 18) | 0xF0; in utf16_to_utf8()
450 *dest++ = '?'; in utf16_to_utf8()
458 *dest++ = code; in utf16_to_utf8()
460 *dest++ = (code >> 6) | 0xC0; in utf16_to_utf8()
467 *dest++ = '?'; in utf16_to_utf8()
469 *dest++ = (code >> 12) | 0xE0; in utf16_to_utf8()
473 *dest++ = (code >> 18) | 0xF0; in utf16_to_utf8()
[all …]
/u-boot/tools/buildman/
A Dcmdline.py20 parser.add_option('-B', '--bloat', dest='show_bloat',
25 parser.add_option('-c', '--count', dest='count', type='int',
27 parser.add_option('-C', '--force-reconfig', dest='force_reconfig',
30 parser.add_option('-d', '--detail', dest='show_detail',
39 parser.add_option('-f', '--force-build', dest='force_build',
55 parser.add_option('-i', '--in-tree', dest='in_tree',
61 parser.add_option('-j', '--jobs', dest='jobs', type='int',
75 parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
79 parser.add_option('-o', '--output-dir', type='string', dest='output_dir',
97 parser.add_option('-t', '--test', action='store_true', dest='test',
[all …]
/u-boot/lib/zlib/
A Duncompr.c27 int ZEXPORT uncompress2(dest, destLen, source, sourceLen) in uncompress2() argument
28 Bytef *dest; in uncompress2()
47 dest = buf;
60 stream.next_out = dest;
78 if (dest != buf)
90 int ZEXPORT uncompress(dest, destLen, source, sourceLen) in uncompress() argument
91 Bytef *dest; in uncompress()
96 return uncompress2(dest, destLen, source, &sourceLen);
/u-boot/arch/arm/lib/
A Deabi_compat.c29 void __aeabi_memcpy(void *dest, const void *src, size_t n) in __aeabi_memcpy() argument
31 (void) memcpy(dest, src, n); in __aeabi_memcpy()
34 void __aeabi_memset(void *dest, size_t n, int c) in __aeabi_memset() argument
36 (void) memset(dest, c, n); in __aeabi_memset()
/u-boot/arch/x86/cpu/broadwell/
A Drefcode.c76 char *src, *dest; in cpu_run_reference_code() local
101 dest = (char *)CONFIG_X86_REFCODE_RUN_ADDR; in cpu_run_reference_code()
104 debug("Copying refcode from %p to %p, size %x\n", src, dest, size); in cpu_run_reference_code()
105 memcpy(dest, src, size); in cpu_run_reference_code()
108 debug("Zeroing BSS at %p, size %x\n", dest + hdr->bss_begin, size); in cpu_run_reference_code()
109 memset(dest + hdr->bss_begin, '\0', size); in cpu_run_reference_code()
111 func = (asmlinkage int (*)(void *))dest; in cpu_run_reference_code()
/u-boot/tools/patman/
A Dmain.py37 parser.add_argument('-c', '--count', dest='count', type=int,
49 parser.add_argument('-s', '--start', dest='start', type=int,
51 parser.add_argument('-v', '--verbose', action='store_true', dest='verbose',
56 subparsers = parser.add_subparsers(dest='cmd')
59 dest='ignore_errors', default=False,
64 dest='add_maintainers', default=True,
66 send.add_argument('-n', '--dry-run', action='store_true', dest='dry_run',
72 send.add_argument('-T', '--thread', action='store_true', dest='thread',
74 send.add_argument('--cc-cmd', dest='cc_cmd', type=str, action='store',
79 send.add_argument('--no-check', action='store_false', dest='check_patch',
[all …]
A Dpatman37 parser.add_argument('-c', '--count', dest='count', type=int,
49 parser.add_argument('-s', '--start', dest='start', type=int,
51 parser.add_argument('-v', '--verbose', action='store_true', dest='verbose',
56 subparsers = parser.add_subparsers(dest='cmd')
59 dest='ignore_errors', default=False,
64 dest='add_maintainers', default=True,
66 send.add_argument('-n', '--dry-run', action='store_true', dest='dry_run',
72 send.add_argument('-T', '--thread', action='store_true', dest='thread',
74 send.add_argument('--cc-cmd', dest='cc_cmd', type=str, action='store',
79 send.add_argument('--no-check', action='store_false', dest='check_patch',
[all …]
/u-boot/lib/efi_loader/
A Defi_freestanding.c45 void *memmove(void *dest, const void *src, size_t n) in memmove() argument
47 u8 *d = dest; in memmove()
59 return dest; in memmove()
70 void *memcpy(void *dest, const void *src, size_t n) in memcpy() argument
72 return memmove(dest, src, n); in memcpy()
/u-boot/cmd/
A Dbooti.c31 ulong dest; in booti_start() local
53 dest = env_get_ulong("kernel_comp_addr_r", 16, 0); in booti_start()
55 if (!dest || !comp_len) { in booti_start()
59 if (dest < gd->ram_base || dest > gd->ram_top) { in booti_start()
65 ctype, comp_len, (ulong)dest); in booti_start()
68 (void *)dest, (void *)ld, comp_len, in booti_start()
73 memmove((void *) ld, (void *)dest, dest_end); in booti_start()
/u-boot/drivers/usb/dwc3/
A Dlinux-compat.h16 static inline size_t strlcat(char *dest, const char *src, size_t n) in strlcat() argument
18 strcat(dest, src); in strlcat()
19 return strlen(dest) + strlen(src); in strlcat()
/u-boot/fs/squashfs/
A Dsqfs_decompressor.c95 static int sqfs_zstd_decompress(struct squashfs_ctxt *ctxt, void *dest, in sqfs_zstd_decompress() argument
104 ret = ZSTD_decompressDCtx(ctx, dest, dest_len, source, src_len); in sqfs_zstd_decompress()
110 int sqfs_decompress(struct squashfs_ctxt *ctxt, void *dest, in sqfs_decompress() argument
120 ret = lzo1x_decompress_safe(source, src_len, dest, &lzo_dest_len); in sqfs_decompress()
131 ret = uncompress(dest, dest_len, source, src_len); in sqfs_decompress()
141 ret = sqfs_zstd_decompress(ctxt, dest, *dest_len, source, src_len); in sqfs_decompress()
/u-boot/fs/jffs2/
A Dmini_inflate.c106 static void decompress_none(struct bitstream *stream, unsigned char *dest) in decompress_none() argument
116 stream->memcpy(dest, stream->data, length); in decompress_none()
149 *(dest++) = symbol; /* symbol is a literal */ in decompress_huffman()
174 *dest = dest[-dist]; in decompress_huffman()
175 dest++; in decompress_huffman()
313 decompress_huffman(stream, dest); in decompress_dynamic()
344 decompress_huffman(stream, dest); in decompress_fixed()
350 long decompress_block(unsigned char *dest, unsigned char *source, in decompress_block() argument
360 if (btype == NO_COMP) decompress_none(&stream, dest + stream.decoded); in decompress_block()
362 decompress_dynamic(&stream, dest + stream.decoded); in decompress_block()
[all …]
/u-boot/drivers/usb/gadget/
A Dconfig.c37 u8 *dest = buf; in usb_descriptor_fillbuf() local
48 memcpy(dest, *src, len); in usb_descriptor_fillbuf()
50 dest += len; in usb_descriptor_fillbuf()
52 return dest - (u8 *)buf; in usb_descriptor_fillbuf()
/u-boot/drivers/video/
A Dcfb_console.c536 *dest = ~*dest; in video_invertchar()
1740 unsigned char *dest; in plot_logo_or_black() local
1802 *dest = *source; in plot_logo_or_black()
1828 *(u32 *) dest = in plot_logo_or_black()
1836 dest[0] = b; in plot_logo_or_black()
1837 dest[1] = g; in plot_logo_or_black()
1838 dest[2] = r; in plot_logo_or_black()
1840 dest[0] = r; in plot_logo_or_black()
1841 dest[1] = g; in plot_logo_or_black()
1842 dest[2] = b; in plot_logo_or_black()
[all …]
/u-boot/drivers/mtd/nand/raw/
A Dsunxi_nand_spl.c257 void *dest, int len) in nand_read_page() argument
278 u8 *data = dest + data_off; in nand_read_page()
370 void *dest) in nand_detect_ecc_config() argument
419 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config()
465 if (!nand_detect_ecc_config(conf, offs, dest)) { in nand_detect_config()
476 unsigned int size, void *dest) in nand_read_buffer() argument
512 if (nand_read_page(conf, offs, dest, conf->page_size)) in nand_read_buffer()
515 memset(dest, 0xff, conf->page_size); in nand_read_buffer()
520 dest += conf->page_size; in nand_read_buffer()
531 ret = nand_detect_config(&conf, offs, dest); in nand_spl_load_image()
[all …]

Completed in 72 milliseconds

12345678