| /openbmc/u-boot/lib/libavb/ |
| H A D | avb_hashtree_descriptor.c | 10 const AvbHashtreeDescriptor* src, AvbHashtreeDescriptor* dest) { in avb_hashtree_descriptor_validate_and_byteswap() argument 13 avb_memcpy(dest, src, sizeof(AvbHashtreeDescriptor)); in avb_hashtree_descriptor_validate_and_byteswap() 16 (AvbDescriptor*)dest)) in avb_hashtree_descriptor_validate_and_byteswap() 19 if (dest->parent_descriptor.tag != AVB_DESCRIPTOR_TAG_HASHTREE) { in avb_hashtree_descriptor_validate_and_byteswap() 24 dest->dm_verity_version = avb_be32toh(dest->dm_verity_version); in avb_hashtree_descriptor_validate_and_byteswap() 25 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() [all …]
|
| H A D | avb_hash_descriptor.c | 10 AvbHashDescriptor* dest) { in avb_hash_descriptor_validate_and_byteswap() argument 13 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() [all …]
|
| H A D | avb_footer.c | 9 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()
|
| H A D | avb_chain_partition_descriptor.c | 10 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 …]
|
| H A D | avb_vbmeta_image.c | 223 AvbVBMetaImageHeader* dest) { in avb_vbmeta_image_header_to_host_byte_order() argument 224 avb_memcpy(dest, src, sizeof(AvbVBMetaImageHeader)); in avb_vbmeta_image_header_to_host_byte_order() 226 dest->required_libavb_version_major = in avb_vbmeta_image_header_to_host_byte_order() 227 avb_be32toh(dest->required_libavb_version_major); in avb_vbmeta_image_header_to_host_byte_order() 228 dest->required_libavb_version_minor = in avb_vbmeta_image_header_to_host_byte_order() 229 avb_be32toh(dest->required_libavb_version_minor); in avb_vbmeta_image_header_to_host_byte_order() 231 dest->authentication_data_block_size = in avb_vbmeta_image_header_to_host_byte_order() 232 avb_be64toh(dest->authentication_data_block_size); in avb_vbmeta_image_header_to_host_byte_order() 233 dest->auxiliary_data_block_size = in avb_vbmeta_image_header_to_host_byte_order() 234 avb_be64toh(dest->auxiliary_data_block_size); in avb_vbmeta_image_header_to_host_byte_order() [all …]
|
| H A D | avb_kernel_cmdline_descriptor.c | 10 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()
|
| H A D | avb_property_descriptor.c | 10 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()
|
| /openbmc/qemu/target/loongarch/tcg/insn_trans/ |
| H A D | trans_bit.c.inc | 10 TCGv dest = gpr_dst(ctx, a->rd, dst_ext); 13 func(dest, src1); 14 gen_set_gpr(a->rd, dest, dst_ext); 19 static void gen_bytepick_w(TCGv dest, TCGv src1, TCGv src2, target_long sa) 21 tcg_gen_concat_tl_i64(dest, src1, src2); 22 tcg_gen_sextract_i64(dest, dest, (32 - sa * 8), 32); 25 static void gen_bytepick_d(TCGv dest, TCGv src1, TCGv src2, target_long sa) 27 tcg_gen_extract2_i64(dest, src1, src2, (64 - sa * 8)); 35 TCGv dest = gpr_dst(ctx, a->rd, EXT_NONE); 41 tcg_gen_deposit_tl(dest, src1, src2, a->ls, a->ms - a->ls + 1); [all …]
|
| H A D | trans_farith.c.inc | 20 TCGv dest = get_fpr(ctx, a->fd); 26 func(dest, tcg_env, src1, src2); 27 set_fpr(a->fd, dest); 35 TCGv dest = get_fpr(ctx, a->fd); 40 func(dest, tcg_env, src); 41 set_fpr(a->fd, dest); 51 TCGv dest = get_fpr(ctx, a->fd); 58 func(dest, tcg_env, src1, src2, src3, tflag); 59 set_fpr(a->fd, dest); 66 TCGv dest = get_fpr(ctx, a->fd); [all …]
|
| H A D | trans_arith.c.inc | 10 TCGv dest = gpr_dst(ctx, a->rd, dst_ext); 14 func(dest, src1, src2); 15 gen_set_gpr(a->rd, dest, dst_ext); 24 TCGv dest = gpr_dst(ctx, a->rd, dst_ext); 28 func(dest, src1, src2); 29 gen_set_gpr(a->rd, dest, dst_ext); 38 TCGv dest = gpr_dst(ctx, a->rd, dst_ext); 41 func(dest, src1, a->imm); 42 gen_set_gpr(a->rd, dest, dst_ext); 51 TCGv dest = gpr_dst(ctx, a->rd, dst_ext); [all …]
|
| H A D | trans_fmov.c.inc | 13 TCGv dest = get_fpr(ctx, a->fd); 26 tcg_gen_movcond_tl(TCG_COND_EQ, dest, cond, zero, src1, src2); 27 set_fpr(a->fd, dest); 35 TCGv dest = get_fpr(ctx, a->fd); 40 func(dest, src); 42 gen_nanbox_s(dest, dest); 44 set_fpr(a->fd, dest); 53 TCGv dest = get_fpr(ctx, a->fd); 61 func(dest, src); 62 set_fpr(a->fd, dest); [all …]
|
| H A D | trans_shift.c.inc | 6 static void gen_sll_w(TCGv dest, TCGv src1, TCGv src2) 10 tcg_gen_shl_tl(dest, src1, t0); 13 static void gen_srl_w(TCGv dest, TCGv src1, TCGv src2) 17 tcg_gen_shr_tl(dest, src1, t0); 20 static void gen_sra_w(TCGv dest, TCGv src1, TCGv src2) 24 tcg_gen_sar_tl(dest, src1, t0); 27 static void gen_sll_d(TCGv dest, TCGv src1, TCGv src2) 31 tcg_gen_shl_tl(dest, src1, t0); 34 static void gen_srl_d(TCGv dest, TCGv src1, TCGv src2) 38 tcg_gen_shr_tl(dest, src1, t0); [all …]
|
| /openbmc/qemu/tests/migration-stress/guestperf/ |
| H A D | shell.py | 43 parser.add_argument("--debug", dest="debug", default=False, action="store_true") 44 parser.add_argument("--verbose", dest="verbose", default=False, action="store_true") 45 parser.add_argument("--sleep", dest="sleep", default=15, type=int) 46 parser.add_argument("--binary", dest="binary", default="/usr/bin/qemu-system-x86_64") 47 parser.add_argument("--dst-host", dest="dst_host", default="localhost") 48 … parser.add_argument("--kernel", dest="kernel", default="/boot/vmlinuz-%s" % platform.release()) 49 parser.add_argument("--initrd", dest="initrd", 51 parser.add_argument("--transport", dest="transport", default="unix") 55 parser.add_argument("--cpus", dest="cpus", default=1, type=int) 56 parser.add_argument("--mem", dest="mem", default=1, type=int) [all …]
|
| /openbmc/phosphor-debug-collector/ |
| H A D | ffdc | 42 dest="/tmp" 51 dest="$2" 73 echo "Using destination directory $dest" 76 dreport -d $dest -v 80 mkdir -p "$dest/$dir" 85 mkdir "$dest/$dir/${arr[i]}" 86 cp -r ${arr[i+1]}/* $dest/$dir/${arr[i]} 89 ${arr[i+1]} >> "$dest/$dir/${arr[i]}" 93 tar -cf "$dest/$dir.tar" -C $dest $dir 94 echo "Contents in $dest/$dir.tar" [all …]
|
| /openbmc/qemu/target/riscv/insn_trans/ |
| H A D | trans_rvzfa.c.inc | 73 TCGv_i64 dest = dest_fpr(ctx, a->rd); 74 tcg_gen_movi_i64(dest, fli_s_table[a->rs1]); 75 gen_set_fpr_hs(ctx, a->rd, dest); 122 TCGv_i64 dest = dest_fpr(ctx, a->rd); 123 tcg_gen_movi_i64(dest, fli_d_table[a->rs1]); 124 gen_set_fpr_d(ctx, a->rd, dest); 172 TCGv_i64 dest = dest_fpr(ctx, a->rd); 173 tcg_gen_movi_i64(dest, fli_h_table[a->rs1]); 174 gen_set_fpr_hs(ctx, a->rd, dest); 186 TCGv_i64 dest = dest_fpr(ctx, a->rd); [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | string.c | 74 char * strcpy(char * dest,const char *src) in strcpy() argument 76 char *tmp = dest; in strcpy() 78 while ((*dest++ = *src++) != '\0') in strcpy() 95 char * strncpy(char * dest,const char *src,size_t count) in strncpy() argument 97 char *tmp = dest; in strncpy() 99 while (count-- && (*dest++ = *src++) != '\0') in strncpy() 118 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument 124 memcpy(dest, src, len); in strlcpy() 125 dest[len] = '\0'; in strlcpy() 137 char * strcat(char * dest, const char * src) in strcat() argument [all …]
|
| H A D | charset.c | 352 u16 *u16_strcpy(u16 *dest, const u16 *src) in u16_strcpy() argument 354 u16 *tmp = dest; in u16_strcpy() 356 for (;; dest++, src++) { in u16_strcpy() 357 *dest = *src; in u16_strcpy() 382 uint8_t *utf16_to_utf8(uint8_t *dest, const uint16_t *src, size_t size) in utf16_to_utf8() argument 394 *dest++ = (code >> 18) | 0xF0; in utf16_to_utf8() 395 *dest++ = ((code >> 12) & 0x3F) | 0x80; in utf16_to_utf8() 396 *dest++ = ((code >> 6) & 0x3F) | 0x80; in utf16_to_utf8() 397 *dest++ = (code & 0x3F) | 0x80; in utf16_to_utf8() 400 *dest++ = '?'; in utf16_to_utf8() [all …]
|
| /openbmc/u-boot/arch/arm/mach-imx/ |
| H A D | cmd_bmode.c | 31 static int create_usage(char *dest) in create_usage() argument 41 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() 52 memcpy(dest - 1, " [noreset]", 11); /* include trailing 0 */ in create_usage() 88 char *dest; in add_board_boot_modes() local 100 dest = malloc(size); in add_board_boot_modes() 101 if (dest) { in add_board_boot_modes() [all …]
|
| /openbmc/u-boot/tools/buildman/ |
| H A D | cmdline.py | 18 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', 37 parser.add_option('-f', '--force-build', dest='force_build', 40 parser.add_option('-F', '--force-build-failures', dest='force_build_failures', 51 parser.add_option('-H', '--full-help', action='store_true', dest='full_help', 53 parser.add_option('-i', '--in-tree', dest='in_tree', 58 parser.add_option('-j', '--jobs', dest='jobs', type='int', 70 parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run', [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 181 | 78 dest=$QEMU_HANDLE 98 _send_qemu_cmd $dest 'migrate_set_capability postcopy-ram on' "(qemu)" 101 _send_qemu_cmd $dest '' "(qemu)" "Postcopy is not supported" 102 if [ ${QEMU_STATUS[$dest]} -lt 0 ]; then 103 _send_qemu_cmd $dest '' "(qemu)" 106 _send_qemu_cmd $dest 'quit' "" 129 _send_qemu_cmd $dest 'qemu-io disk "read -P 0x55 0 64k"' "(qemu)" 130 _send_qemu_cmd $dest "" "ops/sec" 131 _send_qemu_cmd $dest 'qemu-io disk "write -P 0x66 1M 64k"' "(qemu)" 132 _send_qemu_cmd $dest "" "ops/sec" [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/ |
| H A D | 0001-replace-__pure__-with-compiler-attribute-pure.patch | 134 * If dest is not NULL, write result to dest */ 135 -size_t fmt_long(char *dest,signed long src) __pure__; 136 +size_t fmt_long(char *dest,signed long src) __PURE; 140 * If dest is not NULL, write result to dest */ 141 -size_t fmt_ulong(char *dest,unsigned long src) __pure__; 142 +size_t fmt_ulong(char *dest,unsigned long src) __PURE; 146 * If dest is not NULL, write result to dest */ 147 -size_t fmt_xlong(char *dest,unsigned long src) __pure__; 148 +size_t fmt_xlong(char *dest,unsigned long src) __PURE; 152 * If dest is not NULL, write result to dest */ [all …]
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | neon_helper.c | 72 #define NEON_UNPACK(vtype, dest, val) do { \ in NEON_TYPE4() argument 78 dest = conv_u.v; \ in NEON_TYPE4() 82 #define NEON_PACK(vtype, dest, val) do { \ argument 88 dest = conv_u.i; \ 195 #define NEON_FN(dest, src1, src2) dest = (src1 < src2) ? src1 : src2 argument 202 #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? src1 : src2 argument 209 #define NEON_FN(dest, src1, src2) \ argument 210 (dest = do_uqrshl_bhs(src1, (int8_t)src2, 16, false, NULL)) 214 #define NEON_FN(dest, src1, src2) \ argument 215 (dest = do_sqrshl_bhs(src1, (int8_t)src2, 16, false, NULL)) [all …]
|
| /openbmc/qemu/hw/usb/ |
| H A D | desc-msos.c | 53 static int usb_desc_msos_compat(const USBDesc *desc, uint8_t *dest) in usb_desc_msos_compat() argument 55 msos_compat_hdr *hdr = (void *)dest; in usb_desc_msos_compat() 60 func = (void *)(dest + length); in usb_desc_msos_compat() 129 static int usb_desc_msos_prop_str(uint8_t *dest, msos_prop_type type, in usb_desc_msos_prop_str() argument 132 struct msos_prop *prop = (void *)dest; in usb_desc_msos_prop_str() 139 data = (void *)(dest + length); in usb_desc_msos_prop_str() 154 static int usb_desc_msos_prop_dword(uint8_t *dest, const wchar_t *name, in usb_desc_msos_prop_dword() argument 157 struct msos_prop *prop = (void *)dest; in usb_desc_msos_prop_dword() 163 data = (void *)(dest + length); in usb_desc_msos_prop_dword() 176 static int usb_desc_msos_prop(const USBDesc *desc, uint8_t *dest) in usb_desc_msos_prop() argument [all …]
|
| /openbmc/qemu/pc-bios/vof/ |
| H A D | libc.c | 28 void *memcpy(void *dest, const void *src, size_t n) in memcpy() argument 33 cdest = dest; in memcpy() 38 return dest; in memcpy() 57 void *memset(void *dest, int c, size_t size) in memset() argument 59 unsigned char *d = (unsigned char *)dest; in memset() 65 return dest; in memset()
|
| /openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
| H A D | x32lib.py | 19 dest = self.td.get('T', '') + "/ls.x32test" 20 self.target.copyFrom("/bin/ls", dest) 21 cmd = 'readelf -h {} | grep Class | grep ELF32'.format(dest) 23 cmd = 'readelf -h {} | grep Machine | grep X86-64'.format(dest) 26 subprocess.check_output("readelf -h {}".format(dest), shell=True).decode())) 27 os.remove(dest)
|