Lines Matching refs:prop
76 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument
79 prop ? ":" : "", prop ? prop->name : ""); \
89 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
108 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
115 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
119 prop = pr->prop; in of_reconfig_get_state_change()
122 prop = pr->prop; in of_reconfig_get_state_change()
135 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
137 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
138 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
185 struct property *prop, struct property *oldprop) in of_property_notify() argument
194 pr.prop = prop; in of_property_notify()
311 struct property *prop, *next; in property_list_free() local
313 for (prop = prop_list; prop != NULL; prop = next) { in property_list_free()
314 next = prop->next; in property_list_free()
315 kfree(prop->name); in property_list_free()
316 kfree(prop->value); in property_list_free()
317 kfree(prop); in property_list_free()
404 struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags) in __of_prop_dup() argument
418 new->name = kstrdup(prop->name, allocflags); in __of_prop_dup()
419 new->value = kmemdup(prop->value, prop->length, allocflags); in __of_prop_dup()
420 new->length = prop->length; in __of_prop_dup()
556 rce->old_prop = ce->prop; in __of_changeset_entry_invert()
557 rce->prop = ce->old_prop; in __of_changeset_entry_invert()
559 if (!rce->prop) { in __of_changeset_entry_invert()
561 rce->prop = ce->prop; in __of_changeset_entry_invert()
589 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_notify()
606 of_changeset_action_debug("apply: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
616 ret = __of_add_property(ce->np, ce->prop); in __of_changeset_entry_apply()
619 ret = __of_remove_property(ce->np, ce->prop); in __of_changeset_entry_apply()
623 ret = __of_update_property(ce->np, ce->prop, &ce->old_prop); in __of_changeset_entry_apply()
630 of_changeset_action_err("apply failed: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
902 struct device_node *np, struct property *prop) in of_changeset_action() argument
916 ce->prop = prop; in of_changeset_action()
961 struct property prop; in of_changeset_add_prop_string() local
963 prop.name = (char *)prop_name; in of_changeset_add_prop_string()
964 prop.length = strlen(str) + 1; in of_changeset_add_prop_string()
965 prop.value = (void *)str; in of_changeset_add_prop_string()
967 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string()
990 struct property prop; in of_changeset_add_prop_string_array() local
994 prop.name = (char *)prop_name; in of_changeset_add_prop_string_array()
996 prop.length = 0; in of_changeset_add_prop_string_array()
998 prop.length += strlen(str_array[i]) + 1; in of_changeset_add_prop_string_array()
1000 prop.value = kmalloc(prop.length, GFP_KERNEL); in of_changeset_add_prop_string_array()
1001 if (!prop.value) in of_changeset_add_prop_string_array()
1004 vp = prop.value; in of_changeset_add_prop_string_array()
1006 vp += snprintf(vp, (char *)prop.value + prop.length - vp, "%s", in of_changeset_add_prop_string_array()
1009 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string_array()
1010 kfree(prop.value); in of_changeset_add_prop_string_array()
1035 struct property prop; in of_changeset_add_prop_u32_array() local
1045 prop.name = (char *)prop_name; in of_changeset_add_prop_u32_array()
1046 prop.length = sizeof(u32) * sz; in of_changeset_add_prop_u32_array()
1047 prop.value = (void *)val; in of_changeset_add_prop_u32_array()
1049 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_u32_array()