Lines Matching full:phandle

81 	np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a");  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()
84 "find /testcase-data/phandle-tests/consumer-a failed\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()
101 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
102 "find testcase-alias/phandle-tests/consumer-a failed\n"); in of_unittest_find_node_by_name()
315 num_to_str(phandle_str, sizeof(phandle_str), np->phandle, 0); in of_unittest_printf()
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()
356 pr_info("Duplicate phandle! %i used by %pOF and %pOF\n", in of_unittest_check_phandles()
357 np->phandle, nh->np, np); in of_unittest_check_phandles()
368 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles()
387 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 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()
401 "#phandle-cells", i, &args); in of_unittest_parse_phandle_with_args()
403 /* Test the values from tests-phandle.dtsi */ 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()
455 "#phandle-cells", 0, &args); 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()
458 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
465 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
467 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
468 "#phandle-cells-missing", 0, &args); in of_unittest_parse_phandle_with_args()
471 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
476 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
478 rc = of_count_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
479 "#phandle-cells-missing"); in of_unittest_parse_phandle_with_args()
482 …"OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-d… in of_unittest_parse_phandle_with_args()
486 /* Check for bad phandle in list */ in of_unittest_parse_phandle_with_args()
490 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); 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()
493 "#phandle-cells", 0, &args); in of_unittest_parse_phandle_with_args()
496 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
501 "OF: /testcase-data/phandle-tests/consumer-a: could not find 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()
504 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
507 "OF: /testcase-data/phandle-tests/consumer-a: could not find phandle"); in of_unittest_parse_phandle_with_args()
515 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); 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()
518 "#phandle-cells", 1, &args); in of_unittest_parse_phandle_with_args()
521 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); in of_unittest_parse_phandle_with_args()
526 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); 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()
529 "#phandle-cells"); in of_unittest_parse_phandle_with_args()
532 "OF: /testcase-data/phandle-tests/consumer-a: #phandle-cells = 3 found -1"); in of_unittest_parse_phandle_with_args()
543 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-b"); in of_unittest_parse_phandle_with_args_map()
549 p0 = of_find_node_by_path("/testcase-data/phandle-tests/provider0"); in of_unittest_parse_phandle_with_args_map()
555 p1 = of_find_node_by_path("/testcase-data/phandle-tests/provider1"); in of_unittest_parse_phandle_with_args_map()
561 p2 = of_find_node_by_path("/testcase-data/phandle-tests/provider2"); in of_unittest_parse_phandle_with_args_map()
567 p3 = of_find_node_by_path("/testcase-data/phandle-tests/provider3"); 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()
581 "phandle", i, &args); in of_unittest_parse_phandle_with_args_map()
583 /* Test the values from tests-phandle.dtsi */ 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()
639 "phandle", 0, &args); in of_unittest_parse_phandle_with_args_map()
646 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… 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()
649 "phandle-missing", 0, &args); in of_unittest_parse_phandle_with_args_map()
651 …"OF: /testcase-data/phandle-tests/consumer-b: could not get #phandle-missing-cells for /testcase-d… in of_unittest_parse_phandle_with_args_map()
655 /* Check for bad phandle in list */ in of_unittest_parse_phandle_with_args_map()
659 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); 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()
662 "phandle", 0, &args); in of_unittest_parse_phandle_with_args_map()
664 "OF: /testcase-data/phandle-tests/consumer-b: could not find phandle"); in of_unittest_parse_phandle_with_args_map()
672 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found -1"); 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()
675 "phandle", 1, &args); in of_unittest_parse_phandle_with_args_map()
677 "OF: /testcase-data/phandle-tests/consumer-b: #phandle-cells = 2 found -1"); in of_unittest_parse_phandle_with_args_map()
688 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); 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()
712 rc = of_property_count_strings(np, "phandle-list-names"); 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()
747 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
759 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
1016 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts()
1072 /* Test the values from tests-phandle.dtsi */ in of_unittest_parse_interrupts_extended()
3250 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest()