Lines Matching refs:fdt
8 static const void *get_prop(const void *fdt, const char *node_path,
14 offset = fdt_path_offset(fdt, node_path);
18 prop = fdt_getprop(fdt, offset, property, &len);
25 static uint32_t get_cells(const void *fdt, const char *name)
27 const fdt32_t *prop = get_prop(fdt, "/", name, sizeof(fdt32_t));
64 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt)
73 if (!fdt)
76 if (fdt_magic(fdt) != FDT_MAGIC)
80 addr_cells = get_cells(fdt, "#address-cells");
81 size_cells = get_cells(fdt, "#size-cells");
90 usable = get_prop(fdt, "/chosen", "linux,usable-memory-range",
107 for (offset = fdt_next_node(fdt, -1, NULL); offset >= 0;
108 offset = fdt_next_node(fdt, offset, NULL)) {
109 type = fdt_getprop(fdt, offset, "device_type", NULL);
113 reg = fdt_getprop(fdt, offset, "linux,usable-memory", &len);
115 reg = fdt_getprop(fdt, offset, "reg", &len);