Lines Matching refs:component
149 edev->component[i].number = -1;
180 if (edev->component[i].number != -1)
181 device_unregister(&edev->component[i].cdev);
245 * enclosure_component_register - add a particular component to an enclosure
246 * @edev: the enclosure to add the component
248 * @type: the type of component being added
251 * Registers the component. The name is optional for enclosures that
255 * Returns a pointer to the enclosure component or an error.
270 ecomp = &edev->component[number];
301 * @num: the number of the component
312 int enclosure_add_device(struct enclosure_device *edev, int component,
317 if (!edev || component >= edev->components)
320 cdev = &edev->component[component];
337 * @num: the number of the component to remove
351 cdev = &edev->component[i];