Lines Matching refs:prop

75 #define _do_print(func, prefix, action, node, prop, ...) ({	\  argument
78 prop ? ":" : "", prop ? prop->name : ""); \
88 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
106 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
113 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
117 prop = pr->prop; in of_reconfig_get_state_change()
120 prop = pr->prop; in of_reconfig_get_state_change()
133 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
135 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
136 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
183 struct property *prop, struct property *oldprop) in of_property_notify() argument
192 pr.prop = prop; in of_property_notify()
309 struct property *prop, *next; in property_list_free() local
311 for (prop = prop_list; prop != NULL; prop = next) { in property_list_free()
312 next = prop->next; in property_list_free()
313 kfree(prop->name); in property_list_free()
314 kfree(prop->value); in property_list_free()
315 kfree(prop); in property_list_free()
402 struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags) in __of_prop_dup() argument
416 new->name = kstrdup(prop->name, allocflags); in __of_prop_dup()
417 new->value = kmemdup(prop->value, prop->length, allocflags); in __of_prop_dup()
418 new->length = prop->length; in __of_prop_dup()
554 rce->old_prop = ce->prop; in __of_changeset_entry_invert()
555 rce->prop = ce->old_prop; in __of_changeset_entry_invert()
557 if (!rce->prop) { in __of_changeset_entry_invert()
559 rce->prop = ce->prop; in __of_changeset_entry_invert()
587 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_notify()
604 of_changeset_action_debug("apply: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
614 ret = __of_add_property(ce->np, ce->prop); in __of_changeset_entry_apply()
617 ret = __of_remove_property(ce->np, ce->prop); in __of_changeset_entry_apply()
621 ret = __of_update_property(ce->np, ce->prop, &ce->old_prop); in __of_changeset_entry_apply()
628 of_changeset_action_err("apply failed: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
889 struct device_node *np, struct property *prop) in of_changeset_action() argument
903 ce->prop = prop; in of_changeset_action()
948 struct property prop; in of_changeset_add_prop_string() local
950 prop.name = (char *)prop_name; in of_changeset_add_prop_string()
951 prop.length = strlen(str) + 1; in of_changeset_add_prop_string()
952 prop.value = (void *)str; in of_changeset_add_prop_string()
954 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string()
977 struct property prop; in of_changeset_add_prop_string_array() local
981 prop.name = (char *)prop_name; in of_changeset_add_prop_string_array()
983 prop.length = 0; in of_changeset_add_prop_string_array()
985 prop.length += strlen(str_array[i]) + 1; in of_changeset_add_prop_string_array()
987 prop.value = kmalloc(prop.length, GFP_KERNEL); in of_changeset_add_prop_string_array()
988 if (!prop.value) in of_changeset_add_prop_string_array()
991 vp = prop.value; in of_changeset_add_prop_string_array()
993 vp += snprintf(vp, (char *)prop.value + prop.length - vp, "%s", in of_changeset_add_prop_string_array()
996 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string_array()
997 kfree(prop.value); in of_changeset_add_prop_string_array()
1022 struct property prop; in of_changeset_add_prop_u32_array() local
1032 prop.name = (char *)prop_name; in of_changeset_add_prop_u32_array()
1033 prop.length = sizeof(u32) * sz; in of_changeset_add_prop_u32_array()
1034 prop.value = (void *)val; in of_changeset_add_prop_u32_array()
1036 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_u32_array()