Lines Matching refs:root
172 int root = fdt_path_offset(_fdt, "/"); in rt_fdt_scan_root() local
174 if (root >= 0) in rt_fdt_scan_root()
181 if ((prop = fdt_getprop(_fdt, root, "#address-cells", RT_NULL))) in rt_fdt_scan_root()
186 if ((prop = fdt_getprop(_fdt, root, "#size-cells", RT_NULL))) in rt_fdt_scan_root()
509 int root = fdt_path_offset(_fdt, "/"); in rt_fdt_model_dump() local
511 if (root >= 0) in rt_fdt_model_dump()
513 const char *mach_model = fdt_getprop(_fdt, root, "model", RT_NULL); in rt_fdt_model_dump()
517 mach_model = fdt_getprop(_fdt, root, "compatible", RT_NULL); in rt_fdt_model_dump()
1040 struct rt_ofw_node *root = RT_NULL; in rt_fdt_unflatten_single() local
1044 root = rt_calloc(1, sizeof(struct fdt_info) + sizeof(struct rt_ofw_node)); in rt_fdt_unflatten_single()
1047 if (root) in rt_fdt_unflatten_single()
1049 header = (void *)root + sizeof(struct rt_ofw_node); in rt_fdt_unflatten_single()
1058 if (!fdt_unflatten_single(root, root_off)) in rt_fdt_unflatten_single()
1060 root->name = (const char *)header; in rt_fdt_unflatten_single()
1064 rt_ofw_node_destroy(root); in rt_fdt_unflatten_single()
1066 root = RT_NULL; in rt_fdt_unflatten_single()
1070 return root; in rt_fdt_unflatten_single()