/Linux-v5.10/include/linux/ |
D | power_supply.h | 161 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */ 215 struct power_supply; 247 int (*get_property)(struct power_supply *psy, 250 int (*set_property)(struct power_supply *psy, 258 int (*property_is_writeable)(struct power_supply *psy, 260 void (*external_power_changed)(struct power_supply *psy); 261 void (*set_charged)(struct power_supply *psy); 273 struct power_supply { struct 384 extern struct power_supply *power_supply_get_by_name(const char *name); 385 extern void power_supply_put(struct power_supply *psy); [all …]
|
/Linux-v5.10/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>/current_avg 64 What: /sys/class/power_supply/<supply_name>/current_max 79 What: /sys/class/power_supply/<supply_name>/current_now 104 What: /sys/class/power_supply/<supply_name>/temp 122 What: /sys/class/power_supply/<supply_name>/temp_alert_max 146 What: /sys/class/power_supply/<supply_name>/temp_alert_min [all …]
|
D | sysfs-class-power-wilco | 1 What: /sys/class/power_supply/wilco-charger/charge_type 28 What: /sys/class/power_supply/wilco-charger/charge_control_start_threshold 35 What: /sys/class/power_supply/wilco-charger/charge_control_end_threshold
|
/Linux-v5.10/drivers/power/supply/ |
D | power_supply_core.c | 21 #include <linux/power_supply.h> 24 #include "power_supply.h" 37 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by() 38 struct power_supply *supply) in __power_supply_is_supplied_by() 65 struct power_supply *psy = data; in __power_supply_changed_work() 66 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work() 79 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work() 114 void power_supply_changed(struct power_supply *psy) in power_supply_changed() 140 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work() 161 struct power_supply *psy = data; in __power_supply_populate_supplied_from() [all …]
|
D | power_supply.h | 14 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()
|
D | power_supply_leds.c | 14 #include <linux/power_supply.h> 17 #include "power_supply.h" 21 static void power_supply_update_bat_leds(struct power_supply *psy) in power_supply_update_bat_leds() 57 static int power_supply_create_bat_triggers(struct power_supply *psy) in power_supply_create_bat_triggers() 99 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers() 113 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds() 128 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers() 140 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers() 148 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds() 156 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers() [all …]
|
D | sbs-charger.c | 15 #include <linux/power_supply.h> 38 struct power_supply *power_supply; member 44 static int sbs_get_property(struct power_supply *psy, in sbs_get_property() 100 power_supply_changed(chip->power_supply); in sbs_check_state() 198 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, in sbs_probe() 200 if (IS_ERR(chip->power_supply)) { in sbs_probe() 202 return PTR_ERR(chip->power_supply); in sbs_probe()
|
D | ds2780_battery.c | 17 #include <linux/power_supply.h> 36 struct power_supply *bat; 50 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info() 206 * power_supply class measures temperature in tenths of degrees in ds2780_get_temperature() 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() [all …]
|
D | ds2781_battery.c | 15 #include <linux/power_supply.h> 34 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() [all …]
|
D | wm97xx_battery.c | 14 #include <linux/power_supply.h> 27 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat() 36 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp() 45 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property() 91 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed() 96 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update() 118 static struct power_supply *bat_psy;
|
D | wilco-charger.c | 15 #include <linux/power_supply.h> 86 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()
|
D | ipaq_micro_battery.c | 14 #include <linux/power_supply.h> 91 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;
|
D | lego_ev3_battery.c | 25 #include <linux/power_supply.h> 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 | lt3651-charger.c | 14 #include <linux/power_supply.h> 19 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()
|
D | gpio-charger.c | 13 #include <linux/power_supply.h> 31 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()
|
D | power_supply_hwmon.c | 8 #include <linux/power_supply.h> 12 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() 334 int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs() 419 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) in power_supply_remove_hwmon_sysfs()
|
D | mp2629_charger.c | 18 #include <linux/power_supply.h> 83 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()
|
D | pcf50633-charger.c | 20 #include <linux/power_supply.h> 31 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()
|
D | goldfish_battery.c | 14 #include <linux/power_supply.h> 26 struct power_supply *battery; 27 struct power_supply *ac; 62 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()
|
D | pmu_battery.c | 11 #include <linux/power_supply.h> 17 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()
|
/Linux-v5.10/include/acpi/ |
D | battery.h | 5 #include <linux/power_supply.h> 15 int (*add_battery)(struct power_supply *battery); 16 int (*remove_battery)(struct power_supply *battery);
|
/Linux-v5.10/include/linux/mfd/ |
D | rt5033.h | 15 #include <linux/power_supply.h> 39 struct power_supply *psy; 54 struct power_supply psy;
|
/Linux-v5.10/include/linux/mfd/wm8350/ |
D | supply.h | 12 #include <linux/power_supply.h> 121 struct power_supply *battery; 122 struct power_supply *usb; 123 struct power_supply *ac;
|
/Linux-v5.10/include/linux/power/ |
D | charger-manager.h | 16 #include <linux/power_supply.h> 203 * @fuel_gauge: power_supply for fuel gauge 204 * @charger_stat: array of power_supply for chargers 210 * @charger_psy: power_supply for charger manager 233 struct power_supply *charger_psy;
|
/Linux-v5.10/drivers/usb/misc/ |
D | apple-mfi-fastcharge.c | 10 #include <linux/power_supply.h> 46 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()
|