Lines Matching refs:enclosure_device
59 struct enclosure_device;
62 void (*get_status)(struct enclosure_device *,
64 int (*set_status)(struct enclosure_device *,
67 void (*get_fault)(struct enclosure_device *,
69 int (*set_fault)(struct enclosure_device *,
72 void (*get_active)(struct enclosure_device *,
74 int (*set_active)(struct enclosure_device *,
77 void (*get_locate)(struct enclosure_device *,
79 int (*set_locate)(struct enclosure_device *,
82 void (*get_power_status)(struct enclosure_device *,
84 int (*set_power_status)(struct enclosure_device *,
87 int (*show_id)(struct enclosure_device *, char *buf);
105 struct enclosure_device { struct
114 static inline struct enclosure_device * argument
117 return container_of(dev, struct enclosure_device, edev); in to_enclosure_device()
126 struct enclosure_device *
129 void enclosure_unregister(struct enclosure_device *);
131 enclosure_component_alloc(struct enclosure_device *, unsigned int,
134 int enclosure_add_device(struct enclosure_device *enclosure, int component,
136 int enclosure_remove_device(struct enclosure_device *, struct device *);
137 struct enclosure_device *enclosure_find(struct device *dev,
138 struct enclosure_device *start);
139 int enclosure_for_each_device(int (*fn)(struct enclosure_device *, void *),