Lines Matching full:phandle
82 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 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()
85 "find /testcase-data/phandle-tests/consumer-a failed\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()
102 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
103 "find testcase-alias/phandle-tests/consumer-a failed\n"); in of_unittest_find_node_by_name()
316 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf()
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()
357 pr_info("Duplicate phandle! %i used by %pOF and %pOF\n", in of_unittest_check_phandles()
358 np->phandle, nh->np, np); in of_unittest_check_phandles()
369 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
388 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 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()
402 "#phandle-cells", i, &args); in of_unittest_parse_phandle_with_args()
404 /* Test the values from tests-phandle.dtsi */ 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()
456 "#phandle-cells", 0, &args); 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()
459 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
466 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
468 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
469 "#phandle-cells-missing", 0, &args); in of_unittest_parse_phandle_with_args()
472 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
477 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
479 rc = of_count_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
480 "#phandle-cells-missing"); in of_unittest_parse_phandle_with_args()
483 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
487 /* Check for bad phandle in list */ in of_unittest_parse_phandle_with_args()
491 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); 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()
494 "#phandle-cells", 0, &args); in of_unittest_parse_phandle_with_args()
497 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
502 "OF: /testcase-data/phandle-tests/consumer-a: could not find 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()
505 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
508 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
516 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); 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()
519 "#phandle-cells", 1, &args); in of_unittest_parse_phandle_with_args()
522 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); in of_unittest_parse_phandle_with_args()
527 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); 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()
530 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
533 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); in of_unittest_parse_phandle_with_args()
544 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-b"); in of_unittest_parse_phandle_with_args_map()
550 p0 = of_find_node_by_path("/testcase-data/phandle-tests/provider0"); in of_unittest_parse_phandle_with_args_map()
556 p1 = of_find_node_by_path("/testcase-data/phandle-tests/provider1"); in of_unittest_parse_phandle_with_args_map()
562 p2 = of_find_node_by_path("/testcase-data/phandle-tests/provider2"); in of_unittest_parse_phandle_with_args_map()
568 p3 = of_find_node_by_path("/testcase-data/phandle-tests/provider3"); 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()
582 "phandle", i, &args); in of_unittest_parse_phandle_with_args_map()
584 /* Test the values from tests-phandle.dtsi */ 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()
640 "phandle", 0, &args); in of_unittest_parse_phandle_with_args_map()
647 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… 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()
650 "phandle-missing", 0, &args); in of_unittest_parse_phandle_with_args_map()
652 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… in of_unittest_parse_phandle_with_args_map()
656 /* Check for bad phandle in list */ in of_unittest_parse_phandle_with_args_map()
660 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); 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()
663 "phandle", 0, &args); in of_unittest_parse_phandle_with_args_map()
665 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); in of_unittest_parse_phandle_with_args_map()
673 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found -1"); 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()
676 "phandle", 1, &args); in of_unittest_parse_phandle_with_args_map()
678 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found -1"); in of_unittest_parse_phandle_with_args_map()
689 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 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()
713 rc = of_property_count_strings(np, "phandle-list-names"); 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()
748 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
760 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
1037 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts()
1093 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts_extended()
3276 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest()