Lines Matching +full:prop +full:-
1 // SPDX-License-Identifier: GPL-2.0
13 PROPERTY_ENTRY_U8("prop-u8", 8), in pe_test_uints()
14 PROPERTY_ENTRY_U16("prop-u16", 16), in pe_test_uints()
15 PROPERTY_ENTRY_U32("prop-u32", 32), in pe_test_uints()
16 PROPERTY_ENTRY_U64("prop-u64", 64), in pe_test_uints()
30 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints()
33 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints()
37 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints()
41 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints()
44 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints()
47 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uints()
50 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uints()
54 error = fwnode_property_count_u16(node, "prop-u16"); in pe_test_uints()
57 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 1); in pe_test_uints()
61 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 2); in pe_test_uints()
64 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uints()
67 error = fwnode_property_read_u16_array(node, "no-prop-u16", array_u16, 1); in pe_test_uints()
70 error = fwnode_property_read_u32(node, "prop-u32", &val_u32); in pe_test_uints()
74 error = fwnode_property_count_u32(node, "prop-u32"); in pe_test_uints()
77 error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 1); in pe_test_uints()
81 error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 2); in pe_test_uints()
84 error = fwnode_property_read_u32(node, "no-prop-u32", &val_u32); in pe_test_uints()
87 error = fwnode_property_read_u32_array(node, "no-prop-u32", array_u32, 1); in pe_test_uints()
90 error = fwnode_property_read_u64(node, "prop-u64", &val_u64); in pe_test_uints()
94 error = fwnode_property_count_u64(node, "prop-u64"); in pe_test_uints()
97 error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 1); in pe_test_uints()
101 error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 2); in pe_test_uints()
104 error = fwnode_property_read_u64(node, "no-prop-u64", &val_u64); in pe_test_uints()
107 error = fwnode_property_read_u64_array(node, "no-prop-u64", array_u64, 1); in pe_test_uints()
110 /* Count 64-bit values as 16-bit */ in pe_test_uints()
111 error = fwnode_property_count_u16(node, "prop-u64"); in pe_test_uints()
124 PROPERTY_ENTRY_U8_ARRAY("prop-u8", a_u8), in pe_test_uint_arrays()
125 PROPERTY_ENTRY_U16_ARRAY("prop-u16", a_u16), in pe_test_uint_arrays()
126 PROPERTY_ENTRY_U32_ARRAY("prop-u32", a_u32), in pe_test_uint_arrays()
127 PROPERTY_ENTRY_U64_ARRAY("prop-u64", a_u64), in pe_test_uint_arrays()
141 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uint_arrays()
145 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uint_arrays()
148 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uint_arrays()
152 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uint_arrays()
157 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 17); in pe_test_uint_arrays()
160 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uint_arrays()
163 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uint_arrays()
166 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uint_arrays()
170 error = fwnode_property_count_u16(node, "prop-u16"); in pe_test_uint_arrays()
173 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 1); in pe_test_uint_arrays()
177 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 2); in pe_test_uint_arrays()
182 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 17); in pe_test_uint_arrays()
185 error = fwnode_property_read_u16(node, "no-prop-u16", &val_u16); in pe_test_uint_arrays()
188 error = fwnode_property_read_u16_array(node, "no-prop-u16", array_u16, 1); in pe_test_uint_arrays()
191 error = fwnode_property_read_u32(node, "prop-u32", &val_u32); in pe_test_uint_arrays()
195 error = fwnode_property_count_u32(node, "prop-u32"); in pe_test_uint_arrays()
198 error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 1); in pe_test_uint_arrays()
202 error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 2); in pe_test_uint_arrays()
207 error = fwnode_property_read_u32_array(node, "prop-u32", array_u32, 17); in pe_test_uint_arrays()
210 error = fwnode_property_read_u32(node, "no-prop-u32", &val_u32); in pe_test_uint_arrays()
213 error = fwnode_property_read_u32_array(node, "no-prop-u32", array_u32, 1); in pe_test_uint_arrays()
216 error = fwnode_property_read_u64(node, "prop-u64", &val_u64); in pe_test_uint_arrays()
220 error = fwnode_property_count_u64(node, "prop-u64"); in pe_test_uint_arrays()
223 error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 1); in pe_test_uint_arrays()
227 error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 2); in pe_test_uint_arrays()
232 error = fwnode_property_read_u64_array(node, "prop-u64", array_u64, 17); in pe_test_uint_arrays()
235 error = fwnode_property_read_u64(node, "no-prop-u64", &val_u64); in pe_test_uint_arrays()
238 error = fwnode_property_read_u64_array(node, "no-prop-u64", array_u64, 1); in pe_test_uint_arrays()
241 /* Count 64-bit values as 16-bit */ in pe_test_uint_arrays()
242 error = fwnode_property_count_u16(node, "prop-u64"); in pe_test_uint_arrays()
246 error = fwnode_property_count_u64(node, "prop-u16"); in pe_test_uint_arrays()
255 "string-a", in pe_test_strings()
256 "string-b", in pe_test_strings()
290 error = fwnode_property_read_string(node, "no-str", &str); in pe_test_strings()
293 error = fwnode_property_read_string_array(node, "no-str", strs, 1); in pe_test_strings()
305 KUNIT_EXPECT_STREQ(test, strs[0], "string-a"); in pe_test_strings()
306 KUNIT_EXPECT_STREQ(test, strs[1], "string-b"); in pe_test_strings()
310 KUNIT_EXPECT_STREQ(test, strs[0], "string-a"); in pe_test_strings()
312 /* NULL argument -> returns size */ in pe_test_strings()
319 KUNIT_EXPECT_STREQ(test, str, "string-a"); in pe_test_strings()
327 PROPERTY_ENTRY_BOOL("prop"), in pe_test_bool()
336 KUNIT_EXPECT_TRUE(test, fwnode_property_read_bool(node, "prop")); in pe_test_bool()
337 KUNIT_EXPECT_FALSE(test, fwnode_property_read_bool(node, "not-prop")); in pe_test_bool()
381 PROPERTY_ENTRY_STRING_ARRAY("small-empty", str_array_small_empty), in pe_test_move_inline_str()
418 PROPERTY_ENTRY_REF("ref-1", &node1), in pe_test_reference()
419 PROPERTY_ENTRY_REF("ref-2", &node2, 1, 2), in pe_test_reference()
420 PROPERTY_ENTRY_REF_ARRAY("ref-3", refs), in pe_test_reference()
434 error = fwnode_property_get_reference_args(node, "ref-1", NULL, in pe_test_reference()
441 error = fwnode_property_get_reference_args(node, "ref-1", NULL, in pe_test_reference()
445 error = fwnode_property_get_reference_args(node, "ref-2", NULL, in pe_test_reference()
453 error = fwnode_property_get_reference_args(node, "ref-2", NULL, in pe_test_reference()
463 error = fwnode_property_get_reference_args(node, "ref-2", NULL, in pe_test_reference()
468 error = fwnode_property_get_reference_args(node, "ref-3", NULL, in pe_test_reference()
475 error = fwnode_property_get_reference_args(node, "ref-3", NULL, in pe_test_reference()
484 error = fwnode_property_get_reference_args(node, "ref-1", NULL, in pe_test_reference()
504 .name = "property-entry",