Lines Matching refs:parent
54 struct device *parent = edev->edev.parent; in enclosure_find() local
57 while (parent) { in enclosure_find()
58 if (parent == dev) { in enclosure_find()
63 parent = parent->parent; in enclosure_find()
130 edev->edev.parent = get_device(dev); in enclosure_register()
150 put_device(edev->edev.parent); in enclosure_register()
228 put_device(cdev->parent); in enclosure_release()
240 put_device(dev->parent); in enclosure_component_release()
302 cdev->parent = get_device(&edev->edev); in enclosure_component_alloc()
478 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_fault()
490 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_fault()
502 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_status()
514 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_status()
536 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_active()
548 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_active()
560 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_locate()
572 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_locate()
585 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_power_status()
602 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_power_status()