Lines Matching refs:node

43 	__maybe_unused int node;  in spl_fit_get_image_name()  local
51 for (node = fdt_first_subnode(fit, conf_node); in spl_fit_get_image_name()
52 node >= 0; in spl_fit_get_image_name()
53 node = fdt_next_subnode(fit, node)) { in spl_fit_get_image_name()
54 name = fdt_getprop(fit, node, "description", &len); in spl_fit_get_image_name()
97 int node; in spl_fit_get_image_node() local
105 node = fdt_subnode_offset(fit, images, str); in spl_fit_get_image_node()
106 if (node < 0) { in spl_fit_get_image_node()
107 debug("cannot find image node '%s': %d\n", str, node); in spl_fit_get_image_node()
111 return node; in spl_fit_get_image_node()
250 void *fit, ulong base_offset, int node, in spl_load_fit_image() argument
267 if (fit_image_get_comp(fit, node, &image_comp)) in spl_load_fit_image()
272 if (fit_image_get_type(fit, node, &type)) in spl_load_fit_image()
277 fit_image_get_comp(fit, node, &image_comp); in spl_load_fit_image()
280 if (fit_image_get_load(fit, node, &load_addr)) in spl_load_fit_image()
285 if (fit_image_get_comp_addr(fit, node, &comp_addr)) in spl_load_fit_image()
294 if (fit_image_get_cipher_addr(fit, node, &cipher_addr)) in spl_load_fit_image()
298 if (!fit_image_get_data_position(fit, node, &offset)) { in spl_load_fit_image()
300 } else if (!fit_image_get_data_offset(fit, node, &offset)) { in spl_load_fit_image()
307 if (fit_image_get_data_size(fit, node, &len)) in spl_load_fit_image()
331 if (fit_image_get_data(fit, node, &data, &length)) { in spl_load_fit_image()
343 fit_get_name(fit, node, NULL), load_addr, in spl_load_fit_image()
344 (char *)fdt_getprop(fit, node, FIT_COMP_PROP, NULL), in spl_load_fit_image()
348 fit_get_name(fit, node, NULL), load_addr); in spl_load_fit_image()
352 fit_image_print(fit, node, ""); in spl_load_fit_image()
354 if (!fit_image_verify_with_data(fit, node, in spl_load_fit_image()
359 if (fdt_subnode_offset(fit, node, FIT_CIPHER_NODENAME) > 0) { in spl_load_fit_image()
362 if (spl_fit_image_uncipher(fit, node, cipher_addr, length, (ulong)src)) in spl_load_fit_image()
369 if (board_fit_image_post_process(fit, node, (ulong *)&load_addr, in spl_load_fit_image()
393 image_info->entry_point = fdt_getprop_u32(fit, node, "entry"); in spl_load_fit_image()
404 int node, ret; in spl_fit_append_fdt() local
407 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 0); in spl_fit_append_fdt()
408 if (node < 0) { in spl_fit_append_fdt()
410 return node; in spl_fit_append_fdt()
418 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt()
437 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 1); in spl_fit_append_fdt()
438 if (node < 0) { in spl_fit_append_fdt()
446 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt()
458 int node; in spl_fit_record_loadable() local
465 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_fit_record_loadable()
469 fdt_getprop(fit, node, "type", NULL), in spl_fit_record_loadable()
470 fdt_getprop(fit, node, "os", NULL)); in spl_fit_record_loadable()
552 int node, index = 0; in spl_fit_get_kernel_dtb() local
555 node = spl_fit_get_image_node(fit, images_noffset, in spl_fit_get_kernel_dtb()
557 if (node < 0) in spl_fit_get_kernel_dtb()
559 name = fdt_get_name(fit, node, NULL); in spl_fit_get_kernel_dtb()
561 return node; in spl_fit_get_kernel_dtb()
570 return node; in spl_fit_get_kernel_dtb()
591 int node, ret, i; in spl_load_kernel_fit() local
654 node = spl_fit_get_kernel_dtb(fit, images_noffset); in spl_load_kernel_fit()
656 node = spl_fit_get_image_node(fit, images_noffset, in spl_load_kernel_fit()
658 if (node < 0) { in spl_load_kernel_fit()
664 node, &image_info); in spl_load_kernel_fit()
714 int node = -1; in spl_internal_load_simple_fit() local
780 node = spl_fit_get_image_node(fit, images, in spl_internal_load_simple_fit()
782 if (node < 0) in spl_internal_load_simple_fit()
786 node, &image_info); in spl_internal_load_simple_fit()
790 ret = fit_get_desc(fit, node, &desc); in spl_internal_load_simple_fit()
805 node = -1; in spl_internal_load_simple_fit()
814 if (node < 0) in spl_internal_load_simple_fit()
815 node = spl_fit_get_image_node(fit, images, FIT_FIRMWARE_PROP, in spl_internal_load_simple_fit()
818 if (node < 0) in spl_internal_load_simple_fit()
819 node = spl_fit_get_image_node(fit, images, FIT_KERNEL_PROP, 0); in spl_internal_load_simple_fit()
821 if (node < 0) { in spl_internal_load_simple_fit()
823 node = spl_fit_get_image_node(fit, images, "loadables", 0); in spl_internal_load_simple_fit()
830 if (node < 0) { in spl_internal_load_simple_fit()
832 __func__, node); in spl_internal_load_simple_fit()
837 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_internal_load_simple_fit()
846 if (!spl_fit_image_get_os(fit, node, &spl_image->os)) in spl_internal_load_simple_fit()
865 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_internal_load_simple_fit()
866 if (node < 0) in spl_internal_load_simple_fit()
869 if (!spl_fit_image_get_os(fit, node, &os_type)) in spl_internal_load_simple_fit()
877 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_internal_load_simple_fit()
884 fit_image_get_arch(fit, node, &ih_arch); in spl_internal_load_simple_fit()