Home
last modified time | relevance | path

Searched refs:power_supply (Results 1 – 25 of 70) sorted by relevance

123

/drivers/power/
Dpower_supply_core.c29 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by()
30 struct power_supply *supply) in __power_supply_is_supplied_by()
57 struct power_supply *psy = (struct power_supply *)data; in __power_supply_changed_work()
58 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work()
71 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work()
94 void power_supply_changed(struct power_supply *psy) in power_supply_changed()
114 struct power_supply *psy = (struct power_supply *)data; in __power_supply_populate_supplied_from()
115 struct power_supply *epsy = dev_get_drvdata(dev); in __power_supply_populate_supplied_from()
136 static int power_supply_populate_supplied_from(struct power_supply *psy) in power_supply_populate_supplied_from()
152 struct power_supply *epsy = dev_get_drvdata(dev); in __power_supply_find_supply_from_node()
[all …]
Dpower_supply.h15 struct power_supply;
31 extern void power_supply_update_leds(struct power_supply *psy);
32 extern int power_supply_create_triggers(struct power_supply *psy);
33 extern void power_supply_remove_triggers(struct power_supply *psy);
37 static inline void power_supply_update_leds(struct power_supply *psy) {} in power_supply_update_leds()
38 static inline int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
40 static inline void power_supply_remove_triggers(struct power_supply *psy) {} in power_supply_remove_triggers()
Dsbs-battery.c144 struct power_supply power_supply; member
308 power_supply_changed(&chip->power_supply); in sbs_get_battery_property()
454 static int sbs_get_property(struct power_supply *psy, in sbs_get_property()
460 struct sbs_info, power_supply); in sbs_get_property()
520 power_supply_changed(&chip->power_supply); in sbs_get_property()
544 struct power_supply *battery = devid; in sbs_irq()
551 static void sbs_external_power_changed(struct power_supply *psy) in sbs_external_power_changed()
555 chip = container_of(psy, struct sbs_info, power_supply); in sbs_external_power_changed()
594 power_supply_changed(&chip->power_supply); in sbs_delayed_work()
702 chip->power_supply.name = name; in sbs_probe()
[all …]
Dpower_supply_leds.c22 static void power_supply_update_bat_leds(struct power_supply *psy) in power_supply_update_bat_leds()
58 static int power_supply_create_bat_triggers(struct power_supply *psy) in power_supply_create_bat_triggers()
104 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers()
118 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds()
133 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers()
151 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers()
159 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds()
167 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
174 void power_supply_remove_triggers(struct power_supply *psy) in power_supply_remove_triggers()
Dds2780_battery.c40 struct power_supply bat;
53 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info()
58 static inline struct power_supply *to_power_supply(struct device *dev) in to_power_supply()
383 static int ds2780_battery_get_property(struct power_supply *psy, in ds2780_battery_get_property()
457 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pmod_enabled()
476 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled()
511 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value()
529 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value()
549 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting()
566 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting()
[all …]
Dds2781_battery.c38 struct power_supply bat;
51 to_ds2781_device_info(struct power_supply *psy) in to_ds2781_device_info()
56 static inline struct power_supply *to_power_supply(struct device *dev) in to_power_supply()
385 static int ds2781_battery_get_property(struct power_supply *psy, in ds2781_battery_get_property()
459 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pmod_enabled()
478 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pmod_enabled()
513 struct power_supply *psy = to_power_supply(dev); in ds2781_get_sense_resistor_value()
531 struct power_supply *psy = to_power_supply(dev); in ds2781_set_sense_resistor_value()
551 struct power_supply *psy = to_power_supply(dev); in ds2781_get_rsgain_setting()
568 struct power_supply *psy = to_power_supply(dev); in ds2781_set_rsgain_setting()
[all …]
Dgpio-charger.c32 struct power_supply charger;
37 struct power_supply *charger = devid; in gpio_charger_irq()
44 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger()
49 static int gpio_charger_get_property(struct power_supply *psy, in gpio_charger_get_property()
75 struct power_supply *charger; in gpio_charger_probe()
Dwm97xx_battery.c33 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat()
43 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp()
53 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property()
100 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed()
105 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update()
128 static struct power_supply bat_ps = {
DMakefile3 power_supply-y := power_supply_core.o
4 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
5 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
7 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
Dwm831x_power.c24 struct power_supply wall;
25 struct power_supply usb;
26 struct power_supply battery;
66 static int wm831x_wall_get_prop(struct power_supply *psy, in wm831x_wall_get_prop()
97 static int wm831x_usb_get_prop(struct power_supply *psy, in wm831x_usb_get_prop()
392 static int wm831x_bat_get_prop(struct power_supply *psy, in wm831x_bat_get_prop()
497 struct power_supply *usb; in wm831x_power_probe()
498 struct power_supply *battery; in wm831x_power_probe()
499 struct power_supply *wall; in wm831x_power_probe()
Dpmu_battery.c20 struct power_supply bat;
32 static int pmu_get_ac_prop(struct power_supply *psy, in pmu_get_ac_prop()
52 static struct power_supply pmu_ac = {
82 static int pmu_bat_get_property(struct power_supply *psy, in pmu_bat_get_property()
Dpda_power.c55 static int pda_power_get_property(struct power_supply *psy, in pda_power_get_property()
83 static struct power_supply pda_psy_ac = {
93 static struct power_supply pda_psy_usb = {
177 static irqreturn_t power_changed_isr(int irq, void *power_supply) in power_changed_isr() argument
179 if (power_supply == &pda_psy_ac) in power_changed_isr()
181 else if (power_supply == &pda_psy_usb) in power_changed_isr()
Djz4740-battery.c49 struct power_supply battery;
55 static inline struct jz_battery *psy_to_jz_battery(struct power_supply *psy) in psy_to_jz_battery()
104 static int jz_battery_get_capacity(struct power_supply *psy) in jz_battery_get_capacity()
128 static int jz_battery_get_property(struct power_supply *psy, in jz_battery_get_property()
172 static void jz_battery_external_power_changed(struct power_supply *psy) in jz_battery_external_power_changed()
246 struct power_supply *battery; in jz_battery_probe()
Dgoldfish_battery.c34 struct power_supply battery;
35 struct power_supply ac;
67 static int goldfish_ac_get_property(struct power_supply *psy, in goldfish_ac_get_property()
86 static int goldfish_battery_get_property(struct power_supply *psy, in goldfish_battery_get_property()
Dgeneric-adc-battery.c47 struct power_supply psy;
56 static struct gab *to_generic_bat(struct power_supply *psy) in to_generic_bat()
61 static void gab_ext_power_changed(struct power_supply *psy) in gab_ext_power_changed()
143 static int gab_get_property(struct power_supply *psy, in gab_get_property()
242 struct power_supply *psy; in gab_probe()
Dapm_power.c27 static struct power_supply *main_battery;
36 struct power_supply *main;
37 struct power_supply *bat;
38 struct power_supply *max_charge_bat;
39 struct power_supply *max_energy_bat;
Dbq2415x_charger.c171 struct power_supply charger;
958 static int bq2415x_power_supply_get_property(struct power_supply *psy, in bq2415x_power_supply_get_property()
1048 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_status()
1082 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_timer()
1104 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_timer()
1129 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_mode()
1182 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_mode()
1220 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_reported_mode()
1249 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_registers()
1285 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_registers()
[all …]
Dwm8350_power.c249 static int wm8350_ac_get_prop(struct power_supply *psy, in wm8350_ac_get_prop()
279 static int wm8350_usb_get_prop(struct power_supply *psy, in wm8350_usb_get_prop()
345 static int wm8350_bat_get_property(struct power_supply *psy, in wm8350_bat_get_property()
450 struct power_supply *usb = &power->usb; in wm8350_power_probe()
451 struct power_supply *battery = &power->battery; in wm8350_power_probe()
452 struct power_supply *ac = &power->ac; in wm8350_power_probe()
Dpcf50633-charger.c36 struct power_supply usb;
37 struct power_supply adapter;
38 struct power_supply ac;
289 static int adapter_get_property(struct power_supply *psy, in adapter_get_property()
308 static int usb_get_property(struct power_supply *psy, in usb_get_property()
329 static int ac_get_property(struct power_supply *psy, in ac_get_property()
Dtest_power.c35 static int test_power_get_ac_property(struct power_supply *psy, in test_power_get_ac_property()
49 static int test_power_get_usb_property(struct power_supply *psy, in test_power_get_usb_property()
63 static int test_power_get_battery_property(struct power_supply *psy, in test_power_get_battery_property()
149 static struct power_supply test_power_supplies[] = {
303 static inline void signal_power_supply_changed(struct power_supply *psy) in signal_power_supply_changed()
Dwm831x_backup.c24 struct power_supply backup;
114 static int wm831x_backup_get_prop(struct power_supply *psy, in wm831x_backup_get_prop()
169 struct power_supply *backup; in wm831x_backup_probe()
Dlp8727_charger.c82 struct power_supply ac;
83 struct power_supply usb;
84 struct power_supply batt;
309 static int lp8727_charger_get_property(struct power_supply *psy, in lp8727_charger_get_property()
335 static int lp8727_battery_get_property(struct power_supply *psy, in lp8727_battery_get_property()
400 static void lp8727_charger_changed(struct power_supply *psy) in lp8727_charger_changed()
Dmax8925_power.c71 struct power_supply ac;
72 struct power_supply usb;
73 struct power_supply battery;
195 static int max8925_ac_get_prop(struct power_supply *psy, in max8925_ac_get_prop()
229 static int max8925_usb_get_prop(struct power_supply *psy, in max8925_usb_get_prop()
263 static int max8925_bat_get_prop(struct power_supply *psy, in max8925_bat_get_prop()
Dcollie_battery.c32 struct power_supply psy;
95 static int collie_bat_get_property(struct power_supply *psy, in collie_bat_get_property()
142 static void collie_bat_external_power_changed(struct power_supply *psy) in collie_bat_external_power_changed()
157 struct power_supply *psy = &bat->psy; in collie_bat_update()
/drivers/staging/nvec/
Dnvec_power.c85 static struct power_supply nvec_bat_psy;
86 static struct power_supply nvec_psy;
224 static int nvec_power_get_property(struct power_supply *psy, in nvec_power_get_property()
239 static int nvec_battery_get_property(struct power_supply *psy, in nvec_battery_get_property()
325 static struct power_supply nvec_bat_psy = {
333 static struct power_supply nvec_psy = {
375 struct power_supply *psy; in nvec_power_probe()

123