Lines Matching defs:components
117 * @components: number of components in the enclosure
124 enclosure_register(struct device *dev, const char *name, int components,
129 sizeof(struct enclosure_component)*components,
138 edev->components = components;
148 for (i = 0; i < components; i++)
179 for (i = 0; i < edev->components; i++)
252 * give their components a unique name. If not, leave the field NULL
267 if (number >= edev->components)
317 if (!edev || component >= edev->components)
350 for (i = 0; i < edev->components; i++) {
374 return snprintf(buf, 40, "%d\n", edev->components);
378 __ATTR(components, S_IRUGO, enclosure_show_components, NULL),