Lines Matching full:components
107 * @components: number of components in the enclosure
115 enclosure_register(struct device *dev, const char *name, int components, in enclosure_register() argument
119 kzalloc(struct_size(edev, component, components), GFP_KERNEL); in enclosure_register()
127 edev->components = components; in enclosure_register()
137 for (i = 0; i < components; i++) { in enclosure_register()
171 for (i = 0; i < edev->components; i++) in enclosure_unregister()
254 for (i = 0; i < edev->components; i++) { in enclosure_component_find_by_name()
275 * The name is optional for enclosures that give their components a unique
291 if (number >= edev->components) in enclosure_component_alloc()
305 /* Some hardware (e.g. enclosure in RX300 S6) has components in enclosure_component_alloc()
369 if (!edev || component >= edev->components) in enclosure_add_device()
407 for (i = 0; i < edev->components; i++) { in enclosure_remove_device()
429 return sysfs_emit(buf, "%d\n", edev->components); in components_show()
431 static DEVICE_ATTR_RO(components);