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

123

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/power/
H A Dpower_supply.h27 extern void power_supply_update_leds(struct power_supply *psy);
28 extern int power_supply_create_triggers(struct power_supply *psy);
29 extern void power_supply_remove_triggers(struct power_supply *psy);
33 static inline void power_supply_update_leds(struct power_supply *psy) {}
34 static inline int power_supply_create_triggers(struct power_supply *psy)
36 static inline void power_supply_remove_triggers(struct power_supply *psy) {}
H A Dpower_supply_core.c19 #include <linux/power_supply.h>
20 #include "power_supply.h"
30 struct power_supply *psy = (struct power_supply *)data;
31 struct power_supply *pst = dev_get_drvdata(dev);
44 struct power_supply *psy = container_of(work, struct power_supply,
57 void power_supply_changed(struct power_supply *psy)
68 struct power_supply *psy = (struct power_supply *)dat
[all...]
H A DMakefile0 power_supply-objs := power_supply_core.o
4 power_supply-objs += power_supply_sysfs.o
8 power_supply-objs += power_supply_leds.o
15 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
H A Dpower_supply_leds.c14 #include <linux/power_supply.h>
17 #include "power_supply.h"
21 static void power_supply_update_bat_leds(struct power_supply *psy)
49 static int power_supply_create_bat_triggers(struct power_supply *psy)
86 static void power_supply_remove_bat_triggers(struct power_supply *psy)
98 static void power_supply_update_gen_leds(struct power_supply *psy)
113 static int power_supply_create_gen_triggers(struct power_supply *psy)
131 static void power_supply_remove_gen_triggers(struct power_supply *psy)
139 void power_supply_update_leds(struct power_supply *psy)
147 int power_supply_create_triggers(struct power_supply *ps
[all...]
H A Dtest_power.c13 #include <linux/power_supply.h>
21 static int test_power_get_ac_property(struct power_supply *psy,
35 static int test_power_get_battery_property(struct power_supply *psy,
103 static struct power_supply test_power_supplies[] = {
H A Dpmu_battery.c14 #include <linux/power_supply.h>
20 struct power_supply bat;
32 static int pmu_get_ac_prop(struct power_supply *psy,
52 static struct power_supply pmu_ac = {
82 static int pmu_bat_get_property(struct power_supply *psy,
H A Dwm97xx_battery.c20 #include <linux/power_supply.h>
34 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps)
44 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps)
54 static int wm97xx_bat_get_property(struct power_supply *bat_ps,
101 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps)
106 static void wm97xx_bat_update(struct power_supply *bat_ps)
129 static struct power_supply bat_ps = {
H A Dwm831x_backup.c14 #include <linux/power_supply.h>
24 struct power_supply backup;
113 static int wm831x_backup_get_prop(struct power_supply *psy,
167 struct power_supply *backup;
H A Dwm831x_power.c14 #include <linux/power_supply.h>
24 struct power_supply wall;
25 struct power_supply usb;
26 struct power_supply battery;
62 static int wm831x_wall_get_prop(struct power_supply *psy,
93 static int wm831x_usb_get_prop(struct power_supply *psy,
389 static int wm831x_bat_get_prop(struct power_supply *psy,
491 struct power_supply *usb;
492 struct power_supply *battery;
493 struct power_supply *wal
[all...]
H A Dpda_power.c17 #include <linux/power_supply.h>
56 static int pda_power_get_property(struct power_supply *psy,
84 static struct power_supply pda_psy_ac = {
94 static struct power_supply pda_psy_usb = {
178 static irqreturn_t power_changed_isr(int irq, void *power_supply) argument
180 if (power_supply == &pda_psy_ac)
182 else if (power_supply == &pda_psy_usb)
H A Dpower_supply_sysfs.c15 #include <linux/power_supply.h>
18 #include "power_supply.h"
65 struct power_supply *psy = dev_get_drvdata(dev);
106 struct power_supply *psy = dev_get_drvdata(dev);
181 struct power_supply *psy = dev_get_drvdata(dev);
242 struct power_supply *psy = dev_get_drvdata(dev);
H A Dapm_power.c13 #include <linux/power_supply.h>
26 static struct power_supply *main_battery;
35 struct power_supply *main;
36 struct power_supply *bat;
37 struct power_supply *max_charge_bat;
38 struct power_supply *max_energy_bat;
H A Dz2_battery.c17 #include <linux/power_supply.h>
27 struct power_supply batt_ps;
43 static int z2_batt_get_property(struct power_supply *batt_ps,
86 static void z2_batt_ext_power_changed(struct power_supply *batt_ps)
H A Djz4740-battery.c26 #include <linux/power_supply.h>
48 struct power_supply battery;
54 static inline struct jz_battery *psy_to_jz_battery(struct power_supply *psy)
103 static int jz_battery_get_capacity(struct power_supply *psy)
127 static int jz_battery_get_property(struct power_supply *psy,
171 static void jz_battery_external_power_changed(struct power_supply *psy)
247 struct power_supply *battery;
H A Dmax8925_power.c18 #include <linux/power_supply.h>
70 struct power_supply ac;
71 struct power_supply usb;
72 struct power_supply battery;
196 static int max8925_ac_get_prop(struct power_supply *psy,
230 static int max8925_usb_get_prop(struct power_supply *psy,
264 static int max8925_bat_get_prop(struct power_supply *psy,
H A Dpcf50633-charger.c25 #include <linux/power_supply.h>
36 struct power_supply usb;
37 struct power_supply adapter;
38 struct power_supply ac;
289 static int adapter_get_property(struct power_supply *psy,
308 static int usb_get_property(struct power_supply *psy,
329 static int ac_get_property(struct power_supply *psy,
H A Dwm8350_power.c18 #include <linux/power_supply.h>
249 static int wm8350_ac_get_prop(struct power_supply *psy,
279 static int wm8350_usb_get_prop(struct power_supply *psy,
345 static int wm8350_bat_get_property(struct power_supply *psy,
450 struct power_supply *usb = &power->usb;
451 struct power_supply *battery = &power->battery;
452 struct power_supply *ac = &power->ac;
H A Dcollie_battery.c15 #include <linux/power_supply.h>
32 struct power_supply psy;
95 static int collie_bat_get_property(struct power_supply *psy,
142 static void collie_bat_external_power_changed(struct power_supply *psy)
157 struct power_supply *psy = &bat->psy;
H A Dtosa_battery.c14 #include <linux/power_supply.h>
29 struct power_supply psy;
94 static int tosa_bat_get_property(struct power_supply *psy,
146 static void tosa_bat_external_power_changed(struct power_supply *psy)
161 struct power_supply *psy = &bat->psy;
H A Dds2782_battery.c23 #include <linux/power_supply.h>
55 struct power_supply battery;
100 * power_supply class measures temperature in tenths of degrees
235 static int ds278x_battery_get_property(struct power_supply *psy,
278 static void ds278x_power_supply_init(struct power_supply *battery)
H A Dmax17040_battery.c20 #include <linux/power_supply.h>
43 struct power_supply battery;
56 static int max17040_get_property(struct power_supply *psy,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dpower_supply.h117 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */
136 struct power_supply { struct
145 int (*get_property)(struct power_supply *psy,
148 int (*set_property)(struct power_supply *psy,
151 int (*property_is_writeable)(struct power_supply *psy,
153 void (*external_power_changed)(struct power_supply *psy);
154 void (*set_charged)(struct power_supply *psy);
194 extern struct power_supply *power_supply_get_by_name(char *name);
195 extern void power_supply_changed(struct power_supply *psy);
196 extern int power_supply_am_i_supplied(struct power_supply *ps
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mfd/wm8350/
H A Dsupply.h17 #include <linux/power_supply.h>
126 struct power_supply battery;
127 struct power_supply usb;
128 struct power_supply ac;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/
H A Dac.c36 #include <linux/power_supply.h>
90 struct power_supply charger;
108 static int get_ac_property(struct power_supply *psy,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-pxa/
H A Dpalmte2.c27 #include <linux/power_supply.h>
265 static struct platform_device power_supply = { variable in typeref:struct:platform_device
344 &power_supply,

Completed in 196 milliseconds

123