Lines Matching refs:parent

26 	struct swnode *parent;
422 struct fwnode_handle *parent;
425 parent = fwnode_get_parent(fwnode);
426 if (!parent)
430 while (is_software_node(parent))
431 parent = fwnode_get_next_parent(parent);
433 prefix = fwnode_get_name_prefix(parent);
434 fwnode_handle_put(parent);
445 if (!swnode || !swnode->parent)
448 return fwnode_handle_get(&swnode->parent->fwnode);
557 swnode_graph_find_next_port(const struct fwnode_handle *parent,
562 while ((port = software_node_get_next_child(parent, old))) {
581 struct fwnode_handle *parent;
589 parent = software_node_get_parent(port);
591 parent = software_node_get_named_child_node(fwnode, "ports");
592 if (!parent)
593 parent = software_node_get(&swnode->fwnode);
595 port = swnode_graph_find_next_port(parent, NULL);
598 for (; port; port = swnode_graph_find_next_port(parent, port)) {
606 fwnode_handle_put(parent);
635 swnode = swnode->parent;
637 swnode = swnode->parent;
647 const char *parent_name = swnode->parent->node->name;
687 * @parent: Parent of the software node
690 * The function will find a node that is child of @parent and that is named
696 software_node_find_by_name(const struct software_node *parent, const char *name)
708 if (parent == swnode->node->parent && swnode->node->name &&
752 if (swnode->parent) {
753 ida_simple_remove(&swnode->parent->child_ids, swnode->id);
772 swnode_register(const struct software_node *node, struct swnode *parent,
782 ret = ida_simple_get(parent ? &parent->child_ids : &swnode_root_ids,
791 swnode->parent = parent;
801 parent ? &parent->kobj : NULL,
805 parent ? &parent->kobj : NULL,
818 if (parent)
819 list_add_tail(&swnode->entry, &parent->children);
830 * has its .parent pointer set (which can only be to another software_node),
831 * then its parent **must** have been registered before it is; either outside
832 * of this function or by ordering the array such that parent comes before
859 * Unregister multiple software nodes at once. If parent pointers are set up
866 * parent).
890 struct swnode *parent = software_node_to_swnode(node->parent);
895 if (node->parent && !parent)
898 return PTR_ERR_OR_ZERO(swnode_register(node, parent, 0));
918 const struct fwnode_handle *parent)
924 if (IS_ERR(parent))
925 return ERR_CAST(parent);
927 p = to_swnode(parent);
928 if (parent && !p)
935 node->parent = p ? p->node : NULL;
1026 * @parent: Parent of the software node.
1040 const struct software_node *parent)
1042 struct fwnode_handle *p = software_node_fwnode(parent);
1045 if (parent && !p)