Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-power3 What: /sys/class/power_supply/<supply_name>/manufacturer
12 What: /sys/class/power_supply/<supply_name>/model_name
21 What: /sys/class/power_supply/<supply_name>/serial_number
30 What: /sys/class/power_supply/<supply_name>/type
41 What: /sys/class/power_supply/<supply_name>/current_avg
64 What: /sys/class/power_supply/<supply_name>/current_max
79 What: /sys/class/power_supply/<supply_name>/current_now
104 What: /sys/class/power_supply/<supply_name>/temp
122 What: /sys/class/power_supply/<supply_name>/temp_alert_max
146 What: /sys/class/power_supply/<supply_name>/temp_alert_min
[all …]
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
/openbmc/linux/drivers/power/supply/
H A Dpower_supply_core.c21 #include <linux/power_supply.h>
25 #include "power_supply.h"
39 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by()
40 struct power_supply *supply) in __power_supply_is_supplied_by()
67 struct power_supply *psy = data; in __power_supply_changed_work()
68 struct power_supply *pst = dev_get_drvdata(dev); in __power_supply_changed_work()
81 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work()
116 void power_supply_changed(struct power_supply *psy) in power_supply_changed()
142 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work()
163 struct power_supply *psy = data; in __power_supply_populate_supplied_from()
[all …]
H A Dpower_supply.h14 struct power_supply;
30 extern void power_supply_update_leds(struct power_supply *psy);
31 extern int power_supply_create_triggers(struct power_supply *psy);
32 extern void power_supply_remove_triggers(struct power_supply *psy);
36 static inline void power_supply_update_leds(struct power_supply *psy) {} in power_supply_update_leds()
37 static inline int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
39 static inline void power_supply_remove_triggers(struct power_supply *psy) {} in power_supply_remove_triggers()
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) in power_supply_update_bat_leds()
56 static int power_supply_create_bat_triggers(struct power_supply *psy) in power_supply_create_bat_triggers()
98 static void power_supply_remove_bat_triggers(struct power_supply *psy) in power_supply_remove_bat_triggers()
112 static void power_supply_update_gen_leds(struct power_supply *psy) in power_supply_update_gen_leds()
127 static int power_supply_create_gen_triggers(struct power_supply *psy) in power_supply_create_gen_triggers()
139 static void power_supply_remove_gen_triggers(struct power_supply *psy) in power_supply_remove_gen_triggers()
147 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds()
155 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers()
[all …]
H A Dsbs-charger.c15 #include <linux/power_supply.h>
37 struct power_supply *power_supply; member
43 static int sbs_get_property(struct power_supply *psy, in sbs_get_property()
99 power_supply_changed(chip->power_supply); in sbs_check_state()
194 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, &psy_cfg); in sbs_probe()
195 if (IS_ERR(chip->power_supply)) in sbs_probe()
196 return dev_err_probe(&client->dev, PTR_ERR(chip->power_supply), in sbs_probe()
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 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 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, in rn5t618_battery_get_property()
409 static int rn5t618_battery_set_property(struct power_supply *psy, in rn5t618_battery_set_property()
423 static int rn5t618_battery_property_is_writeable(struct power_supply *psy, in rn5t618_battery_property_is_writeable()
434 static int rn5t618_adp_get_property(struct power_supply *psy, in rn5t618_adp_get_property()
488 static int rn5t618_adp_set_property(struct power_supply *psy, in rn5t618_adp_set_property()
516 static int rn5t618_adp_property_is_writeable(struct power_supply *psy, in rn5t618_adp_property_is_writeable()
[all …]
H A Dipaq_micro_battery.c14 #include <linux/power_supply.h>
91 static int get_capacity(struct power_supply *b) in get_capacity()
111 static int get_status(struct power_supply *b) in get_status()
128 static int micro_batt_get_property(struct power_supply *b, in micro_batt_get_property()
176 static int micro_ac_get_property(struct power_supply *b, in micro_ac_get_property()
223 static struct power_supply *micro_batt_power, *micro_ac_power;
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); in charge_status_show()
535 struct power_supply *psy = to_power_supply(dev); in vbat_show()
551 struct power_supply *psy = to_power_supply(dev); in vbat_avg_show()
567 struct power_supply *psy = to_power_supply(dev); in ibat_show()
583 struct power_supply *psy = to_power_supply(dev); in force_telemetry_show()
600 struct power_supply *psy = to_power_supply(dev); in force_telemetry_store()
622 struct power_supply *psy = to_power_supply(dev); in arm_ship_mode_show()
640 struct power_supply *psy = to_power_supply(dev); in arm_ship_mode_store()
[all …]
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, in lego_ev3_battery_get_property()
91 static int lego_ev3_battery_set_property(struct power_supply *psy, in lego_ev3_battery_set_property()
126 static int lego_ev3_battery_property_is_writeable(struct power_supply *psy, in lego_ev3_battery_property_is_writeable()
H A Dlt3651-charger.c14 #include <linux/power_supply.h>
19 struct power_supply *charger;
28 struct power_supply *charger = devid; in lt3651_charger_irq()
36 struct power_supply *psy) in psy_to_lt3651_charger()
41 static int lt3651_charger_get_property(struct power_supply *psy, in lt3651_charger_get_property()
H A Dip5xxx_power.c7 #include <linux/power_supply.h>
114 static int ip5xxx_initialize(struct power_supply *psy) in ip5xxx_initialize()
312 static int ip5xxx_battery_get_property(struct power_supply *psy, in ip5xxx_battery_get_property()
430 static int ip5xxx_battery_set_property(struct power_supply *psy, in ip5xxx_battery_set_property()
480 static int ip5xxx_battery_property_is_writeable(struct power_supply *psy, in ip5xxx_battery_property_is_writeable()
504 static int ip5xxx_boost_get_property(struct power_supply *psy, in ip5xxx_boost_get_property()
539 static int ip5xxx_boost_set_property(struct power_supply *psy, in ip5xxx_boost_set_property()
567 static int ip5xxx_boost_property_is_writeable(struct power_supply *psy, in ip5xxx_boost_property_is_writeable()
593 struct power_supply *psy; in ip5xxx_power_probe()
/openbmc/linux/include/linux/
H A Dpower_supply.h164 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */
224 struct power_supply;
256 int (*get_property)(struct power_supply *psy,
259 int (*set_property)(struct power_supply *psy,
267 int (*property_is_writeable)(struct power_supply *psy,
269 void (*external_power_changed)(struct power_supply *psy);
270 void (*set_charged)(struct power_supply *psy);
282 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 *psy);
[all …]
/openbmc/openbmc/meta-openembedded/meta-xfce/recipes-panel-plugins/sensors/xfce4-sensors-plugin/
H A D0001-Do-not-check-for-sys-class-power_supply-we-are-cross.patch4 Subject: [PATCH] Do not check for /sys/class/power_supply - we are cross
21 @@ -203,19 +203,9 @@ dnl Check for interface for /sys/class/power_supply to be used
22 …AC_ARG_ENABLE([sysfsacpi], [AS_HELP_STRING([--enable-sysfsacpi], [Use /sys/class/power_supply to r…
30 - AC_CHECK_FILE([/sys/class/power_supply],
40 AC_DEFINE([HAVE_SYSFS_ACPI], [1], [Define to 1 if /sys/class/power_supply is found])
/openbmc/phosphor-power/phosphor-power-supply/
H A Dmeson.build9 'power_supply.cpp',
27 power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') variable
/openbmc/linux/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);
/openbmc/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;
/openbmc/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;
/openbmc/linux/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, in apple_mfi_fc_get_property()
113 static int apple_mfi_fc_set_property(struct power_supply *psy, in apple_mfi_fc_set_property()
142 static int apple_mfi_fc_property_is_writeable(struct power_supply *psy, in apple_mfi_fc_property_is_writeable()
/openbmc/linux/drivers/video/backlight/
H A Dpwm_bl.c28 struct regulator *power_supply; member
48 if (pb->power_supply) { in pwm_backlight_power_on()
49 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
72 if (pb->power_supply) in pwm_backlight_power_off()
73 regulator_disable(pb->power_supply); in pwm_backlight_power_off()
122 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status()
420 if (pb->power_supply && !regulator_is_enabled(pb->power_supply)) in pwm_backlight_initial_power_state()
500 pb->power_supply = devm_regulator_get_optional(&pdev->dev, "power"); in pwm_backlight_probe()
501 if (IS_ERR(pb->power_supply)) { in pwm_backlight_probe()
502 ret = PTR_ERR(pb->power_supply); in pwm_backlight_probe()
[all …]

12345678910>>...12