Lines Matching refs:passed
32 int passed; member
42 unittest_results.passed++; \
376 bool passed = true; in of_unittest_parse_phandle_with_args() local
384 passed &= !rc; in of_unittest_parse_phandle_with_args()
385 passed &= (args.args_count == 1); in of_unittest_parse_phandle_with_args()
386 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_phandle_with_args()
389 passed &= !rc; in of_unittest_parse_phandle_with_args()
390 passed &= (args.args_count == 2); in of_unittest_parse_phandle_with_args()
391 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_phandle_with_args()
392 passed &= (args.args[1] == 0); in of_unittest_parse_phandle_with_args()
395 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args()
398 passed &= !rc; in of_unittest_parse_phandle_with_args()
399 passed &= (args.args_count == 3); in of_unittest_parse_phandle_with_args()
400 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_phandle_with_args()
401 passed &= (args.args[1] == 4); in of_unittest_parse_phandle_with_args()
402 passed &= (args.args[2] == 3); in of_unittest_parse_phandle_with_args()
405 passed &= !rc; in of_unittest_parse_phandle_with_args()
406 passed &= (args.args_count == 2); in of_unittest_parse_phandle_with_args()
407 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_phandle_with_args()
408 passed &= (args.args[1] == 100); in of_unittest_parse_phandle_with_args()
411 passed &= !rc; in of_unittest_parse_phandle_with_args()
412 passed &= (args.args_count == 0); in of_unittest_parse_phandle_with_args()
415 passed &= !rc; in of_unittest_parse_phandle_with_args()
416 passed &= (args.args_count == 1); in of_unittest_parse_phandle_with_args()
417 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_phandle_with_args()
420 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args()
423 passed = false; in of_unittest_parse_phandle_with_args()
426 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_phandle_with_args()
503 bool passed = true; in of_unittest_parse_phandle_with_args_map() local
511 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
512 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
513 passed &= (args.args_count == 1); in of_unittest_parse_phandle_with_args_map()
514 passed &= (args.args[0] == 1); in of_unittest_parse_phandle_with_args_map()
517 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
518 passed &= (args.np == p3); in of_unittest_parse_phandle_with_args_map()
519 passed &= (args.args_count == 3); in of_unittest_parse_phandle_with_args_map()
520 passed &= (args.args[0] == 2); in of_unittest_parse_phandle_with_args_map()
521 passed &= (args.args[1] == 5); in of_unittest_parse_phandle_with_args_map()
522 passed &= (args.args[2] == 3); in of_unittest_parse_phandle_with_args_map()
525 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args_map()
528 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
529 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
530 passed &= (args.args_count == 0); in of_unittest_parse_phandle_with_args_map()
533 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
534 passed &= (args.np == p1); in of_unittest_parse_phandle_with_args_map()
535 passed &= (args.args_count == 1); in of_unittest_parse_phandle_with_args_map()
536 passed &= (args.args[0] == 3); in of_unittest_parse_phandle_with_args_map()
539 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
540 passed &= (args.np == p0); in of_unittest_parse_phandle_with_args_map()
541 passed &= (args.args_count == 0); in of_unittest_parse_phandle_with_args_map()
544 passed &= !rc; in of_unittest_parse_phandle_with_args_map()
545 passed &= (args.np == p2); in of_unittest_parse_phandle_with_args_map()
546 passed &= (args.args_count == 2); in of_unittest_parse_phandle_with_args_map()
547 passed &= (args.args[0] == 15); in of_unittest_parse_phandle_with_args_map()
548 passed &= (args.args[1] == 0x20); in of_unittest_parse_phandle_with_args_map()
551 passed &= (rc == -ENOENT); in of_unittest_parse_phandle_with_args_map()
554 passed = false; in of_unittest_parse_phandle_with_args_map()
557 unittest(passed, "index %i - data error on node %s rc=%i\n", in of_unittest_parse_phandle_with_args_map()
784 bool passed = true; in of_unittest_parse_interrupts() local
789 passed &= !rc; in of_unittest_parse_interrupts()
790 passed &= (args.args_count == 1); in of_unittest_parse_interrupts()
791 passed &= (args.args[0] == (i + 1)); in of_unittest_parse_interrupts()
793 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
805 bool passed = true; in of_unittest_parse_interrupts() local
813 passed &= !rc; in of_unittest_parse_interrupts()
814 passed &= (args.args_count == 1); in of_unittest_parse_interrupts()
815 passed &= (args.args[0] == 9); in of_unittest_parse_interrupts()
818 passed &= !rc; in of_unittest_parse_interrupts()
819 passed &= (args.args_count == 3); in of_unittest_parse_interrupts()
820 passed &= (args.args[0] == 10); in of_unittest_parse_interrupts()
821 passed &= (args.args[1] == 11); in of_unittest_parse_interrupts()
822 passed &= (args.args[2] == 12); in of_unittest_parse_interrupts()
825 passed &= !rc; in of_unittest_parse_interrupts()
826 passed &= (args.args_count == 2); in of_unittest_parse_interrupts()
827 passed &= (args.args[0] == 13); in of_unittest_parse_interrupts()
828 passed &= (args.args[1] == 14); in of_unittest_parse_interrupts()
831 passed &= !rc; in of_unittest_parse_interrupts()
832 passed &= (args.args_count == 2); in of_unittest_parse_interrupts()
833 passed &= (args.args[0] == 15); in of_unittest_parse_interrupts()
834 passed &= (args.args[1] == 16); in of_unittest_parse_interrupts()
837 passed = false; in of_unittest_parse_interrupts()
839 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
861 bool passed = true; in of_unittest_parse_interrupts_extended() local
868 passed &= !rc; in of_unittest_parse_interrupts_extended()
869 passed &= (args.args_count == 1); in of_unittest_parse_interrupts_extended()
870 passed &= (args.args[0] == 1); in of_unittest_parse_interrupts_extended()
873 passed &= !rc; in of_unittest_parse_interrupts_extended()
874 passed &= (args.args_count == 3); in of_unittest_parse_interrupts_extended()
875 passed &= (args.args[0] == 2); in of_unittest_parse_interrupts_extended()
876 passed &= (args.args[1] == 3); in of_unittest_parse_interrupts_extended()
877 passed &= (args.args[2] == 4); in of_unittest_parse_interrupts_extended()
880 passed &= !rc; in of_unittest_parse_interrupts_extended()
881 passed &= (args.args_count == 2); in of_unittest_parse_interrupts_extended()
882 passed &= (args.args[0] == 5); in of_unittest_parse_interrupts_extended()
883 passed &= (args.args[1] == 6); in of_unittest_parse_interrupts_extended()
886 passed &= !rc; in of_unittest_parse_interrupts_extended()
887 passed &= (args.args_count == 1); in of_unittest_parse_interrupts_extended()
888 passed &= (args.args[0] == 9); in of_unittest_parse_interrupts_extended()
891 passed &= !rc; in of_unittest_parse_interrupts_extended()
892 passed &= (args.args_count == 3); in of_unittest_parse_interrupts_extended()
893 passed &= (args.args[0] == 10); in of_unittest_parse_interrupts_extended()
894 passed &= (args.args[1] == 11); in of_unittest_parse_interrupts_extended()
895 passed &= (args.args[2] == 12); in of_unittest_parse_interrupts_extended()
898 passed &= !rc; in of_unittest_parse_interrupts_extended()
899 passed &= (args.args_count == 2); in of_unittest_parse_interrupts_extended()
900 passed &= (args.args[0] == 13); in of_unittest_parse_interrupts_extended()
901 passed &= (args.args[1] == 14); in of_unittest_parse_interrupts_extended()
904 passed &= !rc; in of_unittest_parse_interrupts_extended()
905 passed &= (args.args_count == 1); in of_unittest_parse_interrupts_extended()
906 passed &= (args.args[0] == 15); in of_unittest_parse_interrupts_extended()
909 passed = false; in of_unittest_parse_interrupts_extended()
912 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts_extended()
2486 unittest_results.passed, unittest_results.failed); in of_unittest()