Lines Matching full:ocs
673 * @ocs: changeset pointer
677 void of_changeset_init(struct of_changeset *ocs) in of_changeset_init() argument
679 memset(ocs, 0, sizeof(*ocs)); in of_changeset_init()
680 INIT_LIST_HEAD(&ocs->entries); in of_changeset_init()
687 * @ocs: changeset pointer
692 void of_changeset_destroy(struct of_changeset *ocs) in of_changeset_destroy() argument
696 list_for_each_entry_safe_reverse(ce, cen, &ocs->entries, node) in of_changeset_destroy()
702 * Apply the changeset entries in @ocs.
711 int __of_changeset_apply_entries(struct of_changeset *ocs, int *ret_revert) in __of_changeset_apply_entries() argument
717 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_entries()
721 list_for_each_entry_continue_reverse(ce, &ocs->entries, in __of_changeset_apply_entries()
740 int __of_changeset_apply_notify(struct of_changeset *ocs) in __of_changeset_apply_notify() argument
749 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_notify()
768 static int __of_changeset_apply(struct of_changeset *ocs) in __of_changeset_apply() argument
772 ret = __of_changeset_apply_entries(ocs, &ret_revert); in __of_changeset_apply()
774 ret = __of_changeset_apply_notify(ocs); in __of_changeset_apply()
782 * @ocs: changeset pointer
792 int of_changeset_apply(struct of_changeset *ocs) in of_changeset_apply() argument
797 ret = __of_changeset_apply(ocs); in of_changeset_apply()
805 * Revert the changeset entries in @ocs.
815 int __of_changeset_revert_entries(struct of_changeset *ocs, int *ret_apply) in __of_changeset_revert_entries() argument
821 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
825 list_for_each_entry_continue(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
841 int __of_changeset_revert_notify(struct of_changeset *ocs) in __of_changeset_revert_notify() argument
850 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_notify()
861 static int __of_changeset_revert(struct of_changeset *ocs) in __of_changeset_revert() argument
866 ret = __of_changeset_revert_entries(ocs, &ret_reply); in __of_changeset_revert()
869 ret = __of_changeset_revert_notify(ocs); in __of_changeset_revert()
877 * @ocs: changeset pointer
886 int of_changeset_revert(struct of_changeset *ocs) in of_changeset_revert() argument
891 ret = __of_changeset_revert(ocs); in of_changeset_revert()
901 * @ocs: changeset pointer
915 int of_changeset_action(struct of_changeset *ocs, unsigned long action, in of_changeset_action() argument
933 list_add_tail(&ce->node, &ocs->entries); in of_changeset_action()