Lines Matching refs:power_supply

224 struct power_supply;
256 int (*get_property)(struct power_supply *psy,
259 int (*set_property)(struct power_supply *psy,
267 int (*property_is_writeable)(struct power_supply *psy,
269 void (*external_power_changed)(struct power_supply *psy);
270 void (*set_charged)(struct power_supply *psy);
282 struct power_supply { struct
773 extern struct power_supply *power_supply_get_by_name(const char *name);
774 extern void power_supply_put(struct power_supply *psy);
776 static inline void power_supply_put(struct power_supply *psy) {} in power_supply_put()
777 static inline struct power_supply *power_supply_get_by_name(const char *name) in power_supply_get_by_name()
781 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np,
783 extern struct power_supply *devm_power_supply_get_by_phandle(
786 static inline struct power_supply *
789 static inline struct power_supply *
794 extern int power_supply_get_battery_info(struct power_supply *psy,
796 extern void power_supply_put_battery_info(struct power_supply *psy,
814 extern void power_supply_changed(struct power_supply *psy);
815 extern int power_supply_am_i_supplied(struct power_supply *psy);
816 int power_supply_get_property_from_supplier(struct power_supply *psy,
819 extern int power_supply_set_battery_charged(struct power_supply *psy);
851 extern int power_supply_get_property(struct power_supply *psy,
855 extern int power_supply_set_property(struct power_supply *psy,
859 static inline int power_supply_set_property(struct power_supply *psy, in power_supply_set_property()
864 extern int power_supply_property_is_writeable(struct power_supply *psy,
866 extern void power_supply_external_power_changed(struct power_supply *psy);
868 extern struct power_supply *__must_check
872 extern struct power_supply *__must_check
876 extern struct power_supply *__must_check
880 extern struct power_supply *__must_check
884 extern void power_supply_unregister(struct power_supply *psy);
885 extern int power_supply_powers(struct power_supply *psy, struct device *dev);
887 #define to_power_supply(device) container_of(device, struct power_supply, dev)
889 extern void *power_supply_get_drvdata(struct power_supply *psy);
948 int power_supply_add_hwmon_sysfs(struct power_supply *psy);
949 void power_supply_remove_hwmon_sysfs(struct power_supply *psy);
951 static inline int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs()
957 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) {} in power_supply_remove_hwmon_sysfs()