psy 56 arch/x86/platform/olpc/olpc-xo1-sci.c struct power_supply *psy = power_supply_get_by_name("olpc-battery"); psy 58 arch/x86/platform/olpc/olpc-xo1-sci.c if (psy) { psy 59 arch/x86/platform/olpc/olpc-xo1-sci.c power_supply_changed(psy); psy 60 arch/x86/platform/olpc/olpc-xo1-sci.c power_supply_put(psy); psy 66 arch/x86/platform/olpc/olpc-xo1-sci.c struct power_supply *psy = power_supply_get_by_name("olpc-ac"); psy 68 arch/x86/platform/olpc/olpc-xo1-sci.c if (psy) { psy 69 arch/x86/platform/olpc/olpc-xo1-sci.c power_supply_changed(psy); psy 70 arch/x86/platform/olpc/olpc-xo1-sci.c power_supply_put(psy); psy 78 arch/x86/platform/olpc/olpc-xo15-sci.c struct power_supply *psy = power_supply_get_by_name("olpc-battery"); psy 80 arch/x86/platform/olpc/olpc-xo15-sci.c if (psy) { psy 81 arch/x86/platform/olpc/olpc-xo15-sci.c power_supply_changed(psy); psy 82 arch/x86/platform/olpc/olpc-xo15-sci.c power_supply_put(psy); psy 88 arch/x86/platform/olpc/olpc-xo15-sci.c struct power_supply *psy = power_supply_get_by_name("olpc-ac"); psy 90 arch/x86/platform/olpc/olpc-xo15-sci.c if (psy) { psy 91 arch/x86/platform/olpc/olpc-xo15-sci.c power_supply_changed(psy); psy 92 arch/x86/platform/olpc/olpc-xo15-sci.c power_supply_put(psy); psy 127 drivers/acpi/ac.c static int get_ac_property(struct power_supply *psy, psy 131 drivers/acpi/ac.c struct acpi_ac *ac = to_acpi_ac(psy); psy 216 drivers/acpi/battery.c static int acpi_battery_get_property(struct power_supply *psy, psy 221 drivers/acpi/battery.c struct acpi_battery *battery = to_acpi_battery(psy); psy 134 drivers/acpi/sbs.c static int sbs_get_ac_property(struct power_supply *psy, psy 138 drivers/acpi/sbs.c struct acpi_sbs *sbs = to_acpi_sbs(psy); psy 162 drivers/acpi/sbs.c static int acpi_sbs_battery_get_property(struct power_supply *psy, psy 166 drivers/acpi/sbs.c struct acpi_battery *battery = to_acpi_battery(psy); psy 531 drivers/hid/hid-asus.c static int asus_battery_get_property(struct power_supply *psy, psy 535 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = power_supply_get_drvdata(psy); psy 369 drivers/hid/hid-input.c static int hidinput_get_battery_property(struct power_supply *psy, psy 373 drivers/hid/hid-input.c struct hid_device *dev = power_supply_get_drvdata(psy); psy 1236 drivers/hid/hid-logitech-hidpp.c static int hidpp_battery_get_property(struct power_supply *psy, psy 1240 drivers/hid/hid-logitech-hidpp.c struct hidpp_device *hidpp = power_supply_get_drvdata(psy); psy 2296 drivers/hid/hid-sony.c static int sony_battery_get_property(struct power_supply *psy, psy 2300 drivers/hid/hid-sony.c struct sony_sc *sc = power_supply_get_drvdata(psy); psy 311 drivers/hid/hid-steam.c static int steam_battery_get_property(struct power_supply *psy, psy 315 drivers/hid/hid-steam.c struct steam_device *steam = power_supply_get_drvdata(psy); psy 199 drivers/hid/hid-wiimote-modules.c static int wiimod_battery_get_property(struct power_supply *psy, psy 203 drivers/hid/hid-wiimote-modules.c struct wiimote_data *wdata = power_supply_get_drvdata(psy); psy 1687 drivers/hid/wacom_sys.c static int wacom_battery_get_property(struct power_supply *psy, psy 1691 drivers/hid/wacom_sys.c struct wacom_battery *battery = power_supply_get_drvdata(psy); psy 37 drivers/mfd/ab8500-sysctrl.c struct power_supply *psy; psy 51 drivers/mfd/ab8500-sysctrl.c psy = power_supply_get_by_name(pss[i]); psy 52 drivers/mfd/ab8500-sysctrl.c if (!psy) psy 55 drivers/mfd/ab8500-sysctrl.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, psy 57 drivers/mfd/ab8500-sysctrl.c power_supply_put(psy); psy 69 drivers/mfd/ab8500-sysctrl.c psy = power_supply_get_by_name("ab8500_btemp"); psy 70 drivers/mfd/ab8500-sysctrl.c if (psy) { psy 71 drivers/mfd/ab8500-sysctrl.c ret = power_supply_get_property(psy, psy 79 drivers/mfd/ab8500-sysctrl.c power_supply_put(psy); psy 635 drivers/phy/allwinner/phy-sun4i-usb.c struct power_supply *psy = v; psy 638 drivers/phy/allwinner/phy-sun4i-usb.c if (val == PSY_EVENT_PROP_CHANGED && psy == data->vbus_power_supply) psy 304 drivers/platform/olpc/olpc-xo175-ec.c struct power_supply *psy; psy 413 drivers/platform/olpc/olpc-xo175-ec.c psy = power_supply_get_by_name("olpc-ac"); psy 414 drivers/platform/olpc/olpc-xo175-ec.c if (psy) { psy 415 drivers/platform/olpc/olpc-xo175-ec.c power_supply_changed(psy); psy 416 drivers/platform/olpc/olpc-xo175-ec.c power_supply_put(psy); psy 423 drivers/platform/olpc/olpc-xo175-ec.c psy = power_supply_get_by_name("olpc-battery"); psy 424 drivers/platform/olpc/olpc-xo175-ec.c if (psy) { psy 425 drivers/platform/olpc/olpc-xo175-ec.c power_supply_changed(psy); psy 426 drivers/platform/olpc/olpc-xo175-ec.c power_supply_put(psy); psy 169 drivers/platform/x86/compal-laptop.c struct power_supply *psy; psy 553 drivers/platform/x86/compal-laptop.c static int bat_get_property(struct power_supply *psy, psy 557 drivers/platform/x86/compal-laptop.c struct compal_data *data = power_supply_get_drvdata(psy); psy 632 drivers/platform/x86/compal-laptop.c static int bat_set_property(struct power_supply *psy, psy 652 drivers/platform/x86/compal-laptop.c static int bat_writeable_property(struct power_supply *psy, psy 1065 drivers/platform/x86/compal-laptop.c data->psy = power_supply_register(&compal_device->dev, &psy_bat_desc, psy 1067 drivers/platform/x86/compal-laptop.c if (IS_ERR(data->psy)) { psy 1068 drivers/platform/x86/compal-laptop.c err = PTR_ERR(data->psy); psy 1105 drivers/platform/x86/compal-laptop.c power_supply_unregister(data->psy); psy 796 drivers/power/supply/88pm860x_battery.c static void pm860x_external_power_changed(struct power_supply *psy) psy 798 drivers/power/supply/88pm860x_battery.c struct pm860x_battery_info *info = dev_get_drvdata(psy->dev.parent); psy 803 drivers/power/supply/88pm860x_battery.c static int pm860x_batt_get_prop(struct power_supply *psy, psy 807 drivers/power/supply/88pm860x_battery.c struct pm860x_battery_info *info = dev_get_drvdata(psy->dev.parent); psy 869 drivers/power/supply/88pm860x_battery.c static int pm860x_batt_set_prop(struct power_supply *psy, psy 873 drivers/power/supply/88pm860x_battery.c struct pm860x_battery_info *info = dev_get_drvdata(psy->dev.parent); psy 285 drivers/power/supply/88pm860x_charger.c struct power_supply *psy; psy 293 drivers/power/supply/88pm860x_charger.c psy = power_supply_get_by_name(pm860x_supplied_to[0]); psy 294 drivers/power/supply/88pm860x_charger.c if (!psy) psy 296 drivers/power/supply/88pm860x_charger.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_VOLTAGE_NOW, psy 299 drivers/power/supply/88pm860x_charger.c power_supply_put(psy); psy 304 drivers/power/supply/88pm860x_charger.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_PRESENT, &data); psy 306 drivers/power/supply/88pm860x_charger.c power_supply_put(psy); psy 309 drivers/power/supply/88pm860x_charger.c power_supply_put(psy); psy 427 drivers/power/supply/88pm860x_charger.c struct power_supply *psy; psy 433 drivers/power/supply/88pm860x_charger.c psy = power_supply_get_by_name(pm860x_supplied_to[0]); psy 434 drivers/power/supply/88pm860x_charger.c if (!psy) psy 436 drivers/power/supply/88pm860x_charger.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_TEMP, &temp); psy 452 drivers/power/supply/88pm860x_charger.c power_supply_put(psy); psy 472 drivers/power/supply/88pm860x_charger.c struct power_supply *psy; psy 489 drivers/power/supply/88pm860x_charger.c psy = power_supply_get_by_name(pm860x_supplied_to[0]); psy 490 drivers/power/supply/88pm860x_charger.c if (!psy) psy 492 drivers/power/supply/88pm860x_charger.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_VOLTAGE_NOW, psy 508 drivers/power/supply/88pm860x_charger.c power_supply_set_property(psy, POWER_SUPPLY_PROP_CHARGE_FULL, psy 512 drivers/power/supply/88pm860x_charger.c power_supply_put(psy); psy 591 drivers/power/supply/88pm860x_charger.c static int pm860x_usb_get_prop(struct power_supply *psy, psy 595 drivers/power/supply/88pm860x_charger.c struct pm860x_charger_info *info = power_supply_get_drvdata(psy); psy 819 drivers/power/supply/ab8500_btemp.c static int ab8500_btemp_get_property(struct power_supply *psy, psy 823 drivers/power/supply/ab8500_btemp.c struct ab8500_btemp *di = power_supply_get_drvdata(psy); psy 847 drivers/power/supply/ab8500_btemp.c struct power_supply *psy; psy 854 drivers/power/supply/ab8500_btemp.c psy = (struct power_supply *)data; psy 855 drivers/power/supply/ab8500_btemp.c di = power_supply_get_drvdata(psy); psy 861 drivers/power/supply/ab8500_btemp.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); psy 920 drivers/power/supply/ab8500_btemp.c static void ab8500_btemp_external_power_changed(struct power_supply *psy) psy 922 drivers/power/supply/ab8500_btemp.c struct ab8500_btemp *di = power_supply_get_drvdata(psy); psy 408 drivers/power/supply/ab8500_charger.c struct power_supply *psy) psy 423 drivers/power/supply/ab8500_charger.c power_supply_changed(psy); psy 436 drivers/power/supply/ab8500_charger.c sysfs_notify(&di->usb_chg.psy->dev.kobj, NULL, "present"); psy 1515 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 1671 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 1810 drivers/power/supply/ab8500_charger.c if (charger->psy->desc->type == POWER_SUPPLY_TYPE_MAINS) psy 1812 drivers/power/supply/ab8500_charger.c else if (charger->psy->desc->type == POWER_SUPPLY_TYPE_USB) psy 1838 drivers/power/supply/ab8500_charger.c if (charger->psy->desc->type == POWER_SUPPLY_TYPE_MAINS) psy 1840 drivers/power/supply/ab8500_charger.c else if (charger->psy->desc->type == POWER_SUPPLY_TYPE_USB) psy 1866 drivers/power/supply/ab8500_charger.c struct power_supply *psy; psy 1875 drivers/power/supply/ab8500_charger.c psy = usb_chg->psy; psy 1880 drivers/power/supply/ab8500_charger.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); psy 1925 drivers/power/supply/ab8500_charger.c di->usb_chg.psy, ab8500_charger_get_ext_psy_data); psy 1941 drivers/power/supply/ab8500_charger.c power_supply_changed(di->usb_chg.psy); psy 1981 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 1994 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2064 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 2065 drivers/power/supply/ab8500_charger.c sysfs_notify(&di->ac_chg.psy->dev.kobj, NULL, "present"); psy 2172 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2182 drivers/power/supply/ab8500_charger.c di->usb_chg.psy); psy 2199 drivers/power/supply/ab8500_charger.c di->usb_chg.psy); psy 2227 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2325 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2336 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2395 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2418 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2462 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2492 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 2522 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2583 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 2804 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 2808 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2851 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->usb_chg.psy); psy 2873 drivers/power/supply/ab8500_charger.c static int ab8500_charger_ac_get_property(struct power_supply *psy, psy 2880 drivers/power/supply/ab8500_charger.c di = to_ab8500_charger_ac_device_info(psy_to_ux500_charger(psy)); psy 2940 drivers/power/supply/ab8500_charger.c static int ab8500_charger_usb_get_property(struct power_supply *psy, psy 2947 drivers/power/supply/ab8500_charger.c di = to_ab8500_charger_usb_device_info(psy_to_ux500_charger(psy)); psy 3311 drivers/power/supply/ab8500_charger.c power_supply_unregister(di->usb_chg.psy); psy 3314 drivers/power/supply/ab8500_charger.c power_supply_unregister(di->ac_chg.psy); psy 3505 drivers/power/supply/ab8500_charger.c di->ac_chg.psy = power_supply_register(di->dev, psy 3508 drivers/power/supply/ab8500_charger.c if (IS_ERR(di->ac_chg.psy)) { psy 3510 drivers/power/supply/ab8500_charger.c ret = PTR_ERR(di->ac_chg.psy); psy 3517 drivers/power/supply/ab8500_charger.c di->usb_chg.psy = power_supply_register(di->dev, psy 3520 drivers/power/supply/ab8500_charger.c if (IS_ERR(di->usb_chg.psy)) { psy 3522 drivers/power/supply/ab8500_charger.c ret = PTR_ERR(di->usb_chg.psy); psy 3545 drivers/power/supply/ab8500_charger.c ab8500_power_supply_changed(di, di->ac_chg.psy); psy 3546 drivers/power/supply/ab8500_charger.c sysfs_notify(&di->ac_chg.psy->dev.kobj, NULL, "present"); psy 3607 drivers/power/supply/ab8500_charger.c power_supply_unregister(di->usb_chg.psy); psy 3610 drivers/power/supply/ab8500_charger.c power_supply_unregister(di->ac_chg.psy); psy 2085 drivers/power/supply/ab8500_fg.c static int ab8500_fg_get_property(struct power_supply *psy, psy 2089 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2163 drivers/power/supply/ab8500_fg.c struct power_supply *psy; psy 2170 drivers/power/supply/ab8500_fg.c psy = (struct power_supply *)data; psy 2171 drivers/power/supply/ab8500_fg.c di = power_supply_get_drvdata(psy); psy 2177 drivers/power/supply/ab8500_fg.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); psy 2381 drivers/power/supply/ab8500_fg.c static void ab8500_fg_external_power_changed(struct power_supply *psy) psy 2383 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2556 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2557 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2579 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2580 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2606 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2607 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2630 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2631 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2657 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2658 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2680 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2681 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2708 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2709 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2731 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2732 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2754 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2755 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2775 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2776 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2803 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2804 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2826 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2827 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2849 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2850 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 2876 drivers/power/supply/ab8500_fg.c struct power_supply *psy = dev_get_drvdata(dev); psy 2877 drivers/power/supply/ab8500_fg.c struct ab8500_fg *di = power_supply_get_drvdata(psy); psy 938 drivers/power/supply/abx500_chargalg.c struct power_supply *psy; psy 946 drivers/power/supply/abx500_chargalg.c psy = (struct power_supply *)data; psy 947 drivers/power/supply/abx500_chargalg.c di = power_supply_get_drvdata(psy); psy 949 drivers/power/supply/abx500_chargalg.c j = match_string(supplicants, ext->num_supplicants, psy->desc->name); psy 1268 drivers/power/supply/abx500_chargalg.c static void abx500_chargalg_external_power_changed(struct power_supply *psy) psy 1270 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg *di = power_supply_get_drvdata(psy); psy 1711 drivers/power/supply/abx500_chargalg.c static int abx500_chargalg_get_property(struct power_supply *psy, psy 1715 drivers/power/supply/abx500_chargalg.c struct abx500_chargalg *di = power_supply_get_drvdata(psy); psy 76 drivers/power/supply/act8945a_charger.c struct power_supply *psy; psy 342 drivers/power/supply/act8945a_charger.c static int act8945a_charger_get_property(struct power_supply *psy, psy 346 drivers/power/supply/act8945a_charger.c struct act8945a_charger *charger = power_supply_get_drvdata(psy); psy 440 drivers/power/supply/act8945a_charger.c power_supply_changed(charger->psy); psy 620 drivers/power/supply/act8945a_charger.c charger->psy = devm_power_supply_register(&pdev->dev, psy 623 drivers/power/supply/act8945a_charger.c if (IS_ERR(charger->psy)) { psy 625 drivers/power/supply/act8945a_charger.c return PTR_ERR(charger->psy); psy 142 drivers/power/supply/adp5061.c struct power_supply *psy; psy 532 drivers/power/supply/adp5061.c static int adp5061_get_property(struct power_supply *psy, psy 536 drivers/power/supply/adp5061.c struct adp5061_state *st = power_supply_get_drvdata(psy); psy 616 drivers/power/supply/adp5061.c static int adp5061_set_property(struct power_supply *psy, psy 620 drivers/power/supply/adp5061.c struct adp5061_state *st = power_supply_get_drvdata(psy); psy 646 drivers/power/supply/adp5061.c static int adp5061_prop_writeable(struct power_supply *psy, psy 715 drivers/power/supply/adp5061.c st->psy = devm_power_supply_register(&client->dev, psy 719 drivers/power/supply/adp5061.c if (IS_ERR(st->psy)) { psy 721 drivers/power/supply/adp5061.c return PTR_ERR(st->psy); psy 18 drivers/power/supply/apm_power.c #define PSY_PROP(psy, prop, val) (power_supply_get_property(psy, \ psy 57 drivers/power/supply/axp20x_ac_power.c static int axp20x_ac_power_get_property(struct power_supply *psy, psy 61 drivers/power/supply/axp20x_ac_power.c struct axp20x_ac_power *power = power_supply_get_drvdata(psy); psy 153 drivers/power/supply/axp20x_ac_power.c static int axp813_ac_power_set_property(struct power_supply *psy, psy 157 drivers/power/supply/axp20x_ac_power.c struct axp20x_ac_power *power = power_supply_get_drvdata(psy); psy 183 drivers/power/supply/axp20x_ac_power.c static int axp813_ac_power_prop_writeable(struct power_supply *psy, psy 183 drivers/power/supply/axp20x_battery.c static int axp20x_battery_get_prop(struct power_supply *psy, psy 187 drivers/power/supply/axp20x_battery.c struct axp20x_batt_ps *axp20x_batt = power_supply_get_drvdata(psy); psy 452 drivers/power/supply/axp20x_battery.c static int axp20x_battery_set_prop(struct power_supply *psy, psy 456 drivers/power/supply/axp20x_battery.c struct axp20x_batt_ps *axp20x_batt = power_supply_get_drvdata(psy); psy 491 drivers/power/supply/axp20x_battery.c static int axp20x_battery_prop_writeable(struct power_supply *psy, psy 160 drivers/power/supply/axp20x_usb_power.c static int axp20x_usb_power_get_property(struct power_supply *psy, psy 163 drivers/power/supply/axp20x_usb_power.c struct axp20x_usb_power *power = power_supply_get_drvdata(psy); psy 339 drivers/power/supply/axp20x_usb_power.c static int axp20x_usb_power_set_property(struct power_supply *psy, psy 343 drivers/power/supply/axp20x_usb_power.c struct axp20x_usb_power *power = power_supply_get_drvdata(psy); psy 362 drivers/power/supply/axp20x_usb_power.c static int axp20x_usb_power_prop_writeable(struct power_supply *psy, psy 357 drivers/power/supply/axp288_charger.c static int axp288_charger_usb_set_property(struct power_supply *psy, psy 361 drivers/power/supply/axp288_charger.c struct axp288_chrg_info *info = power_supply_get_drvdata(psy); psy 392 drivers/power/supply/axp288_charger.c static int axp288_charger_usb_get_property(struct power_supply *psy, psy 396 drivers/power/supply/axp288_charger.c struct axp288_chrg_info *info = power_supply_get_drvdata(psy); psy 450 drivers/power/supply/axp288_charger.c static int axp288_charger_property_is_writeable(struct power_supply *psy, psy 557 drivers/power/supply/axp288_fuel_gauge.c static int fuel_gauge_property_is_writeable(struct power_supply *psy, psy 619 drivers/power/supply/axp288_fuel_gauge.c static void fuel_gauge_external_power_changed(struct power_supply *psy) psy 621 drivers/power/supply/axp288_fuel_gauge.c struct axp288_fg_info *info = power_supply_get_drvdata(psy); psy 95 drivers/power/supply/bd70528-charger.c struct power_supply *psy = (struct power_supply *)arg; \ psy 97 drivers/power/supply/bd70528-charger.c power_supply_changed(psy); \ psy 98 drivers/power/supply/bd70528-charger.c dev_err(&psy->dev, (_wrn_)); \ psy 106 drivers/power/supply/bd70528-charger.c struct power_supply *psy = (struct power_supply *)arg; \ psy 108 drivers/power/supply/bd70528-charger.c power_supply_changed(psy); \ psy 109 drivers/power/supply/bd70528-charger.c dev_dbg(&psy->dev, (_wrn_)); \ psy 119 drivers/power/supply/bd70528-charger.c struct power_supply *psy; psy 180 drivers/power/supply/bd70528-charger.c bdpsy->psy); psy 517 drivers/power/supply/bd70528-charger.c static int bd70528_charger_get_property(struct power_supply *psy, psy 521 drivers/power/supply/bd70528-charger.c struct bd70528_psy *bdpsy = power_supply_get_drvdata(psy); psy 556 drivers/power/supply/bd70528-charger.c static int bd70528_prop_is_writable(struct power_supply *psy, psy 675 drivers/power/supply/bd70528-charger.c static int bd70528_charger_set_property(struct power_supply *psy, psy 679 drivers/power/supply/bd70528-charger.c struct bd70528_psy *bdpsy = power_supply_get_drvdata(psy); psy 722 drivers/power/supply/bd70528-charger.c bdpsy->psy = devm_power_supply_register(&pdev->dev, psy 724 drivers/power/supply/bd70528-charger.c if (IS_ERR(bdpsy->psy)) { psy 726 drivers/power/supply/bd70528-charger.c return PTR_ERR(bdpsy->psy); psy 811 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = v; psy 820 drivers/power/supply/bq2415x_charger.c if (!psy->dev.parent || psy 821 drivers/power/supply/bq2415x_charger.c psy->dev.parent->of_node != bq->notify_node) psy 824 drivers/power/supply/bq2415x_charger.c if (strcmp(psy->desc->name, bq->init_data.notify_device) != 0) psy 830 drivers/power/supply/bq2415x_charger.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_CURRENT_MAX, psy 996 drivers/power/supply/bq2415x_charger.c static int bq2415x_power_supply_get_property(struct power_supply *psy, psy 1000 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1043 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1044 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1076 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1077 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1097 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1098 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1121 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1122 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1173 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1174 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1210 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1211 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1238 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1239 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1273 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1274 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1291 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1292 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1322 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1323 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1350 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1351 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 1385 drivers/power/supply/bq2415x_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 1386 drivers/power/supply/bq2415x_charger.c struct bq2415x_device *bq = power_supply_get_drvdata(psy); psy 439 drivers/power/supply/bq24190_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 440 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 469 drivers/power/supply/bq24190_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 470 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1069 drivers/power/supply/bq24190_charger.c static int bq24190_charger_get_property(struct power_supply *psy, psy 1072 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1140 drivers/power/supply/bq24190_charger.c static int bq24190_charger_set_property(struct power_supply *psy, psy 1144 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1182 drivers/power/supply/bq24190_charger.c static int bq24190_charger_property_is_writeable(struct power_supply *psy, psy 1208 drivers/power/supply/bq24190_charger.c static void bq24190_charger_external_power_changed(struct power_supply *psy) psy 1210 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1401 drivers/power/supply/bq24190_charger.c static int bq24190_battery_get_property(struct power_supply *psy, psy 1404 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1446 drivers/power/supply/bq24190_charger.c static int bq24190_battery_set_property(struct power_supply *psy, psy 1450 drivers/power/supply/bq24190_charger.c struct bq24190_dev_info *bdi = power_supply_get_drvdata(psy); psy 1477 drivers/power/supply/bq24190_charger.c static int bq24190_battery_property_is_writeable(struct power_supply *psy, psy 302 drivers/power/supply/bq24257_charger.c static int bq24257_power_supply_get_property(struct power_supply *psy, psy 306 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 396 drivers/power/supply/bq24257_charger.c static int bq24257_power_supply_set_property(struct power_supply *psy, psy 400 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 410 drivers/power/supply/bq24257_charger.c static int bq24257_power_supply_property_is_writeable(struct power_supply *psy, psy 767 drivers/power/supply/bq24257_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 768 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 778 drivers/power/supply/bq24257_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 779 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 789 drivers/power/supply/bq24257_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 790 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 811 drivers/power/supply/bq24257_charger.c struct power_supply *psy = dev_get_drvdata(dev); psy 812 drivers/power/supply/bq24257_charger.c struct bq24257_device *bq = power_supply_get_drvdata(psy); psy 58 drivers/power/supply/bq24735-charger.c static inline struct bq24735 *to_bq24735(struct power_supply *psy) psy 60 drivers/power/supply/bq24735-charger.c return power_supply_get_drvdata(psy); psy 68 drivers/power/supply/bq24735-charger.c static int bq24735_charger_property_is_writeable(struct power_supply *psy, psy 234 drivers/power/supply/bq24735-charger.c struct power_supply *psy = devid; psy 235 drivers/power/supply/bq24735-charger.c struct bq24735 *charger = to_bq24735(psy); psy 252 drivers/power/supply/bq24735-charger.c static int bq24735_charger_get_property(struct power_supply *psy, psy 256 drivers/power/supply/bq24735-charger.c struct bq24735 *charger = to_bq24735(psy); psy 282 drivers/power/supply/bq24735-charger.c static int bq24735_charger_set_property(struct power_supply *psy, psy 286 drivers/power/supply/bq24735-charger.c struct bq24735 *charger = to_bq24735(psy); psy 312 drivers/power/supply/bq24735-charger.c power_supply_changed(psy); psy 361 drivers/power/supply/bq25890_charger.c static int bq25890_power_supply_get_property(struct power_supply *psy, psy 366 drivers/power/supply/bq25890_charger.c struct bq25890_device *bq = power_supply_get_drvdata(psy); psy 1760 drivers/power/supply/bq27xxx_battery.c static int bq27xxx_battery_get_property(struct power_supply *psy, psy 1765 drivers/power/supply/bq27xxx_battery.c struct bq27xxx_device_info *di = power_supply_get_drvdata(psy); psy 1851 drivers/power/supply/bq27xxx_battery.c static void bq27xxx_external_power_changed(struct power_supply *psy) psy 1853 drivers/power/supply/bq27xxx_battery.c struct bq27xxx_device_info *di = power_supply_get_drvdata(psy); psy 89 drivers/power/supply/charger-manager.c struct power_supply *psy; psy 100 drivers/power/supply/charger-manager.c psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); psy 101 drivers/power/supply/charger-manager.c if (!psy) psy 104 drivers/power/supply/charger-manager.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_PRESENT, psy 108 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 112 drivers/power/supply/charger-manager.c psy = power_supply_get_by_name( psy 114 drivers/power/supply/charger-manager.c if (!psy) { psy 120 drivers/power/supply/charger-manager.c ret = power_supply_get_property(psy, psy 122 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 145 drivers/power/supply/charger-manager.c struct power_supply *psy; psy 151 drivers/power/supply/charger-manager.c psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); psy 152 drivers/power/supply/charger-manager.c if (!psy) { psy 158 drivers/power/supply/charger-manager.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, psy 160 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 206 drivers/power/supply/charger-manager.c struct power_supply *psy; psy 221 drivers/power/supply/charger-manager.c psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); psy 222 drivers/power/supply/charger-manager.c if (!psy) { psy 229 drivers/power/supply/charger-manager.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, psy 234 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 238 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 246 drivers/power/supply/charger-manager.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_STATUS, psy 248 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 882 drivers/power/supply/charger-manager.c static int charger_get_property(struct power_supply *psy, psy 886 drivers/power/supply/charger-manager.c struct charger_manager *cm = power_supply_get_drvdata(psy); psy 1684 drivers/power/supply/charger-manager.c struct power_supply *psy; psy 1686 drivers/power/supply/charger-manager.c psy = power_supply_get_by_name(desc->psy_charger_stat[i]); psy 1687 drivers/power/supply/charger-manager.c if (!psy) { psy 1692 drivers/power/supply/charger-manager.c power_supply_put(psy); psy 2012 drivers/power/supply/charger-manager.c void cm_notify_event(struct power_supply *psy, enum cm_event_types type, psy 2018 drivers/power/supply/charger-manager.c if (psy == NULL) psy 2024 drivers/power/supply/charger-manager.c psy->desc->name) >= 0) { psy 28 drivers/power/supply/collie_battery.c struct power_supply *psy; psy 91 drivers/power/supply/collie_battery.c static int collie_bat_get_property(struct power_supply *psy, psy 96 drivers/power/supply/collie_battery.c struct collie_bat *bat = power_supply_get_drvdata(psy); psy 138 drivers/power/supply/collie_battery.c static void collie_bat_external_power_changed(struct power_supply *psy) psy 153 drivers/power/supply/collie_battery.c struct power_supply *psy = bat->psy; psy 160 drivers/power/supply/collie_battery.c printk(KERN_NOTICE "%s not present\n", psy->desc->name); psy 163 drivers/power/supply/collie_battery.c } else if (power_supply_am_i_supplied(psy)) { psy 186 drivers/power/supply/collie_battery.c power_supply_changed(psy); psy 231 drivers/power/supply/collie_battery.c .psy = NULL, psy 261 drivers/power/supply/collie_battery.c .psy = NULL, psy 339 drivers/power/supply/collie_battery.c collie_bat_main.psy = power_supply_register(&dev->ucb->dev, psy 342 drivers/power/supply/collie_battery.c if (IS_ERR(collie_bat_main.psy)) { psy 343 drivers/power/supply/collie_battery.c ret = PTR_ERR(collie_bat_main.psy); psy 348 drivers/power/supply/collie_battery.c collie_bat_bu.psy = power_supply_register(&dev->ucb->dev, psy 351 drivers/power/supply/collie_battery.c if (IS_ERR(collie_bat_bu.psy)) { psy 352 drivers/power/supply/collie_battery.c ret = PTR_ERR(collie_bat_bu.psy); psy 369 drivers/power/supply/collie_battery.c power_supply_unregister(collie_bat_bu.psy); psy 371 drivers/power/supply/collie_battery.c power_supply_unregister(collie_bat_main.psy); psy 384 drivers/power/supply/collie_battery.c power_supply_unregister(collie_bat_bu.psy); psy 385 drivers/power/supply/collie_battery.c power_supply_unregister(collie_bat_main.psy); psy 110 drivers/power/supply/cpcap-battery.c struct power_supply *psy; psy 431 drivers/power/supply/cpcap-battery.c static int cpcap_battery_get_property(struct power_supply *psy, psy 435 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata = power_supply_get_drvdata(psy); psy 580 drivers/power/supply/cpcap-battery.c power_supply_changed(ddata->psy); psy 774 drivers/power/supply/cpcap-battery.c ddata->psy = devm_power_supply_register(ddata->dev, psy_desc, psy 776 drivers/power/supply/cpcap-battery.c error = PTR_ERR_OR_ZERO(ddata->psy); psy 217 drivers/power/supply/cpcap-charger.c static int cpcap_charger_get_property(struct power_supply *psy, psy 221 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata = dev_get_drvdata(psy->dev.parent); psy 32 drivers/power/supply/cros_usbpd-charger.c struct power_supply *psy; psy 308 drivers/power/supply/cros_usbpd-charger.c power_supply_changed(port->psy); psy 354 drivers/power/supply/cros_usbpd-charger.c static void cros_usbpd_charger_power_changed(struct power_supply *psy) psy 356 drivers/power/supply/cros_usbpd-charger.c struct port_data *port = power_supply_get_drvdata(psy); psy 364 drivers/power/supply/cros_usbpd-charger.c static int cros_usbpd_charger_get_prop(struct power_supply *psy, psy 368 drivers/power/supply/cros_usbpd-charger.c struct port_data *port = power_supply_get_drvdata(psy); psy 451 drivers/power/supply/cros_usbpd-charger.c static int cros_usbpd_charger_set_prop(struct power_supply *psy, psy 455 drivers/power/supply/cros_usbpd-charger.c struct port_data *port = power_supply_get_drvdata(psy); psy 509 drivers/power/supply/cros_usbpd-charger.c static int cros_usbpd_charger_property_is_writeable(struct power_supply *psy, psy 539 drivers/power/supply/cros_usbpd-charger.c cros_usbpd_charger_power_changed(charger->ports[0]->psy); psy 562 drivers/power/supply/cros_usbpd-charger.c struct power_supply *psy; psy 669 drivers/power/supply/cros_usbpd-charger.c psy = devm_power_supply_register_no_ws(dev, psy_desc, psy 671 drivers/power/supply/cros_usbpd-charger.c if (IS_ERR(psy)) { psy 675 drivers/power/supply/cros_usbpd-charger.c port->psy = psy; psy 723 drivers/power/supply/cros_usbpd-charger.c power_supply_changed(charger->ports[i]->psy); psy 89 drivers/power/supply/da9030_battery.c struct power_supply *psy; psy 246 drivers/power/supply/da9030_battery.c power_supply_changed(charger->psy); psy 338 drivers/power/supply/da9030_battery.c static int da9030_battery_get_property(struct power_supply *psy, psy 342 drivers/power/supply/da9030_battery.c struct da9030_charger *charger = power_supply_get_drvdata(psy); psy 543 drivers/power/supply/da9030_battery.c charger->psy = power_supply_register(&pdev->dev, &charger->psy_desc, psy 545 drivers/power/supply/da9030_battery.c if (IS_ERR(charger->psy)) { psy 546 drivers/power/supply/da9030_battery.c ret = PTR_ERR(charger->psy); psy 576 drivers/power/supply/da9030_battery.c power_supply_unregister(charger->psy); psy 168 drivers/power/supply/da9052-battery.c struct power_supply *psy; psy 451 drivers/power/supply/da9052-battery.c power_supply_changed(bat->psy); psy 492 drivers/power/supply/da9052-battery.c static int da9052_bat_get_property(struct power_supply *psy, psy 498 drivers/power/supply/da9052-battery.c struct da9052_battery *bat = power_supply_get_drvdata(psy); psy 625 drivers/power/supply/da9052-battery.c bat->psy = power_supply_register(&pdev->dev, &psy_desc, &psy_cfg); psy 626 drivers/power/supply/da9052-battery.c if (IS_ERR(bat->psy)) { psy 627 drivers/power/supply/da9052-battery.c ret = PTR_ERR(bat->psy); psy 648 drivers/power/supply/da9052-battery.c power_supply_unregister(bat->psy); psy 45 drivers/power/supply/da9150-charger.c struct power_supply *psy, psy 48 drivers/power/supply/da9150-charger.c val->intval = (psy == charger->supply_online) ? 1 : 0; psy 109 drivers/power/supply/da9150-charger.c static int da9150_charger_get_prop(struct power_supply *psy, psy 113 drivers/power/supply/da9150-charger.c struct da9150_charger *charger = dev_get_drvdata(psy->dev.parent); psy 118 drivers/power/supply/da9150-charger.c ret = da9150_charger_supply_online(charger, psy, val); psy 321 drivers/power/supply/da9150-charger.c static int da9150_charger_battery_get_prop(struct power_supply *psy, psy 325 drivers/power/supply/da9150-charger.c struct da9150_charger *charger = dev_get_drvdata(psy->dev.parent); psy 333 drivers/power/supply/da9150-charger.c ret = da9150_charger_supply_online(charger, psy, val); psy 309 drivers/power/supply/da9150-fg.c static int da9150_fg_get_prop(struct power_supply *psy, psy 313 drivers/power/supply/da9150-fg.c struct da9150_fg *fg = dev_get_drvdata(psy->dev.parent); psy 490 drivers/power/supply/ds2760_battery.c static void ds2760_battery_external_power_changed(struct power_supply *psy) psy 492 drivers/power/supply/ds2760_battery.c struct ds2760_device_info *di = power_supply_get_drvdata(psy); psy 535 drivers/power/supply/ds2760_battery.c static void ds2760_battery_set_charged(struct power_supply *psy) psy 537 drivers/power/supply/ds2760_battery.c struct ds2760_device_info *di = power_supply_get_drvdata(psy); psy 544 drivers/power/supply/ds2760_battery.c static int ds2760_battery_get_property(struct power_supply *psy, psy 548 drivers/power/supply/ds2760_battery.c struct ds2760_device_info *di = power_supply_get_drvdata(psy); psy 595 drivers/power/supply/ds2760_battery.c static int ds2760_battery_set_property(struct power_supply *psy, psy 599 drivers/power/supply/ds2760_battery.c struct ds2760_device_info *di = power_supply_get_drvdata(psy); psy 619 drivers/power/supply/ds2760_battery.c static int ds2760_battery_property_is_writeable(struct power_supply *psy, psy 50 drivers/power/supply/ds2780_battery.c to_ds2780_device_info(struct power_supply *psy) psy 52 drivers/power/supply/ds2780_battery.c return power_supply_get_drvdata(psy); psy 375 drivers/power/supply/ds2780_battery.c static int ds2780_battery_get_property(struct power_supply *psy, psy 380 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 449 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 450 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 468 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 469 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 503 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 504 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 521 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 522 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 541 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 542 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 558 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 559 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 584 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 585 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 602 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 603 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 628 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 629 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 641 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 642 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 673 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 674 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 686 drivers/power/supply/ds2780_battery.c struct power_supply *psy = to_power_supply(dev); psy 687 drivers/power/supply/ds2780_battery.c struct ds2780_device_info *dev_info = to_ds2780_device_info(psy); psy 48 drivers/power/supply/ds2781_battery.c to_ds2781_device_info(struct power_supply *psy) psy 50 drivers/power/supply/ds2781_battery.c return power_supply_get_drvdata(psy); psy 377 drivers/power/supply/ds2781_battery.c static int ds2781_battery_get_property(struct power_supply *psy, psy 382 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 451 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 452 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 470 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 471 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 505 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 506 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 523 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 524 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 543 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 544 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 560 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 561 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 586 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 587 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 604 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 605 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 630 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 631 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 643 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 644 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 675 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 676 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 689 drivers/power/supply/ds2781_battery.c struct power_supply *psy = to_power_supply(dev); psy 690 drivers/power/supply/ds2781_battery.c struct ds2781_device_info *dev_info = to_ds2781_device_info(psy); psy 242 drivers/power/supply/ds2782_battery.c static int ds278x_battery_get_property(struct power_supply *psy, psy 246 drivers/power/supply/ds2782_battery.c struct ds278x_info *info = to_ds278x_info(psy); psy 47 drivers/power/supply/generic-adc-battery.c struct power_supply *psy; psy 57 drivers/power/supply/generic-adc-battery.c static struct gab *to_generic_bat(struct power_supply *psy) psy 59 drivers/power/supply/generic-adc-battery.c return power_supply_get_drvdata(psy); psy 62 drivers/power/supply/generic-adc-battery.c static void gab_ext_power_changed(struct power_supply *psy) psy 64 drivers/power/supply/generic-adc-battery.c struct gab *adc_bat = to_generic_bat(psy); psy 144 drivers/power/supply/generic-adc-battery.c static int gab_get_property(struct power_supply *psy, psy 153 drivers/power/supply/generic-adc-battery.c adc_bat = to_generic_bat(psy); psy 155 drivers/power/supply/generic-adc-battery.c dev_err(&psy->dev, "no battery infos ?!\n"); psy 212 drivers/power/supply/generic-adc-battery.c is_plugged = power_supply_am_i_supplied(adc_bat->psy); psy 223 drivers/power/supply/generic-adc-battery.c power_supply_changed(adc_bat->psy); psy 322 drivers/power/supply/generic-adc-battery.c adc_bat->psy = power_supply_register(&pdev->dev, psy_desc, &psy_cfg); psy 323 drivers/power/supply/generic-adc-battery.c if (IS_ERR(adc_bat->psy)) { psy 324 drivers/power/supply/generic-adc-battery.c ret = PTR_ERR(adc_bat->psy); psy 354 drivers/power/supply/generic-adc-battery.c power_supply_unregister(adc_bat->psy); psy 372 drivers/power/supply/generic-adc-battery.c power_supply_unregister(adc_bat->psy); psy 62 drivers/power/supply/goldfish_battery.c static int goldfish_ac_get_property(struct power_supply *psy, psy 66 drivers/power/supply/goldfish_battery.c struct goldfish_battery_data *data = power_supply_get_drvdata(psy); psy 86 drivers/power/supply/goldfish_battery.c static int goldfish_battery_get_property(struct power_supply *psy, psy 90 drivers/power/supply/goldfish_battery.c struct goldfish_battery_data *data = power_supply_get_drvdata(psy); psy 41 drivers/power/supply/gpio-charger.c static inline struct gpio_charger *psy_to_gpio_charger(struct power_supply *psy) psy 43 drivers/power/supply/gpio-charger.c return power_supply_get_drvdata(psy); psy 46 drivers/power/supply/gpio-charger.c static int gpio_charger_get_property(struct power_supply *psy, psy 49 drivers/power/supply/gpio-charger.c struct gpio_charger *gpio_charger = psy_to_gpio_charger(psy); psy 24 drivers/power/supply/ingenic-battery.c static int ingenic_battery_get_property(struct power_supply *psy, psy 28 drivers/power/supply/ingenic-battery.c struct ingenic_battery *bat = power_supply_get_drvdata(psy); psy 47 drivers/power/supply/isp1704_charger.c struct power_supply *psy; psy 288 drivers/power/supply/isp1704_charger.c power_supply_changed(isp->psy); psy 304 drivers/power/supply/isp1704_charger.c static int isp1704_charger_get_property(struct power_supply *psy, psy 308 drivers/power/supply/isp1704_charger.c struct isp1704_charger *isp = power_supply_get_drvdata(psy); psy 428 drivers/power/supply/isp1704_charger.c isp->psy = power_supply_register(isp->dev, &isp->psy_desc, &psy_cfg); psy 429 drivers/power/supply/isp1704_charger.c if (IS_ERR(isp->psy)) { psy 430 drivers/power/supply/isp1704_charger.c ret = PTR_ERR(isp->psy); psy 471 drivers/power/supply/isp1704_charger.c power_supply_unregister(isp->psy); psy 485 drivers/power/supply/isp1704_charger.c power_supply_unregister(isp->psy); psy 31 drivers/power/supply/lego_ev3_battery.c struct power_supply *psy; psy 37 drivers/power/supply/lego_ev3_battery.c static int lego_ev3_battery_get_property(struct power_supply *psy, psy 41 drivers/power/supply/lego_ev3_battery.c struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); psy 91 drivers/power/supply/lego_ev3_battery.c static int lego_ev3_battery_set_property(struct power_supply *psy, psy 95 drivers/power/supply/lego_ev3_battery.c struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); psy 126 drivers/power/supply/lego_ev3_battery.c static int lego_ev3_battery_property_is_writeable(struct power_supply *psy, psy 129 drivers/power/supply/lego_ev3_battery.c struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); psy 210 drivers/power/supply/lego_ev3_battery.c batt->psy = devm_power_supply_register(dev, &lego_ev3_battery_desc, psy 212 drivers/power/supply/lego_ev3_battery.c err = PTR_ERR_OR_ZERO(batt->psy); psy 88 drivers/power/supply/lp8727_charger.c struct lp8727_psy *psy; psy 241 drivers/power/supply/lp8727_charger.c power_supply_changed(pchg->psy->ac); psy 242 drivers/power/supply/lp8727_charger.c power_supply_changed(pchg->psy->usb); psy 243 drivers/power/supply/lp8727_charger.c power_supply_changed(pchg->psy->batt); psy 306 drivers/power/supply/lp8727_charger.c static int lp8727_charger_get_property(struct power_supply *psy, psy 310 drivers/power/supply/lp8727_charger.c struct lp8727_chg *pchg = dev_get_drvdata(psy->dev.parent); psy 315 drivers/power/supply/lp8727_charger.c val->intval = lp8727_is_charger_attached(psy->desc->name, pchg->devid); psy 332 drivers/power/supply/lp8727_charger.c static int lp8727_battery_get_property(struct power_supply *psy, psy 336 drivers/power/supply/lp8727_charger.c struct lp8727_chg *pchg = dev_get_drvdata(psy->dev.parent); psy 343 drivers/power/supply/lp8727_charger.c if (!lp8727_is_charger_attached(psy->desc->name, pchg->devid)) { psy 397 drivers/power/supply/lp8727_charger.c static void lp8727_charger_changed(struct power_supply *psy) psy 399 drivers/power/supply/lp8727_charger.c struct lp8727_chg *pchg = dev_get_drvdata(psy->dev.parent); psy 405 drivers/power/supply/lp8727_charger.c if (!lp8727_is_charger_attached(psy->desc->name, pchg->devid)) psy 445 drivers/power/supply/lp8727_charger.c struct lp8727_psy *psy; psy 447 drivers/power/supply/lp8727_charger.c psy = devm_kzalloc(pchg->dev, sizeof(*psy), GFP_KERNEL); psy 448 drivers/power/supply/lp8727_charger.c if (!psy) psy 451 drivers/power/supply/lp8727_charger.c pchg->psy = psy; psy 456 drivers/power/supply/lp8727_charger.c psy->ac = power_supply_register(pchg->dev, &lp8727_ac_desc, &psy_cfg); psy 457 drivers/power/supply/lp8727_charger.c if (IS_ERR(psy->ac)) psy 460 drivers/power/supply/lp8727_charger.c psy->usb = power_supply_register(pchg->dev, &lp8727_usb_desc, psy 462 drivers/power/supply/lp8727_charger.c if (IS_ERR(psy->usb)) psy 465 drivers/power/supply/lp8727_charger.c psy->batt = power_supply_register(pchg->dev, &lp8727_batt_desc, NULL); psy 466 drivers/power/supply/lp8727_charger.c if (IS_ERR(psy->batt)) psy 472 drivers/power/supply/lp8727_charger.c power_supply_unregister(psy->usb); psy 474 drivers/power/supply/lp8727_charger.c power_supply_unregister(psy->ac); psy 481 drivers/power/supply/lp8727_charger.c struct lp8727_psy *psy = pchg->psy; psy 483 drivers/power/supply/lp8727_charger.c if (!psy) psy 486 drivers/power/supply/lp8727_charger.c power_supply_unregister(psy->ac); psy 487 drivers/power/supply/lp8727_charger.c power_supply_unregister(psy->usb); psy 488 drivers/power/supply/lp8727_charger.c power_supply_unregister(psy->batt); psy 143 drivers/power/supply/lp8788-charger.c static int lp8788_charger_get_property(struct power_supply *psy, psy 147 drivers/power/supply/lp8788-charger.c struct lp8788_charger *pchg = dev_get_drvdata(psy->dev.parent); psy 332 drivers/power/supply/lp8788-charger.c static int lp8788_battery_get_property(struct power_supply *psy, psy 336 drivers/power/supply/lp8788-charger.c struct lp8788_charger *pchg = dev_get_drvdata(psy->dev.parent); psy 36 drivers/power/supply/lt3651-charger.c struct power_supply *psy) psy 38 drivers/power/supply/lt3651-charger.c return power_supply_get_drvdata(psy); psy 41 drivers/power/supply/lt3651-charger.c static int lt3651_charger_get_property(struct power_supply *psy, psy 44 drivers/power/supply/lt3651-charger.c struct lt3651_charger *lt3651_charger = psy_to_lt3651_charger(psy); psy 357 drivers/power/supply/ltc2941-battery-gauge.c static int ltc294x_get_property(struct power_supply *psy, psy 361 drivers/power/supply/ltc2941-battery-gauge.c struct ltc294x_info *info = power_supply_get_drvdata(psy); psy 386 drivers/power/supply/ltc2941-battery-gauge.c static int ltc294x_set_property(struct power_supply *psy, psy 390 drivers/power/supply/ltc2941-battery-gauge.c struct ltc294x_info *info = power_supply_get_drvdata(psy); psy 407 drivers/power/supply/ltc2941-battery-gauge.c struct power_supply *psy, enum power_supply_property psp) psy 410 drivers/power/supply/max14577_charger.c static int max14577_charger_get_property(struct power_supply *psy, psy 414 drivers/power/supply/max14577_charger.c struct max14577_charger *chg = power_supply_get_drvdata(psy); psy 210 drivers/power/supply/max14656_charger_detector.c static int max14656_get_property(struct power_supply *psy, psy 214 drivers/power/supply/max14656_charger_detector.c struct max14656_chip *chip = power_supply_get_drvdata(psy); psy 47 drivers/power/supply/max17040_battery.c static int max17040_get_property(struct power_supply *psy, psy 51 drivers/power/supply/max17040_battery.c struct max17040_chip *chip = power_supply_get_drvdata(psy); psy 228 drivers/power/supply/max17042_battery.c static int max17042_get_property(struct power_supply *psy, psy 232 drivers/power/supply/max17042_battery.c struct max17042_chip *chip = power_supply_get_drvdata(psy); psy 418 drivers/power/supply/max17042_battery.c static int max17042_set_property(struct power_supply *psy, psy 422 drivers/power/supply/max17042_battery.c struct max17042_chip *chip = power_supply_get_drvdata(psy); psy 464 drivers/power/supply/max17042_battery.c static int max17042_property_is_writeable(struct power_supply *psy, psy 481 drivers/power/supply/max17042_battery.c static void max17042_external_power_changed(struct power_supply *psy) psy 483 drivers/power/supply/max17042_battery.c power_supply_changed(psy); psy 122 drivers/power/supply/max1721x_battery.c to_device_info(struct power_supply *psy) psy 124 drivers/power/supply/max1721x_battery.c return power_supply_get_drvdata(psy); psy 127 drivers/power/supply/max1721x_battery.c static int max1721x_battery_get_property(struct power_supply *psy, psy 131 drivers/power/supply/max1721x_battery.c struct max17211_device_info *info = to_device_info(psy); psy 190 drivers/power/supply/max77650-charger.c static int max77650_charger_get_property(struct power_supply *psy, psy 194 drivers/power/supply/max77650-charger.c struct max77650_charger_data *chg = power_supply_get_drvdata(psy); psy 210 drivers/power/supply/max77693_charger.c static int max77693_charger_get_property(struct power_supply *psy, psy 214 drivers/power/supply/max77693_charger.c struct max77693_charger *chg = power_supply_get_drvdata(psy); psy 23 drivers/power/supply/max8903_charger.c struct power_supply *psy; psy 36 drivers/power/supply/max8903_charger.c static int max8903_get_property(struct power_supply *psy, psy 40 drivers/power/supply/max8903_charger.c struct max8903_data *data = power_supply_get_drvdata(psy); psy 107 drivers/power/supply/max8903_charger.c power_supply_changed(data->psy); psy 146 drivers/power/supply/max8903_charger.c power_supply_changed(data->psy); psy 378 drivers/power/supply/max8903_charger.c data->psy = devm_power_supply_register(dev, &data->psy_desc, &psy_cfg); psy 379 drivers/power/supply/max8903_charger.c if (IS_ERR(data->psy)) { psy 381 drivers/power/supply/max8903_charger.c return PTR_ERR(data->psy); psy 193 drivers/power/supply/max8925_power.c static int max8925_ac_get_prop(struct power_supply *psy, psy 197 drivers/power/supply/max8925_power.c struct max8925_power_info *info = dev_get_drvdata(psy->dev.parent); psy 227 drivers/power/supply/max8925_power.c static int max8925_usb_get_prop(struct power_supply *psy, psy 231 drivers/power/supply/max8925_power.c struct max8925_power_info *info = dev_get_drvdata(psy->dev.parent); psy 261 drivers/power/supply/max8925_power.c static int max8925_bat_get_prop(struct power_supply *psy, psy 265 drivers/power/supply/max8925_power.c struct max8925_power_info *info = dev_get_drvdata(psy->dev.parent); psy 29 drivers/power/supply/max8997_charger.c static int max8997_battery_get_property(struct power_supply *psy, psy 33 drivers/power/supply/max8997_charger.c struct charger_data *charger = power_supply_get_drvdata(psy); psy 29 drivers/power/supply/max8998_charger.c static int max8998_battery_get_property(struct power_supply *psy, psy 33 drivers/power/supply/max8998_charger.c struct max8998_battery_data *max8998 = power_supply_get_drvdata(psy); psy 64 drivers/power/supply/olpc_battery.c static int olpc_ac_get_prop(struct power_supply *psy, psy 334 drivers/power/supply/olpc_battery.c static int olpc_bat_get_property(struct power_supply *psy, psy 338 drivers/power/supply/olpc_battery.c struct olpc_battery_data *data = power_supply_get_drvdata(psy); psy 279 drivers/power/supply/pcf50633-charger.c static int adapter_get_property(struct power_supply *psy, psy 283 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = power_supply_get_drvdata(psy); psy 297 drivers/power/supply/pcf50633-charger.c static int usb_get_property(struct power_supply *psy, psy 301 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = power_supply_get_drvdata(psy); psy 318 drivers/power/supply/pcf50633-charger.c static int ac_get_property(struct power_supply *psy, psy 322 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = power_supply_get_drvdata(psy); psy 53 drivers/power/supply/pda_power.c static int pda_power_get_property(struct power_supply *psy, psy 59 drivers/power/supply/pda_power.c if (psy->desc->type == POWER_SUPPLY_TYPE_MAINS) psy 216 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 229 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 573 drivers/power/supply/pm2301_charger.c if (charger->psy->desc->type == POWER_SUPPLY_TYPE_MAINS) psy 601 drivers/power/supply/pm2301_charger.c static int pm2xxx_charger_ac_get_property(struct power_supply *psy, psy 607 drivers/power/supply/pm2301_charger.c pm2 = to_pm2xxx_charger_ac_device_info(psy_to_ux500_charger(psy)); psy 816 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 827 drivers/power/supply/pm2301_charger.c if (charger->psy->desc->type == POWER_SUPPLY_TYPE_MAINS) psy 845 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 846 drivers/power/supply/pm2301_charger.c sysfs_notify(&pm2->ac_chg.psy->dev.kobj, NULL, "present"); psy 862 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 895 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 1086 drivers/power/supply/pm2301_charger.c pm2->ac_chg.psy = power_supply_register(pm2->dev, &pm2->ac_chg_desc, psy 1088 drivers/power/supply/pm2301_charger.c if (IS_ERR(pm2->ac_chg.psy)) { psy 1090 drivers/power/supply/pm2301_charger.c ret = PTR_ERR(pm2->ac_chg.psy); psy 1162 drivers/power/supply/pm2301_charger.c power_supply_changed(pm2->ac_chg.psy); psy 1163 drivers/power/supply/pm2301_charger.c sysfs_notify(&pm2->ac_chg.psy->dev.kobj, NULL, "present"); psy 1178 drivers/power/supply/pm2301_charger.c power_supply_unregister(pm2->ac_chg.psy); psy 1213 drivers/power/supply/pm2301_charger.c power_supply_unregister(pm2->ac_chg.psy); psy 30 drivers/power/supply/pmu_battery.c static int pmu_get_ac_prop(struct power_supply *psy, psy 82 drivers/power/supply/pmu_battery.c static int pmu_bat_get_property(struct power_supply *psy, psy 86 drivers/power/supply/pmu_battery.c struct pmu_battery_dev *pbat = to_pmu_battery_dev(psy); psy 30 drivers/power/supply/power_supply.h extern void power_supply_update_leds(struct power_supply *psy); psy 31 drivers/power/supply/power_supply.h extern int power_supply_create_triggers(struct power_supply *psy); psy 32 drivers/power/supply/power_supply.h extern void power_supply_remove_triggers(struct power_supply *psy); psy 36 drivers/power/supply/power_supply.h static inline void power_supply_update_leds(struct power_supply *psy) {} psy 37 drivers/power/supply/power_supply.h static inline int power_supply_create_triggers(struct power_supply *psy) psy 39 drivers/power/supply/power_supply.h static inline void power_supply_remove_triggers(struct power_supply *psy) {} psy 65 drivers/power/supply/power_supply_core.c struct power_supply *psy = data; psy 68 drivers/power/supply/power_supply_core.c if (__power_supply_is_supplied_by(psy, pst)) { psy 79 drivers/power/supply/power_supply_core.c struct power_supply *psy = container_of(work, struct power_supply, psy 82 drivers/power/supply/power_supply_core.c dev_dbg(&psy->dev, "%s\n", __func__); psy 84 drivers/power/supply/power_supply_core.c spin_lock_irqsave(&psy->changed_lock, flags); psy 92 drivers/power/supply/power_supply_core.c if (likely(psy->changed)) { psy 93 drivers/power/supply/power_supply_core.c psy->changed = false; psy 94 drivers/power/supply/power_supply_core.c spin_unlock_irqrestore(&psy->changed_lock, flags); psy 95 drivers/power/supply/power_supply_core.c class_for_each_device(power_supply_class, NULL, psy, psy 97 drivers/power/supply/power_supply_core.c power_supply_update_leds(psy); psy 99 drivers/power/supply/power_supply_core.c PSY_EVENT_PROP_CHANGED, psy); psy 100 drivers/power/supply/power_supply_core.c kobject_uevent(&psy->dev.kobj, KOBJ_CHANGE); psy 101 drivers/power/supply/power_supply_core.c spin_lock_irqsave(&psy->changed_lock, flags); psy 109 drivers/power/supply/power_supply_core.c if (likely(!psy->changed)) psy 110 drivers/power/supply/power_supply_core.c pm_relax(&psy->dev); psy 111 drivers/power/supply/power_supply_core.c spin_unlock_irqrestore(&psy->changed_lock, flags); psy 114 drivers/power/supply/power_supply_core.c void power_supply_changed(struct power_supply *psy) psy 118 drivers/power/supply/power_supply_core.c dev_dbg(&psy->dev, "%s\n", __func__); psy 120 drivers/power/supply/power_supply_core.c spin_lock_irqsave(&psy->changed_lock, flags); psy 121 drivers/power/supply/power_supply_core.c psy->changed = true; psy 122 drivers/power/supply/power_supply_core.c pm_stay_awake(&psy->dev); psy 123 drivers/power/supply/power_supply_core.c spin_unlock_irqrestore(&psy->changed_lock, flags); psy 124 drivers/power/supply/power_supply_core.c schedule_work(&psy->changed_work); psy 140 drivers/power/supply/power_supply_core.c struct power_supply *psy = container_of(work, struct power_supply, psy 143 drivers/power/supply/power_supply_core.c if (psy->dev.parent) { psy 144 drivers/power/supply/power_supply_core.c while (!mutex_trylock(&psy->dev.parent->mutex)) { psy 145 drivers/power/supply/power_supply_core.c if (psy->removing) psy 151 drivers/power/supply/power_supply_core.c power_supply_changed(psy); psy 153 drivers/power/supply/power_supply_core.c if (psy->dev.parent) psy 154 drivers/power/supply/power_supply_core.c mutex_unlock(&psy->dev.parent->mutex); psy 161 drivers/power/supply/power_supply_core.c struct power_supply *psy = data; psy 167 drivers/power/supply/power_supply_core.c np = of_parse_phandle(psy->of_node, "power-supplies", i++); psy 172 drivers/power/supply/power_supply_core.c dev_info(&psy->dev, "%s: Found supply : %s\n", psy 173 drivers/power/supply/power_supply_core.c psy->desc->name, epsy->desc->name); psy 174 drivers/power/supply/power_supply_core.c psy->supplied_from[i-1] = (char *)epsy->desc->name; psy 175 drivers/power/supply/power_supply_core.c psy->num_supplies++; psy 185 drivers/power/supply/power_supply_core.c static int power_supply_populate_supplied_from(struct power_supply *psy) psy 189 drivers/power/supply/power_supply_core.c error = class_for_each_device(power_supply_class, NULL, psy, psy 192 drivers/power/supply/power_supply_core.c dev_dbg(&psy->dev, "%s %d\n", __func__, error); psy 230 drivers/power/supply/power_supply_core.c static int power_supply_check_supplies(struct power_supply *psy) psy 236 drivers/power/supply/power_supply_core.c if (psy->supplied_from && psy->num_supplies > 0) psy 240 drivers/power/supply/power_supply_core.c if (!psy->of_node) psy 246 drivers/power/supply/power_supply_core.c np = of_parse_phandle(psy->of_node, "power-supplies", cnt++); psy 254 drivers/power/supply/power_supply_core.c dev_dbg(&psy->dev, "Failed to find supply!\n"); psy 264 drivers/power/supply/power_supply_core.c psy->supplied_from = devm_kzalloc(&psy->dev, sizeof(psy->supplied_from), psy 266 drivers/power/supply/power_supply_core.c if (!psy->supplied_from) psy 269 drivers/power/supply/power_supply_core.c *psy->supplied_from = devm_kcalloc(&psy->dev, psy 272 drivers/power/supply/power_supply_core.c if (!*psy->supplied_from) psy 275 drivers/power/supply/power_supply_core.c return power_supply_populate_supplied_from(psy); psy 278 drivers/power/supply/power_supply_core.c static int power_supply_check_supplies(struct power_supply *psy) psy 282 drivers/power/supply/power_supply_core.c if (!psy->dev.parent) psy 285 drivers/power/supply/power_supply_core.c nval = device_property_read_string_array(psy->dev.parent, psy 290 drivers/power/supply/power_supply_core.c psy->supplied_from = devm_kmalloc_array(&psy->dev, nval, psy 292 drivers/power/supply/power_supply_core.c if (!psy->supplied_from) psy 295 drivers/power/supply/power_supply_core.c ret = device_property_read_string_array(psy->dev.parent, psy 296 drivers/power/supply/power_supply_core.c "supplied-from", (const char **)psy->supplied_from, nval); psy 300 drivers/power/supply/power_supply_core.c psy->num_supplies = nval; psy 307 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 317 drivers/power/supply/power_supply_core.c if (__power_supply_is_supplied_by(epsy, data->psy)) { psy 327 drivers/power/supply/power_supply_core.c int power_supply_am_i_supplied(struct power_supply *psy) psy 329 drivers/power/supply/power_supply_core.c struct psy_am_i_supplied_data data = { psy, 0 }; psy 335 drivers/power/supply/power_supply_core.c dev_dbg(&psy->dev, "%s count %u err %d\n", __func__, data.count, error); psy 347 drivers/power/supply/power_supply_core.c struct power_supply *psy = dev_get_drvdata(dev); psy 351 drivers/power/supply/power_supply_core.c if (psy->desc->type != POWER_SUPPLY_TYPE_BATTERY) psy 352 drivers/power/supply/power_supply_core.c if (!psy->desc->get_property(psy, POWER_SUPPLY_PROP_ONLINE, psy 383 drivers/power/supply/power_supply_core.c struct power_supply *psy = data; psy 385 drivers/power/supply/power_supply_core.c if (__power_supply_is_supplied_by(epsy, psy)) psy 394 drivers/power/supply/power_supply_core.c int power_supply_set_input_current_limit_from_supplier(struct power_supply *psy) psy 399 drivers/power/supply/power_supply_core.c if (!psy->desc->set_property) psy 407 drivers/power/supply/power_supply_core.c curr = class_for_each_device(power_supply_class, NULL, psy, psy 414 drivers/power/supply/power_supply_core.c return psy->desc->set_property(psy, psy 419 drivers/power/supply/power_supply_core.c int power_supply_set_battery_charged(struct power_supply *psy) psy 421 drivers/power/supply/power_supply_core.c if (atomic_read(&psy->use_cnt) >= 0 && psy 422 drivers/power/supply/power_supply_core.c psy->desc->type == POWER_SUPPLY_TYPE_BATTERY && psy 423 drivers/power/supply/power_supply_core.c psy->desc->set_charged) { psy 424 drivers/power/supply/power_supply_core.c psy->desc->set_charged(psy); psy 435 drivers/power/supply/power_supply_core.c struct power_supply *psy = dev_get_drvdata(dev); psy 437 drivers/power/supply/power_supply_core.c return strcmp(psy->desc->name, name) == 0; psy 453 drivers/power/supply/power_supply_core.c struct power_supply *psy = NULL; psy 458 drivers/power/supply/power_supply_core.c psy = dev_get_drvdata(dev); psy 459 drivers/power/supply/power_supply_core.c atomic_inc(&psy->use_cnt); psy 462 drivers/power/supply/power_supply_core.c return psy; psy 473 drivers/power/supply/power_supply_core.c void power_supply_put(struct power_supply *psy) psy 477 drivers/power/supply/power_supply_core.c atomic_dec(&psy->use_cnt); psy 478 drivers/power/supply/power_supply_core.c put_device(&psy->dev); psy 504 drivers/power/supply/power_supply_core.c struct power_supply *psy = NULL; psy 517 drivers/power/supply/power_supply_core.c psy = dev_get_drvdata(dev); psy 518 drivers/power/supply/power_supply_core.c atomic_inc(&psy->use_cnt); psy 521 drivers/power/supply/power_supply_core.c return psy; psy 527 drivers/power/supply/power_supply_core.c struct power_supply **psy = res; psy 529 drivers/power/supply/power_supply_core.c power_supply_put(*psy); psy 544 drivers/power/supply/power_supply_core.c struct power_supply **ptr, *psy; psy 553 drivers/power/supply/power_supply_core.c psy = power_supply_get_by_phandle(dev->of_node, property); psy 554 drivers/power/supply/power_supply_core.c if (IS_ERR_OR_NULL(psy)) { psy 557 drivers/power/supply/power_supply_core.c *ptr = psy; psy 560 drivers/power/supply/power_supply_core.c return psy; psy 565 drivers/power/supply/power_supply_core.c int power_supply_get_battery_info(struct power_supply *psy, psy 588 drivers/power/supply/power_supply_core.c if (!psy->of_node) { psy 589 drivers/power/supply/power_supply_core.c dev_warn(&psy->dev, "%s currently only supports devicetree\n", psy 594 drivers/power/supply/power_supply_core.c battery_np = of_parse_phandle(psy->of_node, "monitored-battery", 0); psy 636 drivers/power/supply/power_supply_core.c dev_err(&psy->dev, "Too many temperature values\n"); psy 653 drivers/power/supply/power_supply_core.c dev_err(&psy->dev, "failed to get %s\n", propname); psy 655 drivers/power/supply/power_supply_core.c power_supply_put_battery_info(psy, info); psy 665 drivers/power/supply/power_supply_core.c devm_kcalloc(&psy->dev, tab_len, sizeof(*table), GFP_KERNEL); psy 667 drivers/power/supply/power_supply_core.c power_supply_put_battery_info(psy, info); psy 686 drivers/power/supply/power_supply_core.c void power_supply_put_battery_info(struct power_supply *psy, psy 693 drivers/power/supply/power_supply_core.c devm_kfree(&psy->dev, info->ocv_table[i]); psy 772 drivers/power/supply/power_supply_core.c int power_supply_get_property(struct power_supply *psy, psy 776 drivers/power/supply/power_supply_core.c if (atomic_read(&psy->use_cnt) <= 0) { psy 777 drivers/power/supply/power_supply_core.c if (!psy->initialized) psy 782 drivers/power/supply/power_supply_core.c return psy->desc->get_property(psy, psp, val); psy 786 drivers/power/supply/power_supply_core.c int power_supply_set_property(struct power_supply *psy, psy 790 drivers/power/supply/power_supply_core.c if (atomic_read(&psy->use_cnt) <= 0 || !psy->desc->set_property) psy 793 drivers/power/supply/power_supply_core.c return psy->desc->set_property(psy, psp, val); psy 797 drivers/power/supply/power_supply_core.c int power_supply_property_is_writeable(struct power_supply *psy, psy 800 drivers/power/supply/power_supply_core.c if (atomic_read(&psy->use_cnt) <= 0 || psy 801 drivers/power/supply/power_supply_core.c !psy->desc->property_is_writeable) psy 804 drivers/power/supply/power_supply_core.c return psy->desc->property_is_writeable(psy, psp); psy 808 drivers/power/supply/power_supply_core.c void power_supply_external_power_changed(struct power_supply *psy) psy 810 drivers/power/supply/power_supply_core.c if (atomic_read(&psy->use_cnt) <= 0 || psy 811 drivers/power/supply/power_supply_core.c !psy->desc->external_power_changed) psy 814 drivers/power/supply/power_supply_core.c psy->desc->external_power_changed(psy); psy 818 drivers/power/supply/power_supply_core.c int power_supply_powers(struct power_supply *psy, struct device *dev) psy 820 drivers/power/supply/power_supply_core.c return sysfs_create_link(&psy->dev.kobj, &dev->kobj, "powers"); psy 826 drivers/power/supply/power_supply_core.c struct power_supply *psy = to_power_supply(dev); psy 828 drivers/power/supply/power_supply_core.c kfree(psy); psy 847 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 852 drivers/power/supply/power_supply_core.c psy = tzd->devdata; psy 853 drivers/power/supply/power_supply_core.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_TEMP, &val); psy 867 drivers/power/supply/power_supply_core.c static int psy_register_thermal(struct power_supply *psy) psy 871 drivers/power/supply/power_supply_core.c if (psy->desc->no_thermal) psy 875 drivers/power/supply/power_supply_core.c for (i = 0; i < psy->desc->num_properties; i++) { psy 876 drivers/power/supply/power_supply_core.c if (psy->desc->properties[i] == POWER_SUPPLY_PROP_TEMP) { psy 877 drivers/power/supply/power_supply_core.c psy->tzd = thermal_zone_device_register(psy->desc->name, psy 878 drivers/power/supply/power_supply_core.c 0, 0, psy, &psy_tzd_ops, NULL, 0, 0); psy 879 drivers/power/supply/power_supply_core.c return PTR_ERR_OR_ZERO(psy->tzd); psy 885 drivers/power/supply/power_supply_core.c static void psy_unregister_thermal(struct power_supply *psy) psy 887 drivers/power/supply/power_supply_core.c if (IS_ERR_OR_NULL(psy->tzd)) psy 889 drivers/power/supply/power_supply_core.c thermal_zone_device_unregister(psy->tzd); psy 896 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 900 drivers/power/supply/power_supply_core.c psy = tcd->devdata; psy 901 drivers/power/supply/power_supply_core.c ret = power_supply_get_property(psy, psy 914 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 918 drivers/power/supply/power_supply_core.c psy = tcd->devdata; psy 919 drivers/power/supply/power_supply_core.c ret = power_supply_get_property(psy, psy 932 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 936 drivers/power/supply/power_supply_core.c psy = tcd->devdata; psy 938 drivers/power/supply/power_supply_core.c ret = psy->desc->set_property(psy, psy 950 drivers/power/supply/power_supply_core.c static int psy_register_cooler(struct power_supply *psy) psy 955 drivers/power/supply/power_supply_core.c for (i = 0; i < psy->desc->num_properties; i++) { psy 956 drivers/power/supply/power_supply_core.c if (psy->desc->properties[i] == psy 958 drivers/power/supply/power_supply_core.c psy->tcd = thermal_cooling_device_register( psy 959 drivers/power/supply/power_supply_core.c (char *)psy->desc->name, psy 960 drivers/power/supply/power_supply_core.c psy, &psy_tcd_ops); psy 961 drivers/power/supply/power_supply_core.c return PTR_ERR_OR_ZERO(psy->tcd); psy 967 drivers/power/supply/power_supply_core.c static void psy_unregister_cooler(struct power_supply *psy) psy 969 drivers/power/supply/power_supply_core.c if (IS_ERR_OR_NULL(psy->tcd)) psy 971 drivers/power/supply/power_supply_core.c thermal_cooling_device_unregister(psy->tcd); psy 974 drivers/power/supply/power_supply_core.c static int psy_register_thermal(struct power_supply *psy) psy 979 drivers/power/supply/power_supply_core.c static void psy_unregister_thermal(struct power_supply *psy) psy 983 drivers/power/supply/power_supply_core.c static int psy_register_cooler(struct power_supply *psy) psy 988 drivers/power/supply/power_supply_core.c static void psy_unregister_cooler(struct power_supply *psy) psy 1000 drivers/power/supply/power_supply_core.c struct power_supply *psy; psy 1016 drivers/power/supply/power_supply_core.c psy = kzalloc(sizeof(*psy), GFP_KERNEL); psy 1017 drivers/power/supply/power_supply_core.c if (!psy) psy 1020 drivers/power/supply/power_supply_core.c dev = &psy->dev; psy 1028 drivers/power/supply/power_supply_core.c dev_set_drvdata(dev, psy); psy 1029 drivers/power/supply/power_supply_core.c psy->desc = desc; psy 1032 drivers/power/supply/power_supply_core.c psy->drv_data = cfg->drv_data; psy 1033 drivers/power/supply/power_supply_core.c psy->of_node = psy 1035 drivers/power/supply/power_supply_core.c psy->supplied_to = cfg->supplied_to; psy 1036 drivers/power/supply/power_supply_core.c psy->num_supplicants = cfg->num_supplicants; psy 1043 drivers/power/supply/power_supply_core.c INIT_WORK(&psy->changed_work, power_supply_changed_work); psy 1044 drivers/power/supply/power_supply_core.c INIT_DELAYED_WORK(&psy->deferred_register_work, psy 1047 drivers/power/supply/power_supply_core.c rc = power_supply_check_supplies(psy); psy 1053 drivers/power/supply/power_supply_core.c spin_lock_init(&psy->changed_lock); psy 1062 drivers/power/supply/power_supply_core.c rc = psy_register_thermal(psy); psy 1066 drivers/power/supply/power_supply_core.c rc = psy_register_cooler(psy); psy 1070 drivers/power/supply/power_supply_core.c rc = power_supply_create_triggers(psy); psy 1074 drivers/power/supply/power_supply_core.c rc = power_supply_add_hwmon_sysfs(psy); psy 1087 drivers/power/supply/power_supply_core.c atomic_inc(&psy->use_cnt); psy 1088 drivers/power/supply/power_supply_core.c psy->initialized = true; psy 1091 drivers/power/supply/power_supply_core.c &psy->deferred_register_work, psy 1094 drivers/power/supply/power_supply_core.c return psy; psy 1097 drivers/power/supply/power_supply_core.c power_supply_remove_triggers(psy); psy 1099 drivers/power/supply/power_supply_core.c psy_unregister_cooler(psy); psy 1101 drivers/power/supply/power_supply_core.c psy_unregister_thermal(psy); psy 1159 drivers/power/supply/power_supply_core.c struct power_supply **psy = res; psy 1161 drivers/power/supply/power_supply_core.c power_supply_unregister(*psy); psy 1183 drivers/power/supply/power_supply_core.c struct power_supply **ptr, *psy; psy 1189 drivers/power/supply/power_supply_core.c psy = __power_supply_register(parent, desc, cfg, true); psy 1190 drivers/power/supply/power_supply_core.c if (IS_ERR(psy)) { psy 1193 drivers/power/supply/power_supply_core.c *ptr = psy; psy 1196 drivers/power/supply/power_supply_core.c return psy; psy 1219 drivers/power/supply/power_supply_core.c struct power_supply **ptr, *psy; psy 1225 drivers/power/supply/power_supply_core.c psy = __power_supply_register(parent, desc, cfg, false); psy 1226 drivers/power/supply/power_supply_core.c if (IS_ERR(psy)) { psy 1229 drivers/power/supply/power_supply_core.c *ptr = psy; psy 1232 drivers/power/supply/power_supply_core.c return psy; psy 1243 drivers/power/supply/power_supply_core.c void power_supply_unregister(struct power_supply *psy) psy 1245 drivers/power/supply/power_supply_core.c WARN_ON(atomic_dec_return(&psy->use_cnt)); psy 1246 drivers/power/supply/power_supply_core.c psy->removing = true; psy 1247 drivers/power/supply/power_supply_core.c cancel_work_sync(&psy->changed_work); psy 1248 drivers/power/supply/power_supply_core.c cancel_delayed_work_sync(&psy->deferred_register_work); psy 1249 drivers/power/supply/power_supply_core.c sysfs_remove_link(&psy->dev.kobj, "powers"); psy 1250 drivers/power/supply/power_supply_core.c power_supply_remove_hwmon_sysfs(psy); psy 1251 drivers/power/supply/power_supply_core.c power_supply_remove_triggers(psy); psy 1252 drivers/power/supply/power_supply_core.c psy_unregister_cooler(psy); psy 1253 drivers/power/supply/power_supply_core.c psy_unregister_thermal(psy); psy 1254 drivers/power/supply/power_supply_core.c device_init_wakeup(&psy->dev, false); psy 1255 drivers/power/supply/power_supply_core.c device_unregister(&psy->dev); psy 1259 drivers/power/supply/power_supply_core.c void *power_supply_get_drvdata(struct power_supply *psy) psy 1261 drivers/power/supply/power_supply_core.c return psy->drv_data; psy 12 drivers/power/supply/power_supply_hwmon.c struct power_supply *psy; psy 135 drivers/power/supply/power_supply_hwmon.c if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && psy 156 drivers/power/supply/power_supply_hwmon.c struct power_supply *psy = psyhw->psy; psy 164 drivers/power/supply/power_supply_hwmon.c ret = power_supply_get_property(psy, prop, &pspval); psy 200 drivers/power/supply/power_supply_hwmon.c struct power_supply *psy = psyhw->psy; psy 232 drivers/power/supply/power_supply_hwmon.c return power_supply_set_property(psy, prop, &pspval); psy 280 drivers/power/supply/power_supply_hwmon.c int power_supply_add_hwmon_sysfs(struct power_supply *psy) psy 282 drivers/power/supply/power_supply_hwmon.c const struct power_supply_desc *desc = psy->desc; psy 284 drivers/power/supply/power_supply_hwmon.c struct device *dev = &psy->dev; psy 299 drivers/power/supply/power_supply_hwmon.c psyhw->psy = psy; psy 338 drivers/power/supply/power_supply_hwmon.c name = psy->desc->name; psy 365 drivers/power/supply/power_supply_hwmon.c void power_supply_remove_hwmon_sysfs(struct power_supply *psy) psy 367 drivers/power/supply/power_supply_hwmon.c devres_release_group(&psy->dev, power_supply_add_hwmon_sysfs); psy 21 drivers/power/supply/power_supply_leds.c static void power_supply_update_bat_leds(struct power_supply *psy) psy 27 drivers/power/supply/power_supply_leds.c if (power_supply_get_property(psy, POWER_SUPPLY_PROP_STATUS, &status)) psy 30 drivers/power/supply/power_supply_leds.c dev_dbg(&psy->dev, "%s %d\n", __func__, status.intval); psy 34 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_full_trig, LED_FULL); psy 35 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_trig, LED_OFF); psy 36 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->full_trig, LED_FULL); psy 37 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_blink_full_solid_trig, psy 41 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_full_trig, LED_FULL); psy 42 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_trig, LED_FULL); psy 43 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->full_trig, LED_OFF); psy 44 drivers/power/supply/power_supply_leds.c led_trigger_blink(psy->charging_blink_full_solid_trig, psy 48 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_full_trig, LED_OFF); psy 49 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_trig, LED_OFF); psy 50 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->full_trig, LED_OFF); psy 51 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->charging_blink_full_solid_trig, psy 57 drivers/power/supply/power_supply_leds.c static int power_supply_create_bat_triggers(struct power_supply *psy) psy 59 drivers/power/supply/power_supply_leds.c psy->charging_full_trig_name = kasprintf(GFP_KERNEL, psy 60 drivers/power/supply/power_supply_leds.c "%s-charging-or-full", psy->desc->name); psy 61 drivers/power/supply/power_supply_leds.c if (!psy->charging_full_trig_name) psy 64 drivers/power/supply/power_supply_leds.c psy->charging_trig_name = kasprintf(GFP_KERNEL, psy 65 drivers/power/supply/power_supply_leds.c "%s-charging", psy->desc->name); psy 66 drivers/power/supply/power_supply_leds.c if (!psy->charging_trig_name) psy 69 drivers/power/supply/power_supply_leds.c psy->full_trig_name = kasprintf(GFP_KERNEL, "%s-full", psy->desc->name); psy 70 drivers/power/supply/power_supply_leds.c if (!psy->full_trig_name) psy 73 drivers/power/supply/power_supply_leds.c psy->charging_blink_full_solid_trig_name = kasprintf(GFP_KERNEL, psy 74 drivers/power/supply/power_supply_leds.c "%s-charging-blink-full-solid", psy->desc->name); psy 75 drivers/power/supply/power_supply_leds.c if (!psy->charging_blink_full_solid_trig_name) psy 78 drivers/power/supply/power_supply_leds.c led_trigger_register_simple(psy->charging_full_trig_name, psy 79 drivers/power/supply/power_supply_leds.c &psy->charging_full_trig); psy 80 drivers/power/supply/power_supply_leds.c led_trigger_register_simple(psy->charging_trig_name, psy 81 drivers/power/supply/power_supply_leds.c &psy->charging_trig); psy 82 drivers/power/supply/power_supply_leds.c led_trigger_register_simple(psy->full_trig_name, psy 83 drivers/power/supply/power_supply_leds.c &psy->full_trig); psy 84 drivers/power/supply/power_supply_leds.c led_trigger_register_simple(psy->charging_blink_full_solid_trig_name, psy 85 drivers/power/supply/power_supply_leds.c &psy->charging_blink_full_solid_trig); psy 90 drivers/power/supply/power_supply_leds.c kfree(psy->full_trig_name); psy 92 drivers/power/supply/power_supply_leds.c kfree(psy->charging_trig_name); psy 94 drivers/power/supply/power_supply_leds.c kfree(psy->charging_full_trig_name); psy 99 drivers/power/supply/power_supply_leds.c static void power_supply_remove_bat_triggers(struct power_supply *psy) psy 101 drivers/power/supply/power_supply_leds.c led_trigger_unregister_simple(psy->charging_full_trig); psy 102 drivers/power/supply/power_supply_leds.c led_trigger_unregister_simple(psy->charging_trig); psy 103 drivers/power/supply/power_supply_leds.c led_trigger_unregister_simple(psy->full_trig); psy 104 drivers/power/supply/power_supply_leds.c led_trigger_unregister_simple(psy->charging_blink_full_solid_trig); psy 105 drivers/power/supply/power_supply_leds.c kfree(psy->charging_blink_full_solid_trig_name); psy 106 drivers/power/supply/power_supply_leds.c kfree(psy->full_trig_name); psy 107 drivers/power/supply/power_supply_leds.c kfree(psy->charging_trig_name); psy 108 drivers/power/supply/power_supply_leds.c kfree(psy->charging_full_trig_name); psy 113 drivers/power/supply/power_supply_leds.c static void power_supply_update_gen_leds(struct power_supply *psy) psy 117 drivers/power/supply/power_supply_leds.c if (power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, &online)) psy 120 drivers/power/supply/power_supply_leds.c dev_dbg(&psy->dev, "%s %d\n", __func__, online.intval); psy 123 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->online_trig, LED_FULL); psy 125 drivers/power/supply/power_supply_leds.c led_trigger_event(psy->online_trig, LED_OFF); psy 128 drivers/power/supply/power_supply_leds.c static int power_supply_create_gen_triggers(struct power_supply *psy) psy 130 drivers/power/supply/power_supply_leds.c psy->online_trig_name = kasprintf(GFP_KERNEL, "%s-online", psy 131 drivers/power/supply/power_supply_leds.c psy->desc->name); psy 132 drivers/power/supply/power_supply_leds.c if (!psy->online_trig_name) psy 135 drivers/power/supply/power_supply_leds.c led_trigger_register_simple(psy->online_trig_name, &psy->online_trig); psy 140 drivers/power/supply/power_supply_leds.c static void power_supply_remove_gen_triggers(struct power_supply *psy) psy 142 drivers/power/supply/power_supply_leds.c led_trigger_unregister_simple(psy->online_trig); psy 143 drivers/power/supply/power_supply_leds.c kfree(psy->online_trig_name); psy 148 drivers/power/supply/power_supply_leds.c void power_supply_update_leds(struct power_supply *psy) psy 150 drivers/power/supply/power_supply_leds.c if (psy->desc->type == POWER_SUPPLY_TYPE_BATTERY) psy 151 drivers/power/supply/power_supply_leds.c power_supply_update_bat_leds(psy); psy 153 drivers/power/supply/power_supply_leds.c power_supply_update_gen_leds(psy); psy 156 drivers/power/supply/power_supply_leds.c int power_supply_create_triggers(struct power_supply *psy) psy 158 drivers/power/supply/power_supply_leds.c if (psy->desc->type == POWER_SUPPLY_TYPE_BATTERY) psy 159 drivers/power/supply/power_supply_leds.c return power_supply_create_bat_triggers(psy); psy 160 drivers/power/supply/power_supply_leds.c return power_supply_create_gen_triggers(psy); psy 163 drivers/power/supply/power_supply_leds.c void power_supply_remove_triggers(struct power_supply *psy) psy 165 drivers/power/supply/power_supply_leds.c if (psy->desc->type == POWER_SUPPLY_TYPE_BATTERY) psy 166 drivers/power/supply/power_supply_leds.c power_supply_remove_bat_triggers(psy); psy 168 drivers/power/supply/power_supply_leds.c power_supply_remove_gen_triggers(psy); psy 119 drivers/power/supply/power_supply_sysfs.c struct power_supply *psy = dev_get_drvdata(dev); psy 124 drivers/power/supply/power_supply_sysfs.c value.intval = psy->desc->type; psy 126 drivers/power/supply/power_supply_sysfs.c ret = power_supply_get_property(psy, psp, &value); psy 166 drivers/power/supply/power_supply_sysfs.c ret = power_supply_show_usb_type(dev, psy->desc->usb_types, psy 167 drivers/power/supply/power_supply_sysfs.c psy->desc->num_usb_types, psy 188 drivers/power/supply/power_supply_sysfs.c struct power_supply *psy = dev_get_drvdata(dev); psy 231 drivers/power/supply/power_supply_sysfs.c ret = power_supply_set_property(psy, psp, &value); psy 323 drivers/power/supply/power_supply_sysfs.c struct power_supply *psy = dev_get_drvdata(dev); psy 330 drivers/power/supply/power_supply_sysfs.c for (i = 0; i < psy->desc->num_properties; i++) { psy 331 drivers/power/supply/power_supply_sysfs.c int property = psy->desc->properties[i]; psy 334 drivers/power/supply/power_supply_sysfs.c if (psy->desc->property_is_writeable && psy 335 drivers/power/supply/power_supply_sysfs.c psy->desc->property_is_writeable(psy, property) > 0) psy 384 drivers/power/supply/power_supply_sysfs.c struct power_supply *psy = dev_get_drvdata(dev); psy 389 drivers/power/supply/power_supply_sysfs.c if (!psy || !psy->desc) { psy 394 drivers/power/supply/power_supply_sysfs.c ret = add_uevent_var(env, "POWER_SUPPLY_NAME=%s", psy->desc->name); psy 402 drivers/power/supply/power_supply_sysfs.c for (j = 0; j < psy->desc->num_properties; j++) { psy 406 drivers/power/supply/power_supply_sysfs.c attr = &power_supply_attrs[psy->desc->properties[j]]; psy 488 drivers/power/supply/qcom_smbb.c static int smbb_usbin_get_property(struct power_supply *psy, psy 492 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 516 drivers/power/supply/qcom_smbb.c static int smbb_usbin_set_property(struct power_supply *psy, psy 520 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 536 drivers/power/supply/qcom_smbb.c static int smbb_dcin_get_property(struct power_supply *psy, psy 540 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 564 drivers/power/supply/qcom_smbb.c static int smbb_dcin_set_property(struct power_supply *psy, psy 568 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 584 drivers/power/supply/qcom_smbb.c static int smbb_charger_writable_property(struct power_supply *psy, psy 590 drivers/power/supply/qcom_smbb.c static int smbb_battery_get_property(struct power_supply *psy, psy 594 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 660 drivers/power/supply/qcom_smbb.c static int smbb_battery_set_property(struct power_supply *psy, psy 664 drivers/power/supply/qcom_smbb.c struct smbb_charger *chg = power_supply_get_drvdata(psy); psy 682 drivers/power/supply/qcom_smbb.c static int smbb_battery_writable_property(struct power_supply *psy, psy 68 drivers/power/supply/rt5033_battery.c static int rt5033_battery_get_property(struct power_supply *psy, psy 72 drivers/power/supply/rt5033_battery.c struct rt5033_battery *battery = power_supply_get_drvdata(psy); psy 141 drivers/power/supply/rt5033_battery.c battery->psy = power_supply_register(&client->dev, psy 143 drivers/power/supply/rt5033_battery.c if (IS_ERR(battery->psy)) { psy 145 drivers/power/supply/rt5033_battery.c ret = PTR_ERR(battery->psy); psy 156 drivers/power/supply/rt5033_battery.c power_supply_unregister(battery->psy); psy 611 drivers/power/supply/rt9455_charger.c static int rt9455_charger_get_property(struct power_supply *psy, psy 615 drivers/power/supply/rt9455_charger.c struct rt9455_info *info = power_supply_get_drvdata(psy); psy 147 drivers/power/supply/rx51_battery.c static int rx51_battery_get_property(struct power_supply *psy, psy 151 drivers/power/supply/rx51_battery.c struct rx51_device_info *di = power_supply_get_drvdata(psy); psy 31 drivers/power/supply/s3c_adc_battery.c struct power_supply *psy; psy 44 drivers/power/supply/s3c_adc_battery.c static void s3c_adc_bat_ext_power_changed(struct power_supply *psy) psy 72 drivers/power/supply/s3c_adc_battery.c static int s3c_adc_backup_bat_get_property(struct power_supply *psy, psy 76 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat *bat = power_supply_get_drvdata(psy); psy 79 drivers/power/supply/s3c_adc_battery.c dev_err(&psy->dev, "%s: no battery infos ?!\n", __func__); psy 140 drivers/power/supply/s3c_adc_battery.c static int s3c_adc_bat_get_property(struct power_supply *psy, psy 144 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat *bat = power_supply_get_drvdata(psy); psy 152 drivers/power/supply/s3c_adc_battery.c dev_err(&psy->dev, "no battery infos ?!\n"); psy 254 drivers/power/supply/s3c_adc_battery.c is_plugged = power_supply_am_i_supplied(bat->psy); psy 282 drivers/power/supply/s3c_adc_battery.c power_supply_changed(bat->psy); psy 315 drivers/power/supply/s3c_adc_battery.c main_bat.psy = power_supply_register(&pdev->dev, &main_bat_desc, &psy_cfg); psy 316 drivers/power/supply/s3c_adc_battery.c if (IS_ERR(main_bat.psy)) { psy 317 drivers/power/supply/s3c_adc_battery.c ret = PTR_ERR(main_bat.psy); psy 327 drivers/power/supply/s3c_adc_battery.c backup_bat.psy = power_supply_register(&pdev->dev, psy 330 drivers/power/supply/s3c_adc_battery.c if (IS_ERR(backup_bat.psy)) { psy 331 drivers/power/supply/s3c_adc_battery.c ret = PTR_ERR(backup_bat.psy); psy 374 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(backup_bat.psy); psy 376 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(main_bat.psy); psy 386 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(main_bat.psy); psy 388 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(backup_bat.psy); psy 604 drivers/power/supply/sbs-battery.c static int sbs_get_property(struct power_supply *psy, psy 609 drivers/power/supply/sbs-battery.c struct sbs_info *chip = power_supply_get_drvdata(psy); psy 763 drivers/power/supply/sbs-battery.c static void sbs_external_power_changed(struct power_supply *psy) psy 765 drivers/power/supply/sbs-battery.c struct sbs_info *chip = power_supply_get_drvdata(psy); psy 44 drivers/power/supply/sbs-charger.c static int sbs_get_property(struct power_supply *psy, psy 48 drivers/power/supply/sbs-charger.c struct sbs_info *chip = power_supply_get_drvdata(psy); psy 42 drivers/power/supply/sbs-manager.c struct power_supply *psy; psy 92 drivers/power/supply/sbs-manager.c static int sbsm_get_property(struct power_supply *psy, psy 96 drivers/power/supply/sbs-manager.c struct sbsm_data *data = power_supply_get_drvdata(psy); psy 135 drivers/power/supply/sbs-manager.c static int sbsm_prop_is_writeable(struct power_supply *psy, psy 138 drivers/power/supply/sbs-manager.c struct sbsm_data *data = power_supply_get_drvdata(psy); psy 143 drivers/power/supply/sbs-manager.c static int sbsm_set_property(struct power_supply *psy, psy 147 drivers/power/supply/sbs-manager.c struct sbsm_data *data = power_supply_get_drvdata(psy); psy 255 drivers/power/supply/sbs-manager.c power_supply_changed(sbsm->psy); psy 386 drivers/power/supply/sbs-manager.c data->psy = devm_power_supply_register(dev, psy_desc, &psy_cfg); psy 387 drivers/power/supply/sbs-manager.c if (IS_ERR(data->psy)) { psy 388 drivers/power/supply/sbs-manager.c ret = PTR_ERR(data->psy); psy 202 drivers/power/supply/sc2731_charger.c sc2731_charger_usb_set_property(struct power_supply *psy, psy 206 drivers/power/supply/sc2731_charger.c struct sc2731_charger_info *info = power_supply_get_drvdata(psy); psy 238 drivers/power/supply/sc2731_charger.c static int sc2731_charger_usb_get_property(struct power_supply *psy, psy 242 drivers/power/supply/sc2731_charger.c struct sc2731_charger_info *info = power_supply_get_drvdata(psy); psy 289 drivers/power/supply/sc2731_charger.c static int sc2731_charger_property_is_writeable(struct power_supply *psy, psy 489 drivers/power/supply/sc27xx_fuel_gauge.c struct power_supply *psy; psy 493 drivers/power/supply/sc27xx_fuel_gauge.c psy = power_supply_get_by_name(sc27xx_charger_supply_name[i]); psy 494 drivers/power/supply/sc27xx_fuel_gauge.c if (!psy) psy 497 drivers/power/supply/sc27xx_fuel_gauge.c ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_STATUS, psy 499 drivers/power/supply/sc27xx_fuel_gauge.c power_supply_put(psy); psy 509 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_get_property(struct power_supply *psy, psy 513 drivers/power/supply/sc27xx_fuel_gauge.c struct sc27xx_fgu_data *data = power_supply_get_drvdata(psy); psy 607 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_set_property(struct power_supply *psy, psy 611 drivers/power/supply/sc27xx_fuel_gauge.c struct sc27xx_fgu_data *data = power_supply_get_drvdata(psy); psy 637 drivers/power/supply/sc27xx_fuel_gauge.c static void sc27xx_fgu_external_power_changed(struct power_supply *psy) psy 639 drivers/power/supply/sc27xx_fuel_gauge.c struct sc27xx_fgu_data *data = power_supply_get_drvdata(psy); psy 644 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_property_is_writeable(struct power_supply *psy, psy 931 drivers/power/supply/smb347-charger.c static int smb347_mains_get_property(struct power_supply *psy, psy 935 drivers/power/supply/smb347-charger.c struct smb347_charger *smb = power_supply_get_drvdata(psy); psy 972 drivers/power/supply/smb347-charger.c static int smb347_usb_get_property(struct power_supply *psy, psy 976 drivers/power/supply/smb347-charger.c struct smb347_charger *smb = power_supply_get_drvdata(psy); psy 1058 drivers/power/supply/smb347-charger.c static int smb347_battery_get_property(struct power_supply *psy, psy 1062 drivers/power/supply/smb347-charger.c struct smb347_charger *smb = power_supply_get_drvdata(psy); psy 39 drivers/power/supply/test_power.c static int test_power_get_ac_property(struct power_supply *psy, psy 53 drivers/power/supply/test_power.c static int test_power_get_usb_property(struct power_supply *psy, psy 67 drivers/power/supply/test_power.c static int test_power_get_battery_property(struct power_supply *psy, psy 328 drivers/power/supply/test_power.c static inline void signal_power_supply_changed(struct power_supply *psy) psy 331 drivers/power/supply/test_power.c power_supply_changed(psy); psy 25 drivers/power/supply/tosa_battery.c struct power_supply *psy; psy 60 drivers/power/supply/tosa_battery.c value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy->dev.parent), psy 80 drivers/power/supply/tosa_battery.c value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy->dev.parent), psy 90 drivers/power/supply/tosa_battery.c static int tosa_bat_get_property(struct power_supply *psy, psy 95 drivers/power/supply/tosa_battery.c struct tosa_bat *bat = power_supply_get_drvdata(psy); psy 142 drivers/power/supply/tosa_battery.c static void tosa_bat_external_power_changed(struct power_supply *psy) psy 157 drivers/power/supply/tosa_battery.c struct power_supply *psy = bat->psy; psy 164 drivers/power/supply/tosa_battery.c printk(KERN_NOTICE "%s not present\n", psy->desc->name); psy 167 drivers/power/supply/tosa_battery.c } else if (power_supply_am_i_supplied(psy)) { psy 190 drivers/power/supply/tosa_battery.c power_supply_changed(psy); psy 252 drivers/power/supply/tosa_battery.c .psy = NULL, psy 273 drivers/power/supply/tosa_battery.c .psy = NULL, psy 295 drivers/power/supply/tosa_battery.c .psy = NULL, psy 366 drivers/power/supply/tosa_battery.c tosa_bat_main.psy = power_supply_register(&dev->dev, psy 369 drivers/power/supply/tosa_battery.c if (IS_ERR(tosa_bat_main.psy)) { psy 370 drivers/power/supply/tosa_battery.c ret = PTR_ERR(tosa_bat_main.psy); psy 375 drivers/power/supply/tosa_battery.c tosa_bat_jacket.psy = power_supply_register(&dev->dev, psy 378 drivers/power/supply/tosa_battery.c if (IS_ERR(tosa_bat_jacket.psy)) { psy 379 drivers/power/supply/tosa_battery.c ret = PTR_ERR(tosa_bat_jacket.psy); psy 384 drivers/power/supply/tosa_battery.c tosa_bat_bu.psy = power_supply_register(&dev->dev, &tosa_bat_bu_desc, psy 386 drivers/power/supply/tosa_battery.c if (IS_ERR(tosa_bat_bu.psy)) { psy 387 drivers/power/supply/tosa_battery.c ret = PTR_ERR(tosa_bat_bu.psy); psy 418 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_bu.psy); psy 420 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_jacket.psy); psy 422 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_main.psy); psy 438 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_bu.psy); psy 439 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_jacket.psy); psy 440 drivers/power/supply/tosa_battery.c power_supply_unregister(tosa_bat_main.psy); psy 124 drivers/power/supply/tps65090-charger.c static int tps65090_ac_get_property(struct power_supply *psy, psy 128 drivers/power/supply/tps65090-charger.c struct tps65090_charger *charger = power_supply_get_drvdata(psy); psy 33 drivers/power/supply/tps65217_charger.c struct power_supply *psy; psy 104 drivers/power/supply/tps65217_charger.c static int tps65217_charger_get_property(struct power_supply *psy, psy 108 drivers/power/supply/tps65217_charger.c struct tps65217_charger *charger = power_supply_get_drvdata(psy); psy 146 drivers/power/supply/tps65217_charger.c power_supply_changed(charger->psy); psy 205 drivers/power/supply/tps65217_charger.c charger->psy = devm_power_supply_register(&pdev->dev, psy 208 drivers/power/supply/tps65217_charger.c if (IS_ERR(charger->psy)) { psy 210 drivers/power/supply/tps65217_charger.c return PTR_ERR(charger->psy); psy 789 drivers/power/supply/twl4030_charger.c static int twl4030_bci_get_property(struct power_supply *psy, psy 793 drivers/power/supply/twl4030_charger.c struct twl4030_bci *bci = dev_get_drvdata(psy->dev.parent); psy 802 drivers/power/supply/twl4030_charger.c if (psy->desc->type == POWER_SUPPLY_TYPE_USB) psy 811 drivers/power/supply/twl4030_charger.c if (psy->desc->type == POWER_SUPPLY_TYPE_USB) psy 831 drivers/power/supply/twl4030_charger.c if (psy->desc->type == POWER_SUPPLY_TYPE_USB) { psy 861 drivers/power/supply/twl4030_charger.c if (psy->desc->type != POWER_SUPPLY_TYPE_USB) { psy 888 drivers/power/supply/twl4030_charger.c static int twl4030_bci_set_property(struct power_supply *psy, psy 892 drivers/power/supply/twl4030_charger.c struct twl4030_bci *bci = dev_get_drvdata(psy->dev.parent); psy 896 drivers/power/supply/twl4030_charger.c if (psy->desc->type == POWER_SUPPLY_TYPE_USB) psy 909 drivers/power/supply/twl4030_charger.c static int twl4030_bci_property_is_writeable(struct power_supply *psy, psy 25 drivers/power/supply/twl4030_madc_battery.c struct power_supply *psy; psy 107 drivers/power/supply/twl4030_madc_battery.c static int twl4030_madc_bat_get_property(struct power_supply *psy, psy 111 drivers/power/supply/twl4030_madc_battery.c struct twl4030_madc_battery *bat = power_supply_get_drvdata(psy); psy 171 drivers/power/supply/twl4030_madc_battery.c static void twl4030_madc_bat_ext_changed(struct power_supply *psy) psy 173 drivers/power/supply/twl4030_madc_battery.c power_supply_changed(psy); psy 233 drivers/power/supply/twl4030_madc_battery.c twl4030_madc_bat->psy = power_supply_register(&pdev->dev, psy 236 drivers/power/supply/twl4030_madc_battery.c if (IS_ERR(twl4030_madc_bat->psy)) { psy 237 drivers/power/supply/twl4030_madc_battery.c ret = PTR_ERR(twl4030_madc_bat->psy); psy 257 drivers/power/supply/twl4030_madc_battery.c power_supply_unregister(bat->psy); psy 372 drivers/power/supply/ucs1002_power.c static int ucs1002_get_property(struct power_supply *psy, psy 376 drivers/power/supply/ucs1002_power.c struct ucs1002_info *info = power_supply_get_drvdata(psy); psy 402 drivers/power/supply/ucs1002_power.c static int ucs1002_set_property(struct power_supply *psy, psy 406 drivers/power/supply/ucs1002_power.c struct ucs1002_info *info = power_supply_get_drvdata(psy); psy 418 drivers/power/supply/ucs1002_power.c static int ucs1002_property_is_writeable(struct power_supply *psy, psy 81 drivers/power/supply/wilco-charger.c static int wilco_charge_get_property(struct power_supply *psy, psy 85 drivers/power/supply/wilco-charger.c struct wilco_ec_device *ec = power_supply_get_drvdata(psy); psy 118 drivers/power/supply/wilco-charger.c static int wilco_charge_set_property(struct power_supply *psy, psy 122 drivers/power/supply/wilco-charger.c struct wilco_ec_device *ec = power_supply_get_drvdata(psy); psy 148 drivers/power/supply/wilco-charger.c static int wilco_charge_property_is_writeable(struct power_supply *psy, psy 168 drivers/power/supply/wilco-charger.c struct power_supply *psy; psy 171 drivers/power/supply/wilco-charger.c psy = devm_power_supply_register(&pdev->dev, &wilco_ps_desc, &psy_cfg); psy 173 drivers/power/supply/wilco-charger.c return PTR_ERR_OR_ZERO(psy); psy 112 drivers/power/supply/wm831x_backup.c static int wm831x_backup_get_prop(struct power_supply *psy, psy 116 drivers/power/supply/wm831x_backup.c struct wm831x_backup *devdata = dev_get_drvdata(psy->dev.parent); psy 69 drivers/power/supply/wm831x_power.c static int wm831x_wall_get_prop(struct power_supply *psy, psy 73 drivers/power/supply/wm831x_power.c struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); psy 100 drivers/power/supply/wm831x_power.c static int wm831x_usb_get_prop(struct power_supply *psy, psy 104 drivers/power/supply/wm831x_power.c struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); psy 432 drivers/power/supply/wm831x_power.c static int wm831x_bat_get_prop(struct power_supply *psy, psy 436 drivers/power/supply/wm831x_power.c struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); psy 247 drivers/power/supply/wm8350_power.c static int wm8350_ac_get_prop(struct power_supply *psy, psy 251 drivers/power/supply/wm8350_power.c struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); psy 277 drivers/power/supply/wm8350_power.c static int wm8350_usb_get_prop(struct power_supply *psy, psy 281 drivers/power/supply/wm8350_power.c struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); psy 343 drivers/power/supply/wm8350_power.c static int wm8350_bat_get_property(struct power_supply *psy, psy 347 drivers/power/supply/wm8350_power.c struct wm8350 *wm8350 = dev_get_drvdata(psy->dev.parent); psy 608 drivers/regulator/act8865-regulator.c static int act8600_charger_get_property(struct power_supply *psy, psy 611 drivers/regulator/act8865-regulator.c struct regmap *map = power_supply_get_drvdata(psy); psy 28 drivers/staging/greybus/power_supply.c struct power_supply *psy; psy 355 drivers/staging/greybus/power_supply.c power_supply_changed(gbpsy->psy); psy 448 drivers/staging/greybus/power_supply.c struct power_supply *psy; psy 454 drivers/staging/greybus/power_supply.c while ((ret < len) && (psy = power_supply_get_by_name(name))) { psy 455 drivers/staging/greybus/power_supply.c power_supply_put(psy); psy 832 drivers/staging/greybus/power_supply.c gbpsy->psy = power_supply_register(&connection->bundle->dev, psy 834 drivers/staging/greybus/power_supply.c return PTR_ERR_OR_ZERO(gbpsy->psy); psy 853 drivers/staging/greybus/power_supply.c power_supply_unregister(gbpsy->psy); psy 222 drivers/staging/nvec/nvec_power.c static int nvec_power_get_property(struct power_supply *psy, psy 226 drivers/staging/nvec/nvec_power.c struct nvec_power *power = dev_get_drvdata(psy->dev.parent); psy 238 drivers/staging/nvec/nvec_power.c static int nvec_battery_get_property(struct power_supply *psy, psy 242 drivers/staging/nvec/nvec_power.c struct nvec_power *power = dev_get_drvdata(psy->dev.parent); psy 374 drivers/staging/nvec/nvec_power.c struct power_supply **psy; psy 389 drivers/staging/nvec/nvec_power.c psy = &nvec_psy; psy 400 drivers/staging/nvec/nvec_power.c psy = &nvec_bat_psy; psy 414 drivers/staging/nvec/nvec_power.c *psy = power_supply_register(&pdev->dev, psy_desc, &psy_cfg); psy 416 drivers/staging/nvec/nvec_power.c return PTR_ERR_OR_ZERO(*psy); psy 293 drivers/usb/typec/tcpm/tcpm.c struct power_supply *psy; psy 2721 drivers/usb/typec/tcpm/tcpm.c power_supply_changed(port->psy); psy 3266 drivers/usb/typec/tcpm/tcpm.c power_supply_changed(port->psy); psy 4583 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_get_prop(struct power_supply *psy, psy 4587 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = power_supply_get_drvdata(psy); psy 4640 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_set_prop(struct power_supply *psy, psy 4644 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = power_supply_get_drvdata(psy); psy 4672 drivers/usb/typec/tcpm/tcpm.c static int tcpm_psy_prop_writeable(struct power_supply *psy, psy 4721 drivers/usb/typec/tcpm/tcpm.c port->psy = devm_power_supply_register(port->dev, &port->psy_desc, psy 4724 drivers/usb/typec/tcpm/tcpm.c return PTR_ERR_OR_ZERO(port->psy); psy 18 include/linux/mfd/abx500/ux500_chargalg.h #define psy_to_ux500_charger(x) power_supply_get_drvdata(psy) psy 40 include/linux/mfd/abx500/ux500_chargalg.h struct power_supply *psy; psy 39 include/linux/mfd/rt5033.h struct power_supply *psy; psy 54 include/linux/mfd/rt5033.h struct power_supply psy; psy 252 include/linux/power/charger-manager.h extern void cm_notify_event(struct power_supply *psy, psy 255 include/linux/power/charger-manager.h static inline void cm_notify_event(struct power_supply *psy, psy 237 include/linux/power_supply.h int (*get_property)(struct power_supply *psy, psy 240 include/linux/power_supply.h int (*set_property)(struct power_supply *psy, psy 248 include/linux/power_supply.h int (*property_is_writeable)(struct power_supply *psy, psy 250 include/linux/power_supply.h void (*external_power_changed)(struct power_supply *psy); psy 251 include/linux/power_supply.h void (*set_charged)(struct power_supply *psy); psy 358 include/linux/power_supply.h extern void power_supply_put(struct power_supply *psy); psy 373 include/linux/power_supply.h extern int power_supply_get_battery_info(struct power_supply *psy, psy 375 include/linux/power_supply.h extern void power_supply_put_battery_info(struct power_supply *psy, psy 384 include/linux/power_supply.h extern void power_supply_changed(struct power_supply *psy); psy 385 include/linux/power_supply.h extern int power_supply_am_i_supplied(struct power_supply *psy); psy 387 include/linux/power_supply.h struct power_supply *psy); psy 388 include/linux/power_supply.h extern int power_supply_set_battery_charged(struct power_supply *psy); psy 396 include/linux/power_supply.h extern int power_supply_get_property(struct power_supply *psy, psy 399 include/linux/power_supply.h extern int power_supply_set_property(struct power_supply *psy, psy 402 include/linux/power_supply.h extern int power_supply_property_is_writeable(struct power_supply *psy, psy 404 include/linux/power_supply.h extern void power_supply_external_power_changed(struct power_supply *psy); psy 422 include/linux/power_supply.h extern void power_supply_unregister(struct power_supply *psy); psy 423 include/linux/power_supply.h extern int power_supply_powers(struct power_supply *psy, struct device *dev); psy 427 include/linux/power_supply.h extern void *power_supply_get_drvdata(struct power_supply *psy); psy 486 include/linux/power_supply.h int power_supply_add_hwmon_sysfs(struct power_supply *psy); psy 487 include/linux/power_supply.h void power_supply_remove_hwmon_sysfs(struct power_supply *psy); psy 489 include/linux/power_supply.h static inline int power_supply_add_hwmon_sysfs(struct power_supply *psy) psy 495 include/linux/power_supply.h void power_supply_remove_hwmon_sysfs(struct power_supply *psy) {}