Lines Matching refs:new_parent
4594 struct device *new_parent) in device_move_class_links() argument
4600 if (new_parent) in device_move_class_links()
4601 error = sysfs_create_link(&dev->kobj, &new_parent->kobj, in device_move_class_links()
4612 int device_move(struct device *dev, struct device *new_parent, in device_move() argument
4624 new_parent = get_device(new_parent); in device_move()
4625 new_parent_kobj = get_device_parent(dev, new_parent); in device_move()
4628 put_device(new_parent); in device_move()
4633 __func__, new_parent ? dev_name(new_parent) : "<NULL>"); in device_move()
4637 put_device(new_parent); in device_move()
4641 dev->parent = new_parent; in device_move()
4644 if (new_parent) { in device_move()
4646 &new_parent->p->klist_children); in device_move()
4647 set_dev_node(dev, dev_to_node(new_parent)); in device_move()
4651 error = device_move_class_links(dev, old_parent, new_parent); in device_move()
4654 device_move_class_links(dev, new_parent, old_parent); in device_move()
4656 if (new_parent) in device_move()
4666 put_device(new_parent); in device_move()
4674 device_pm_move_after(dev, new_parent); in device_move()
4675 devices_kset_move_after(dev, new_parent); in device_move()
4678 device_pm_move_before(new_parent, dev); in device_move()
4679 devices_kset_move_before(new_parent, dev); in device_move()