Lines Matching full:node

44 	__maybe_unused int node;  in spl_fit_get_image_name()  local
52 for (node = fdt_first_subnode(fit, conf_node); in spl_fit_get_image_name()
53 node >= 0; in spl_fit_get_image_name()
54 node = fdt_next_subnode(fit, node)) { in spl_fit_get_image_name()
55 name = fdt_getprop(fit, node, "description", &len); in spl_fit_get_image_name()
90 * Return: the node offset of the respective image node or a negative
98 int node; in spl_fit_get_image_node() local
106 node = fdt_subnode_offset(fit, images, str); in spl_fit_get_image_node()
107 if (node < 0) { in spl_fit_get_image_node()
108 debug("cannot find image node '%s': %d\n", str, node); in spl_fit_get_image_node()
112 return node; in spl_fit_get_image_node()
154 * spl_load_fit_image(): load the image described in a certain FIT node
161 * @node: offset of the DT node describing the image to load (relative
164 * If the FIT node does not contain a "load" (address) property,
171 void *fit, ulong base_offset, int node, in spl_load_fit_image() argument
189 if (fit_image_get_type(fit, node, &type)) in spl_load_fit_image()
196 if (fit_image_get_comp(fit, node, &image_comp)) in spl_load_fit_image()
202 if (fit_image_get_load(fit, node, &load_addr)) in spl_load_fit_image()
205 if (!fit_image_get_data_position(fit, node, &offset)) { in spl_load_fit_image()
207 } else if (!fit_image_get_data_offset(fit, node, &offset)) { in spl_load_fit_image()
214 if (fit_image_get_data_size(fit, node, &len)) in spl_load_fit_image()
233 if (fit_image_get_data(fit, node, &data, &length)) { in spl_load_fit_image()
244 fit_get_name(fit, node, NULL)); in spl_load_fit_image()
245 if (!fit_image_verify_with_data(fit, node, in spl_load_fit_image()
252 board_fit_image_post_process(fit, node, &src, &length); in spl_load_fit_image()
270 image_info->entry_point = fdt_getprop_u32(fit, node, "entry"); in spl_load_fit_image()
281 int node, ret; in spl_fit_append_fdt() local
284 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 0); in spl_fit_append_fdt()
285 if (node < 0) { in spl_fit_append_fdt()
286 debug("%s: cannot find FDT node\n", __func__); in spl_fit_append_fdt()
287 return node; in spl_fit_append_fdt()
295 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt()
317 int node; in spl_fit_record_loadable() local
324 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_fit_record_loadable()
328 fdt_getprop(fit, node, "type", NULL), in spl_fit_record_loadable()
329 fdt_getprop(fit, node, "os", NULL)); in spl_fit_record_loadable()
360 int node = -1; in spl_load_simple_fit() local
407 /* find the node holding the images information */ in spl_load_simple_fit()
410 debug("%s: Cannot find /images node: %d\n", __func__, images); in spl_load_simple_fit()
415 node = spl_fit_get_image_node(fit, images, "fpga", 0); in spl_load_simple_fit()
416 if (node >= 0) { in spl_load_simple_fit()
418 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
437 node = -1; in spl_load_simple_fit()
447 if (node < 0) in spl_load_simple_fit()
448 node = spl_fit_get_image_node(fit, images, FIT_FIRMWARE_PROP, in spl_load_simple_fit()
451 if (node < 0) in spl_load_simple_fit()
452 node = spl_fit_get_image_node(fit, images, FIT_KERNEL_PROP, 0); in spl_load_simple_fit()
454 if (node < 0) { in spl_load_simple_fit()
456 node = spl_fit_get_image_node(fit, images, "loadables", 0); in spl_load_simple_fit()
463 if (node < 0) { in spl_load_simple_fit()
464 debug("%s: Cannot find u-boot image node: %d\n", in spl_load_simple_fit()
465 __func__, node); in spl_load_simple_fit()
470 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
476 * For backward compatibility, we treat the first node that is in spl_load_simple_fit()
479 if (!spl_fit_image_get_os(fit, node, &spl_image->os)) in spl_load_simple_fit()
494 firmware_node = node; in spl_load_simple_fit()
499 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_load_simple_fit()
500 if (node < 0) in spl_load_simple_fit()
508 if (firmware_node == node) in spl_load_simple_fit()
511 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
516 if (!spl_fit_image_get_os(fit, node, &os_type)) in spl_load_simple_fit()