Lines Matching refs:action

76 #define _do_print(func, prefix, action, node, prop, ...) ({	\
78 ##__VA_ARGS__, action_names[action], node, \
84 int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p)
89 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop);
91 rc = blocking_notifier_call_chain(&of_reconfig_chain, action, p);
97 * @action - action of the of notifier
106 int of_reconfig_get_state_change(unsigned long action, struct of_reconfig_data *pr)
112 switch (action) {
144 switch (action) {
184 int of_property_notify(int action, struct device_node *np,
196 return of_reconfig_notify(action, &pr);
522 if (ce->action == OF_RECONFIG_ATTACH_NODE &&
542 switch (ce->action) {
544 rce->action = OF_RECONFIG_DETACH_NODE;
547 rce->action = OF_RECONFIG_ATTACH_NODE;
550 rce->action = OF_RECONFIG_REMOVE_PROPERTY;
553 rce->action = OF_RECONFIG_ADD_PROPERTY;
560 rce->action = OF_RECONFIG_REMOVE_PROPERTY;
579 switch (ce->action) {
584 ret = of_reconfig_notify(ce->action, &rd);
589 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop);
592 pr_err("invalid devicetree changeset action: %i\n",
593 (int)ce->action);
606 of_changeset_action_debug("apply: ", ce->action, ce->np, ce->prop);
608 switch (ce->action) {
630 of_changeset_action_err("apply failed: ", ce->action, ce->np, ce->prop);
885 * of_changeset_action - Add an action to the tail of the changeset list
888 * @action: action to perform
892 * On action being one of:
901 int of_changeset_action(struct of_changeset *ocs, unsigned long action,
906 if (WARN_ON(action >= ARRAY_SIZE(action_names)))
914 ce->action = action;