Home
last modified time | relevance | path

Searched refs:noffset (Results 1 – 23 of 23) sorted by relevance

/rk3399_rockchip-uboot/common/
H A Dimage-fit.c119 static void fit_get_debug(const void *fit, int noffset, in fit_get_debug() argument
123 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL), in fit_get_debug()
137 int noffset; in fit_get_subimage_count() local
143 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_get_subimage_count()
144 (noffset >= 0) && (ndepth > 0); in fit_get_subimage_count()
145 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_get_subimage_count()
173 int noffset; in fit_print_contents() local
210 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_print_contents()
211 (noffset >= 0) && (ndepth > 0); in fit_print_contents()
212 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_print_contents()
[all …]
H A Dimage-sig.c195 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 Dupdate.c215 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 Dbootm.c1006 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()
/rk3399_rockchip-uboot/tools/
H A Dimage-host.c31 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 Dfit_image.c819 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()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dfit.c42 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 Dfit_misc.c39 int noffset; in fit_image_get_uncomp_digest() local
41 fdt_for_each_subnode(noffset, fit, parent_noffset) { in fit_image_get_uncomp_digest()
42 name = fit_get_name(fit, noffset, NULL); in fit_image_get_uncomp_digest()
45 return noffset; in fit_image_get_uncomp_digest()
56 int noffset; in fit_image_check_uncomp_hash() local
58 noffset = fit_image_get_uncomp_digest(fit, parent_noffset); in fit_image_check_uncomp_hash()
59 if (noffset > 0) in fit_image_check_uncomp_hash()
60 return fit_image_check_hash(fit, noffset, data, size, &err_msgp); in fit_image_check_uncomp_hash()
H A Dboot_rkimg.c597 int noffset; in rockchip_ram_read_dtb_file() local
604 noffset = fdt_path_offset(img, path); in rockchip_ram_read_dtb_file()
605 if (noffset < 0) in rockchip_ram_read_dtb_file()
606 return noffset; in rockchip_ram_read_dtb_file()
609 ret = fit_image_get_data(img, noffset, &data, &size); in rockchip_ram_read_dtb_file()
626 ret = fit_image_get_data(img, noffset, &data, &size); in rockchip_ram_read_dtb_file()
H A Dboard.c613 int noffset; in sanity_cpu_swap() local
621 for (noffset = fdt_first_subnode(blob, cpus_offset); in sanity_cpu_swap()
622 noffset >= 0; in sanity_cpu_swap()
623 noffset = fdt_next_subnode(blob, noffset)) { in sanity_cpu_swap()
627 prop = fdt_get_property(blob, noffset, "device_type", &len); in sanity_cpu_swap()
636 reg = (ulong)fdtdec_get_addr_size_auto_parent(blob, cpus_offset, noffset, in sanity_cpu_swap()
1421 int i, noffset; in bootargs_add_dtb_dtbo() local
1424 noffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in bootargs_add_dtb_dtbo()
1425 if (noffset < 0) in bootargs_add_dtb_dtbo()
1429 bootargs = fdt_getprop(fdt, noffset, arr_bootargs[i], NULL); in bootargs_add_dtb_dtbo()
/rk3399_rockchip-uboot/include/
H A Dimage.h977 void fit_image_print(const void *fit, int noffset, const char *p);
1009 int noffset, int *len) in fit_get_name() argument
1011 return fdt_get_name(fit_hdr, noffset, len); in fit_get_name()
1014 int fit_get_desc(const void *fit, int noffset, char **desc);
1015 int fit_get_timestamp(const void *fit, int noffset, time_t *timestamp);
1019 int fit_image_get_os(const void *fit, int noffset, uint8_t *os);
1020 int fit_image_get_arch(const void *fit, int noffset, uint8_t *arch);
1021 int fit_image_get_type(const void *fit, int noffset, uint8_t *type);
1022 int fit_image_get_comp(const void *fit, int noffset, uint8_t *comp);
1023 bool fit_image_is_preload(const void *fit, int noffset);
[all …]
/rk3399_rockchip-uboot/drivers/cpu/
H A Drockchip_amp.c70 static u32 fit_get_u32_default(const void *fit, int noffset, in fit_get_u32_default() argument
75 val = fdt_getprop(fit, noffset, prop, NULL); in fit_get_u32_default()
85 int noffset, cpu, i = 0; in parse_os_amp_dispatcher() local
90 noffset = fdt_path_offset(fdt, ROCKCHIP_AMP_NODE); in parse_os_amp_dispatcher()
91 if (noffset < 0) in parse_os_amp_dispatcher()
94 if (!fdtdec_get_is_enabled(fdt, noffset)) in parse_os_amp_dispatcher()
97 noffset = fdt_path_offset(fdt, ROCKCHIP_AMP_CPUS_NODE); in parse_os_amp_dispatcher()
98 if (noffset < 0) in parse_os_amp_dispatcher()
101 fdt_for_each_subnode(cpu, fdt, noffset) { in parse_os_amp_dispatcher()
245 static int brought_up_amp(void *fit, int noffset, in brought_up_amp() argument
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dsource.c38 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 Dximg.c46 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 Dtftp_update.c141 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()
367 int noffset; in update_verify_hdr() local
371 noffset = fdt_path_offset(fit, FIT_CONFS_PATH); in update_verify_hdr()
372 name = fdt_getprop(fit, noffset, "default", NULL); in update_verify_hdr()
373 conf = fdt_subnode_offset(fit, noffset, name); in update_verify_hdr()
534 int noffset; in update_write_gpt() local
[all …]
H A Dfpga.c245 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()
/rk3399_rockchip-uboot/lib/rsa/
H A Drsa-verify.c547 int ndepth, noffset; in rsa_verify() local
593 for (ndepth = 0, noffset = fdt_next_node(info->fit, sig_node, &ndepth); in rsa_verify()
594 (noffset >= 0) && (ndepth > 0); in rsa_verify()
595 noffset = fdt_next_node(info->fit, noffset, &ndepth)) { in rsa_verify()
596 if (ndepth == 1 && noffset != node) { in rsa_verify()
598 noffset); in rsa_verify()
H A Drsa-sign.c795 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()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3308/
H A Drk3308.c481 static void fixup_pcfg_drive_strength(const void *blob, int noffset) in fixup_pcfg_drive_strength() argument
486 dss = (u32 *)fdt_getprop(blob, noffset, "drive-strength-s", NULL); in fixup_pcfg_drive_strength()
491 ds = (u32 *)fdt_getprop(blob, noffset, "drive-strength", NULL); in fixup_pcfg_drive_strength()
495 if (fdt_setprop((void *)blob, noffset, in fixup_pcfg_drive_strength()
/rk3399_rockchip-uboot/common/spl/
H A Dspl_fit.c153 static int spl_fit_image_uncipher(const void *fit, int noffset, in spl_fit_image_uncipher() argument
167 node_name = fdt_get_name(fit, noffset, NULL); in spl_fit_image_uncipher()
173 cipher_noffset = fdt_subnode_offset(fit, noffset, FIT_CIPHER_NODENAME); in spl_fit_image_uncipher()
475 static int spl_fit_image_get_os(const void *fit, int noffset, uint8_t *os) in spl_fit_image_get_os() argument
480 return fit_image_get_os(fit, noffset, os); in spl_fit_image_get_os()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/px30/
H A Dpx30.c474 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()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1126b/
H A Drv1126b.c514 int i, count, n, noffset, num = 0; in board_bidram_fixup() local
546 noffset = fdt_path_offset(gd->fdt_blob, "/dsmc@21ca0000"); in board_bidram_fixup()
547 if ((noffset >= 0) && fdtdec_get_is_enabled(gd->fdt_blob, noffset)) { in board_bidram_fixup()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3588/
H A Drk3588.c1107 int noffset; in fdt_rename_path() local
1109 noffset = fdt_path_offset(blob, path); in fdt_rename_path()
1110 if (noffset < 0) in fdt_rename_path()
1113 fdt_set_name(blob, noffset, name); in fdt_rename_path()