Home
last modified time | relevance | path

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

123456

/drivers/power/supply/
Dpower_supply_core.c37 struct power_supply **psy;
44 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by()
45 struct power_supply *supply) in __power_supply_is_supplied_by()
72 struct power_supply *psy = data; in __power_supply_changed_work()
73 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work()
86 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work()
121 void power_supply_changed(struct power_supply *psy) in power_supply_changed()
149 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work()
170 struct power_supply *psy = data; in __power_supply_populate_supplied_from()
171 struct power_supply *epsy = dev_get_drvdata(dev); in __power_supply_populate_supplied_from()
[all …]
Dpower_supply.h14 struct power_supply;
30 extern void power_supply_update_leds(struct power_supply *psy);
31 extern int power_supply_create_triggers(struct power_supply *psy);
32 extern void power_supply_remove_triggers(struct power_supply *psy);
36 static inline void power_supply_update_leds(struct power_supply *psy) {} in power_supply_update_leds()
37 static inline int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
39 static inline void power_supply_remove_triggers(struct power_supply *psy) {} in power_supply_remove_triggers()
Dpower_supply_leds.c21 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()
100 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers()
114 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds()
129 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers()
141 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers()
149 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds()
157 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
164 void power_supply_remove_triggers(struct power_supply *psy) in power_supply_remove_triggers()
Dsbs-charger.c37 struct power_supply *power_supply; member
43 static int sbs_get_property(struct power_supply *psy, in sbs_get_property()
99 power_supply_changed(chip->power_supply); in sbs_check_state()
195 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, &psy_cfg); in sbs_probe()
196 if (IS_ERR(chip->power_supply)) in sbs_probe()
197 return dev_err_probe(&client->dev, PTR_ERR(chip->power_supply), in sbs_probe()
Dds2781_battery.c34 struct power_supply *bat;
48 to_ds2781_device_info(struct power_supply *psy) in to_ds2781_device_info()
377 static int ds2781_battery_get_property(struct power_supply *psy, in ds2781_battery_get_property()
451 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pmod_enabled()
470 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pmod_enabled()
505 struct power_supply *psy = to_power_supply(dev); in ds2781_get_sense_resistor_value()
523 struct power_supply *psy = to_power_supply(dev); in ds2781_set_sense_resistor_value()
543 struct power_supply *psy = to_power_supply(dev); in ds2781_get_rsgain_setting()
560 struct power_supply *psy = to_power_supply(dev); in ds2781_set_rsgain_setting()
586 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pio_pin()
[all …]
Dds2780_battery.c36 struct power_supply *bat;
50 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info()
375 static int ds2780_battery_get_property(struct power_supply *psy, in ds2780_battery_get_property()
449 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pmod_enabled()
468 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled()
503 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value()
521 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value()
541 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting()
558 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting()
584 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pio_pin()
[all …]
Dwm97xx_battery.c28 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat()
37 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp()
46 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property()
92 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed()
97 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update()
118 static struct power_supply *bat_psy;
Drn5t618_power.c66 struct power_supply *battery;
67 struct power_supply *usb;
68 struct power_supply *adp;
359 static int rn5t618_battery_get_property(struct power_supply *psy, in rn5t618_battery_get_property()
410 static int rn5t618_battery_set_property(struct power_supply *psy, in rn5t618_battery_set_property()
424 static int rn5t618_battery_property_is_writeable(struct power_supply *psy, in rn5t618_battery_property_is_writeable()
435 static int rn5t618_adp_get_property(struct power_supply *psy, in rn5t618_adp_get_property()
489 static int rn5t618_adp_set_property(struct power_supply *psy, in rn5t618_adp_set_property()
517 static int rn5t618_adp_property_is_writeable(struct power_supply *psy, in rn5t618_adp_property_is_writeable()
555 static int rn5t618_usb_get_property(struct power_supply *psy, in rn5t618_usb_get_property()
[all …]
Dltc4162-l-charger.c81 struct power_supply *charger;
507 struct power_supply *psy = to_power_supply(dev); in charge_status_show()
535 struct power_supply *psy = to_power_supply(dev); in vbat_show()
551 struct power_supply *psy = to_power_supply(dev); in vbat_avg_show()
567 struct power_supply *psy = to_power_supply(dev); in ibat_show()
583 struct power_supply *psy = to_power_supply(dev); in force_telemetry_show()
600 struct power_supply *psy = to_power_supply(dev); in force_telemetry_store()
622 struct power_supply *psy = to_power_supply(dev); in arm_ship_mode_show()
640 struct power_supply *psy = to_power_supply(dev); in arm_ship_mode_store()
679 static int ltc4162l_get_property(struct power_supply *psy, in ltc4162l_get_property()
[all …]
Dwilco-charger.c86 static int wilco_charge_get_property(struct power_supply *psy, in wilco_charge_get_property()
123 static int wilco_charge_set_property(struct power_supply *psy, in wilco_charge_set_property()
153 static int wilco_charge_property_is_writeable(struct power_supply *psy, in wilco_charge_property_is_writeable()
173 struct power_supply *psy; in wilco_charge_probe()
Dipaq_micro_battery.c91 static int get_capacity(struct power_supply *b) in get_capacity()
111 static int get_status(struct power_supply *b) in get_status()
128 static int micro_batt_get_property(struct power_supply *b, in micro_batt_get_property()
176 static int micro_ac_get_property(struct power_supply *b, in micro_ac_get_property()
223 static struct power_supply *micro_batt_power, *micro_ac_power;
Dgpio-charger.c31 struct power_supply *charger;
44 struct power_supply *charger = devid; in gpio_charger_irq()
51 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger()
85 static int gpio_charger_get_property(struct power_supply *psy, in gpio_charger_get_property()
110 static int gpio_charger_set_property(struct power_supply *psy, in gpio_charger_set_property()
125 static int gpio_charger_property_is_writeable(struct power_supply *psy, in gpio_charger_property_is_writeable()
Dlego_ev3_battery.c31 struct power_supply *psy;
37 static int lego_ev3_battery_get_property(struct power_supply *psy, in lego_ev3_battery_get_property()
91 static int lego_ev3_battery_set_property(struct power_supply *psy, in lego_ev3_battery_set_property()
126 static int lego_ev3_battery_property_is_writeable(struct power_supply *psy, in lego_ev3_battery_property_is_writeable()
Dpmu_battery.c17 struct power_supply *bat;
30 static int pmu_get_ac_prop(struct power_supply *psy, in pmu_get_ac_prop()
58 static struct power_supply *pmu_ac;
82 static int pmu_bat_get_property(struct power_supply *psy, in pmu_bat_get_property()
Dlt3651-charger.c19 struct power_supply *charger;
28 struct power_supply *charger = devid; in lt3651_charger_irq()
36 struct power_supply *psy) in psy_to_lt3651_charger()
41 static int lt3651_charger_get_property(struct power_supply *psy, in lt3651_charger_get_property()
Dmp2629_charger.c83 struct power_supply *usb;
84 struct power_supply *battery;
220 static int mp2629_charger_battery_get_prop(struct power_supply *psy, in mp2629_charger_battery_get_prop()
323 static int mp2629_charger_battery_set_prop(struct power_supply *psy, in mp2629_charger_battery_set_prop()
347 static int mp2629_charger_usb_get_prop(struct power_supply *psy, in mp2629_charger_usb_get_prop()
412 static int mp2629_charger_usb_set_prop(struct power_supply *psy, in mp2629_charger_usb_set_prop()
430 static int mp2629_charger_battery_prop_writeable(struct power_supply *psy, in mp2629_charger_battery_prop_writeable()
439 static int mp2629_charger_usb_prop_writeable(struct power_supply *psy, in mp2629_charger_usb_prop_writeable()
Dpower_supply_hwmon.c12 struct power_supply *psy;
210 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_read()
254 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_write()
332 int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs()
417 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) in power_supply_remove_hwmon_sysfs()
Dqcom_smbb.c119 struct power_supply *usb_psy;
120 struct power_supply *dc_psy;
121 struct power_supply *bat_psy;
488 static int smbb_usbin_get_property(struct power_supply *psy, in smbb_usbin_get_property()
516 static int smbb_usbin_set_property(struct power_supply *psy, in smbb_usbin_set_property()
536 static int smbb_dcin_get_property(struct power_supply *psy, in smbb_dcin_get_property()
564 static int smbb_dcin_set_property(struct power_supply *psy, in smbb_dcin_set_property()
584 static int smbb_charger_writable_property(struct power_supply *psy, in smbb_charger_writable_property()
590 static int smbb_battery_get_property(struct power_supply *psy, in smbb_battery_get_property()
660 static int smbb_battery_set_property(struct power_supply *psy, in smbb_battery_set_property()
[all …]
Dpcf50633-charger.c31 struct power_supply *usb;
32 struct power_supply *adapter;
33 struct power_supply *ac;
279 static int adapter_get_property(struct power_supply *psy, in adapter_get_property()
297 static int usb_get_property(struct power_supply *psy, in usb_get_property()
318 static int ac_get_property(struct power_supply *psy, in ac_get_property()
Dbq24735-charger.c50 struct power_supply *charger;
61 static inline struct bq24735 *to_bq24735(struct power_supply *psy) in to_bq24735()
71 static int bq24735_charger_property_is_writeable(struct power_supply *psy, in bq24735_charger_property_is_writeable()
237 struct power_supply *psy = devid; in bq24735_charger_isr()
255 static int bq24735_charger_get_property(struct power_supply *psy, in bq24735_charger_get_property()
285 static int bq24735_charger_set_property(struct power_supply *psy, in bq24735_charger_set_property()
Dbq2415x_charger.c161 struct power_supply *charger;
811 struct power_supply *psy = v; in bq2415x_notifier_call()
996 static int bq2415x_power_supply_get_property(struct power_supply *psy, in bq2415x_power_supply_get_property()
1043 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_status()
1076 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_timer()
1097 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_timer()
1121 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_mode()
1173 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_mode()
1210 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_show_reported_mode()
1238 struct power_supply *psy = dev_get_drvdata(dev); in bq2415x_sysfs_set_registers()
[all …]
Dsbs-battery.c206 struct power_supply *power_supply; member
659 power_supply_changed(chip->power_supply); in sbs_get_battery_property()
905 static int sbs_get_property(struct power_supply *psy, in sbs_get_property()
1020 power_supply_changed(chip->power_supply); in sbs_get_property()
1039 struct power_supply *battery = chip->power_supply; in sbs_supply_changed()
1061 static void sbs_external_power_changed(struct power_supply *psy) in sbs_external_power_changed()
1097 power_supply_changed(chip->power_supply); in sbs_delayed_work()
1213 chip->power_supply = devm_power_supply_register(&client->dev, sbs_desc, in sbs_probe()
1215 if (IS_ERR(chip->power_supply)) in sbs_probe()
1216 return dev_err_probe(&client->dev, PTR_ERR(chip->power_supply), in sbs_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;
/drivers/usb/misc/
Dapple-mfi-fastcharge.c46 struct power_supply *battery;
91 static int apple_mfi_fc_get_property(struct power_supply *psy, in apple_mfi_fc_get_property()
113 static int apple_mfi_fc_set_property(struct power_supply *psy, in apple_mfi_fc_set_property()
142 static int apple_mfi_fc_property_is_writeable(struct power_supply *psy, in apple_mfi_fc_property_is_writeable()
/drivers/staging/nvec/
Dnvec_power.c81 static struct power_supply *nvec_bat_psy;
82 static struct power_supply *nvec_psy;
222 static int nvec_power_get_property(struct power_supply *psy, in nvec_power_get_property()
238 static int nvec_battery_get_property(struct power_supply *psy, in nvec_battery_get_property()
374 struct power_supply **psy; in nvec_power_probe()

123456