Home
last modified time | relevance | path

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

1234567

/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_hashtree_descriptor.c29 const AvbHashtreeDescriptor* src, AvbHashtreeDescriptor* dest) { in avb_hashtree_descriptor_validate_and_byteswap() argument
32 avb_memcpy(dest, src, sizeof(AvbHashtreeDescriptor)); in avb_hashtree_descriptor_validate_and_byteswap()
35 (AvbDescriptor*)dest)) in avb_hashtree_descriptor_validate_and_byteswap()
38 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_HASHTREE) { in avb_hashtree_descriptor_validate_and_byteswap()
43 dest->dm_verity_version = avb_be32toh(dest->dm_verity_version); in avb_hashtree_descriptor_validate_and_byteswap()
44 dest->image_size = avb_be64toh(dest->image_size); in avb_hashtree_descriptor_validate_and_byteswap()
45 dest->tree_offset = avb_be64toh(dest->tree_offset); in avb_hashtree_descriptor_validate_and_byteswap()
46 dest->tree_size = avb_be64toh(dest->tree_size); in avb_hashtree_descriptor_validate_and_byteswap()
47 dest->data_block_size = avb_be32toh(dest->data_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
48 dest->hash_block_size = avb_be32toh(dest->hash_block_size); in avb_hashtree_descriptor_validate_and_byteswap()
[all …]
H A Davb_hash_descriptor.c29 AvbHashDescriptor* dest) { in avb_hash_descriptor_validate_and_byteswap() argument
32 avb_memcpy(dest, src, sizeof(AvbHashDescriptor)); in avb_hash_descriptor_validate_and_byteswap()
35 (AvbDescriptor*)dest)) in avb_hash_descriptor_validate_and_byteswap()
38 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_HASH) { in avb_hash_descriptor_validate_and_byteswap()
43 dest->image_size = avb_be64toh(dest->image_size); in avb_hash_descriptor_validate_and_byteswap()
44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap()
45 dest->salt_len = avb_be32toh(dest->salt_len); in avb_hash_descriptor_validate_and_byteswap()
46 dest->digest_len = avb_be32toh(dest->digest_len); in avb_hash_descriptor_validate_and_byteswap()
47 dest->flags = avb_be32toh(dest->flags); in avb_hash_descriptor_validate_and_byteswap()
51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
[all …]
H A Davb_footer.c28 bool avb_footer_validate_and_byteswap(const AvbFooter* src, AvbFooter* dest) { in avb_footer_validate_and_byteswap() argument
29 avb_memcpy(dest, src, sizeof(AvbFooter)); in avb_footer_validate_and_byteswap()
31 dest->version_major = avb_be32toh(dest->version_major); in avb_footer_validate_and_byteswap()
32 dest->version_minor = avb_be32toh(dest->version_minor); in avb_footer_validate_and_byteswap()
34 dest->original_image_size = avb_be64toh(dest->original_image_size); in avb_footer_validate_and_byteswap()
35 dest->vbmeta_offset = avb_be64toh(dest->vbmeta_offset); in avb_footer_validate_and_byteswap()
36 dest->vbmeta_size = avb_be64toh(dest->vbmeta_size); in avb_footer_validate_and_byteswap()
39 if (avb_safe_memcmp(dest->magic, AVB_FOOTER_MAGIC, AVB_FOOTER_MAGIC_LEN) != in avb_footer_validate_and_byteswap()
48 if (dest->version_major > AVB_FOOTER_VERSION_MAJOR) { in avb_footer_validate_and_byteswap()
H A Davb_chain_partition_descriptor.c29 const AvbChainPartitionDescriptor* src, AvbChainPartitionDescriptor* dest) { in avb_chain_partition_descriptor_validate_and_byteswap() argument
32 avb_memcpy(dest, src, sizeof(AvbChainPartitionDescriptor)); in avb_chain_partition_descriptor_validate_and_byteswap()
35 (AvbDescriptor*)dest)) in avb_chain_partition_descriptor_validate_and_byteswap()
38 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_CHAIN_PARTITION) { in avb_chain_partition_descriptor_validate_and_byteswap()
43 dest->rollback_index_location = avb_be32toh(dest->rollback_index_location); in avb_chain_partition_descriptor_validate_and_byteswap()
44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap()
45 dest->public_key_len = avb_be32toh(dest->public_key_len); in avb_chain_partition_descriptor_validate_and_byteswap()
47 if (dest->rollback_index_location < 1) { in avb_chain_partition_descriptor_validate_and_byteswap()
54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
55 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
[all …]
H A Davb_vbmeta_image.c248 AvbVBMetaImageHeader* dest) { in avb_vbmeta_image_header_to_host_byte_order() argument
249 avb_memcpy(dest, src, sizeof(AvbVBMetaImageHeader)); in avb_vbmeta_image_header_to_host_byte_order()
251 dest->required_libavb_version_major = in avb_vbmeta_image_header_to_host_byte_order()
252 avb_be32toh(dest->required_libavb_version_major); in avb_vbmeta_image_header_to_host_byte_order()
253 dest->required_libavb_version_minor = in avb_vbmeta_image_header_to_host_byte_order()
254 avb_be32toh(dest->required_libavb_version_minor); in avb_vbmeta_image_header_to_host_byte_order()
256 dest->authentication_data_block_size = in avb_vbmeta_image_header_to_host_byte_order()
257 avb_be64toh(dest->authentication_data_block_size); in avb_vbmeta_image_header_to_host_byte_order()
258 dest->auxiliary_data_block_size = in avb_vbmeta_image_header_to_host_byte_order()
259 avb_be64toh(dest->auxiliary_data_block_size); in avb_vbmeta_image_header_to_host_byte_order()
[all …]
H A Davb_kernel_cmdline_descriptor.c29 const AvbKernelCmdlineDescriptor* src, AvbKernelCmdlineDescriptor* dest) { in avb_kernel_cmdline_descriptor_validate_and_byteswap() argument
32 avb_memcpy(dest, src, sizeof(AvbKernelCmdlineDescriptor)); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
35 (AvbDescriptor*)dest)) in avb_kernel_cmdline_descriptor_validate_and_byteswap()
38 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_KERNEL_CMDLINE) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
43 dest->flags = avb_be32toh(dest->flags); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
44 dest->kernel_cmdline_length = avb_be32toh(dest->kernel_cmdline_length); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
52 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
H A Davb_property_descriptor.c29 const AvbPropertyDescriptor* src, AvbPropertyDescriptor* dest) { in avb_property_descriptor_validate_and_byteswap() argument
32 avb_memcpy(dest, src, sizeof(AvbPropertyDescriptor)); in avb_property_descriptor_validate_and_byteswap()
35 (AvbDescriptor*)dest)) in avb_property_descriptor_validate_and_byteswap()
38 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_PROPERTY) { in avb_property_descriptor_validate_and_byteswap()
43 dest->key_num_bytes = avb_be64toh(dest->key_num_bytes); in avb_property_descriptor_validate_and_byteswap()
44 dest->value_num_bytes = avb_be64toh(dest->value_num_bytes); in avb_property_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
49 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
53 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
H A Davb_crypto.c365 const AvbRSAPublicKeyHeader* src, AvbRSAPublicKeyHeader* dest) { in avb_rsa_public_key_header_validate_and_byteswap() argument
366 avb_memcpy(dest, src, sizeof(AvbRSAPublicKeyHeader)); in avb_rsa_public_key_header_validate_and_byteswap()
368 dest->key_num_bits = avb_be32toh(dest->key_num_bits); in avb_rsa_public_key_header_validate_and_byteswap()
369 dest->n0inv = avb_be32toh(dest->n0inv); in avb_rsa_public_key_header_validate_and_byteswap()
H A Davb_sysdeps_posix.c43 void* avb_memcpy(void* dest, const void* src, size_t n) { in avb_memcpy() argument
44 return memcpy(dest, src, n); in avb_memcpy()
47 void* avb_memset(void* dest, const int c, size_t n) { in avb_memset() argument
48 return memset(dest, c, n); in avb_memset()
/rk3399_rockchip-uboot/lib/
H A Dcharset.c31 uint16_t *utf16_strcpy(uint16_t *dest, const uint16_t *src) in utf16_strcpy() argument
33 uint16_t *tmp = dest; in utf16_strcpy()
35 while ((*dest++ = *src++) != '\0') in utf16_strcpy()
51 uint8_t *utf16_to_utf8(uint8_t *dest, const uint16_t *src, size_t size) in utf16_to_utf8() argument
63 *dest++ = (code >> 18) | 0xF0; in utf16_to_utf8()
64 *dest++ = ((code >> 12) & 0x3F) | 0x80; in utf16_to_utf8()
65 *dest++ = ((code >> 6) & 0x3F) | 0x80; in utf16_to_utf8()
66 *dest++ = (code & 0x3F) | 0x80; in utf16_to_utf8()
69 *dest++ = '?'; in utf16_to_utf8()
77 *dest++ = code; in utf16_to_utf8()
[all …]
H A Dstring.c73 char * strcpy(char * dest,const char *src) in strcpy() argument
75 char *tmp = dest; in strcpy()
77 while ((*dest++ = *src++) != '\0') in strcpy()
94 char * strncpy(char * dest,const char *src,size_t count) in strncpy() argument
96 char *tmp = dest; in strncpy()
98 while (count-- && (*dest++ = *src++) != '\0') in strncpy()
117 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument
123 memcpy(dest, src, len); in strlcpy()
124 dest[len] = '\0'; in strlcpy()
136 char * strcat(char * dest, const char * src) in strcat() argument
[all …]
/rk3399_rockchip-uboot/arch/arm/mach-imx/
H A Dcmd_bmode.c32 static int create_usage(char *dest) in create_usage() argument
42 if (dest) { in create_usage()
43 memcpy(dest, p->name, len); in create_usage()
44 dest += len; in create_usage()
45 *dest++ = '|'; in create_usage()
52 if (dest) in create_usage()
53 memcpy(dest - 1, " [noreset]", 11); /* include trailing 0 */ in create_usage()
89 char *dest; in add_board_boot_modes() local
101 dest = malloc(size); in add_board_boot_modes()
102 if (dest) { in add_board_boot_modes()
[all …]
/rk3399_rockchip-uboot/tools/buildman/
H A Dcmdline.py20 parser.add_option('-B', '--bloat', dest='show_bloat',
23 parser.add_option('-c', '--count', dest='count', type='int',
25 parser.add_option('-C', '--force-reconfig', dest='force_reconfig',
28 parser.add_option('-d', '--detail', dest='show_detail',
35 parser.add_option('-f', '--force-build', dest='force_build',
38 parser.add_option('-F', '--force-build-failures', dest='force_build_failures',
49 parser.add_option('-H', '--full-help', action='store_true', dest='full_help',
51 parser.add_option('-i', '--in-tree', dest='in_tree',
56 parser.add_option('-j', '--jobs', dest='jobs', type='int',
68 parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
[all …]
/rk3399_rockchip-uboot/arch/x86/cpu/broadwell/
H A Drefcode.c75 char *src, *dest; in cpu_run_reference_code() local
100 dest = (char *)CONFIG_X86_REFCODE_RUN_ADDR; in cpu_run_reference_code()
103 debug("Copying refcode from %p to %p, size %x\n", src, dest, size); in cpu_run_reference_code()
104 memcpy(dest, src, size); in cpu_run_reference_code()
107 debug("Zeroing BSS at %p, size %x\n", dest + hdr->bss_begin, size); in cpu_run_reference_code()
108 memset(dest + hdr->bss_begin, '\0', size); in cpu_run_reference_code()
110 func = (asmlinkage int (*)(void *))dest; in cpu_run_reference_code()
/rk3399_rockchip-uboot/arch/arm/lib/
H A Deabi_compat.c30 void __aeabi_memcpy(void *dest, const void *src, size_t n) in __aeabi_memcpy() argument
32 (void) memcpy(dest, src, n); in __aeabi_memcpy()
35 void __aeabi_memset(void *dest, size_t n, int c) in __aeabi_memset() argument
37 (void) memset(dest, c, n); in __aeabi_memset()
/rk3399_rockchip-uboot/tools/patman/
H A Dpatman.py32 parser.add_option('-H', '--full-help', action='store_true', dest='full_help',
34 parser.add_option('-c', '--count', dest='count', type='int',
37 dest='ignore_errors', default=False,
40 dest='add_maintainers', default=True,
42 parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
49 parser.add_option('-s', '--start', dest='start', type='int',
53 parser.add_option('--test', action='store_true', dest='test',
55 parser.add_option('-v', '--verbose', action='store_true', dest='verbose',
57 parser.add_option('--cc-cmd', dest='cc_cmd', type='string', action='store',
59 parser.add_option('--no-check', action='store_false', dest='check_patch',
[all …]
H A Dpatman32 parser.add_option('-H', '--full-help', action='store_true', dest='full_help',
34 parser.add_option('-c', '--count', dest='count', type='int',
37 dest='ignore_errors', default=False,
40 dest='add_maintainers', default=True,
42 parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
49 parser.add_option('-s', '--start', dest='start', type='int',
53 parser.add_option('--test', action='store_true', dest='test',
55 parser.add_option('-v', '--verbose', action='store_true', dest='verbose',
57 parser.add_option('--cc-cmd', dest='cc_cmd', type='string', action='store',
59 parser.add_option('--no-check', action='store_false', dest='check_patch',
[all …]
/rk3399_rockchip-uboot/fs/cbfs/
H A Dcbfs.c42 static void swap_header(struct cbfs_header *dest, struct cbfs_header *src) in swap_header() argument
44 dest->magic = be32_to_cpu(src->magic); in swap_header()
45 dest->version = be32_to_cpu(src->version); in swap_header()
46 dest->rom_size = be32_to_cpu(src->rom_size); in swap_header()
47 dest->boot_block_size = be32_to_cpu(src->boot_block_size); in swap_header()
48 dest->align = be32_to_cpu(src->align); in swap_header()
49 dest->offset = be32_to_cpu(src->offset); in swap_header()
53 static void swap_file_header(struct cbfs_fileheader *dest, in swap_file_header() argument
56 memcpy(&dest->magic, &src->magic, sizeof(dest->magic)); in swap_file_header()
57 dest->len = be32_to_cpu(src->len); in swap_file_header()
[all …]
/rk3399_rockchip-uboot/drivers/video/
H A Dcfb_console.c322 u8 *cdat, *dest, *dest0; in video_drawchars() local
334 for (rows = VIDEO_FONT_HEIGHT, dest = dest0; in video_drawchars()
335 rows--; dest += VIDEO_LINE_LEN) { in video_drawchars()
338 ((u32 *) dest)[0] = in video_drawchars()
345 ((u32 *) dest)[1] = in video_drawchars()
358 for (rows = VIDEO_FONT_HEIGHT, dest = dest0; in video_drawchars()
359 rows--; dest += VIDEO_LINE_LEN) { in video_drawchars()
362 ((u32 *) dest)[0] = in video_drawchars()
366 ((u32 *) dest)[1] = in video_drawchars()
374 ((u32 *) dest)[2] = in video_drawchars()
[all …]
/rk3399_rockchip-uboot/fs/jffs2/
H A Dmini_inflate.c108 static void decompress_none(struct bitstream *stream, unsigned char *dest) in decompress_none() argument
118 stream->memcpy(dest, stream->data, length); in decompress_none()
141 static void decompress_huffman(struct bitstream *stream, unsigned char *dest) in decompress_huffman() argument
151 *(dest++) = symbol; /* symbol is a literal */ in decompress_huffman()
176 *dest = dest[-dist]; in decompress_huffman()
177 dest++; in decompress_huffman()
214 static void decompress_dynamic(struct bitstream *stream, unsigned char *dest) in decompress_dynamic() argument
315 decompress_huffman(stream, dest); in decompress_dynamic()
320 static void decompress_fixed(struct bitstream *stream, unsigned char *dest) in decompress_fixed() argument
346 decompress_huffman(stream, dest); in decompress_fixed()
[all …]
/rk3399_rockchip-uboot/common/
H A Dcli_hush.c455 static int xglob(o_string *dest, int flags, glob_t *pglob);
464 static int done_word(o_string *dest, struct p_context *ctx);
471 static int process_command_subs(o_string *dest, struct p_context *ctx, struct in_str *input, int su…
472 static int parse_group(o_string *dest, struct p_context *ctx, struct in_str *input, int ch);
476 static int handle_dollar(o_string *dest, struct p_context *ctx, struct in_str *input);
478 static int parse_string(o_string *dest, struct p_context *ctx, const char *src);
480 static int parse_stream(o_string *dest, struct p_context *ctx, struct in_str *input0, int end_trigg…
2048 char *dest; local
2053 dest = malloc(cnt);
2054 if (!dest) return GLOB_NOSPACE;
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dsunxi_nand_spl.c256 void *dest, int len) in nand_read_page() argument
277 u8 *data = dest + data_off; in nand_read_page()
369 void *dest) in nand_detect_ecc_config() argument
401 ret = nand_read_page(conf, offs, dest, conf->ecc_size); in nand_detect_ecc_config()
418 if (!nand_read_page(conf, offs, dest, in nand_detect_ecc_config()
441 static int nand_detect_config(struct nfc_config *conf, u32 offs, void *dest) in nand_detect_config() argument
464 if (!nand_detect_ecc_config(conf, offs, dest)) { in nand_detect_config()
475 unsigned int size, void *dest) in nand_read_buffer() argument
488 ret = nand_read_page(conf, offs, dest, conf->page_size); in nand_read_buffer()
511 if (nand_read_page(conf, offs, dest, conf->page_size)) in nand_read_buffer()
[all …]
/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Dlinux-compat.h17 static inline size_t strlcat(char *dest, const char *src, size_t n) in strlcat() argument
19 strcat(dest, src); in strlcat()
20 return strlen(dest) + strlen(src); in strlcat()
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dconfig.c38 u8 *dest = buf; in usb_descriptor_fillbuf() local
49 memcpy(dest, *src, len); in usb_descriptor_fillbuf()
51 dest += len; in usb_descriptor_fillbuf()
53 return dest - (u8 *)buf; in usb_descriptor_fillbuf()
/rk3399_rockchip-uboot/arch/powerpc/include/asm/
H A Dpci_io.h10 #define pci_read_le16(addr, dest) \ argument
11 __asm__ __volatile__("lhbrx %0,0,%1" : "=r" (dest) : \
19 #define pci_read_le32(addr, dest) \ argument
20 __asm__ __volatile__("lwbrx %0,0,%1" : "=r" (dest) : \

1234567