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()
107 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local
114 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
118 prop = pr->prop; in of_reconfig_get_state_change()
121 prop = pr->prop; in of_reconfig_get_state_change()
134 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change()
136 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change()
137 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change()
184 struct property *prop, struct property *oldprop) in of_property_notify() argument
193 pr.prop = prop; in of_property_notify()
310 struct property *prop, *next; in property_list_free() local
312 for (prop = prop_list; prop != NULL; prop = next) { in property_list_free()
313 next = prop->next; in property_list_free()
314 kfree(prop->name); in property_list_free()
315 kfree(prop->value); in property_list_free()
316 kfree(prop); in property_list_free()
403 struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags) in __of_prop_dup() argument
417 new->name = kstrdup(prop->name, allocflags); in __of_prop_dup()
418 new->value = kmemdup(prop->value, prop->length, allocflags); in __of_prop_dup()
419 new->length = prop->length; in __of_prop_dup()
555 rce->old_prop = ce->prop; in __of_changeset_entry_invert()
556 rce->prop = ce->old_prop; in __of_changeset_entry_invert()
558 if (!rce->prop) { in __of_changeset_entry_invert()
560 rce->prop = ce->prop; in __of_changeset_entry_invert()
588 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop); in __of_changeset_entry_notify()
605 of_changeset_action_debug("apply: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
615 ret = __of_add_property(ce->np, ce->prop); in __of_changeset_entry_apply()
618 ret = __of_remove_property(ce->np, ce->prop); in __of_changeset_entry_apply()
622 ret = __of_update_property(ce->np, ce->prop, &ce->old_prop); in __of_changeset_entry_apply()
629 of_changeset_action_err("apply failed: ", ce->action, ce->np, ce->prop); in __of_changeset_entry_apply()
890 struct device_node *np, struct property *prop) in of_changeset_action() argument
904 ce->prop = prop; in of_changeset_action()
949 struct property prop; in of_changeset_add_prop_string() local
951 prop.name = (char *)prop_name; in of_changeset_add_prop_string()
952 prop.length = strlen(str) + 1; in of_changeset_add_prop_string()
953 prop.value = (void *)str; in of_changeset_add_prop_string()
955 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string()
978 struct property prop; in of_changeset_add_prop_string_array() local
982 prop.name = (char *)prop_name; in of_changeset_add_prop_string_array()
984 prop.length = 0; in of_changeset_add_prop_string_array()
986 prop.length += strlen(str_array[i]) + 1; in of_changeset_add_prop_string_array()
988 prop.value = kmalloc(prop.length, GFP_KERNEL); in of_changeset_add_prop_string_array()
989 if (!prop.value) in of_changeset_add_prop_string_array()
992 vp = prop.value; in of_changeset_add_prop_string_array()
994 vp += snprintf(vp, (char *)prop.value + prop.length - vp, "%s", in of_changeset_add_prop_string_array()
997 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string_array()
998 kfree(prop.value); in of_changeset_add_prop_string_array()
1023 struct property prop; in of_changeset_add_prop_u32_array() local
1033 prop.name = (char *)prop_name; in of_changeset_add_prop_u32_array()
1034 prop.length = sizeof(u32) * sz; in of_changeset_add_prop_u32_array()
1035 prop.value = (void *)val; in of_changeset_add_prop_u32_array()
1037 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_u32_array()