Lines Matching refs:extcon_dev

113 struct extcon_dev {  struct
120 ssize_t (*print_name)(struct extcon_dev *edev, char *buf); argument
121 ssize_t (*print_state)(struct extcon_dev *edev, char *buf); argument
151 struct extcon_dev *edev; argument
176 struct extcon_dev *edev;
186 extern int extcon_dev_register(struct extcon_dev *edev);
187 extern void extcon_dev_unregister(struct extcon_dev *edev);
189 struct extcon_dev *edev);
191 struct extcon_dev *edev);
192 extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name);
197 extern struct extcon_dev *extcon_dev_allocate(const char **cables);
198 extern void extcon_dev_free(struct extcon_dev *edev);
199 extern struct extcon_dev *devm_extcon_dev_allocate(struct device *dev,
201 extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
209 static inline u32 extcon_get_state(struct extcon_dev *edev) in extcon_get_state()
214 extern int extcon_set_state(struct extcon_dev *edev, u32 state);
215 extern int extcon_update_state(struct extcon_dev *edev, u32 mask, u32 state);
222 extern int extcon_find_cable_index(struct extcon_dev *sdev,
224 extern int extcon_get_cable_state_(struct extcon_dev *edev, int cable_index);
225 extern int extcon_set_cable_state_(struct extcon_dev *edev, int cable_index,
228 extern int extcon_get_cable_state(struct extcon_dev *edev,
230 extern int extcon_set_cable_state(struct extcon_dev *edev,
252 extern int extcon_register_notifier(struct extcon_dev *edev,
254 extern int extcon_unregister_notifier(struct extcon_dev *edev,
261 extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index);
263 static inline int extcon_dev_register(struct extcon_dev *edev) in extcon_dev_register()
268 static inline void extcon_dev_unregister(struct extcon_dev *edev) { } in extcon_dev_unregister()
271 struct extcon_dev *edev) in devm_extcon_dev_register()
277 struct extcon_dev *edev) { } in devm_extcon_dev_unregister()
279 static inline struct extcon_dev *extcon_dev_allocate(const char **cables) in extcon_dev_allocate()
284 static inline void extcon_dev_free(struct extcon_dev *edev) { } in extcon_dev_free()
286 static inline struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, in devm_extcon_dev_allocate()
292 static inline void devm_extcon_dev_free(struct extcon_dev *edev) { } in devm_extcon_dev_free()
294 static inline u32 extcon_get_state(struct extcon_dev *edev) in extcon_get_state()
299 static inline int extcon_set_state(struct extcon_dev *edev, u32 state) in extcon_set_state()
304 static inline int extcon_update_state(struct extcon_dev *edev, u32 mask, in extcon_update_state()
310 static inline int extcon_find_cable_index(struct extcon_dev *edev, in extcon_find_cable_index()
316 static inline int extcon_get_cable_state_(struct extcon_dev *edev, in extcon_get_cable_state_()
322 static inline int extcon_set_cable_state_(struct extcon_dev *edev, in extcon_set_cable_state_()
328 static inline int extcon_get_cable_state(struct extcon_dev *edev, in extcon_get_cable_state()
334 static inline int extcon_set_cable_state(struct extcon_dev *edev, in extcon_set_cable_state()
340 static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name) in extcon_get_extcon_dev()
345 static inline int extcon_register_notifier(struct extcon_dev *edev, in extcon_register_notifier()
351 static inline int extcon_unregister_notifier(struct extcon_dev *edev, in extcon_unregister_notifier()
371 static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, in extcon_get_edev_by_phandle()