• Home
  • Raw
  • Download

Lines Matching refs:strings

684 	const char *strings[4];  in of_unittest_property_string()  local
720 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
721 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
722 strings[0] = NULL; in of_unittest_property_string()
723 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
724 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
725 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
726 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
727 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
728 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
729 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
730 …unittest(rc == 0 && !strcmp(strings[0], "third"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
731 strings[0] = NULL; in of_unittest_property_string()
732 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
733 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
734 strings[0] = NULL; in of_unittest_property_string()
735 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
736 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
737 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
738 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
739 strings[0] = NULL; 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()
741 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
742 strings[1] = NULL; 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()
755 strings[2] = NULL; in of_unittest_property_string()
756 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
757 unittest(rc == 2 && strings[2] == NULL, "of_property_read_string_array() failure; rc=%i\n", rc); in of_unittest_property_string()
758 strings[1] = NULL; in of_unittest_property_string()
759 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
760 …unittest(rc == 1 && strings[1] == NULL, "Overwrote end of string array; rc=%i, str='%s'\n", rc, st… in of_unittest_property_string()