Lines Matching refs:ocs
672 void of_changeset_init(struct of_changeset *ocs) in of_changeset_init() argument
674 memset(ocs, 0, sizeof(*ocs)); in of_changeset_init()
675 INIT_LIST_HEAD(&ocs->entries); in of_changeset_init()
687 void of_changeset_destroy(struct of_changeset *ocs) in of_changeset_destroy() argument
691 list_for_each_entry_safe_reverse(ce, cen, &ocs->entries, node) in of_changeset_destroy()
706 int __of_changeset_apply_entries(struct of_changeset *ocs, int *ret_revert) in __of_changeset_apply_entries() argument
712 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_entries()
716 list_for_each_entry_continue_reverse(ce, &ocs->entries, in __of_changeset_apply_entries()
735 int __of_changeset_apply_notify(struct of_changeset *ocs) in __of_changeset_apply_notify() argument
744 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_notify()
763 static int __of_changeset_apply(struct of_changeset *ocs) in __of_changeset_apply() argument
767 ret = __of_changeset_apply_entries(ocs, &ret_revert); in __of_changeset_apply()
769 ret = __of_changeset_apply_notify(ocs); in __of_changeset_apply()
786 int of_changeset_apply(struct of_changeset *ocs) in of_changeset_apply() argument
791 ret = __of_changeset_apply(ocs); in of_changeset_apply()
809 int __of_changeset_revert_entries(struct of_changeset *ocs, int *ret_apply) in __of_changeset_revert_entries() argument
815 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
819 list_for_each_entry_continue(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
835 int __of_changeset_revert_notify(struct of_changeset *ocs) in __of_changeset_revert_notify() argument
844 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_notify()
855 static int __of_changeset_revert(struct of_changeset *ocs) in __of_changeset_revert() argument
860 ret = __of_changeset_revert_entries(ocs, &ret_reply); in __of_changeset_revert()
863 ret = __of_changeset_revert_notify(ocs); in __of_changeset_revert()
879 int of_changeset_revert(struct of_changeset *ocs) in of_changeset_revert() argument
884 ret = __of_changeset_revert(ocs); in of_changeset_revert()
907 int of_changeset_action(struct of_changeset *ocs, unsigned long action, in of_changeset_action() argument
925 list_add_tail(&ce->node, &ocs->entries); in of_changeset_action()