Lines Matching refs:extcon_dev
105 struct extcon_dev { struct
139 struct extcon_dev *edev; argument
161 struct extcon_dev *edev;
171 extern int extcon_dev_register(struct extcon_dev *edev);
172 extern void extcon_dev_unregister(struct extcon_dev *edev);
174 struct extcon_dev *edev);
176 struct extcon_dev *edev);
177 extern struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name);
182 extern struct extcon_dev *extcon_dev_allocate(const unsigned int *cable);
183 extern void extcon_dev_free(struct extcon_dev *edev);
184 extern struct extcon_dev *devm_extcon_dev_allocate(struct device *dev,
186 extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
194 static inline u32 extcon_get_state(struct extcon_dev *edev) in extcon_get_state()
199 extern int extcon_set_state(struct extcon_dev *edev, u32 state);
200 extern int extcon_update_state(struct extcon_dev *edev, u32 mask, u32 state);
206 extern int extcon_get_cable_state_(struct extcon_dev *edev, unsigned int id);
207 extern int extcon_set_cable_state_(struct extcon_dev *edev, unsigned int id,
210 extern int extcon_get_cable_state(struct extcon_dev *edev,
212 extern int extcon_set_cable_state(struct extcon_dev *edev,
234 extern int extcon_register_notifier(struct extcon_dev *edev, unsigned int id,
236 extern int extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id,
243 extern struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev,
247 extern const char *extcon_get_edev_name(struct extcon_dev *edev);
250 static inline int extcon_dev_register(struct extcon_dev *edev) in extcon_dev_register()
255 static inline void extcon_dev_unregister(struct extcon_dev *edev) { } in extcon_dev_unregister()
258 struct extcon_dev *edev) in devm_extcon_dev_register()
264 struct extcon_dev *edev) { } in devm_extcon_dev_unregister()
266 static inline struct extcon_dev *extcon_dev_allocate(const unsigned int *cable) in extcon_dev_allocate()
271 static inline void extcon_dev_free(struct extcon_dev *edev) { } in extcon_dev_free()
273 static inline struct extcon_dev *devm_extcon_dev_allocate(struct device *dev, in devm_extcon_dev_allocate()
279 static inline void devm_extcon_dev_free(struct extcon_dev *edev) { } in devm_extcon_dev_free()
281 static inline u32 extcon_get_state(struct extcon_dev *edev) in extcon_get_state()
286 static inline int extcon_set_state(struct extcon_dev *edev, u32 state) in extcon_set_state()
291 static inline int extcon_update_state(struct extcon_dev *edev, u32 mask, in extcon_update_state()
297 static inline int extcon_get_cable_state_(struct extcon_dev *edev, in extcon_get_cable_state_()
303 static inline int extcon_set_cable_state_(struct extcon_dev *edev, in extcon_set_cable_state_()
309 static inline int extcon_get_cable_state(struct extcon_dev *edev, in extcon_get_cable_state()
315 static inline int extcon_set_cable_state(struct extcon_dev *edev, in extcon_set_cable_state()
321 static inline struct extcon_dev *extcon_get_extcon_dev(const char *extcon_name) in extcon_get_extcon_dev()
326 static inline int extcon_register_notifier(struct extcon_dev *edev, in extcon_register_notifier()
333 static inline int extcon_unregister_notifier(struct extcon_dev *edev, in extcon_unregister_notifier()
354 static inline struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, in extcon_get_edev_by_phandle()