Lines Matching full:enclosure
3 * Enclosure Services
13 #include <linux/enclosure.h>
26 * enclosure_find - find an enclosure given a parent device
28 * @start: Optional enclosure device to start from (NULL if none)
31 * with @dev as a parent. Returns NULL if no enclosure is
34 * each returned enclosure device). Obtains a reference to the
35 * enclosure class device which must be released with put_device().
38 * enclosures to exit with only the reference on the enclosure of
40 * device housing the enclosure, in which case no iteration via @start
73 * enclosure_for_each_device - calls a function for each enclosure
103 * enclosure_register - register device as an enclosure
105 * @dev: device containing the enclosure
107 * @components: number of components in the enclosure
110 * This sets up the device for being an enclosure. Note that @dev does
111 * not have to be a dedicated enclosure device. It may be some other type
112 * of device that additionally responds to enclosure services
159 * enclosure_unregister - remove an enclosure
161 * @edev: the registered enclosure to remove;
269 * enclosure_component_alloc - prepare a new enclosure component
270 * @edev: the enclosure to add the component
278 * Returns a pointer to the enclosure component or an error.
305 /* Some hardware (e.g. enclosure in RX300 S6) has components in enclosure_component_alloc()
327 * enclosure_component_register - publishes an initialized enclosure component
350 * enclosure_add_device - add a device as being part of an enclosure
351 * @edev: the enclosure device being added to.
356 * enclosure. This will cause the relevant sysfs links to appear.
358 * an enclosure without having to call enclosure_remove_device() in
392 * enclosure_remove_device - remove a device from an enclosure
393 * @edev: the enclosure device
453 .name = "enclosure",
634 /* if the enclosure does not override then use 'number' as a stand-in */ in get_component_slot()
682 MODULE_DESCRIPTION("Enclosure Services");