Lines Matching refs:strings

715 	const char *strings[4];  in of_unittest_property_string()  local
751 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
752 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
753 strings[0] = NULL; in of_unittest_property_string()
754 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
755 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
756 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
757 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
758 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
759 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
760 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
761 …unittest(rc == 0 && !strcmp(strings[0], "third"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
762 strings[0] = NULL; in of_unittest_property_string()
763 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
764 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
765 strings[0] = NULL; in of_unittest_property_string()
766 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
767 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
768 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
769 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
770 strings[0] = NULL; in of_unittest_property_string()
771 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
772 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
773 strings[1] = NULL; in of_unittest_property_string()
776 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
778 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
780 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
783 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
786 strings[2] = NULL; in of_unittest_property_string()
787 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
788 unittest(rc == 2 && strings[2] == NULL, "of_property_read_string_array() failure; rc=%i\n", rc); in of_unittest_property_string()
789 strings[1] = NULL; in of_unittest_property_string()
790 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
791 …unittest(rc == 1 && strings[1] == NULL, "Overwrote end of string array; rc=%i, str='%s'\n", rc, st… in of_unittest_property_string()