Lines Matching refs:strings

598 	const char *strings[4];  in of_unittest_property_string()  local
634 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
635 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
636 strings[0] = NULL; in of_unittest_property_string()
637 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
638 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
639 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
640 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
641 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
642 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
643 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
644 …unittest(rc == 0 && !strcmp(strings[0], "third"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
645 strings[0] = NULL; in of_unittest_property_string()
646 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
647 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
648 strings[0] = NULL; in of_unittest_property_string()
649 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
650 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
651 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
652 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
653 strings[0] = NULL; in of_unittest_property_string()
654 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
655 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
656 strings[1] = NULL; in of_unittest_property_string()
659 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
661 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
663 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
666 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
669 strings[2] = NULL; in of_unittest_property_string()
670 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
671 unittest(rc == 2 && strings[2] == NULL, "of_property_read_string_array() failure; rc=%i\n", rc); in of_unittest_property_string()
672 strings[1] = NULL; in of_unittest_property_string()
673 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
674 …unittest(rc == 1 && strings[1] == NULL, "Overwrote end of string array; rc=%i, str='%s'\n", rc, st… in of_unittest_property_string()