| /linux-6.15/drivers/power/supply/ |
| H A D | power_supply.h | 16 struct power_supply; 18 extern int power_supply_property_is_writeable(struct power_supply *psy, 20 extern bool power_supply_has_property(struct power_supply *psy, 44 extern int power_supply_sysfs_add_extension(struct power_supply *psy, 47 extern void power_supply_sysfs_remove_extension(struct power_supply *psy, 66 extern void power_supply_update_leds(struct power_supply *psy); 67 extern int power_supply_create_triggers(struct power_supply *psy); 68 extern void power_supply_remove_triggers(struct power_supply *psy); 81 int power_supply_add_hwmon_sysfs(struct power_supply *psy); 82 void power_supply_remove_hwmon_sysfs(struct power_supply *psy); [all …]
|
| H A D | power_supply_core.c | 44 struct power_supply *supply) in __power_supply_is_supplied_by() 71 struct power_supply *psy = data; in __power_supply_changed_work() 83 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work() 177 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work() 198 struct power_supply *psy = data; in __power_supply_populate_supplied_from() 339 struct power_supply *psy; 411 struct power_supply *psy; 473 struct power_supply *psy = NULL; in power_supply_get_by_name() 522 struct power_supply *psy = NULL; in power_supply_get_by_phandle() 1437 struct power_supply *psy; in power_supply_read_temp() [all …]
|
| H A D | power_supply_leds.c | 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() 196 void power_supply_update_leds(struct power_supply *psy) in power_supply_update_leds() 204 int power_supply_create_triggers(struct power_supply *psy) in power_supply_create_triggers() [all …]
|
| H A D | sbs-charger.c | 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 D | ds2781_battery.c | 34 struct power_supply *bat; 48 to_ds2781_device_info(struct power_supply *psy) in to_ds2781_device_info() 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() 586 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pio_pin() 604 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pio_pin() [all …]
|
| H A D | ds2780_battery.c | 36 struct power_supply *bat; 50 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info() 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() 558 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting() 584 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pio_pin() 602 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pio_pin() [all …]
|
| H A D | wm97xx_battery.c | 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 D | test_power.c | 44 static int test_power_get_ac_property(struct power_supply *psy, in test_power_get_ac_property() 58 static int test_power_get_usb_property(struct power_supply *psy, in test_power_get_usb_property() 72 static int test_power_get_battery_property(struct power_supply *psy, in test_power_get_battery_property() 140 static int test_power_battery_property_is_writeable(struct power_supply *psy, in test_power_battery_property_is_writeable() 146 static int test_power_set_battery_property(struct power_supply *psy, in test_power_set_battery_property() 197 static struct power_supply *test_power_supplies[TEST_POWER_NUM]; 249 static int test_power_battery_extget_property(struct power_supply *psy, in test_power_battery_extget_property() 268 static int test_power_battery_extset_property(struct power_supply *psy, in test_power_battery_extset_property() 287 static int test_power_battery_extproperty_is_writeable(struct power_supply *psy, in test_power_battery_extproperty_is_writeable() 306 struct power_supply *psy; in test_power_configure_battery_extension() [all …]
|
| H A D | rn5t618_power.c | 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() 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() 547 static int rn5t618_usb_get_property(struct power_supply *psy, in rn5t618_usb_get_property() 615 static int rn5t618_usb_set_property(struct power_supply *psy, in rn5t618_usb_set_property() [all …]
|
| H A D | wilco-charger.c | 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 D | cros_charge-control.c | 37 struct power_supply *hooked_battery; 110 static int cros_chctl_psy_ext_get_prop(struct power_supply *psy, in cros_chctl_psy_ext_get_prop() 166 static int cros_chctl_psy_ext_set_prop(struct power_supply *psy, in cros_chctl_psy_ext_set_prop() 192 static int cros_chctl_psy_prop_is_writeable(struct power_supply *psy, in cros_chctl_psy_prop_is_writeable() 230 static int cros_chctl_add_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_add_battery() 241 static int cros_chctl_remove_battery(struct power_supply *battery, struct acpi_battery_hook *hook) in cros_chctl_remove_battery()
|
| H A D | ipaq_micro_battery.c | 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 D | lego_ev3_battery.c | 32 struct power_supply *psy; 38 static int lego_ev3_battery_get_property(struct power_supply *psy, in lego_ev3_battery_get_property() 92 static int lego_ev3_battery_set_property(struct power_supply *psy, in lego_ev3_battery_set_property() 127 static int lego_ev3_battery_property_is_writeable(struct power_supply *psy, in lego_ev3_battery_property_is_writeable()
|
| H A D | pmu_battery.c | 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 D | lt3651-charger.c | 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 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; 45 static int __find_main_battery(struct power_supply *psy, void *data) in __find_main_battery()
|
| H A D | gpio-charger.c | 31 struct power_supply *charger; 44 struct power_supply *charger = devid; in gpio_charger_irq() 51 static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) in psy_to_gpio_charger() 93 static int gpio_charger_get_property(struct power_supply *psy, in gpio_charger_get_property() 118 static int gpio_charger_set_property(struct power_supply *psy, in gpio_charger_set_property() 133 static int gpio_charger_property_is_writeable(struct power_supply *psy, in gpio_charger_property_is_writeable()
|
| /linux-6.15/include/linux/ |
| H A D | power_supply.h | 228 struct power_supply; 263 int (*get_property)(struct power_supply *psy, 266 int (*set_property)(struct power_supply *psy, 274 int (*property_is_writeable)(struct power_supply *psy, 294 int (*get_property)(struct power_supply *psy, 299 int (*set_property)(struct power_supply *psy, 310 struct power_supply { struct 813 static inline struct power_supply * 816 static inline struct power_supply * 899 extern struct power_supply *__must_check [all …]
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-class-power | 3 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 104 What: /sys/class/power_supply/<supply_name>/temp 171 What: /sys/class/power_supply/<supply_name>/temp_max 188 What: /sys/class/power_supply/<supply_name>/temp_min 445 What: /sys/class/power_supply/<supply_name>/health [all …]
|
| H A D | sysfs-class-power-ltc4162l | 1 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 D | sysfs-class-power-max1720x | 1 What: /sys/class/power_supply/max1720x/temp_ain1 12 What: /sys/class/power_supply/max1720x/temp_ain2 23 What: /sys/class/power_supply/max1720x/temp_int
|
| /linux-6.15/drivers/video/backlight/ |
| H A D | pwm_bl.c | 27 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-6.15/include/linux/mfd/wm8350/ |
| H A D | supply.h | 121 struct power_supply *battery; 122 struct power_supply *usb; 123 struct power_supply *ac;
|
| /linux-6.15/drivers/usb/misc/ |
| H A D | apple-mfi-fastcharge.c | 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()
|
| /linux-6.15/include/acpi/ |
| H A D | battery.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);
|