Lines Matching refs:new_parent
2756 struct device *new_parent) in device_move_class_links() argument
2762 if (new_parent) in device_move_class_links()
2763 error = sysfs_create_link(&dev->kobj, &new_parent->kobj, in device_move_class_links()
2774 int device_move(struct device *dev, struct device *new_parent, in device_move() argument
2786 new_parent = get_device(new_parent); in device_move()
2787 new_parent_kobj = get_device_parent(dev, new_parent); in device_move()
2790 put_device(new_parent); in device_move()
2795 __func__, new_parent ? dev_name(new_parent) : "<NULL>"); in device_move()
2799 put_device(new_parent); in device_move()
2803 dev->parent = new_parent; in device_move()
2806 if (new_parent) { in device_move()
2808 &new_parent->p->klist_children); in device_move()
2809 set_dev_node(dev, dev_to_node(new_parent)); in device_move()
2813 error = device_move_class_links(dev, old_parent, new_parent); in device_move()
2816 device_move_class_links(dev, new_parent, old_parent); in device_move()
2818 if (new_parent) in device_move()
2828 put_device(new_parent); in device_move()
2836 device_pm_move_after(dev, new_parent); in device_move()
2837 devices_kset_move_after(dev, new_parent); in device_move()
2840 device_pm_move_before(new_parent, dev); in device_move()
2841 devices_kset_move_before(new_parent, dev); in device_move()