Home
last modified time | relevance | path

Searched full:power_supply (Results 1 – 25 of 175) sorted by relevance

1234567

/linux/drivers/power/supply/
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, in __power_supply_is_supplied_by()
43 struct power_supply *supply) in __power_supply_is_supplied_by()
68 static int __power_supply_changed_work(struct power_supply *pst, void *data) in __power_supply_changed_work()
70 struct power_supply *psy = data; in __power_supply_changed_work()
82 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work()
127 int (*fn)(struct power_supply *psy, void *data);
[all …]
H A Dpower_supply_leds.c14 #include <linux/power_supply.h>
18 #include "power_supply.h"
24 struct power_supply *psy;
40 static int power_supply_register_led_trigger(struct power_supply *psy, in power_supply_register_led_trigger()
92 static void power_supply_update_bat_leds(struct power_supply *psy) in power_supply_update_bat_leds()
138 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers()
147 static int power_supply_create_bat_triggers(struct power_supply *psy) in power_supply_create_bat_triggers()
169 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds()
184 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers()
189 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers()
[all …]
H A Dds2780_battery.c17 #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 …]
H A Dds2781_battery.c15 #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 …]
H A Dwm97xx_battery.c14 #include <linux/power_supply.h>
28 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat()
37 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp()
46 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property()
92 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed()
97 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update()
118 static struct power_supply *bat_psy;
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;
351 static int rn5t618_battery_get_property(struct power_supply *psy, in rn5t618_battery_get_property()
402 static int rn5t618_battery_set_property(struct power_supply *psy, in rn5t618_battery_set_property()
416 static int rn5t618_battery_property_is_writeable(struct power_supply *psy, in rn5t618_battery_property_is_writeable()
427 static int rn5t618_adp_get_property(struct power_supply *psy, in rn5t618_adp_get_property()
481 static int rn5t618_adp_set_property(struct power_supply *psy, in rn5t618_adp_set_property()
509 static int rn5t618_adp_property_is_writeable(struct power_supply *psy, in rn5t618_adp_property_is_writeable()
[all …]
H A Dtest_power.c16 #include <linux/power_supply.h>
46 static int test_power_get_ac_property(struct power_supply *psy, in test_power_get_ac_property()
60 static int test_power_get_usb_property(struct power_supply *psy, in test_power_get_usb_property()
74 static int test_power_get_battery_property(struct power_supply *psy, in test_power_get_battery_property()
145 static int test_power_battery_property_is_writeable(struct power_supply *psy, in test_power_battery_property_is_writeable()
151 static int test_power_set_battery_property(struct power_supply *psy, in test_power_set_battery_property()
211 static struct power_supply *test_power_supplies[TEST_POWER_NUM];
267 static int test_power_battery_extget_property(struct power_supply *psy, in test_power_battery_extget_property()
289 static int test_power_battery_extset_property(struct power_supply *psy, in test_power_battery_extset_property()
308 static int test_power_battery_extproperty_is_writeable(struct power_supply *psy, in test_power_battery_extproperty_is_writeable()
[all …]
H A Dwilco-charger.c15 #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()
H A Dhuawei-gaokun-battery.c15 #include <linux/power_supply.h>
107 struct power_supply *bat_psy;
108 struct power_supply *adp_psy;
141 static int gaokun_psy_get_adp_property(struct power_supply *psy, in gaokun_psy_get_adp_property()
272 static int gaokun_psy_get_bat_property(struct power_supply *psy, in gaokun_psy_get_bat_property()
361 static int gaokun_psy_set_bat_property(struct power_supply *psy, in gaokun_psy_set_bat_property()
400 static int gaokun_psy_is_bat_property_writeable(struct power_supply *psy, in gaokun_psy_is_bat_property_writeable()
449 struct power_supply *psy = to_power_supply(dev); in battery_adaptive_charge_show()
465 struct power_supply *psy = to_power_supply(dev); in battery_adaptive_charge_store()
504 struct power_supply *psy = to_power_supply(dev); in smart_charge_delay_show()
[all …]
H A Dmax8971_charger.c15 #include <linux/power_supply.h>
106 struct power_supply *psy_mains;
270 static int max8971_get_property(struct power_supply *psy, enum power_supply_property psp, in max8971_get_property()
319 static int max8971_set_property(struct power_supply *psy, enum power_supply_property psp, in max8971_set_property()
341 static int max8971_property_is_writeable(struct power_supply *psy, in max8971_property_is_writeable()
404 struct power_supply *psy = to_power_supply(dev); in fast_charge_timer_show()
430 struct power_supply *psy = to_power_supply(dev); in fast_charge_timer_store()
454 struct power_supply *psy = to_power_supply(dev); in top_off_threshold_current_show()
474 struct power_supply *psy = to_power_supply(dev); in top_off_threshold_current_store()
496 struct power_supply *psy = to_power_supply(dev); in top_off_timer_show()
[all …]
H A Dcros_charge-control.c37 struct power_supply *hooked_battery;
101 static int cros_chctl_psy_ext_get_prop(struct power_supply *psy, in cros_chctl_psy_ext_get_prop()
157 static int cros_chctl_psy_ext_set_prop(struct power_supply *psy, in cros_chctl_psy_ext_set_prop()
183 static int cros_chctl_psy_prop_is_writeable(struct power_supply *psy, in cros_chctl_psy_prop_is_writeable()
221 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery()
232 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery()
H A Dmp2629_charger.c18 #include <linux/power_supply.h>
83 struct power_supply *usb;
84 struct power_supply *battery;
212 static int mp2629_charger_battery_get_prop(struct power_supply *psy, in mp2629_charger_battery_get_prop()
315 static int mp2629_charger_battery_set_prop(struct power_supply *psy, in mp2629_charger_battery_set_prop()
339 static int mp2629_charger_usb_get_prop(struct power_supply *psy, in mp2629_charger_usb_get_prop()
404 static int mp2629_charger_usb_set_prop(struct power_supply *psy, in mp2629_charger_usb_set_prop()
422 static int mp2629_charger_battery_prop_writeable(struct power_supply *psy, in mp2629_charger_battery_prop_writeable()
431 static int mp2629_charger_usb_prop_writeable(struct power_supply *psy, in mp2629_charger_usb_prop_writeable()
H A Dgoldfish_battery.c14 #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()
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, 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()
H A Dlp8727_charger.c13 #include <linux/power_supply.h>
79 struct power_supply *ac;
80 struct power_supply *usb;
81 struct power_supply *batt;
306 static int lp8727_charger_get_property(struct power_supply *psy, in lp8727_charger_get_property()
332 static int lp8727_battery_get_property(struct power_supply *psy, in lp8727_battery_get_property()
397 static void lp8727_charger_changed(struct power_supply *psy) in lp8727_charger_changed()
H A Dda9150-charger.c15 #include <linux/power_supply.h>
27 struct power_supply *usb;
28 struct power_supply *battery;
29 struct power_supply *supply_online;
43 struct power_supply *psy, in da9150_charger_supply_online()
107 static int da9150_charger_get_prop(struct power_supply *psy, in da9150_charger_get_prop()
319 static int da9150_charger_battery_get_prop(struct power_supply *psy, in da9150_charger_battery_get_prop()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-power-ltc4162l1 What: /sys/class/power_supply/ltc4162-l/charge_status
18 What: /sys/class/power_supply/ltc4162-l/ibat
29 What: /sys/class/power_supply/ltc4162-l/vbat
39 What: /sys/class/power_supply/ltc4162-l/vbat_avg
49 What: /sys/class/power_supply/ltc4162-l/force_telemetry
65 What: /sys/class/power_supply/ltc4162-l/arm_ship_mode
H A Dsysfs-class-power-wilco1 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/include/acpi/
H A Dbattery.h6 #include <linux/power_supply.h>
16 int (*add_battery)(struct power_supply *battery, struct acpi_battery_hook *hook);
17 int (*remove_battery)(struct power_supply *battery, struct acpi_battery_hook *hook);
/linux/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/drivers/video/backlight/
H A Dpwm_bl.c27 struct regulator *power_supply; member
46 if (pb->power_supply) { in pwm_backlight_power_on()
47 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
70 if (pb->power_supply) in pwm_backlight_power_off()
71 regulator_disable(pb->power_supply); in pwm_backlight_power_off()
120 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status()
409 if (pb->power_supply && !regulator_is_enabled(pb->power_supply)) in pwm_backlight_initial_power_state()
488 pb->power_supply = devm_regulator_get_optional(&pdev->dev, "power"); in pwm_backlight_probe()
489 if (IS_ERR(pb->power_supply)) { in pwm_backlight_probe()
490 ret = PTR_ERR(pb->power_supply); in pwm_backlight_probe()
[all …]
/linux/include/linux/power/
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;
/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.c10 #include <linux/power_supply.h>
46 struct power_supply *battery;
92 static int apple_mfi_fc_get_property(struct power_supply *psy, in apple_mfi_fc_get_property()
114 static int apple_mfi_fc_set_property(struct power_supply *psy, in apple_mfi_fc_set_property()
143 static int apple_mfi_fc_property_is_writeable(struct power_supply *psy, in apple_mfi_fc_property_is_writeable()
/linux/drivers/staging/nvec/
H A Dnvec_power.c14 #include <linux/power_supply.h>
81 static struct power_supply *nvec_bat_psy;
82 static struct power_supply *nvec_psy;
222 static int nvec_power_get_property(struct power_supply *psy, in nvec_power_get_property()
238 static int nvec_battery_get_property(struct power_supply *psy, in nvec_battery_get_property()
374 struct power_supply **psy; in nvec_power_probe()
/linux/arch/arm/mach-pxa/
H A DKconfig22 select POWER_SUPPLY
33 select POWER_SUPPLY
47 select POWER_SUPPLY

1234567