Lines Matching refs:ocs
265 static int dlpar_changeset_attach_cc_nodes(struct of_changeset *ocs, in dlpar_changeset_attach_cc_nodes() argument
270 rc = of_changeset_attach_node(ocs, dn); in dlpar_changeset_attach_cc_nodes()
273 rc = dlpar_changeset_attach_cc_nodes(ocs, dn->child); in dlpar_changeset_attach_cc_nodes()
275 rc = dlpar_changeset_attach_cc_nodes(ocs, dn->sibling); in dlpar_changeset_attach_cc_nodes()
410 struct of_changeset ocs; in dlpar_hp_dt_add() local
442 of_changeset_init(&ocs); in dlpar_hp_dt_add()
443 rc = dlpar_changeset_attach_cc_nodes(&ocs, nodes); in dlpar_hp_dt_add()
446 rc = of_changeset_apply(&ocs); in dlpar_hp_dt_add()
450 of_changeset_destroy(&ocs); in dlpar_hp_dt_add()
457 static int changeset_detach_node_recursive(struct of_changeset *ocs, in changeset_detach_node_recursive() argument
464 rc = changeset_detach_node_recursive(ocs, child); in changeset_detach_node_recursive()
471 return of_changeset_detach_node(ocs, node); in changeset_detach_node_recursive()
477 struct of_changeset ocs; in dlpar_hp_dt_remove() local
484 of_changeset_init(&ocs); in dlpar_hp_dt_remove()
496 rc = changeset_detach_node_recursive(&ocs, np); in dlpar_hp_dt_remove()
504 rc = of_changeset_apply(&ocs); in dlpar_hp_dt_remove()
507 of_changeset_destroy(&ocs); in dlpar_hp_dt_remove()