Lines Matching refs:enclosure_device
63 struct enclosure_device;
66 void (*get_status)(struct enclosure_device *,
68 int (*set_status)(struct enclosure_device *,
71 void (*get_fault)(struct enclosure_device *,
73 int (*set_fault)(struct enclosure_device *,
76 void (*get_active)(struct enclosure_device *,
78 int (*set_active)(struct enclosure_device *,
81 void (*get_locate)(struct enclosure_device *,
83 int (*set_locate)(struct enclosure_device *,
86 void (*get_power_status)(struct enclosure_device *,
88 int (*set_power_status)(struct enclosure_device *,
91 int (*show_id)(struct enclosure_device *, char *buf);
109 struct enclosure_device { struct
118 static inline struct enclosure_device * argument
121 return container_of(dev, struct enclosure_device, edev); in to_enclosure_device()
130 struct enclosure_device *
133 void enclosure_unregister(struct enclosure_device *);
135 enclosure_component_alloc(struct enclosure_device *, unsigned int,
138 int enclosure_add_device(struct enclosure_device *enclosure, int component,
140 int enclosure_remove_device(struct enclosure_device *, struct device *);
141 struct enclosure_device *enclosure_find(struct device *dev,
142 struct enclosure_device *start);
143 int enclosure_for_each_device(int (*fn)(struct enclosure_device *, void *),