Lines Matching defs:action
75 int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p)
81 switch (action) {
84 pr_debug("notify %-15s %pOF\n", action_names[action],
90 pr_debug("notify %-15s %pOF:%s\n", action_names[action],
96 rc = blocking_notifier_call_chain(&of_reconfig_chain, action, p);
102 * @action - action of the of notifier
111 int of_reconfig_get_state_change(unsigned long action, struct of_reconfig_data *pr)
117 switch (action) {
149 switch (action) {
189 int of_property_notify(int action, struct device_node *np,
201 return of_reconfig_notify(action, &pr);
463 if (ce->action == OF_RECONFIG_ATTACH_NODE &&
481 switch (ce->action) {
485 pr_debug("cset<%p> %-15s %pOF/%s\n", ce, action_names[ce->action],
490 pr_debug("cset<%p> %-15s %pOF\n", ce, action_names[ce->action],
507 switch (ce->action) {
509 rce->action = OF_RECONFIG_DETACH_NODE;
512 rce->action = OF_RECONFIG_ATTACH_NODE;
515 rce->action = OF_RECONFIG_REMOVE_PROPERTY;
518 rce->action = OF_RECONFIG_ADD_PROPERTY;
525 rce->action = OF_RECONFIG_REMOVE_PROPERTY;
544 switch (ce->action) {
549 ret = of_reconfig_notify(ce->action, &rd);
554 ret = of_property_notify(ce->action, ce->np, ce->prop, ce->old_prop);
557 pr_err("invalid devicetree changeset action: %i\n",
558 (int)ce->action);
576 switch (ce->action) {
618 action_names[ce->action], ce->np, ce->prop->name);
622 switch (ce->action) {
881 * of_changeset_action - Add an action to the tail of the changeset list
884 * @action: action to perform
888 * On action being one of:
897 int of_changeset_action(struct of_changeset *ocs, unsigned long action,
902 if (WARN_ON(action >= ARRAY_SIZE(action_names)))
910 ce->action = action;
914 if (action == OF_RECONFIG_UPDATE_PROPERTY && prop)