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