Searched refs:power_supply (Results 1 - 25 of 200) sorted by relevance

12345678

/linux-master/drivers/power/supply/
H A Dpower_supply.h14 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 Dab8500-chargalg.h10 #include <linux/power_supply.h>
39 struct power_supply *psy;
H A Dpower_supply_leds.c14 #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 Dwilco-charger.c15 #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 Dpower_supply_core.c21 #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 Dsbs-charger.c15 #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 Dpmu_battery.c11 #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 Dlego_ev3_battery.c25 #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 Dwm97xx_battery.c14 #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 Dds2780_battery.c17 #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 Dds2781_battery.c15 #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 Dpower_supply_hwmon.c8 #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 Dipaq_micro_battery.c14 #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 Dgpio-charger.c13 #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 Dltc4162-l-charger.c11 #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 Drn5t618_power.c18 #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 Dbattery.h5 #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 Dsbs-battery.h11 #include <linux/power_supply.h>
H A Dbq24735-charger.h9 #include <linux/power_supply.h>
H A Dgpio-charger.h9 #include <linux/power_supply.h>
14 * @name: Name for the chargers power_supply device
H A Dcharger-manager.h16 #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 Dbq27xxx_battery.h5 #include <linux/power_supply.h>
76 struct power_supply *bat;
/linux-master/include/linux/
H A Dpower_supply.h164 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 Dsupply.h12 #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 Dapple-mfi-fastcharge.c10 #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,

Completed in 204 milliseconds

12345678