Lines Matching refs:component
149 edev->component[i].number = -1; in enclosure_register()
150 edev->component[i].slot = -1; in enclosure_register()
151 edev->component[i].power_status = -1; in enclosure_register()
183 if (edev->component[i].number != -1) in enclosure_unregister()
184 device_unregister(&edev->component[i].cdev); in enclosure_unregister()
266 ecomp = &edev->component[i]; in enclosure_component_find_by_name()
305 ecomp = &edev->component[number]; in enclosure_component_alloc()
374 int enclosure_add_device(struct enclosure_device *edev, int component, in enclosure_add_device() argument
380 if (!edev || component >= edev->components) in enclosure_add_device()
383 cdev = &edev->component[component]; in enclosure_add_device()
419 cdev = &edev->component[i]; in enclosure_remove_device()