/linux-master/drivers/power/supply/ |
H A D | power_supply.h | 14 struct power_supply; 32 extern void power_supply_update_leds(struct power_supply *psy); 33 extern int power_supply_create_triggers(struct power_supply *psy); 34 extern void power_supply_remove_triggers(struct power_supply *psy); 38 static inline void power_supply_update_leds(struct power_supply *psy) {} 39 static inline int power_supply_create_triggers(struct power_supply *psy) 41 static inline void power_supply_remove_triggers(struct power_supply *psy) {}
|
H A D | ab8500-chargalg.h | 10 #include <linux/power_supply.h> 39 struct power_supply *psy;
|
H A D | power_supply_leds.c | 14 #include <linux/power_supply.h> 18 #include "power_supply.h" 22 static void power_supply_update_bat_leds(struct power_supply *psy) 56 static int power_supply_create_bat_triggers(struct power_supply *psy) 98 static void power_supply_remove_bat_triggers(struct power_supply *psy) 112 static void power_supply_update_gen_leds(struct power_supply *psy) 127 static int power_supply_create_gen_triggers(struct power_supply *psy) 139 static void power_supply_remove_gen_triggers(struct power_supply *psy) 147 void power_supply_update_leds(struct power_supply *psy) 155 int power_supply_create_triggers(struct power_supply *ps [all...] |
H A D | wilco-charger.c | 15 #include <linux/power_supply.h> 86 static int wilco_charge_get_property(struct power_supply *psy, 123 static int wilco_charge_set_property(struct power_supply *psy, 153 static int wilco_charge_property_is_writeable(struct power_supply *psy, 173 struct power_supply *psy;
|
H A D | power_supply_core.c | 21 #include <linux/power_supply.h> 25 #include "power_supply.h" 29 .name = "power_supply", 36 .name = "power_supply", 42 static bool __power_supply_is_supplied_by(struct power_supply *supplier, 43 struct power_supply *supply) 70 struct power_supply *psy = data; 71 struct power_supply *pst = dev_get_drvdata(dev); 84 struct power_supply *psy = container_of(work, struct power_supply, [all...] |
H A D | sbs-charger.c | 15 #include <linux/power_supply.h> 37 struct power_supply *power_supply; member in struct:sbs_info 43 static int sbs_get_property(struct power_supply *psy, 99 power_supply_changed(chip->power_supply); 194 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, &psy_cfg); 195 if (IS_ERR(chip->power_supply)) 196 return dev_err_probe(&client->dev, PTR_ERR(chip->power_supply),
|
H A 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, 58 static struct power_supply *pmu_ac; 82 static int pmu_bat_get_property(struct power_supply *psy,
|
H A 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, 91 static int lego_ev3_battery_set_property(struct power_supply *psy, 126 static int lego_ev3_battery_property_is_writeable(struct power_supply *psy,
|
H A D | wm97xx_battery.c | 14 #include <linux/power_supply.h> 28 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) 37 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) 46 static int wm97xx_bat_get_property(struct power_supply *bat_ps, 92 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) 97 static void wm97xx_bat_update(struct power_supply *bat_ps) 118 static struct power_supply *bat_psy;
|
H A D | ds2780_battery.c | 17 #include <linux/power_supply.h> 36 struct power_supply *bat; 50 to_ds2780_device_info(struct power_supply *psy) 206 * power_supply class measures temperature in tenths of degrees 375 static int ds2780_battery_get_property(struct power_supply *psy, 449 struct power_supply *psy = to_power_supply(dev); 468 struct power_supply *psy = to_power_supply(dev); 503 struct power_supply *psy = to_power_supply(dev); 521 struct power_supply *psy = to_power_supply(dev); 541 struct power_supply *ps [all...] |
H A D | ds2781_battery.c | 15 #include <linux/power_supply.h> 34 struct power_supply *bat; 48 to_ds2781_device_info(struct power_supply *psy) 377 static int ds2781_battery_get_property(struct power_supply *psy, 451 struct power_supply *psy = to_power_supply(dev); 470 struct power_supply *psy = to_power_supply(dev); 505 struct power_supply *psy = to_power_supply(dev); 523 struct power_supply *psy = to_power_supply(dev); 543 struct power_supply *psy = to_power_supply(dev); 560 struct power_supply *ps [all...] |
H A D | power_supply_hwmon.c | 8 #include <linux/power_supply.h> 12 struct power_supply *psy; 210 struct power_supply *psy = psyhw->psy; 254 struct power_supply *psy = psyhw->psy; 327 int power_supply_add_hwmon_sysfs(struct power_supply *psy) 408 void power_supply_remove_hwmon_sysfs(struct power_supply *psy)
|
H A D | ipaq_micro_battery.c | 14 #include <linux/power_supply.h> 91 static int get_capacity(struct power_supply *b) 111 static int get_status(struct power_supply *b) 128 static int micro_batt_get_property(struct power_supply *b, 176 static int micro_ac_get_property(struct power_supply *b, 223 static struct power_supply *micro_batt_power, *micro_ac_power;
|
H A D | gpio-charger.c | 13 #include <linux/power_supply.h> 31 struct power_supply *charger; 44 struct power_supply *charger = devid; 51 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) 85 static int gpio_charger_get_property(struct power_supply *psy, 110 static int gpio_charger_set_property(struct power_supply *psy, 125 static int gpio_charger_property_is_writeable(struct power_supply *psy,
|
H A D | ltc4162-l-charger.c | 11 #include <linux/power_supply.h> 81 struct power_supply *charger; 507 struct power_supply *psy = to_power_supply(dev); 535 struct power_supply *psy = to_power_supply(dev); 551 struct power_supply *psy = to_power_supply(dev); 567 struct power_supply *psy = to_power_supply(dev); 583 struct power_supply *psy = to_power_supply(dev); 600 struct power_supply *psy = to_power_supply(dev); 622 struct power_supply *psy = to_power_supply(dev); 640 struct power_supply *ps [all...] |
H A D | rn5t618_power.c | 18 #include <linux/power_supply.h> 65 struct power_supply *battery; 66 struct power_supply *usb; 67 struct power_supply *adp; 358 static int rn5t618_battery_get_property(struct power_supply *psy, 409 static int rn5t618_battery_set_property(struct power_supply *psy, 423 static int rn5t618_battery_property_is_writeable(struct power_supply *psy, 434 static int rn5t618_adp_get_property(struct power_supply *psy, 488 static int rn5t618_adp_set_property(struct power_supply *psy, 516 static int rn5t618_adp_property_is_writeable(struct power_supply *ps [all...] |
/linux-master/include/acpi/ |
H A D | battery.h | 5 #include <linux/power_supply.h> 15 int (*add_battery)(struct power_supply *battery, struct acpi_battery_hook *hook); 16 int (*remove_battery)(struct power_supply *battery, struct acpi_battery_hook *hook);
|
/linux-master/include/linux/power/ |
H A D | sbs-battery.h | 11 #include <linux/power_supply.h>
|
H A D | bq24735-charger.h | 9 #include <linux/power_supply.h>
|
H A D | gpio-charger.h | 9 #include <linux/power_supply.h> 14 * @name: Name for the chargers power_supply device
|
H A 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;
|
H A D | bq27xxx_battery.h | 5 #include <linux/power_supply.h> 76 struct power_supply *bat;
|
/linux-master/include/linux/ |
H A D | power_supply.h | 164 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */ 224 struct power_supply; 257 int (*get_property)(struct power_supply *psy, 260 int (*set_property)(struct power_supply *psy, 268 int (*property_is_writeable)(struct power_supply *psy, 270 void (*external_power_changed)(struct power_supply *psy); 271 void (*set_charged)(struct power_supply *psy); 283 struct power_supply { struct 774 extern struct power_supply *power_supply_get_by_name(const char *name); 775 extern void power_supply_put(struct power_supply *ps [all...] |
/linux-master/include/linux/mfd/wm8350/ |
H A 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-master/drivers/usb/misc/ |
H A 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, 113 static int apple_mfi_fc_set_property(struct power_supply *psy, 142 static int apple_mfi_fc_property_is_writeable(struct power_supply *psy,
|