Lines Matching full:ocs
655 * @ocs: changeset pointer
659 void of_changeset_init(struct of_changeset *ocs) in of_changeset_init() argument
661 memset(ocs, 0, sizeof(*ocs)); in of_changeset_init()
662 INIT_LIST_HEAD(&ocs->entries); in of_changeset_init()
669 * @ocs: changeset pointer
674 void of_changeset_destroy(struct of_changeset *ocs) in of_changeset_destroy() argument
678 list_for_each_entry_safe_reverse(ce, cen, &ocs->entries, node) in of_changeset_destroy()
684 * Apply the changeset entries in @ocs.
693 int __of_changeset_apply_entries(struct of_changeset *ocs, int *ret_revert) in __of_changeset_apply_entries() argument
699 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_entries()
703 list_for_each_entry_continue_reverse(ce, &ocs->entries, in __of_changeset_apply_entries()
722 int __of_changeset_apply_notify(struct of_changeset *ocs) in __of_changeset_apply_notify() argument
731 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_notify()
750 static int __of_changeset_apply(struct of_changeset *ocs) in __of_changeset_apply() argument
754 ret = __of_changeset_apply_entries(ocs, &ret_revert); in __of_changeset_apply()
756 ret = __of_changeset_apply_notify(ocs); in __of_changeset_apply()
764 * @ocs: changeset pointer
774 int of_changeset_apply(struct of_changeset *ocs) in of_changeset_apply() argument
779 ret = __of_changeset_apply(ocs); in of_changeset_apply()
787 * Revert the changeset entries in @ocs.
797 int __of_changeset_revert_entries(struct of_changeset *ocs, int *ret_apply) in __of_changeset_revert_entries() argument
803 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
807 list_for_each_entry_continue(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
823 int __of_changeset_revert_notify(struct of_changeset *ocs) in __of_changeset_revert_notify() argument
832 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_notify()
843 static int __of_changeset_revert(struct of_changeset *ocs) in __of_changeset_revert() argument
848 ret = __of_changeset_revert_entries(ocs, &ret_reply); in __of_changeset_revert()
851 ret = __of_changeset_revert_notify(ocs); in __of_changeset_revert()
859 * @ocs: changeset pointer
868 int of_changeset_revert(struct of_changeset *ocs) in of_changeset_revert() argument
873 ret = __of_changeset_revert(ocs); in of_changeset_revert()
883 * @ocs: changeset pointer
897 int of_changeset_action(struct of_changeset *ocs, unsigned long action, in of_changeset_action() argument
918 list_add_tail(&ce->node, &ocs->entries); in of_changeset_action()