Lines Matching refs:parent
431 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) in dlpar_cpu_exists() argument
441 for_each_child_of_node(parent, child) { in dlpar_cpu_exists()
457 static bool drc_info_valid_index(struct device_node *parent, u32 drc_index) in drc_info_valid_index() argument
465 info = of_find_property(parent, "ibm,drc-info", NULL); in drc_info_valid_index()
499 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) in valid_cpu_drc_index() argument
504 if (of_property_present(parent, "ibm,drc-info")) in valid_cpu_drc_index()
505 return drc_info_valid_index(parent, drc_index); in valid_cpu_drc_index()
515 rc = of_property_read_u32_index(parent, "ibm,drc-indexes", in valid_cpu_drc_index()
551 struct device_node *dn, *parent; in dlpar_cpu_add() local
556 parent = of_find_node_by_path("/cpus"); in dlpar_cpu_add()
557 if (!parent) { in dlpar_cpu_add()
562 if (dlpar_cpu_exists(parent, drc_index)) { in dlpar_cpu_add()
563 of_node_put(parent); in dlpar_cpu_add()
568 if (!valid_cpu_drc_index(parent, drc_index)) { in dlpar_cpu_add()
569 of_node_put(parent); in dlpar_cpu_add()
578 of_node_put(parent); in dlpar_cpu_add()
582 dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent); in dlpar_cpu_add()
587 of_node_put(parent); in dlpar_cpu_add()
594 of_node_put(parent); in dlpar_cpu_add()