Lines Matching refs:parent

66 	 * device is on the same node as the parent.
106 * parent nodes until a unique name can be derived.
115 /* Construct the name, using parent nodes if necessary to ensure uniqueness */
116 while (node->parent) {
136 node = node->parent;
144 * @parent: Parent device.
148 struct device *parent)
179 dev->dev.parent = parent ? : &platform_bus;
195 * @parent: Linux device model parent device.
204 struct device *parent)
212 dev = of_device_alloc(np, bus_id, parent);
239 * @parent: Linux device model parent device.
246 struct device *parent)
248 return of_platform_device_create_pdata(np, bus_id, NULL, parent);
256 struct device *parent)
277 dev->dev.parent = parent ? : &platform_bus;
313 struct device *parent)
366 * @parent: parent for new device, or NULL for top level.
375 struct device *parent, bool strict)
414 of_amba_device_create(bus, bus_id, platform_data, parent);
418 dev = of_platform_device_create_pdata(bus, bus_id, platform_data, parent);
436 * @root: parent of the first level to probe or NULL for the root of the tree
438 * @parent: parent to hook devices from, NULL for toplevel
445 struct device *parent)
459 rc = of_platform_bus_create(root, matches, NULL, parent, false);
463 rc = of_platform_bus_create(child, matches, NULL, parent, false);
477 * @root: parent of the first level to probe or NULL for the root of the tree
480 * @parent: parent to hook devices from, NULL for toplevel
497 struct device *parent)
511 rc = of_platform_bus_create(child, matches, lookup, parent, true);
528 struct device *parent)
531 parent);
668 * @parent: device which children will be removed
675 void of_platform_depopulate(struct device *parent)
677 if (parent->of_node && of_node_check_flag(parent->of_node, OF_POPULATED_BUS)) {
678 device_for_each_child_reverse(parent, NULL, of_platform_device_destroy);
679 of_node_clear_flag(parent->of_node, OF_POPULATED_BUS);
765 /* verify that the parent is a bus */
766 if (!of_node_check_flag(rd->dn->parent, OF_POPULATED_BUS))
779 pdev_parent = of_find_device_by_node(rd->dn->parent);