Lines Matching defs:node
17 * spl_node_to_boot_device() - maps from a DT-node to a SPL boot device
18 * @node: of_offset of the node
24 * are enabled in any given DTS). This function maps from a DT-node back
28 * -ENOENT, if no device matching the node could be found
29 * -ENOSYS, if the device matching the node can not be mapped onto a
35 static int spl_node_to_boot_device(int node)
44 if (!uclass_get_device_by_of_offset(UCLASS_MMC, node, &parent)) {
76 if (!uclass_get_device_by_of_offset(UCLASS_SPI_FLASH, node, &parent))
113 int node;
142 node = fdt_path_offset(blob, conf);
143 if (node < 0) {
149 boot_device = spl_node_to_boot_device(node);
151 debug("%s: could not map node %s to a boot-device\n",
182 int node;
209 node = fdt_path_offset(blob, conf);
210 if (node < 0) {
215 ret = uclass_find_device_by_of_offset(UCLASS_SPI_FLASH, node, &dev);