| /OK3568_Linux_fs/u-boot/common/ |
| H A D | image-fit.c | 116 static void fit_get_debug(const void *fit, int noffset, in fit_get_debug() argument 120 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL), in fit_get_debug() 134 int noffset; in fit_get_subimage_count() local 140 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_get_subimage_count() 141 (noffset >= 0) && (ndepth > 0); in fit_get_subimage_count() 142 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_get_subimage_count() 170 int noffset; in fit_print_contents() local 207 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_print_contents() 208 (noffset >= 0) && (ndepth > 0); in fit_print_contents() 209 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_print_contents() [all …]
|
| H A D | image-sig.c | 195 const void *fit, int noffset, int required_keynode, in fit_image_setup_verify() argument 201 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify() 206 padding_name = fdt_getprop(fit, noffset, "padding", NULL); in fit_image_setup_verify() 211 info->keyname = fdt_getprop(fit, noffset, "key-name-hint", NULL); in fit_image_setup_verify() 213 info->node_offset = noffset; in fit_image_setup_verify() 230 int fit_image_check_sig(const void *fit, int noffset, const void *data, in fit_image_check_sig() argument 239 if (fit_image_setup_verify(&info, fit, noffset, required_keynode, in fit_image_check_sig() 243 if (fit_image_hash_get_value(fit, noffset, &fit_value, in fit_image_check_sig() 264 int noffset; in fit_image_verify_sig() local 270 fdt_for_each_subnode(noffset, fit, image_noffset) { in fit_image_verify_sig() [all …]
|
| H A D | update.c | 215 static int update_fit_getparams(const void *fit, int noffset, ulong *addr, in update_fit_getparams() argument 220 if (fit_image_get_data(fit, noffset, &data, (size_t *)size)) in update_fit_getparams() 223 if (fit_image_get_load(fit, noffset, (ulong *)fladdr)) in update_fit_getparams() 235 int images_noffset, ndepth, noffset; in update_tftp() local 293 noffset = fdt_next_node(fit, images_noffset, &ndepth); in update_tftp() 294 while (noffset >= 0 && ndepth > 0) { in update_tftp() 298 fit_image_name = (char *)fit_get_name(fit, noffset, NULL); in update_tftp() 301 if (!fit_image_verify(fit, noffset)) { in update_tftp() 308 if (update_fit_getparams(fit, noffset, &update_addr, in update_tftp() 323 } else if (fit_image_check_type(fit, noffset, in update_tftp() [all …]
|
| H A D | bootm.c | 1006 int noffset; in bootm_host_load_image() local 1015 noffset = fit_image_load_index(&images, (ulong)fit, in bootm_host_load_image() 1019 if (noffset < 0) in bootm_host_load_image() 1020 return noffset; in bootm_host_load_image() 1021 if (fit_image_get_type(fit, noffset, &image_type)) { in bootm_host_load_image() 1026 if (fit_image_get_comp(fit, noffset, &imape_comp)) { in bootm_host_load_image()
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | image-host.c | 31 static int fit_set_hash_value(void *fit, int noffset, uint8_t *value, in fit_set_hash_value() argument 36 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len); in fit_set_hash_value() 39 FIT_VALUE_PROP, fit_get_name(fit, noffset, NULL), in fit_set_hash_value() 61 int noffset, const void *data, size_t size) in fit_image_process_hash() argument 69 node_name = fit_get_name(fit, noffset, NULL); in fit_image_process_hash() 71 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_process_hash() 83 ret = fit_set_hash_value(fit, noffset, value, value_len); in fit_image_process_hash() 108 static int fit_image_write_sig(void *fit, int noffset, uint8_t *value, in fit_image_write_sig() argument 121 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len); in fit_image_write_sig() 123 ret = fdt_setprop_string(fit, noffset, "signer-name", in fit_image_write_sig() [all …]
|
| H A D | fit_image.c | 819 int noffset; in fit_extract_contents() local 850 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_extract_contents() 851 (noffset >= 0) && (ndepth > 0); in fit_extract_contents() 852 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_extract_contents() 860 count, fit_get_name(fit, noffset, NULL)); in fit_extract_contents() 862 fit_image_print(fit, noffset, p); in fit_extract_contents() 864 return fit_image_extract(fit, noffset, in fit_extract_contents()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | fit.c | 42 int noffset; in fit_sig_require_conf() local 48 fdt_for_each_subnode(noffset, sig_blob, sig_node) { in fit_sig_require_conf() 49 required = fdt_getprop(sig_blob, noffset, "required", NULL); in fit_sig_require_conf() 71 int noffset; in fix_image_set_addr() local 78 noffset = fit_default_conf_get_node(fit, prop_name); in fix_image_set_addr() 79 if (noffset < 0) in fix_image_set_addr() 80 return noffset; in fix_image_set_addr() 83 fit_image_set_entry(fit, noffset, new); in fix_image_set_addr() 85 return fit_image_set_load(fit, noffset, new); in fix_image_set_addr() 92 int noffset; in fdt_image_get_offset_size() local [all …]
|
| H A D | fit_misc.c | 33 int noffset; in fit_image_get_uncomp_digest() local 35 fdt_for_each_subnode(noffset, fit, parent_noffset) { in fit_image_get_uncomp_digest() 36 name = fit_get_name(fit, noffset, NULL); in fit_image_get_uncomp_digest() 39 return noffset; in fit_image_get_uncomp_digest() 50 int noffset; in fit_image_check_uncomp_hash() local 52 noffset = fit_image_get_uncomp_digest(fit, parent_noffset); in fit_image_check_uncomp_hash() 53 if (noffset > 0) in fit_image_check_uncomp_hash() 54 return fit_image_check_hash(fit, noffset, data, size, &err_msgp); in fit_image_check_uncomp_hash()
|
| H A D | boot_rkimg.c | 636 int noffset; in rockchip_ram_read_dtb_file() local 643 noffset = fdt_path_offset(img, path); in rockchip_ram_read_dtb_file() 644 if (noffset < 0) in rockchip_ram_read_dtb_file() 645 return noffset; in rockchip_ram_read_dtb_file() 648 ret = fit_image_get_data(img, noffset, &data, &size); in rockchip_ram_read_dtb_file() 665 ret = fit_image_get_data(img, noffset, &data, &size); in rockchip_ram_read_dtb_file()
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | image.h | 972 void fit_image_print(const void *fit, int noffset, const char *p); 1004 int noffset, int *len) in fit_get_name() argument 1006 return fdt_get_name(fit_hdr, noffset, len); in fit_get_name() 1009 int fit_get_desc(const void *fit, int noffset, char **desc); 1010 int fit_get_timestamp(const void *fit, int noffset, time_t *timestamp); 1014 int fit_image_get_os(const void *fit, int noffset, uint8_t *os); 1015 int fit_image_get_arch(const void *fit, int noffset, uint8_t *arch); 1016 int fit_image_get_type(const void *fit, int noffset, uint8_t *type); 1017 int fit_image_get_comp(const void *fit, int noffset, uint8_t *comp); 1018 bool fit_image_is_preload(const void *fit, int noffset); [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/cpu/ |
| H A D | rockchip_amp.c | 68 static u32 fit_get_u32_default(const void *fit, int noffset, in fit_get_u32_default() argument 73 val = fdt_getprop(fit, noffset, prop, NULL); in fit_get_u32_default() 83 int noffset, cpu, i = 0; in parse_cpus_boot_by_linux() local 87 noffset = fdt_path_offset(fdt, LINXU_AMP_NODES); in parse_cpus_boot_by_linux() 88 if (noffset < 0) in parse_cpus_boot_by_linux() 91 fdt_for_each_subnode(cpu, fdt, noffset) { in parse_cpus_boot_by_linux() 234 static int brought_up_amp(void *fit, int noffset, in brought_up_amp() argument 248 desc = fdt_getprop(fit, noffset, "description", NULL); in brought_up_amp() 249 cpu = fit_get_u32_default(fit, noffset, "cpu", -ENODATA); in brought_up_amp() 250 hyp = fit_get_u32_default(fit, noffset, "hyp", 0); in brought_up_amp() [all …]
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | source.c | 38 int noffset; in source() local 107 noffset = fit_image_get_node (fit_hdr, fit_uname); in source() 108 if (noffset < 0) { in source() 113 if (!fit_image_check_type (fit_hdr, noffset, IH_TYPE_SCRIPT)) { in source() 133 if (!fit_image_verify(fit_hdr, noffset)) { in source() 140 if (fit_image_get_data (fit_hdr, noffset, &fit_data, &fit_len)) { in source()
|
| H A D | ximg.c | 46 int noffset; in do_imgextract() local 141 noffset = fit_image_get_node(fit_hdr, uname); in do_imgextract() 142 if (noffset < 0) { in do_imgextract() 147 if (fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) in do_imgextract() 157 if (!fit_image_verify(fit_hdr, noffset)) { in do_imgextract() 164 if (fit_image_get_data(fit_hdr, noffset, in do_imgextract() 170 if (fit_image_get_comp(fit_hdr, noffset, &comp)) { in do_imgextract()
|
| H A D | tftp_update.c | 141 int images, noffset; in update_populate_image() local 152 fdt_for_each_subnode(noffset, fit, images) { in update_populate_image() 153 name = fit_get_name(fit, noffset, NULL); in update_populate_image() 165 e->size = fdtdec_get_uint(fit, noffset, "data-size", -ENODATA); in update_populate_image() 196 e->hash_noffset = fdt_subnode_offset(fit, noffset, "hash"); in update_populate_image() 389 int noffset; in update_verify_hdr() local 393 noffset = fdt_path_offset(fit, FIT_CONFS_PATH); in update_verify_hdr() 394 name = fdt_getprop(fit, noffset, "default", NULL); in update_verify_hdr() 395 conf = fdt_subnode_offset(fit, noffset, name); in update_verify_hdr() 556 int noffset; in update_write_gpt() local [all …]
|
| H A D | fpga.c | 245 int noffset; in do_fpga() local 259 noffset = fit_image_get_node(fit_hdr, in do_fpga() 261 if (noffset < 0) { in do_fpga() 268 if (!fit_image_verify(fit_hdr, noffset)) { in do_fpga() 274 if (fit_image_get_data(fit_hdr, noffset, in do_fpga()
|
| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | tdls.c | 371 size_t offset = 0, noffset; in ieee80211_tdls_add_setup_start_ies() local 391 noffset = ieee80211_ie_split(extra_ies, extra_ies_len, in ieee80211_tdls_add_setup_start_ies() 395 skb_put_data(skb, extra_ies + offset, noffset - offset); in ieee80211_tdls_add_setup_start_ies() 396 offset = noffset; in ieee80211_tdls_add_setup_start_ies() 420 noffset = ieee80211_ie_split(extra_ies, extra_ies_len, in ieee80211_tdls_add_setup_start_ies() 424 skb_put_data(skb, extra_ies + offset, noffset - offset); in ieee80211_tdls_add_setup_start_ies() 425 offset = noffset; in ieee80211_tdls_add_setup_start_ies() 491 noffset = ieee80211_ie_split(extra_ies, extra_ies_len, in ieee80211_tdls_add_setup_start_ies() 495 skb_put_data(skb, extra_ies + offset, noffset - offset); in ieee80211_tdls_add_setup_start_ies() 496 offset = noffset; in ieee80211_tdls_add_setup_start_ies() [all …]
|
| H A D | util.c | 1783 size_t noffset; in ieee80211_build_preq_ies_band() local 1829 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band() 1833 if (end - pos < noffset - *offset) in ieee80211_build_preq_ies_band() 1835 memcpy(pos, ie + *offset, noffset - *offset); in ieee80211_build_preq_ies_band() 1836 pos += noffset - *offset; in ieee80211_build_preq_ies_band() 1837 *offset = noffset; in ieee80211_build_preq_ies_band() 1872 noffset = ieee80211_ie_split(ie, ie_len, in ieee80211_build_preq_ies_band() 1875 if (end - pos < noffset - *offset) in ieee80211_build_preq_ies_band() 1877 memcpy(pos, ie + *offset, noffset - *offset); in ieee80211_build_preq_ies_band() 1878 pos += noffset - *offset; in ieee80211_build_preq_ies_band() [all …]
|
| H A D | mlme.c | 707 size_t offset = 0, noffset; in ieee80211_send_assoc() local 934 noffset = ieee80211_ie_split_ric(assoc_data->ie, in ieee80211_send_assoc() 941 skb_put_data(skb, assoc_data->ie + offset, noffset - offset); in ieee80211_send_assoc() 942 offset = noffset; in ieee80211_send_assoc() 970 noffset = ieee80211_ie_split(assoc_data->ie, assoc_data->ie_len, in ieee80211_send_assoc() 973 skb_put_data(skb, assoc_data->ie + offset, noffset - offset); in ieee80211_send_assoc() 974 offset = noffset; in ieee80211_send_assoc() 996 noffset = ieee80211_ie_split(assoc_data->ie, assoc_data->ie_len, in ieee80211_send_assoc() 999 pos = skb_put(skb, noffset - offset); in ieee80211_send_assoc() 1000 memcpy(pos, assoc_data->ie + offset, noffset - offset); in ieee80211_send_assoc() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/rsa/ |
| H A D | rsa-verify.c | 537 int ndepth, noffset; in rsa_verify() local 583 for (ndepth = 0, noffset = fdt_next_node(info->fit, sig_node, &ndepth); in rsa_verify() 584 (noffset >= 0) && (ndepth > 0); in rsa_verify() 585 noffset = fdt_next_node(info->fit, noffset, &ndepth)) { in rsa_verify() 586 if (ndepth == 1 && noffset != node) { in rsa_verify() 588 noffset); in rsa_verify()
|
| H A D | rsa-sign.c | 795 static int fdt_add_bignum(void *blob, int noffset, const char *prop_name, in fdt_add_bignum() argument 840 ret = fdt_setprop(blob, noffset, prop_name, buf, size); in fdt_add_bignum()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/rk3308/ |
| H A D | rk3308.c | 465 static void fixup_pcfg_drive_strength(const void *blob, int noffset) in fixup_pcfg_drive_strength() argument 470 dss = (u32 *)fdt_getprop(blob, noffset, "drive-strength-s", NULL); in fixup_pcfg_drive_strength() 475 ds = (u32 *)fdt_getprop(blob, noffset, "drive-strength", NULL); in fixup_pcfg_drive_strength() 479 if (fdt_setprop((void *)blob, noffset, in fixup_pcfg_drive_strength()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/px30/ |
| H A D | px30.c | 474 static void fixup_pcfg_drive_strength(const void *blob, int noffset) in fixup_pcfg_drive_strength() argument 479 dss = (u32 *)fdt_getprop(blob, noffset, "drive-strength-s", NULL); in fixup_pcfg_drive_strength() 484 ds = (u32 *)fdt_getprop(blob, noffset, "drive-strength", NULL); in fixup_pcfg_drive_strength() 488 if (fdt_setprop((void *)blob, noffset, in fixup_pcfg_drive_strength()
|
| /OK3568_Linux_fs/kernel/fs/f2fs/ |
| H A D | node.c | 684 int offset[4], unsigned int noffset[4]) in get_node_path() 694 noffset[0] = 0; in get_node_path() 703 noffset[n] = 1; in get_node_path() 711 noffset[n] = 2; in get_node_path() 719 noffset[n] = 3; in get_node_path() 721 noffset[n] = 4 + offset[n - 1]; in get_node_path() 729 noffset[n] = 4 + dptrs_per_blk; in get_node_path() 731 noffset[n] = 5 + dptrs_per_blk + offset[n - 1]; in get_node_path() 739 noffset[n] = 5 + (dptrs_per_blk * 2); in get_node_path() 741 noffset[n] = 6 + (dptrs_per_blk * 2) + in get_node_path() [all …]
|
| /OK3568_Linux_fs/u-boot/common/spl/ |
| H A D | spl_fit.c | 374 static int spl_fit_image_get_os(const void *fit, int noffset, uint8_t *os) in spl_fit_image_get_os() argument 379 return fit_image_get_os(fit, noffset, os); in spl_fit_image_get_os()
|