/Linux-v4.19/include/linux/ |
D | power_supply.h | 197 struct power_supply; 226 int (*get_property)(struct power_supply *psy, 229 int (*set_property)(struct power_supply *psy, 237 int (*property_is_writeable)(struct power_supply *psy, 239 void (*external_power_changed)(struct power_supply *psy); 240 void (*set_charged)(struct power_supply *psy); 252 struct power_supply { struct 334 extern struct power_supply *power_supply_get_by_name(const char *name); 335 extern void power_supply_put(struct power_supply *psy); 337 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np, [all …]
|
/Linux-v4.19/drivers/power/supply/ |
D | power_supply_core.c | 38 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by() 39 struct power_supply *supply) in __power_supply_is_supplied_by() 66 struct power_supply *psy = data; in __power_supply_changed_work() 67 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work() 80 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work() 115 void power_supply_changed(struct power_supply *psy) in power_supply_changed() 141 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work() 164 struct power_supply *psy = data; in __power_supply_populate_supplied_from() 165 struct power_supply *epsy = dev_get_drvdata(dev); in __power_supply_populate_supplied_from() 188 static int power_supply_populate_supplied_from(struct power_supply *psy) in power_supply_populate_supplied_from() [all …]
|
D | power_supply.h | 15 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()
|
D | power_supply_leds.c | 22 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()
|
D | sbs-charger.c | 42 struct power_supply *power_supply; member 48 static int sbs_get_property(struct power_supply *psy, in sbs_get_property() 104 power_supply_changed(chip->power_supply); in sbs_check_state() 202 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, in sbs_probe() 204 if (IS_ERR(chip->power_supply)) { in sbs_probe() 206 return PTR_ERR(chip->power_supply); in sbs_probe()
|
D | ds2780_battery.c | 40 struct power_supply *bat; 54 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info() 379 static int ds2780_battery_get_property(struct power_supply *psy, in ds2780_battery_get_property() 453 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pmod_enabled() 472 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled() 507 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value() 525 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value() 545 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting() 562 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting() 588 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pio_pin() [all …]
|
D | ds2781_battery.c | 38 struct power_supply *bat; 52 to_ds2781_device_info(struct power_supply *psy) in to_ds2781_device_info() 381 static int ds2781_battery_get_property(struct power_supply *psy, in ds2781_battery_get_property() 455 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pmod_enabled() 474 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pmod_enabled() 509 struct power_supply *psy = to_power_supply(dev); in ds2781_get_sense_resistor_value() 527 struct power_supply *psy = to_power_supply(dev); in ds2781_set_sense_resistor_value() 547 struct power_supply *psy = to_power_supply(dev); in ds2781_get_rsgain_setting() 564 struct power_supply *psy = to_power_supply(dev); in ds2781_set_rsgain_setting() 590 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pio_pin() [all …]
|
D | wm97xx_battery.c | 31 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat() 40 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp() 49 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property() 95 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed() 100 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update() 122 static struct power_supply *bat_psy;
|
D | ipaq_micro_battery.c | 94 static int get_capacity(struct power_supply *b) in get_capacity() 114 static int get_status(struct power_supply *b) in get_status() 131 static int micro_batt_get_property(struct power_supply *b, in micro_batt_get_property() 179 static int micro_ac_get_property(struct power_supply *b, in micro_ac_get_property() 226 static struct power_supply *micro_batt_power, *micro_ac_power;
|
D | lego_ev3_battery.c | 31 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()
|
D | pmu_battery.c | 20 struct power_supply *bat; 33 static int pmu_get_ac_prop(struct power_supply *psy, in pmu_get_ac_prop() 61 static struct power_supply *pmu_ac; 85 static int pmu_bat_get_property(struct power_supply *psy, in pmu_bat_get_property()
|
D | ltc3651-charger.c | 23 struct power_supply *charger; 32 struct power_supply *charger = devid; in ltc3651_charger_irq() 40 struct power_supply *psy) in psy_to_ltc3651_charger() 45 static int ltc3651_charger_get_property(struct power_supply *psy, in ltc3651_charger_get_property()
|
D | sbs-battery.c | 165 struct power_supply *power_supply; member 446 power_supply_changed(chip->power_supply); in sbs_get_battery_property() 608 static int sbs_get_property(struct power_supply *psy, in sbs_get_property() 719 power_supply_changed(chip->power_supply); in sbs_get_property() 743 struct power_supply *battery = chip->power_supply; in sbs_supply_changed() 765 static void sbs_external_power_changed(struct power_supply *psy) in sbs_external_power_changed() 801 power_supply_changed(chip->power_supply); in sbs_delayed_work() 912 chip->power_supply = devm_power_supply_register(&client->dev, sbs_desc, in sbs_probe() 914 if (IS_ERR(chip->power_supply)) { in sbs_probe() 917 rc = PTR_ERR(chip->power_supply); in sbs_probe()
|
D | goldfish_battery.c | 34 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() 85 static int goldfish_battery_get_property(struct power_supply *psy, in goldfish_battery_get_property()
|
D | gpio-charger.c | 34 struct power_supply *charger; 41 struct power_supply *charger = devid; in gpio_charger_irq() 48 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger() 53 static int gpio_charger_get_property(struct power_supply *psy, in gpio_charger_get_property()
|
D | Makefile | 4 power_supply-y := power_supply_core.o 5 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o 6 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o 8 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
|
D | bq24735-charger.c | 47 struct power_supply *charger; 58 static inline struct bq24735 *to_bq24735(struct power_supply *psy) in to_bq24735() 68 static int bq24735_charger_property_is_writeable(struct power_supply *psy, in bq24735_charger_property_is_writeable() 234 struct power_supply *psy = devid; in bq24735_charger_isr() 252 static int bq24735_charger_get_property(struct power_supply *psy, in bq24735_charger_get_property() 282 static int bq24735_charger_set_property(struct power_supply *psy, in bq24735_charger_set_property()
|
D | pcf50633-charger.c | 36 struct power_supply *usb; 37 struct power_supply *adapter; 38 struct power_supply *ac; 287 static int adapter_get_property(struct power_supply *psy, in adapter_get_property() 305 static int usb_get_property(struct power_supply *psy, in usb_get_property() 326 static int ac_get_property(struct power_supply *psy, in ac_get_property()
|
D | apm_power.c | 27 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;
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-class-power | 3 What: /sys/class/power_supply/<supply_name>/manufacturer 12 What: /sys/class/power_supply/<supply_name>/model_name 21 What: /sys/class/power_supply/<supply_name>/serial_number 30 What: /sys/class/power_supply/<supply_name>/type 41 What: /sys/class/power_supply/<supply_name>/capacity 49 What: /sys/class/power_supply/<supply_name>/capacity_alert_max 63 What: /sys/class/power_supply/<supply_name>/capacity_alert_min 77 What: /sys/class/power_supply/<supply_name>/capacity_level 87 What: /sys/class/power_supply/<supply_name>/current_avg 98 What: /sys/class/power_supply/<supply_name>/current_max [all …]
|
/Linux-v4.19/include/linux/mfd/wm8350/ |
D | supply.h | 126 struct power_supply *battery; 127 struct power_supply *usb; 128 struct power_supply *ac;
|
/Linux-v4.19/include/linux/power/ |
D | charger-manager.h | 246 struct power_supply *charger_psy; 253 extern void cm_notify_event(struct power_supply *psy, 256 static inline void cm_notify_event(struct power_supply *psy, in cm_notify_event()
|
/Linux-v4.19/include/acpi/ |
D | battery.h | 13 int (*add_battery)(struct power_supply *battery); 14 int (*remove_battery)(struct power_supply *battery);
|
/Linux-v4.19/include/linux/mfd/ |
D | rt5033.h | 42 struct power_supply *psy; 57 struct power_supply psy;
|
/Linux-v4.19/drivers/staging/nvec/ |
D | nvec_power.c | 81 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()
|