Lines Matching refs:parent
65 struct device *parent = edev->edev.parent; in enclosure_find() local
68 while (parent) { in enclosure_find()
69 if (parent == dev) { in enclosure_find()
74 parent = parent->parent; in enclosure_find()
141 edev->edev.parent = get_device(dev); in enclosure_register()
161 put_device(edev->edev.parent); in enclosure_register()
239 put_device(cdev->parent); in enclosure_release()
251 put_device(dev->parent); in enclosure_component_release()
313 cdev->parent = get_device(&edev->edev); in enclosure_component_alloc()
485 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_fault()
497 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_fault()
509 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_status()
521 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_status()
543 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_active()
555 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_active()
567 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_locate()
579 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_locate()
592 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in get_component_power_status()
604 struct enclosure_device *edev = to_enclosure_device(cdev->parent); in set_component_power_status()