Lines Matching refs:prop

182 	struct property *prop;
191 prop = kcalloc(4, sizeof(*prop), GFP_KERNEL);
192 if (!prop) {
198 prop->name = "new-property";
199 prop->value = "new-property-data";
200 prop->length = strlen(prop->value) + 1;
201 unittest(of_add_property(np, prop) == 0, "Adding a new property failed\n");
204 prop++;
205 prop->name = "new-property";
206 prop->value = "new-property-data-should-fail";
207 prop->length = strlen(prop->value) + 1;
208 unittest(of_add_property(np, prop) != 0,
212 prop->value = "modify-property-data-should-pass";
213 prop->length = strlen(prop->value) + 1;
214 unittest(of_update_property(np, prop) == 0,
218 prop++;
219 prop->name = "modify-property";
220 prop->value = "modify-missing-property-data-should-pass";
221 prop->length = strlen(prop->value) + 1;
222 unittest(of_update_property(np, prop) == 0,
226 unittest(of_remove_property(np, prop) == 0,
230 prop++;
231 prop->name = "large-property-PAGE_SIZEx8";
232 prop->length = PAGE_SIZE * 8;
233 prop->value = kzalloc(prop->length, GFP_KERNEL);
234 unittest(prop->value != NULL, "Unable to allocate large buffer\n");
235 if (prop->value)
236 unittest(of_add_property(np, prop) == 0,
819 struct property *ppadd, padd = { .name = "prop-add", .length = 1, .value = "" };
823 struct property *ppupdate, pupdate = { .name = "prop-update", .length = 5, .value = "abcd" };
864 ppremove = of_find_property(parent, "prop-remove", NULL);
865 unittest(ppremove, "failed to find removal prop");
870 unittest(!of_changeset_add_property(&chgset, n1, ppname_n1), "fail add prop name\n");
873 unittest(!of_changeset_add_property(&chgset, n2, ppname_n2), "fail add prop name\n");
876 unittest(!of_changeset_add_property(&chgset, n21, ppname_n21), "fail add prop name\n");
880 unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop prop-add\n");
881 unittest(!of_changeset_update_property(&chgset, parent, ppupdate), "fail update prop\n");
882 unittest(!of_changeset_remove_property(&chgset, parent, ppremove), "fail remove prop\n");
885 unittest(!of_changeset_add_prop_string(&chgset, n22, "prop-str", "abcd"),
886 "fail add prop prop-str");
887 unittest(!of_changeset_add_prop_string_array(&chgset, n22, "prop-str-array",
890 "fail add prop prop-str-array");
891 unittest(!of_changeset_add_prop_u32_array(&chgset, n22, "prop-u32-array",
893 "fail add prop prop-u32-array");
912 ppremove = of_find_property(parent, "prop-remove", NULL);
913 unittest(ppremove, "failed to find removed prop after revert\n");
915 ret = of_property_read_string(parent, "prop-update", &propstr);
916 unittest(!ret, "failed to find updated prop after revert\n");
1531 struct property *prop;
1554 * sets prop->next to NULL
1556 for (prop = np->properties; prop != NULL; prop = save_next) {
1557 save_next = prop->next;
1558 ret = of_add_property(dup, prop);
1560 if (ret == -EEXIST && !strcmp(prop->name, "name"))
1563 np, prop->name);
3556 struct property *prop;
3645 for_each_property_of_node(overlay_base_symbols, prop) {
3647 new_prop = __of_prop_dup(prop, GFP_KERNEL);
3650 prop->name);
3658 if (!strcmp(prop->name, "name"))
3661 prop->name);
3666 prop->name);