Lines Matching refs:strings

693 	const char *strings[4];  in of_unittest_property_string()  local
729 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
730 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "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, "string-property", 1, 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 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
735 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
736 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
737 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
738 rc = of_property_read_string_index(np, "phandle-list-names", 2, strings); in of_unittest_property_string()
739 …unittest(rc == 0 && !strcmp(strings[0], "third"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
740 strings[0] = NULL; in of_unittest_property_string()
741 rc = of_property_read_string_index(np, "phandle-list-names", 3, strings); in of_unittest_property_string()
742 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
743 strings[0] = NULL; in of_unittest_property_string()
744 rc = of_property_read_string_index(np, "unterminated-string", 0, strings); in of_unittest_property_string()
745 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
746 rc = of_property_read_string_index(np, "unterminated-string-list", 0, strings); in of_unittest_property_string()
747 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
748 strings[0] = NULL; in of_unittest_property_string()
749 rc = of_property_read_string_index(np, "unterminated-string-list", 2, strings); /* should fail */ in of_unittest_property_string()
750 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
751 strings[1] = NULL; in of_unittest_property_string()
754 rc = of_property_read_string_array(np, "string-property", strings, 4); in of_unittest_property_string()
756 rc = of_property_read_string_array(np, "phandle-list-names", strings, 4); in of_unittest_property_string()
758 rc = of_property_read_string_array(np, "unterminated-string", strings, 4); in of_unittest_property_string()
761 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 4); in of_unittest_property_string()
764 strings[2] = NULL; in of_unittest_property_string()
765 rc = of_property_read_string_array(np, "unterminated-string-list", strings, 2); in of_unittest_property_string()
766 unittest(rc == 2 && strings[2] == NULL, "of_property_read_string_array() failure; rc=%i\n", rc); in of_unittest_property_string()
767 strings[1] = NULL; in of_unittest_property_string()
768 rc = of_property_read_string_array(np, "phandle-list-names", strings, 1); in of_unittest_property_string()
769 …unittest(rc == 1 && strings[1] == NULL, "Overwrote end of string array; rc=%i, str='%s'\n", rc, st… in of_unittest_property_string()