/linux-3.4.99/drivers/power/ |
D | power_supply_core.c | 30 struct power_supply *psy = (struct power_supply *)data; in __power_supply_changed_work() 31 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work() 44 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work() 57 void power_supply_changed(struct power_supply *psy) in power_supply_changed() 68 struct power_supply *psy = (struct power_supply *)data; in __power_supply_am_i_supplied() 69 struct power_supply *epsy = dev_get_drvdata(dev); in __power_supply_am_i_supplied() 84 int power_supply_am_i_supplied(struct power_supply *psy) in power_supply_am_i_supplied() 100 struct power_supply *psy = dev_get_drvdata(dev); in __power_supply_is_system_supplied() 132 int power_supply_set_battery_charged(struct power_supply *psy) in power_supply_set_battery_charged() 146 struct power_supply *psy = dev_get_drvdata(dev); in power_supply_match_device_by_name() [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() 104 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers() 118 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds() 133 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers() 151 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers() 159 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds() 167 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers() 174 void power_supply_remove_triggers(struct power_supply *psy) in power_supply_remove_triggers()
|
D | sbs-battery.c | 143 struct power_supply power_supply; member 307 power_supply_changed(&chip->power_supply); in sbs_get_battery_property() 453 static int sbs_get_property(struct power_supply *psy, in sbs_get_property() 459 struct sbs_info, power_supply); in sbs_get_property() 519 power_supply_changed(&chip->power_supply); in sbs_get_property() 543 struct power_supply *battery = devid; in sbs_irq() 550 static void sbs_external_power_changed(struct power_supply *psy) in sbs_external_power_changed() 554 chip = container_of(psy, struct sbs_info, power_supply); in sbs_external_power_changed() 593 power_supply_changed(&chip->power_supply); in sbs_delayed_work() 702 chip->power_supply.name = name; in sbs_probe() [all …]
|
D | ds2780_battery.c | 40 struct power_supply bat; 54 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info() 59 static inline struct power_supply *to_power_supply(struct device *dev) in to_power_supply() 387 static int ds2780_battery_get_property(struct power_supply *psy, in ds2780_battery_get_property() 461 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pmod_enabled() 480 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled() 515 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value() 533 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value() 553 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting() 570 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting() [all …]
|
D | ds2781_battery.c | 38 struct power_supply bat; 52 to_ds2781_device_info(struct power_supply *psy) in to_ds2781_device_info() 57 static inline struct power_supply *to_power_supply(struct device *dev) in to_power_supply() 390 static int ds2781_battery_get_property(struct power_supply *psy, in ds2781_battery_get_property() 464 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pmod_enabled() 483 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pmod_enabled() 518 struct power_supply *psy = to_power_supply(dev); in ds2781_get_sense_resistor_value() 536 struct power_supply *psy = to_power_supply(dev); in ds2781_set_sense_resistor_value() 556 struct power_supply *psy = to_power_supply(dev); in ds2781_get_rsgain_setting() 573 struct power_supply *psy = to_power_supply(dev); in ds2781_set_rsgain_setting() [all …]
|
D | gpio-charger.c | 32 struct power_supply charger; 37 struct power_supply *charger = devid; in gpio_charger_irq() 44 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger() 49 static int gpio_charger_get_property(struct power_supply *psy, in gpio_charger_get_property() 75 struct power_supply *charger; in gpio_charger_probe()
|
D | Makefile | 3 power_supply-y := power_supply_core.o 4 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o 5 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o 7 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
|
D | wm97xx_battery.c | 33 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat() 43 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp() 53 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property() 100 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed() 105 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update() 128 static struct power_supply bat_ps = {
|
D | pmu_battery.c | 20 struct power_supply bat; 32 static int pmu_get_ac_prop(struct power_supply *psy, in pmu_get_ac_prop() 52 static struct power_supply pmu_ac = { 82 static int pmu_bat_get_property(struct power_supply *psy, in pmu_bat_get_property()
|
D | wm831x_power.c | 24 struct power_supply wall; 25 struct power_supply usb; 26 struct power_supply battery; 66 static int wm831x_wall_get_prop(struct power_supply *psy, in wm831x_wall_get_prop() 97 static int wm831x_usb_get_prop(struct power_supply *psy, in wm831x_usb_get_prop() 392 static int wm831x_bat_get_prop(struct power_supply *psy, in wm831x_bat_get_prop() 497 struct power_supply *usb; in wm831x_power_probe() 498 struct power_supply *battery; in wm831x_power_probe() 499 struct power_supply *wall; in wm831x_power_probe()
|
D | pda_power.c | 59 static int pda_power_get_property(struct power_supply *psy, in pda_power_get_property() 87 static struct power_supply pda_psy_ac = { 97 static struct power_supply pda_psy_usb = { 181 static irqreturn_t power_changed_isr(int irq, void *power_supply) in power_changed_isr() argument 183 if (power_supply == &pda_psy_ac) in power_changed_isr() 185 else if (power_supply == &pda_psy_usb) in power_changed_isr()
|
D | jz4740-battery.c | 49 struct power_supply battery; 55 static inline struct jz_battery *psy_to_jz_battery(struct power_supply *psy) in psy_to_jz_battery() 104 static int jz_battery_get_capacity(struct power_supply *psy) in jz_battery_get_capacity() 128 static int jz_battery_get_property(struct power_supply *psy, in jz_battery_get_property() 172 static void jz_battery_external_power_changed(struct power_supply *psy) in jz_battery_external_power_changed() 248 struct power_supply *battery; in jz_battery_probe()
|
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;
|
D | wm831x_backup.c | 24 struct power_supply backup; 114 static int wm831x_backup_get_prop(struct power_supply *psy, in wm831x_backup_get_prop() 169 struct power_supply *backup; in wm831x_backup_probe()
|
D | lp8727_charger.c | 78 struct power_supply ac; 79 struct power_supply usb; 80 struct power_supply batt; 280 static int lp8727_charger_get_property(struct power_supply *psy, in lp8727_charger_get_property() 293 static int lp8727_battery_get_property(struct power_supply *psy, in lp8727_battery_get_property() 343 static void lp8727_charger_changed(struct power_supply *psy) in lp8727_charger_changed()
|
D | pcf50633-charger.c | 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, in adapter_get_property() 308 static int usb_get_property(struct power_supply *psy, in usb_get_property() 329 static int ac_get_property(struct power_supply *psy, in ac_get_property()
|
D | max8925_power.c | 70 struct power_supply ac; 71 struct power_supply usb; 72 struct power_supply battery; 194 static int max8925_ac_get_prop(struct power_supply *psy, in max8925_ac_get_prop() 228 static int max8925_usb_get_prop(struct power_supply *psy, in max8925_usb_get_prop() 262 static int max8925_bat_get_prop(struct power_supply *psy, in max8925_bat_get_prop()
|
D | wm8350_power.c | 249 static int wm8350_ac_get_prop(struct power_supply *psy, in wm8350_ac_get_prop() 279 static int wm8350_usb_get_prop(struct power_supply *psy, in wm8350_usb_get_prop() 345 static int wm8350_bat_get_property(struct power_supply *psy, in wm8350_bat_get_property() 450 struct power_supply *usb = &power->usb; in wm8350_power_probe() 451 struct power_supply *battery = &power->battery; in wm8350_power_probe() 452 struct power_supply *ac = &power->ac; in wm8350_power_probe()
|
D | power_supply_sysfs.c | 71 struct power_supply *psy = dev_get_drvdata(dev); in power_supply_show_property() 114 struct power_supply *psy = dev_get_drvdata(dev); in power_supply_store_property() 191 struct power_supply *psy = dev_get_drvdata(dev); in power_supply_attr_is_visible() 252 struct power_supply *psy = dev_get_drvdata(dev); in power_supply_uevent()
|
D | collie_battery.c | 32 struct power_supply psy; 95 static int collie_bat_get_property(struct power_supply *psy, in collie_bat_get_property() 142 static void collie_bat_external_power_changed(struct power_supply *psy) in collie_bat_external_power_changed() 157 struct power_supply *psy = &bat->psy; in collie_bat_update()
|
/linux-3.4.99/include/linux/ |
D | power_supply.h | 149 struct power_supply { struct 158 int (*get_property)(struct power_supply *psy, argument 161 int (*set_property)(struct power_supply *psy, argument 164 int (*property_is_writeable)(struct power_supply *psy, argument 166 void (*external_power_changed)(struct power_supply *psy); argument 167 void (*set_charged)(struct power_supply *psy); argument 209 extern struct power_supply *power_supply_get_by_name(char *name); argument 210 extern void power_supply_changed(struct power_supply *psy); 211 extern int power_supply_am_i_supplied(struct power_supply *psy); 212 extern int power_supply_set_battery_charged(struct power_supply *psy); [all …]
|
/linux-3.4.99/include/linux/power/ |
D | charger-manager.h | 119 struct power_supply *fuel_gauge; 120 struct power_supply **charger_stat; 128 struct power_supply charger_psy;
|
/linux-3.4.99/include/linux/mfd/wm8350/ |
D | supply.h | 126 struct power_supply battery; 127 struct power_supply usb; 128 struct power_supply ac;
|
/linux-3.4.99/drivers/staging/nvec/ |
D | nvec_power.c | 83 static struct power_supply nvec_bat_psy; 84 static struct power_supply nvec_psy; 222 static int nvec_power_get_property(struct power_supply *psy, in nvec_power_get_property() 237 static int nvec_battery_get_property(struct power_supply *psy, in nvec_battery_get_property() 323 static struct power_supply nvec_bat_psy = { 331 static struct power_supply nvec_psy = { 373 struct power_supply *psy; in nvec_power_probe()
|