/linux/drivers/power/supply/ |
H A D | power_supply_core.c | 70 struct power_supply *psy = data; in __power_supply_changed_work() local 82 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_changed_work() local 134 struct power_supply *psy = dev_to_psy(dev); in psy_for_each_psy_cb() local 139 int power_supply_for_each_psy(void *data, int (*fn)(struct power_supply *psy, void *data)) in power_supply_for_each_psy() 150 void power_supply_changed(struct power_supply *psy) in power_supply_changed() 176 struct power_supply *psy = container_of(work, struct power_supply, in power_supply_deferred_register_work() local 197 struct power_supply *psy = data; in __power_supply_populate_supplied_from() local 220 static int power_supply_populate_supplied_from(struct power_supply *psy) in power_supply_populate_supplied_from() 262 static int power_supply_check_supplies(struct power_supply *psy) in power_supply_check_supplies() 310 static int power_supply_check_supplies(struct power_supply *psy) in power_supply_check_supplies() [all …]
|
H A D | power_supply_leds.c | 24 struct power_supply *psy; member 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 | ds2781_battery.c | 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() local 470 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pmod_enabled() local 505 struct power_supply *psy = to_power_supply(dev); in ds2781_get_sense_resistor_value() local 523 struct power_supply *psy = to_power_supply(dev); in ds2781_set_sense_resistor_value() local 543 struct power_supply *psy = to_power_supply(dev); in ds2781_get_rsgain_setting() local 560 struct power_supply *psy = to_power_supply(dev); in ds2781_set_rsgain_setting() local 586 struct power_supply *psy = to_power_supply(dev); in ds2781_get_pio_pin() local 604 struct power_supply *psy = to_power_supply(dev); in ds2781_set_pio_pin() local [all …]
|
H A D | ds2780_battery.c | 50 to_ds2780_device_info(struct power_supply *psy) in to_ds2780_device_info() 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() local 468 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pmod_enabled() local 503 struct power_supply *psy = to_power_supply(dev); in ds2780_get_sense_resistor_value() local 521 struct power_supply *psy = to_power_supply(dev); in ds2780_set_sense_resistor_value() local 541 struct power_supply *psy = to_power_supply(dev); in ds2780_get_rsgain_setting() local 558 struct power_supply *psy = to_power_supply(dev); in ds2780_set_rsgain_setting() local 584 struct power_supply *psy = to_power_supply(dev); in ds2780_get_pio_pin() local 602 struct power_supply *psy = to_power_supply(dev); in ds2780_set_pio_pin() local [all …]
|
H A D | power_supply_sysfs.c | 307 struct power_supply *psy, in power_supply_show_charge_behaviour() 328 struct power_supply *psy, in power_supply_show_charge_types() 354 struct power_supply *psy = dev_to_psy(dev); in power_supply_format_property() local 422 struct power_supply *psy = dev_to_psy(dev); in power_supply_store_property() local 461 struct power_supply *psy = dev_to_psy(dev); in power_supply_attr_is_visible() local 559 const struct power_supply *psy = dev_to_psy(dev); in power_supply_uevent() local 653 int power_supply_sysfs_add_extension(struct power_supply *psy, const struct power_supply_ext *ext, in power_supply_sysfs_add_extension() 660 void power_supply_sysfs_remove_extension(struct power_supply *psy, in power_supply_sysfs_remove_extension()
|
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() local
|
H A D | test_power.c | 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() 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() 327 struct power_supply *psy; in test_power_configure_battery_extension() local 480 static inline void signal_power_supply_changed(struct power_supply *psy) in signal_power_supply_changed()
|
H A D | rn5t618_power.c | 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() 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() 643 static int rn5t618_usb_property_is_writeable(struct power_supply *psy, in rn5t618_usb_property_is_writeable()
|
H A D | bq2415x_charger.c | 812 struct power_supply *psy = v; in bq2415x_notifier_call() local 1007 static int bq2415x_power_supply_get_property(struct power_supply *psy, in bq2415x_power_supply_get_property() 1063 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_show_status() local 1096 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_set_timer() local 1117 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_show_timer() local 1141 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_set_mode() local 1193 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_show_mode() local 1230 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_show_reported_mode() local 1258 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_set_registers() local 1293 struct power_supply *psy = dev_to_psy(dev); in bq2415x_sysfs_show_registers() local [all …]
|
H A D | max8971_charger.c | 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() local 430 struct power_supply *psy = to_power_supply(dev); in fast_charge_timer_store() local 454 struct power_supply *psy = to_power_supply(dev); in top_off_threshold_current_show() local 474 struct power_supply *psy = to_power_supply(dev); in top_off_threshold_current_store() local 496 struct power_supply *psy = to_power_supply(dev); in top_off_timer_show() local 514 struct power_supply *psy = to_power_supply(dev); in top_off_timer_store() local
|
H A D | huawei-gaokun-battery.c | 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() local 465 struct power_supply *psy = to_power_supply(dev); in battery_adaptive_charge_store() local 504 struct power_supply *psy = to_power_supply(dev); in smart_charge_delay_show() local 520 struct power_supply *psy = to_power_supply(dev); in smart_charge_delay_store() local
|
H A D | ug3105_battery.c | 73 struct power_supply *psy; member 131 struct power_supply *psy; in ug3105_work() local 248 static int ug3105_get_property(struct power_supply *psy, in ug3105_get_property() 301 static void ug3105_external_power_changed(struct power_supply *psy) in ug3105_external_power_changed() 336 struct power_supply *psy; in ug3105_probe() local
|
H A D | cros_usbpd-charger.c | 33 struct power_supply *psy; member 338 static void cros_usbpd_charger_power_changed(struct power_supply *psy) in cros_usbpd_charger_power_changed() 348 static int cros_usbpd_charger_get_prop(struct power_supply *psy, in cros_usbpd_charger_get_prop() 435 static int cros_usbpd_charger_set_prop(struct power_supply *psy, in cros_usbpd_charger_set_prop() 493 static int cros_usbpd_charger_property_is_writeable(struct power_supply *psy, in cros_usbpd_charger_property_is_writeable() 535 struct power_supply *psy; in cros_usbpd_charger_probe() local
|
H A D | gpio-charger.c | 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()
|
H A D | collie_battery.c | 30 struct power_supply *psy; member 93 static int collie_bat_get_property(struct power_supply *psy, in collie_bat_get_property() 140 static void collie_bat_external_power_changed(struct power_supply *psy) in collie_bat_external_power_changed() 155 struct power_supply *psy = bat->psy; in collie_bat_update() local
|
H A D | mp2629_charger.c | 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 D | ab8500_bmdata.c | 140 int ab8500_bm_of_probe(struct power_supply *psy, in ab8500_bm_of_probe() 237 void ab8500_bm_of_remove(struct power_supply *psy, in ab8500_bm_of_remove()
|
H A D | cros_charge-control.c | 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()
|
H A D | axp20x_battery.c | 276 static int axp20x_battery_get_prop(struct power_supply *psy, in axp20x_battery_get_prop() 428 static int axp717_battery_get_prop(struct power_supply *psy, in axp717_battery_get_prop() 769 static int axp20x_battery_set_prop(struct power_supply *psy, in axp20x_battery_set_prop() 805 static int axp717_battery_set_prop(struct power_supply *psy, in axp717_battery_set_prop() 869 static int axp20x_battery_prop_writeable(struct power_supply *psy, in axp20x_battery_prop_writeable() 879 static int axp717_battery_prop_writeable(struct power_supply *psy, in axp717_battery_prop_writeable()
|
H A D | lp8727_charger.c | 88 struct lp8727_psy *psy; member 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() 445 struct lp8727_psy *psy; in lp8727_register_psy() local
|
H A D | wm8350_power.c | 247 static int wm8350_ac_get_prop(struct power_supply *psy, in wm8350_ac_get_prop() 277 static int wm8350_usb_get_prop(struct power_supply *psy, in wm8350_usb_get_prop() 343 static int wm8350_bat_get_property(struct power_supply *psy, in wm8350_bat_get_property()
|
H A D | max77976_charger.c | 275 static int max77976_get_property(struct power_supply *psy, in max77976_get_property() 325 static int max77976_set_property(struct power_supply *psy, in max77976_set_property() 354 static int max77976_property_is_writeable(struct power_supply *psy, in max77976_property_is_writeable() 444 struct power_supply *psy; in max77976_probe() local
|
H A D | cros_peripheral_charger.c | 30 struct power_supply *psy; member 195 static int cros_pchg_get_prop(struct power_supply *psy, in cros_pchg_get_prop() 269 struct power_supply *psy; in cros_pchg_probe() local
|
/linux/drivers/usb/misc/ |
H A D | apple-mfi-fastcharge.c | 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/arch/x86/platform/olpc/ |
H A D | olpc-xo15-sci.c | 78 struct power_supply *psy = power_supply_get_by_name("olpc_battery"); in battery_status_changed() local 88 struct power_supply *psy = power_supply_get_by_name("olpc_ac"); in ac_status_changed() local
|