Lines Matching refs:enclosure_device
52 struct enclosure_device;
55 void (*get_status)(struct enclosure_device *,
57 int (*set_status)(struct enclosure_device *,
60 void (*get_fault)(struct enclosure_device *,
62 int (*set_fault)(struct enclosure_device *,
65 void (*get_active)(struct enclosure_device *,
67 int (*set_active)(struct enclosure_device *,
70 void (*get_locate)(struct enclosure_device *,
72 int (*set_locate)(struct enclosure_device *,
75 void (*get_power_status)(struct enclosure_device *,
77 int (*set_power_status)(struct enclosure_device *,
80 int (*show_id)(struct enclosure_device *, char *buf);
98 struct enclosure_device { struct
107 static inline struct enclosure_device * argument
110 return container_of(dev, struct enclosure_device, edev); in to_enclosure_device()
119 struct enclosure_device *
122 void enclosure_unregister(struct enclosure_device *);
124 enclosure_component_alloc(struct enclosure_device *, unsigned int,
127 int enclosure_add_device(struct enclosure_device *enclosure, int component,
129 int enclosure_remove_device(struct enclosure_device *, struct device *);
130 struct enclosure_device *enclosure_find(struct device *dev,
131 struct enclosure_device *start);
132 int enclosure_for_each_device(int (*fn)(struct enclosure_device *, void *),