• Home
  • Raw
  • Download

Lines Matching refs:np

67 	struct device_node *np;  in of_unittest_find_node_by_name()  local
70 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
71 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
72 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
74 of_node_put(np); in of_unittest_find_node_by_name()
78 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
79 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
81 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
82 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
83 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
85 of_node_put(np); in of_unittest_find_node_by_name()
88 np = of_find_node_by_path("testcase-alias"); in of_unittest_find_node_by_name()
89 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
90 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
92 of_node_put(np); in of_unittest_find_node_by_name()
96 np = of_find_node_by_path("testcase-alias/"); in of_unittest_find_node_by_name()
97 unittest(!np, "trailing '/' on testcase-alias/ should fail\n"); in of_unittest_find_node_by_name()
99 np = of_find_node_by_path("testcase-alias/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
100 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
101 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
103 of_node_put(np); in of_unittest_find_node_by_name()
106 np = of_find_node_by_path("/testcase-data/missing-path"); in of_unittest_find_node_by_name()
107 unittest(!np, "non-existent path returned node %pOF\n", np); in of_unittest_find_node_by_name()
108 of_node_put(np); in of_unittest_find_node_by_name()
110 np = of_find_node_by_path("missing-alias"); in of_unittest_find_node_by_name()
111 unittest(!np, "non-existent alias returned node %pOF\n", np); in of_unittest_find_node_by_name()
112 of_node_put(np); in of_unittest_find_node_by_name()
114 np = of_find_node_by_path("testcase-alias/missing-path"); in of_unittest_find_node_by_name()
115 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np); in of_unittest_find_node_by_name()
116 of_node_put(np); in of_unittest_find_node_by_name()
118 np = of_find_node_opts_by_path("/testcase-data:testoption", &options); in of_unittest_find_node_by_name()
119 unittest(np && !strcmp("testoption", options), in of_unittest_find_node_by_name()
121 of_node_put(np); in of_unittest_find_node_by_name()
123 np = of_find_node_opts_by_path("/testcase-data:test/option", &options); in of_unittest_find_node_by_name()
124 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
126 of_node_put(np); in of_unittest_find_node_by_name()
128 np = of_find_node_opts_by_path("/testcase-data/testcase-device1:test/option", &options); in of_unittest_find_node_by_name()
129 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
131 of_node_put(np); in of_unittest_find_node_by_name()
133 np = of_find_node_opts_by_path("/testcase-data:testoption", NULL); in of_unittest_find_node_by_name()
134 unittest(np, "NULL option path test failed\n"); in of_unittest_find_node_by_name()
135 of_node_put(np); in of_unittest_find_node_by_name()
137 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", in of_unittest_find_node_by_name()
139 unittest(np && !strcmp("testaliasoption", options), in of_unittest_find_node_by_name()
141 of_node_put(np); in of_unittest_find_node_by_name()
143 np = of_find_node_opts_by_path("testcase-alias:test/alias/option", in of_unittest_find_node_by_name()
145 unittest(np && !strcmp("test/alias/option", options), in of_unittest_find_node_by_name()
147 of_node_put(np); in of_unittest_find_node_by_name()
149 np = of_find_node_opts_by_path("testcase-alias:testaliasoption", NULL); in of_unittest_find_node_by_name()
150 unittest(np, "NULL option alias path test failed\n"); in of_unittest_find_node_by_name()
151 of_node_put(np); in of_unittest_find_node_by_name()
154 np = of_find_node_opts_by_path("testcase-alias", &options); in of_unittest_find_node_by_name()
155 unittest(np && !options, "option clearing test failed\n"); in of_unittest_find_node_by_name()
156 of_node_put(np); in of_unittest_find_node_by_name()
159 np = of_find_node_opts_by_path("/", &options); in of_unittest_find_node_by_name()
160 unittest(np && !options, "option clearing root node test failed\n"); in of_unittest_find_node_by_name()
161 of_node_put(np); in of_unittest_find_node_by_name()
166 struct device_node *np; in of_unittest_dynamic() local
169 np = of_find_node_by_path("/testcase-data"); in of_unittest_dynamic()
170 if (!np) { in of_unittest_dynamic()
186 unittest(of_add_property(np, prop) == 0, "Adding a new property failed\n"); in of_unittest_dynamic()
193 unittest(of_add_property(np, prop) != 0, in of_unittest_dynamic()
199 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
207 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
211 unittest(of_remove_property(np, prop) == 0, in of_unittest_dynamic()
221 unittest(of_add_property(np, prop) == 0, in of_unittest_dynamic()
225 static int __init of_unittest_check_node_linkage(struct device_node *np) in of_unittest_check_node_linkage() argument
230 for_each_child_of_node(np, child) { in of_unittest_check_node_linkage()
231 if (child->parent != np) { in of_unittest_check_node_linkage()
233 child, np); in of_unittest_check_node_linkage()
252 struct device_node *np; in of_unittest_check_tree_linkage() local
258 for_each_of_allnodes(np) in of_unittest_check_tree_linkage()
269 static void __init of_unittest_printf_one(struct device_node *np, const char *fmt, in of_unittest_printf_one() argument
283 size = snprintf(buf, buf_size - 2, fmt, np); in of_unittest_printf_one()
295 snprintf(buf, size+1, fmt, np); in of_unittest_printf_one()
305 struct device_node *np; in of_unittest_printf() local
309 np = of_find_node_by_path(full_name); in of_unittest_printf()
310 if (!np) { in of_unittest_printf()
311 unittest(np, "testcase data missing\n"); in of_unittest_printf()
315 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf()
317 of_unittest_printf_one(np, "%pOF", full_name); in of_unittest_printf()
318 of_unittest_printf_one(np, "%pOFf", full_name); in of_unittest_printf()
319 of_unittest_printf_one(np, "%pOFn", "dev"); in of_unittest_printf()
320 of_unittest_printf_one(np, "%2pOFn", "dev"); in of_unittest_printf()
321 of_unittest_printf_one(np, "%5pOFn", " dev"); in of_unittest_printf()
322 of_unittest_printf_one(np, "%pOFnc", "dev:test-sub-device"); in of_unittest_printf()
323 of_unittest_printf_one(np, "%pOFp", phandle_str); in of_unittest_printf()
324 of_unittest_printf_one(np, "%pOFP", "dev@100"); in of_unittest_printf()
325 of_unittest_printf_one(np, "ABC %pOFP ABC", "ABC dev@100 ABC"); in of_unittest_printf()
326 of_unittest_printf_one(np, "%10pOFP", " dev@100"); in of_unittest_printf()
327 of_unittest_printf_one(np, "%-10pOFP", "dev@100 "); in of_unittest_printf()
329 of_unittest_printf_one(np, "%pOFF", "----"); in of_unittest_printf()
330 of_unittest_printf_one(np, "%pOFPF", "dev@100:----"); in of_unittest_printf()
331 of_unittest_printf_one(np, "%pOFPFPc", "dev@100:----:dev@100:test-sub-device"); in of_unittest_printf()
332 of_unittest_printf_one(np, "%pOFc", "test-sub-device"); in of_unittest_printf()
333 of_unittest_printf_one(np, "%pOFC", in of_unittest_printf()
339 struct device_node *np; member
345 struct device_node *np; in of_unittest_check_phandles() local
350 for_each_of_allnodes(np) { in of_unittest_check_phandles()
351 if (!np->phandle) in of_unittest_check_phandles()
354 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles()
355 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles()
357 np->phandle, nh->np, np); in of_unittest_check_phandles()
367 nh->np = np; in of_unittest_check_phandles()
368 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
383 struct device_node *np; in of_unittest_parse_phandle_with_args() local
387 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_parse_phandle_with_args()
388 if (!np) { in of_unittest_parse_phandle_with_args()
393 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args()
400 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
449 i, args.np, rc); in of_unittest_parse_phandle_with_args()
454 rc = of_parse_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
457 rc = of_count_phandle_with_args(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args()
467 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
478 rc = of_count_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
492 rc = of_parse_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
503 rc = of_count_phandle_with_args(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args()
517 rc = of_parse_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
528 rc = of_count_phandle_with_args(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args()
539 struct device_node *np, *p0, *p1, *p2, *p3; in of_unittest_parse_phandle_with_args_map() local
543 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-b"); in of_unittest_parse_phandle_with_args_map()
544 if (!np) { in of_unittest_parse_phandle_with_args_map()
573 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args_map()
580 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
587 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
593 passed &= (args.np == p3); in of_unittest_parse_phandle_with_args_map()
604 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
609 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
615 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
620 passed &= (args.np == p2); in of_unittest_parse_phandle_with_args_map()
633 i, args.np->full_name, rc); in of_unittest_parse_phandle_with_args_map()
638 rc = of_parse_phandle_with_args_map(np, "phandle-list-missing", in of_unittest_parse_phandle_with_args_map()
648 rc = of_parse_phandle_with_args_map(np, "phandle-list", in of_unittest_parse_phandle_with_args_map()
661 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle", in of_unittest_parse_phandle_with_args_map()
674 rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-args", in of_unittest_parse_phandle_with_args_map()
685 struct device_node *np; in of_unittest_property_string() local
688 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_property_string()
689 if (!np) { in of_unittest_property_string()
694 rc = of_property_match_string(np, "phandle-list-names", "first"); in of_unittest_property_string()
696 rc = of_property_match_string(np, "phandle-list-names", "second"); in of_unittest_property_string()
698 rc = of_property_match_string(np, "phandle-list-names", "third"); in of_unittest_property_string()
700 rc = of_property_match_string(np, "phandle-list-names", "fourth"); in of_unittest_property_string()
702 rc = of_property_match_string(np, "missing-property", "blah"); in of_unittest_property_string()
704 rc = of_property_match_string(np, "empty-property", "blah"); in of_unittest_property_string()
706 rc = of_property_match_string(np, "unterminated-string", "blah"); in of_unittest_property_string()
710 rc = of_property_count_strings(np, "string-property"); in of_unittest_property_string()
712 rc = of_property_count_strings(np, "phandle-list-names"); in of_unittest_property_string()
714 rc = of_property_count_strings(np, "unterminated-string"); in of_unittest_property_string()
716 rc = of_property_count_strings(np, "unterminated-string-list"); in of_unittest_property_string()
720 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
723 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
725 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
727 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
729 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
732 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
735 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
737 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
740 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
745 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
747 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
749 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
752 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
756 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
759 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
797 struct device_node *n1, *n2, *n21, *nchangeset, *nremove, *parent, *np; in of_unittest_changeset() local
858 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")), in of_unittest_changeset()
860 of_node_put(np); in of_unittest_changeset()
874 struct device_node *np; in of_unittest_dma_get_max_cpu_address() local
880 np = of_find_node_by_path("/testcase-data/address-tests"); in of_unittest_dma_get_max_cpu_address()
881 if (!np) { in of_unittest_dma_get_max_cpu_address()
886 cpu_addr = of_dma_get_max_cpu_address(np); in of_unittest_dma_get_max_cpu_address()
896 struct device_node *np; in of_unittest_dma_ranges_one() local
900 np = of_find_node_by_path(path); in of_unittest_dma_ranges_one()
901 if (!np) { in of_unittest_dma_ranges_one()
906 rc = of_dma_get_range(np, &map); in of_unittest_dma_ranges_one()
908 unittest(!rc, "of_dma_get_range failed on node %pOF rc=%i\n", np, rc); in of_unittest_dma_ranges_one()
928 &paddr, expect_paddr, np); in of_unittest_dma_ranges_one()
931 &dma_addr, expect_dma_addr, np); in of_unittest_dma_ranges_one()
936 of_node_put(np); in of_unittest_dma_ranges_one()
953 struct device_node *np; in of_unittest_pci_dma_ranges() local
961 np = of_find_node_by_path("/testcase-data/address-tests/pci@90000000"); in of_unittest_pci_dma_ranges()
962 if (!np) { in of_unittest_pci_dma_ranges()
967 if (of_pci_dma_range_parser_init(&parser, np)) { in of_unittest_pci_dma_ranges()
979 np, range.size); in of_unittest_pci_dma_ranges()
982 range.cpu_addr, np); in of_unittest_pci_dma_ranges()
985 range.pci_addr, np); in of_unittest_pci_dma_ranges()
989 np, range.size); in of_unittest_pci_dma_ranges()
992 range.cpu_addr, np); in of_unittest_pci_dma_ranges()
995 range.pci_addr, np); in of_unittest_pci_dma_ranges()
1000 of_node_put(np); in of_unittest_pci_dma_ranges()
1005 struct device_node *np; in of_unittest_parse_interrupts() local
1012 np = of_find_node_by_path("/testcase-data/interrupts/interrupts0"); in of_unittest_parse_interrupts()
1013 if (!np) { in of_unittest_parse_interrupts()
1022 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts()
1029 i, args.np, rc); in of_unittest_parse_interrupts()
1031 of_node_put(np); in of_unittest_parse_interrupts()
1033 np = of_find_node_by_path("/testcase-data/interrupts/interrupts1"); in of_unittest_parse_interrupts()
1034 if (!np) { in of_unittest_parse_interrupts()
1043 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts()
1075 i, args.np, rc); in of_unittest_parse_interrupts()
1077 of_node_put(np); in of_unittest_parse_interrupts()
1082 struct device_node *np; in of_unittest_parse_interrupts_extended() local
1089 np = of_find_node_by_path("/testcase-data/interrupts/interrupts-extended0"); in of_unittest_parse_interrupts_extended()
1090 if (!np) { in of_unittest_parse_interrupts_extended()
1099 rc = of_irq_parse_one(np, i, &args); in of_unittest_parse_interrupts_extended()
1149 i, args.np, rc); in of_unittest_parse_interrupts_extended()
1151 of_node_put(np); in of_unittest_parse_interrupts_extended()
1191 struct device_node *np; in of_unittest_match_node() local
1196 np = of_find_node_by_path(match_node_tests[i].path); in of_unittest_match_node()
1197 if (!np) { in of_unittest_match_node()
1203 match = of_match_node(match_node_table, np); in of_unittest_match_node()
1231 struct device_node *np, *child, *grandchild; in of_unittest_platform_populate() local
1238 np = of_find_node_by_path("/testcase-data"); in of_unittest_platform_populate()
1239 of_platform_default_populate(np, NULL, NULL); in of_unittest_platform_populate()
1242 np = of_find_node_by_path("/testcase-data/testcase-device1"); in of_unittest_platform_populate()
1243 pdev = of_find_device_by_node(np); in of_unittest_platform_populate()
1252 np = of_find_node_by_path("/testcase-data/testcase-device2"); in of_unittest_platform_populate()
1253 pdev = of_find_device_by_node(np); in of_unittest_platform_populate()
1268 np = of_find_node_by_path("/testcase-data/platform-tests"); in of_unittest_platform_populate()
1269 unittest(np, "No testcase data in device tree\n"); in of_unittest_platform_populate()
1270 if (!np) in of_unittest_platform_populate()
1277 of_node_put(np); in of_unittest_platform_populate()
1280 test_bus->dev.of_node = np; in of_unittest_platform_populate()
1291 of_platform_populate(np, match, NULL, &test_bus->dev); in of_unittest_platform_populate()
1292 for_each_child_of_node(np, child) { in of_unittest_platform_populate()
1303 for_each_child_of_node(np, child) { in of_unittest_platform_populate()
1311 of_node_put(np); in of_unittest_platform_populate()
1322 static void update_node_properties(struct device_node *np, in update_node_properties() argument
1330 for_each_child_of_node(np, child) in update_node_properties()
1350 for (prop = np->properties; prop != NULL; prop = save_next) { in update_node_properties()
1357 np, prop->name); in update_node_properties()
1372 static void attach_node_and_children(struct device_node *np) in attach_node_and_children() argument
1378 full_name = kasprintf(GFP_KERNEL, "%pOF", np); in attach_node_and_children()
1389 update_node_properties(np, dup); in attach_node_and_children()
1393 child = np->child; in attach_node_and_children()
1394 np->child = NULL; in attach_node_and_children()
1398 np->sibling = np->parent->child; in attach_node_and_children()
1399 np->parent->child = np; in attach_node_and_children()
1400 of_node_clear_flag(np, OF_DETACHED); in attach_node_and_children()
1403 __of_attach_node_sysfs(np); in attach_node_and_children()
1420 struct device_node *unittest_data_node, *np; in unittest_data_add() local
1462 for_each_of_allnodes(np) in unittest_data_add()
1463 __of_attach_node_sysfs(np); in unittest_data_add()
1474 np = unittest_data_node->child; in unittest_data_add()
1475 while (np) { in unittest_data_add()
1476 struct device_node *next = np->sibling; in unittest_data_add()
1478 np->parent = of_root; in unittest_data_add()
1479 attach_node_and_children(np); in unittest_data_add()
1480 np = next; in unittest_data_add()
1497 struct device_node *np = dev->of_node; in unittest_probe() local
1499 if (np == NULL) { in unittest_probe()
1505 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_probe()
1507 of_platform_populate(np, NULL, NULL, &pdev->dev); in unittest_probe()
1515 struct device_node *np = dev->of_node; in unittest_remove() local
1517 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_remove()
1538 struct device_node *np; in of_path_to_platform_device() local
1541 np = of_find_node_by_path(path); in of_path_to_platform_device()
1542 if (np == NULL) in of_path_to_platform_device()
1545 pdev = of_find_device_by_node(np); in of_path_to_platform_device()
1546 of_node_put(np); in of_path_to_platform_device()
1613 struct device_node *np = pdev->dev.of_node; in unittest_gpio_remove() local
1615 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_gpio_remove()
1809 struct device_node *np; in of_path_to_i2c_client() local
1812 np = of_find_node_by_path(path); in of_path_to_i2c_client()
1813 if (np == NULL) in of_path_to_i2c_client()
1816 client = of_find_i2c_device_by_node(np); in of_path_to_i2c_client()
1817 of_node_put(np); in of_path_to_i2c_client()
2445 struct device_node *np = dev->of_node; in unittest_i2c_bus_probe() local
2450 if (np == NULL) { in unittest_i2c_bus_probe()
2456 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_bus_probe()
2489 struct device_node *np = dev->of_node; in unittest_i2c_bus_remove() local
2492 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_bus_remove()
2516 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_probe() local
2518 if (!np) { in unittest_i2c_dev_probe()
2523 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_dev_probe()
2531 struct device_node *np = client->dev.of_node; in unittest_i2c_dev_remove() local
2533 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_dev_remove()
2564 struct device_node *np = client->dev.of_node, *child; in unittest_i2c_mux_probe() local
2568 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_mux_probe()
2570 if (!np) { in unittest_i2c_mux_probe()
2576 for_each_child_of_node(np, child) { in unittest_i2c_mux_probe()
2608 struct device_node *np = client->dev.of_node; in unittest_i2c_mux_remove() local
2611 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); in unittest_i2c_mux_remove()
3040 struct device_node *np; in of_unittest_overlay_high_level() local
3071 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3072 if (of_node_name_eq(np, "__local_fixups__")) { in of_unittest_overlay_high_level()
3073 *pprev = np->sibling; in of_unittest_overlay_high_level()
3076 pprev = &np->sibling; in of_unittest_overlay_high_level()
3084 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3085 if (of_node_name_eq(np, "__symbols__")) { in of_unittest_overlay_high_level()
3086 overlay_base_symbols = np; in of_unittest_overlay_high_level()
3087 *pprev = np->sibling; in of_unittest_overlay_high_level()
3090 pprev = &np->sibling; in of_unittest_overlay_high_level()
3094 for_each_child_of_node(overlay_base_root, np) { in of_unittest_overlay_high_level()
3097 if (!strcmp(np->full_name, base_child->full_name)) { in of_unittest_overlay_high_level()
3099 np); in of_unittest_overlay_high_level()
3113 for (np = overlay_base_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3114 np->parent = of_root; in of_unittest_overlay_high_level()
3118 for (last_sibling = np = of_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3119 last_sibling = np; in of_unittest_overlay_high_level()
3126 for_each_of_allnodes_from(overlay_base_root, np) in of_unittest_overlay_high_level()
3127 __of_attach_node_sysfs(np); in of_unittest_overlay_high_level()
3263 struct device_node *np; in of_unittest() local
3279 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest()
3280 if (!np) { in of_unittest()
3284 of_node_put(np); in of_unittest()