Lines Matching refs:parent
99 struct device *parent) in of_device_alloc() argument
130 dev->dev.parent = parent ? : &platform_bus; in of_device_alloc()
155 struct device *parent) in of_platform_device_create_pdata() argument
165 dev = of_device_alloc(np, bus_id, parent); in of_platform_device_create_pdata()
199 struct device *parent) in of_platform_device_create() argument
201 return of_platform_device_create_pdata(np, bus_id, NULL, parent); in of_platform_device_create()
209 struct device *parent) in of_amba_device_create() argument
230 dev->dev.parent = parent ? : &platform_bus; in of_amba_device_create()
266 struct device *parent) in of_amba_device_create() argument
328 struct device *parent, bool strict) in of_platform_bus_create() argument
366 of_amba_device_create(bus, bus_id, platform_data, parent); in of_platform_bus_create()
370 dev = of_platform_device_create_pdata(bus, bus_id, platform_data, parent); in of_platform_bus_create()
395 struct device *parent) in of_platform_bus_probe() argument
409 rc = of_platform_bus_create(root, matches, NULL, parent, false); in of_platform_bus_probe()
413 rc = of_platform_bus_create(child, matches, NULL, parent, false); in of_platform_bus_probe()
447 struct device *parent) in of_platform_populate() argument
460 rc = of_platform_bus_create(child, matches, lookup, parent, true); in of_platform_populate()
475 struct device *parent) in of_platform_default_populate() argument
487 return of_platform_populate(root, match_table, lookup, parent); in of_platform_default_populate()
641 void of_platform_depopulate(struct device *parent) in of_platform_depopulate() argument
643 if (parent->of_node && of_node_check_flag(parent->of_node, OF_POPULATED_BUS)) { in of_platform_depopulate()
644 device_for_each_child_reverse(parent, NULL, of_platform_device_destroy); in of_platform_depopulate()
645 of_node_clear_flag(parent->of_node, OF_POPULATED_BUS); in of_platform_depopulate()
728 struct device_node *parent; in of_platform_notify() local
732 parent = rd->dn->parent; in of_platform_notify()
734 if (!of_node_is_root(parent) && in of_platform_notify()
735 !of_node_check_flag(parent, OF_POPULATED_BUS)) in of_platform_notify()
748 pdev_parent = of_find_device_by_node(parent); in of_platform_notify()