Lines Matching refs:np

68 	struct device_node *np;  in of_unittest_find_node_by_name()  local
71 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
72 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
73 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
75 of_node_put(np); in of_unittest_find_node_by_name()
79 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
80 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
82 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
83 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
84 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
86 of_node_put(np); in of_unittest_find_node_by_name()
89 np = of_find_node_by_path("testcase-alias"); in of_unittest_find_node_by_name()
90 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
91 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
93 of_node_put(np); in of_unittest_find_node_by_name()
97 np = of_find_node_by_path("testcase-alias/"); in of_unittest_find_node_by_name()
98 unittest(!np, "trailing '/' on testcase-alias/ should fail\n"); in of_unittest_find_node_by_name()
100 np = of_find_node_by_path("testcase-alias/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
101 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
102 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
104 of_node_put(np); in of_unittest_find_node_by_name()
107 np = of_find_node_by_path("/testcase-data/missing-path"); in of_unittest_find_node_by_name()
108 unittest(!np, "non-existent path returned node %pOF\n", np); in of_unittest_find_node_by_name()
109 of_node_put(np); in of_unittest_find_node_by_name()
111 np = of_find_node_by_path("missing-alias"); in of_unittest_find_node_by_name()
112 unittest(!np, "non-existent alias returned node %pOF\n", np); in of_unittest_find_node_by_name()
113 of_node_put(np); in of_unittest_find_node_by_name()
115 np = of_find_node_by_path("testcase-alias/missing-path"); in of_unittest_find_node_by_name()
116 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np); in of_unittest_find_node_by_name()
117 of_node_put(np); in of_unittest_find_node_by_name()
119 np = of_find_node_opts_by_path("/testcase-data:testoption", &options); in of_unittest_find_node_by_name()
120 unittest(np && !strcmp("testoption", options), in of_unittest_find_node_by_name()
122 of_node_put(np); in of_unittest_find_node_by_name()
124 np = of_find_node_opts_by_path("/testcase-data:test/option", &options); in of_unittest_find_node_by_name()
125 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
127 of_node_put(np); in of_unittest_find_node_by_name()
129 np = of_find_node_opts_by_path("/testcase-data/testcase-device1:test/option", &options); in of_unittest_find_node_by_name()
130 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
132 of_node_put(np); in of_unittest_find_node_by_name()
134 np = of_find_node_opts_by_path("/testcase-data:testoption", NULL); in of_unittest_find_node_by_name()
135 unittest(np, "NULL option path test failed\n"); in of_unittest_find_node_by_name()
136 of_node_put(np); in of_unittest_find_node_by_name()
138 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", in of_unittest_find_node_by_name()
140 unittest(np && !strcmp("testaliasoption", options), in of_unittest_find_node_by_name()
142 of_node_put(np); in of_unittest_find_node_by_name()
144 np = of_find_node_opts_by_path("testcase-alias:test/alias/option", in of_unittest_find_node_by_name()
146 unittest(np && !strcmp("test/alias/option", options), in of_unittest_find_node_by_name()
148 of_node_put(np); in of_unittest_find_node_by_name()
150 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", NULL); in of_unittest_find_node_by_name()
151 unittest(np, "NULL option alias path test failed\n"); in of_unittest_find_node_by_name()
152 of_node_put(np); in of_unittest_find_node_by_name()
155 np = of_find_node_opts_by_path("testcase-alias", &options); in of_unittest_find_node_by_name()
156 unittest(np && !options, "option clearing test failed\n"); in of_unittest_find_node_by_name()
157 of_node_put(np); in of_unittest_find_node_by_name()
160 np = of_find_node_opts_by_path("/", &options); in of_unittest_find_node_by_name()
161 unittest(np && !options, "option clearing root node test failed\n"); in of_unittest_find_node_by_name()
162 of_node_put(np); in of_unittest_find_node_by_name()
167 struct device_node *np; in of_unittest_dynamic() local
170 np = of_find_node_by_path("/testcase-data"); in of_unittest_dynamic()
171 if (!np) { in of_unittest_dynamic()
187 unittest(of_add_property(np, prop) == 0, "Adding a new property failed\n"); in of_unittest_dynamic()
194 unittest(of_add_property(np, prop) != 0, in of_unittest_dynamic()
200 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
208 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
212 unittest(of_remove_property(np, prop) == 0, in of_unittest_dynamic()
222 unittest(of_add_property(np, prop) == 0, in of_unittest_dynamic()
226 static int __init of_unittest_check_node_linkage(struct device_node *np) in of_unittest_check_node_linkage() argument
231 for_each_child_of_node(np, child) { in of_unittest_check_node_linkage()
232 if (child->parent != np) { in of_unittest_check_node_linkage()
234 child, np); in of_unittest_check_node_linkage()
253 struct device_node *np; in of_unittest_check_tree_linkage() local
259 for_each_of_allnodes(np) in of_unittest_check_tree_linkage()
270 static void __init of_unittest_printf_one(struct device_node *np, const char *fmt, in of_unittest_printf_one() argument
284 size = snprintf(buf, buf_size - 2, fmt, np); in of_unittest_printf_one()
296 snprintf(buf, size+1, fmt, np); in of_unittest_printf_one()
306 struct device_node *np; in of_unittest_printf() local
310 np = of_find_node_by_path(full_name); in of_unittest_printf()
311 if (!np) { in of_unittest_printf()
312 unittest(np, "testcase data missing\n"); in of_unittest_printf()
316 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf()
318 of_unittest_printf_one(np, "%pOF", full_name); in of_unittest_printf()
319 of_unittest_printf_one(np, "%pOFf", full_name); in of_unittest_printf()
320 of_unittest_printf_one(np, "%pOFn", "dev"); in of_unittest_printf()
321 of_unittest_printf_one(np, "%2pOFn", "dev"); in of_unittest_printf()
322 of_unittest_printf_one(np, "%5pOFn", " dev"); in of_unittest_printf()
323 of_unittest_printf_one(np, "%pOFnc", "dev:test-sub-device"); in of_unittest_printf()
324 of_unittest_printf_one(np, "%pOFp", phandle_str); in of_unittest_printf()
325 of_unittest_printf_one(np, "%pOFP", "dev@100"); in of_unittest_printf()
326 of_unittest_printf_one(np, "ABC %pOFP ABC", "ABC dev@100 ABC"); in of_unittest_printf()
327 of_unittest_printf_one(np, "%10pOFP", " dev@100"); in of_unittest_printf()
328 of_unittest_printf_one(np, "%-10pOFP", "dev@100 "); in of_unittest_printf()
330 of_unittest_printf_one(np, "%pOFF", "----"); in of_unittest_printf()
331 of_unittest_printf_one(np, "%pOFPF", "dev@100:----"); in of_unittest_printf()
332 of_unittest_printf_one(np, "%pOFPFPc", "dev@100:----:dev@100:test-sub-device"); in of_unittest_printf()
333 of_unittest_printf_one(np, "%pOFc", "test-sub-device"); in of_unittest_printf()
334 of_unittest_printf_one(np, "%pOFC", in of_unittest_printf()
340 struct device_node *np; member
346 struct device_node *np; in of_unittest_check_phandles() local
351 for_each_of_allnodes(np) { in of_unittest_check_phandles()
352 if (!np->phandle) in of_unittest_check_phandles()
355 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles()
356 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles()
358 np->phandle, nh->np, np); in of_unittest_check_phandles()
368 nh->np = np; in of_unittest_check_phandles()
369 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
384 struct device_node *np; in of_unittest_parse_phandle_with_args() local
388 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_parse_phandle_with_args()
389 if (!np) { in of_unittest_parse_phandle_with_args()
394 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args()
401 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
450 i, args.np, rc); in of_unittest_parse_phandle_with_args()
455 rc = of_parse_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
458 rc = of_count_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
468 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
479 rc = of_count_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
493 rc = of_parse_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
504 rc = of_count_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
518 rc = of_parse_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
529 rc = of_count_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
540 struct device_node *np, *p0, *p1, *p2, *p3; in of_unittest_parse_phandle_with_args_map() local
544 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-b"); in of_unittest_parse_phandle_with_args_map()
545 if (!np) { in of_unittest_parse_phandle_with_args_map()
574 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args_map()
581 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
588 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
594 passed &= (args.np == p3); in of_unittest_parse_phandle_with_args_map()
605 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
610 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
616 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
621 passed &= (args.np == p2); in of_unittest_parse_phandle_with_args_map()
634 i, args.np->full_name, rc); in of_unittest_parse_phandle_with_args_map()
639 rc = of_parse_phandle_with_args_map(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args_map()
649 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
662 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args_map()
675 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args_map()
686 struct device_node *np; in of_unittest_property_string() local
689 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_property_string()
690 if (!np) { in of_unittest_property_string()
695 rc = of_property_match_string(np, "phandle-list-names", "first"); in of_unittest_property_string()
697 rc = of_property_match_string(np, "phandle-list-names", "second"); in of_unittest_property_string()
699 rc = of_property_match_string(np, "phandle-list-names", "third"); in of_unittest_property_string()
701 rc = of_property_match_string(np, "phandle-list-names", "fourth"); in of_unittest_property_string()
703 rc = of_property_match_string(np, "missing-property", "blah"); in of_unittest_property_string()
705 rc = of_property_match_string(np, "empty-property", "blah"); in of_unittest_property_string()
707 rc = of_property_match_string(np, "unterminated-string", "blah"); in of_unittest_property_string()
711 rc = of_property_count_strings(np, "string-property"); in of_unittest_property_string()
713 rc = of_property_count_strings(np, "phandle-list-names"); in of_unittest_property_string()
715 rc = of_property_count_strings(np, "unterminated-string"); in of_unittest_property_string()
717 rc = of_property_count_strings(np, "unterminated-string-list"); in of_unittest_property_string()
721 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
724 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
726 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
728 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
730 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
733 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
736 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
738 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
741 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
746 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
748 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
750 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
753 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
757 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
760 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
798 struct device_node *n1, *n2, *n21, *nchangeset, *nremove, *parent, *np; in of_unittest_changeset() local
859 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")), in of_unittest_changeset()
861 of_node_put(np); in of_unittest_changeset()
875 struct device_node *np; in of_unittest_dma_get_max_cpu_address() local
881 np = of_find_node_by_path("/testcase-data/address-tests"); in of_unittest_dma_get_max_cpu_address()
882 if (!np) { in of_unittest_dma_get_max_cpu_address()
887 cpu_addr = of_dma_get_max_cpu_address(np); in of_unittest_dma_get_max_cpu_address()
897 struct device_node *np; in of_unittest_dma_ranges_one() local
901 np = of_find_node_by_path(path); in of_unittest_dma_ranges_one()
902 if (!np) { in of_unittest_dma_ranges_one()
907 rc = of_dma_get_range(np, &map); in of_unittest_dma_ranges_one()
909 unittest(!rc, "of_dma_get_range failed on node %pOF rc=%i\n", np, rc); in of_unittest_dma_ranges_one()
929 &paddr, expect_paddr, np); in of_unittest_dma_ranges_one()
932 &dma_addr, expect_dma_addr, np); in of_unittest_dma_ranges_one()
937 of_node_put(np); in of_unittest_dma_ranges_one()
954 struct device_node *np; in of_unittest_pci_dma_ranges() local
962 np = of_find_node_by_path("/testcase-data/address-tests/pci@90000000"); in of_unittest_pci_dma_ranges()
963 if (!np) { in of_unittest_pci_dma_ranges()
968 if (of_pci_dma_range_parser_init(&parser, np)) { in of_unittest_pci_dma_ranges()
980 np, range.size); in of_unittest_pci_dma_ranges()
983 range.cpu_addr, np); in of_unittest_pci_dma_ranges()
986 range.pci_addr, np); in of_unittest_pci_dma_ranges()
990 np, range.size); in of_unittest_pci_dma_ranges()
993 range.cpu_addr, np); in of_unittest_pci_dma_ranges()
996 range.pci_addr, np); in of_unittest_pci_dma_ranges()
1001 of_node_put(np); in of_unittest_pci_dma_ranges()
1006 struct device_node *np; in of_unittest_parse_interrupts() local
1013 np = of_find_node_by_path("/testcase-data/interrupts/interrupts0"); in of_unittest_parse_interrupts()
1014 if (!np) { in of_unittest_parse_interrupts()
1023 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts()
1030 i, args.np, rc); in of_unittest_parse_interrupts()
1032 of_node_put(np); in of_unittest_parse_interrupts()
1034 np = of_find_node_by_path("/testcase-data/interrupts/interrupts1"); in of_unittest_parse_interrupts()
1035 if (!np) { in of_unittest_parse_interrupts()
1044 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts()
1076 i, args.np, rc); in of_unittest_parse_interrupts()
1078 of_node_put(np); in of_unittest_parse_interrupts()
1083 struct device_node *np; in of_unittest_parse_interrupts_extended() local
1090 np = of_find_node_by_path("/testcase-data/interrupts/interrupts-extended0"); in of_unittest_parse_interrupts_extended()
1091 if (!np) { in of_unittest_parse_interrupts_extended()
1100 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts_extended()
1156 i, args.np, rc); in of_unittest_parse_interrupts_extended()
1158 of_node_put(np); in of_unittest_parse_interrupts_extended()
1198 struct device_node *np; in of_unittest_match_node() local
1203 np = of_find_node_by_path(match_node_tests[i].path); in of_unittest_match_node()
1204 if (!np) { in of_unittest_match_node()
1210 match = of_match_node(match_node_table, np); in of_unittest_match_node()
1234 struct device_node *np, *child, *grandchild; in of_unittest_platform_populate() local
1241 np = of_find_node_by_path("/testcase-data"); in of_unittest_platform_populate()
1242 of_platform_default_populate(np, NULL, NULL); in of_unittest_platform_populate()
1245 np = of_find_node_by_path("/testcase-data/testcase-device1"); in of_unittest_platform_populate()
1246 pdev = of_find_device_by_node(np); in of_unittest_platform_populate()
1255 np = of_find_node_by_path("/testcase-data/testcase-device2"); in of_unittest_platform_populate()
1256 pdev = of_find_device_by_node(np); in of_unittest_platform_populate()
1271 np = of_find_node_by_path("/testcase-data/platform-tests"); in of_unittest_platform_populate()
1272 unittest(np, "No testcase data in device tree\n"); in of_unittest_platform_populate()
1273 if (!np) in of_unittest_platform_populate()
1280 of_node_put(np); in of_unittest_platform_populate()
1283 test_bus->dev.of_node = np; in of_unittest_platform_populate()
1294 of_platform_populate(np, match, NULL, &test_bus->dev); in of_unittest_platform_populate()
1295 for_each_child_of_node(np, child) { in of_unittest_platform_populate()
1306 for_each_child_of_node(np, child) { in of_unittest_platform_populate()
1314 of_node_put(np); in of_unittest_platform_populate()
1325 static void update_node_properties(struct device_node *np, in update_node_properties() argument
1333 for_each_child_of_node(np, child) in update_node_properties()
1353 for (prop = np->properties; prop != NULL; prop = save_next) { in update_node_properties()
1360 np, prop->name); in update_node_properties()
1375 static void attach_node_and_children(struct device_node *np) in attach_node_and_children() argument
1381 full_name = kasprintf(GFP_KERNEL, "%pOF", np); in attach_node_and_children()
1392 update_node_properties(np, dup); in attach_node_and_children()
1396 child = np->child; in attach_node_and_children()
1397 np->child = NULL; in attach_node_and_children()
1401 np->sibling = np->parent->child; in attach_node_and_children()
1402 np->parent->child = np; in attach_node_and_children()
1403 of_node_clear_flag(np, OF_DETACHED); in attach_node_and_children()
1406 __of_attach_node_sysfs(np); in attach_node_and_children()
1424 struct device_node *unittest_data_node = NULL, *np; in unittest_data_add() local
1474 for_each_of_allnodes(np) in unittest_data_add()
1475 __of_attach_node_sysfs(np); in unittest_data_add()
1486 np = unittest_data_node->child; in unittest_data_add()
1487 while (np) { in unittest_data_add()
1488 struct device_node *next = np->sibling; in unittest_data_add()
1490 np->parent = of_root; in unittest_data_add()
1491 attach_node_and_children(np); in unittest_data_add()
1492 np = next; in unittest_data_add()
1509 struct device_node *np = dev->of_node; in unittest_probe() local
1511 if (np == NULL) { in unittest_probe()
1517 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_probe()
1519 of_platform_populate(np, NULL, NULL, &pdev->dev); in unittest_probe()
1527 struct device_node *np = dev->of_node; in unittest_remove() local
1529 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_remove()
1550 struct device_node *np; in of_path_to_platform_device() local
1553 np = of_find_node_by_path(path); in of_path_to_platform_device()
1554 if (np == NULL) in of_path_to_platform_device()
1557 pdev = of_find_device_by_node(np); in of_path_to_platform_device()
1558 of_node_put(np); in of_path_to_platform_device()
1820 struct device_node *np; in of_path_to_i2c_client() local
1823 np = of_find_node_by_path(path); in of_path_to_i2c_client()
1824 if (np == NULL) in of_path_to_i2c_client()
1827 client = of_find_i2c_device_by_node(np); in of_path_to_i2c_client()
1828 of_node_put(np); in of_path_to_i2c_client()
2444 struct device_node *np = dev->of_node; in unittest_i2c_bus_probe() local
2449 if (np == NULL) { in unittest_i2c_bus_probe()
2455 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_bus_probe()
2488 struct device_node *np = dev->of_node; in unittest_i2c_bus_remove() local
2491 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_bus_remove()
2515 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_probe() local
2517 if (!np) { in unittest_i2c_dev_probe()
2522 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_dev_probe()
2530 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_remove() local
2532 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_dev_remove()
2562 struct device_node *np = client->dev.of_node, *child; in unittest_i2c_mux_probe() local
2566 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_mux_probe()
2568 if (!np) { in unittest_i2c_mux_probe()
2574 for_each_child_of_node(np, child) { in unittest_i2c_mux_probe()
2606 struct device_node *np = client->dev.of_node; in unittest_i2c_mux_remove() local
2609 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_mux_remove()
3238 struct device_node *np; in of_unittest_overlay_high_level() local
3269 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3270 if (of_node_name_eq(np, "__local_fixups__")) { in of_unittest_overlay_high_level()
3271 *pprev = np->sibling; in of_unittest_overlay_high_level()
3274 pprev = &np->sibling; in of_unittest_overlay_high_level()
3282 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3283 if (of_node_name_eq(np, "__symbols__")) { in of_unittest_overlay_high_level()
3284 overlay_base_symbols = np; in of_unittest_overlay_high_level()
3285 *pprev = np->sibling; in of_unittest_overlay_high_level()
3288 pprev = &np->sibling; in of_unittest_overlay_high_level()
3292 for_each_child_of_node(overlay_base_root, np) { in of_unittest_overlay_high_level()
3295 if (!strcmp(np->full_name, base_child->full_name)) { in of_unittest_overlay_high_level()
3297 np); in of_unittest_overlay_high_level()
3298 of_node_put(np); in of_unittest_overlay_high_level()
3313 for (np = overlay_base_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3314 np->parent = of_root; in of_unittest_overlay_high_level()
3318 for (last_sibling = np = of_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3319 last_sibling = np; in of_unittest_overlay_high_level()
3326 for_each_of_allnodes_from(overlay_base_root, np) in of_unittest_overlay_high_level()
3327 __of_attach_node_sysfs(np); in of_unittest_overlay_high_level()
3463 struct device_node *np; in of_unittest() local
3482 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest()
3483 if (!np) { in of_unittest()
3487 of_node_put(np); in of_unittest()