Lines Matching refs:ocs
500 struct device_node *of_changeset_create_node(struct of_changeset *ocs, in of_changeset_create_node() argument
512 ret = of_changeset_attach_node(ocs, np); in of_changeset_create_node()
654 void of_changeset_init(struct of_changeset *ocs) in of_changeset_init() argument
656 memset(ocs, 0, sizeof(*ocs)); in of_changeset_init()
657 INIT_LIST_HEAD(&ocs->entries); in of_changeset_init()
669 void of_changeset_destroy(struct of_changeset *ocs) in of_changeset_destroy() argument
684 list_for_each_entry_safe_reverse(ce, cen, &ocs->entries, node) in of_changeset_destroy()
699 int __of_changeset_apply_entries(struct of_changeset *ocs, int *ret_revert) in __of_changeset_apply_entries() argument
705 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_entries()
709 list_for_each_entry_continue_reverse(ce, &ocs->entries, in __of_changeset_apply_entries()
728 int __of_changeset_apply_notify(struct of_changeset *ocs) in __of_changeset_apply_notify() argument
737 list_for_each_entry(ce, &ocs->entries, node) { in __of_changeset_apply_notify()
756 static int __of_changeset_apply(struct of_changeset *ocs) in __of_changeset_apply() argument
760 ret = __of_changeset_apply_entries(ocs, &ret_revert); in __of_changeset_apply()
762 ret = __of_changeset_apply_notify(ocs); in __of_changeset_apply()
780 int of_changeset_apply(struct of_changeset *ocs) in of_changeset_apply() argument
785 ret = __of_changeset_apply(ocs); in of_changeset_apply()
803 int __of_changeset_revert_entries(struct of_changeset *ocs, int *ret_apply) in __of_changeset_revert_entries() argument
809 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
813 list_for_each_entry_continue(ce, &ocs->entries, node) { in __of_changeset_revert_entries()
829 int __of_changeset_revert_notify(struct of_changeset *ocs) in __of_changeset_revert_notify() argument
838 list_for_each_entry_reverse(ce, &ocs->entries, node) { in __of_changeset_revert_notify()
849 static int __of_changeset_revert(struct of_changeset *ocs) in __of_changeset_revert() argument
854 ret = __of_changeset_revert_entries(ocs, &ret_reply); in __of_changeset_revert()
857 ret = __of_changeset_revert_notify(ocs); in __of_changeset_revert()
874 int of_changeset_revert(struct of_changeset *ocs) in of_changeset_revert() argument
879 ret = __of_changeset_revert(ocs); in of_changeset_revert()
903 int of_changeset_action(struct of_changeset *ocs, unsigned long action, in of_changeset_action() argument
921 list_add_tail(&ce->node, &ocs->entries); in of_changeset_action()
926 static int of_changeset_add_prop_helper(struct of_changeset *ocs, in of_changeset_add_prop_helper() argument
937 ret = of_changeset_add_property(ocs, np, new_pp); in of_changeset_add_prop_helper()
956 int of_changeset_add_prop_string(struct of_changeset *ocs, in of_changeset_add_prop_string() argument
966 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string()
984 int of_changeset_add_prop_string_array(struct of_changeset *ocs, in of_changeset_add_prop_string_array() argument
1008 ret = of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_string_array()
1029 int of_changeset_add_prop_u32_array(struct of_changeset *ocs, in of_changeset_add_prop_u32_array() argument
1047 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_u32_array()
1063 int of_changeset_add_prop_bool(struct of_changeset *ocs, struct device_node *np, in of_changeset_add_prop_bool() argument
1072 return of_changeset_add_prop_helper(ocs, np, &prop); in of_changeset_add_prop_bool()
1076 static int of_changeset_update_prop_helper(struct of_changeset *ocs, in of_changeset_update_prop_helper() argument
1087 ret = of_changeset_update_property(ocs, np, new_pp); in of_changeset_update_prop_helper()
1106 int of_changeset_update_prop_string(struct of_changeset *ocs, in of_changeset_update_prop_string() argument
1116 return of_changeset_update_prop_helper(ocs, np, &prop); in of_changeset_update_prop_string()