/drivers/power/ |
H A D | ds2760_battery.c | 352 static void ds2760_battery_external_power_changed(struct power_supply *psy) argument 354 struct ds2760_device_info *di = to_ds2760_device_info(psy); 397 static void ds2760_battery_set_charged(struct power_supply *psy) argument 399 struct ds2760_device_info *di = to_ds2760_device_info(psy); 406 static int ds2760_battery_get_property(struct power_supply *psy, argument 410 struct ds2760_device_info *di = to_ds2760_device_info(psy); 457 static int ds2760_battery_set_property(struct power_supply *psy, argument 461 struct ds2760_device_info *di = to_ds2760_device_info(psy); 481 static int ds2760_battery_property_is_writeable(struct power_supply *psy, argument
|
H A D | pmu_battery.c | 32 static int pmu_get_ac_prop(struct power_supply *psy, argument 82 static int pmu_bat_get_property(struct power_supply *psy, argument 86 struct pmu_battery_dev *pbat = to_pmu_battery_dev(psy);
|
H A D | charger-manager.c | 100 struct power_supply *psy; local 111 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); 112 if (!psy) 115 ret = psy->get_property(psy, 122 psy = power_supply_get_by_name( 124 if (!psy) { 130 ret = psy->get_property(psy, POWER_SUPPLY_PROP_PRESENT, 154 struct power_supply *psy; local 212 struct power_supply *psy; local 869 charger_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument 1795 struct power_supply *psy; local 2121 find_power_supply(struct charger_manager *cm, struct power_supply *psy) argument 2143 cm_notify_event(struct power_supply *psy, enum cm_event_types type, char *msg) argument [all...] |
H A D | goldfish_battery.c | 66 static int goldfish_ac_get_property(struct power_supply *psy, argument 70 struct goldfish_battery_data *data = container_of(psy, 85 static int goldfish_battery_get_property(struct power_supply *psy, argument 89 struct goldfish_battery_data *data = container_of(psy,
|
H A D | ab8500_fg.c | 2079 * @psy: pointer to the power_supply structure 2095 static int ab8500_fg_get_property(struct power_supply *psy, argument 2101 di = to_ab8500_fg_device_info(psy); 2175 struct power_supply *psy; local 2182 psy = (struct power_supply *)data; 2184 di = to_ab8500_fg_device_info(psy); 2187 * For all psy where the name of your driver 2191 if (!strcmp(ext->supplied_to[i], psy->name)) 2198 /* Go through all properties for the psy */ 2393 * @psy 2400 ab8500_fg_external_power_changed(struct power_supply *psy) argument 2596 struct power_supply *psy = dev_get_drvdata(dev); local 2621 struct power_supply *psy = dev_get_drvdata(dev); local 2649 struct power_supply *psy = dev_get_drvdata(dev); local 2675 struct power_supply *psy = dev_get_drvdata(dev); local 2702 struct power_supply *psy = dev_get_drvdata(dev); local 2727 struct power_supply *psy = dev_get_drvdata(dev); local 2755 struct power_supply *psy = dev_get_drvdata(dev); local 2780 struct power_supply *psy = dev_get_drvdata(dev); local 2805 struct power_supply *psy = dev_get_drvdata(dev); local 2828 struct power_supply *psy = dev_get_drvdata(dev); local 2856 struct power_supply *psy = dev_get_drvdata(dev); local 2881 struct power_supply *psy = dev_get_drvdata(dev); local 2906 struct power_supply *psy = dev_get_drvdata(dev); local 2933 struct power_supply *psy = dev_get_drvdata(dev); local 2974 struct power_supply *psy = dev_get_drvdata(dev); local 2999 struct power_supply *psy = dev_get_drvdata(dev); local [all...] |
H A D | test_power.c | 35 static int test_power_get_ac_property(struct power_supply *psy, argument 49 static int test_power_get_usb_property(struct power_supply *psy, argument 63 static int test_power_get_battery_property(struct power_supply *psy, argument 303 static inline void signal_power_supply_changed(struct power_supply *psy) argument 306 power_supply_changed(psy);
|
H A D | max8925_power.c | 195 static int max8925_ac_get_prop(struct power_supply *psy, argument 199 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent); 229 static int max8925_usb_get_prop(struct power_supply *psy, argument 233 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent); 263 static int max8925_bat_get_prop(struct power_supply *psy, argument 267 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent);
|
H A D | pcf50633-charger.c | 289 static int adapter_get_property(struct power_supply *psy, argument 293 struct pcf50633_mbc *mbc = container_of(psy, 308 static int usb_get_property(struct power_supply *psy, argument 312 struct pcf50633_mbc *mbc = container_of(psy, struct pcf50633_mbc, usb); 329 static int ac_get_property(struct power_supply *psy, argument 333 struct pcf50633_mbc *mbc = container_of(psy, struct pcf50633_mbc, ac);
|
H A D | wm8350_power.c | 249 static int wm8350_ac_get_prop(struct power_supply *psy, argument 253 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent); 279 static int wm8350_usb_get_prop(struct power_supply *psy, argument 283 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent); 345 static int wm8350_bat_get_property(struct power_supply *psy, argument 349 struct wm8350 *wm8350 = dev_get_drvdata(psy->dev->parent);
|
H A D | max8997_charger.c | 43 static int max8997_battery_get_property(struct power_supply *psy, argument 47 struct charger_data *charger = container_of(psy,
|
H A D | max8998_charger.c | 42 static int max8998_battery_get_property(struct power_supply *psy, argument 46 struct max8998_battery_data *max8998 = container_of(psy,
|
H A D | wm831x_backup.c | 114 static int wm831x_backup_get_prop(struct power_supply *psy, argument 118 struct wm831x_backup *devdata = dev_get_drvdata(psy->dev->parent);
|
H A D | bq24190_charger.c | 425 struct power_supply *psy = dev_get_drvdata(dev); local 427 container_of(psy, struct bq24190_dev_info, charger); 446 struct power_supply *psy = dev_get_drvdata(dev); local 448 container_of(psy, struct bq24190_dev_info, charger); 807 static int bq24190_charger_get_property(struct power_supply *psy, argument 811 container_of(psy, struct bq24190_dev_info, charger); 860 static int bq24190_charger_set_property(struct power_supply *psy, argument 865 container_of(psy, struct bq24190_dev_info, charger); 890 static int bq24190_charger_property_is_writeable(struct power_supply *psy, argument 1102 static int bq24190_battery_get_property(struct power_supply *psy, argument 1143 bq24190_battery_set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val) argument 1170 bq24190_battery_property_is_writeable(struct power_supply *psy, enum power_supply_property psp) argument [all...] |
H A D | wm831x_power.c | 66 static int wm831x_wall_get_prop(struct power_supply *psy, argument 70 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev->parent); 97 static int wm831x_usb_get_prop(struct power_supply *psy, argument 101 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev->parent); 392 static int wm831x_bat_get_prop(struct power_supply *psy, argument 396 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev->parent);
|
H A D | apm_power.c | 18 #define PSY_PROP(psy, prop, val) (psy->get_property(psy, \
|
H A D | intel_mid_battery.c | 395 * @psy: usb power supply context 403 static int pmic_usb_get_property(struct power_supply *psy, argument 407 struct pmic_power_module_info *pbi = container_of(psy, 435 * @psy: battery power supply context 443 static int pmic_battery_get_property(struct power_supply *psy, argument 447 struct pmic_power_module_info *pbi = container_of(psy,
|
H A D | ab8500_btemp.c | 871 * @psy: pointer to the power_supply structure 883 static int ab8500_btemp_get_property(struct power_supply *psy, argument 889 di = to_ab8500_btemp_device_info(psy); 913 struct power_supply *psy; local 920 psy = (struct power_supply *)data; 922 di = to_ab8500_btemp_device_info(psy); 925 * For all psy where the name of your driver 929 if (!strcmp(ext->supplied_to[i], psy->name)) 936 /* Go through all properties for the psy */ 984 * @psy 991 ab8500_btemp_external_power_changed(struct power_supply *psy) argument [all...] |
H A D | max17040_battery.c | 56 static int max17040_get_property(struct power_supply *psy, argument 60 struct max17040_chip *chip = container_of(psy,
|
H A D | rx51_battery.c | 160 static int rx51_battery_get_property(struct power_supply *psy, argument 164 struct rx51_device_info *di = container_of((psy),
|
H A D | lp8788-charger.c | 147 static int lp8788_charger_get_property(struct power_supply *psy, argument 151 struct lp8788_charger *pchg = dev_get_drvdata(psy->dev->parent); 336 static int lp8788_battery_get_property(struct power_supply *psy, argument 340 struct lp8788_charger *pchg = dev_get_drvdata(psy->dev->parent);
|
H A D | twl4030_charger.c | 462 static int twl4030_bci_get_property(struct power_supply *psy, argument 466 struct twl4030_bci *bci = dev_get_drvdata(psy->dev->parent); 475 if (psy->type == POWER_SUPPLY_TYPE_USB) 491 if (psy->type == POWER_SUPPLY_TYPE_USB) {
|
H A D | ds2782_battery.c | 245 static int ds278x_battery_get_property(struct power_supply *psy, argument 249 struct ds278x_info *info = to_ds278x_info(psy);
|
/drivers/platform/x86/ |
H A D | compal-laptop.c | 180 struct power_supply psy; member in struct:compal_data 564 static int bat_get_property(struct power_supply *psy, argument 569 data = container_of(psy, struct compal_data, psy); 881 data->psy.name = DRIVER_NAME; 882 data->psy.type = POWER_SUPPLY_TYPE_BATTERY; 883 data->psy.properties = compal_bat_properties; 884 data->psy.num_properties = ARRAY_SIZE(compal_bat_properties); 885 data->psy.get_property = bat_get_property; 1040 power_supply_register(&compal_device->dev, &data->psy); [all...] |
/drivers/acpi/ |
H A D | sbs.c | 152 static int sbs_get_ac_property(struct power_supply *psy, argument 156 struct acpi_sbs *sbs = to_acpi_sbs(psy); 180 static int acpi_sbs_battery_get_property(struct power_supply *psy, argument 184 struct acpi_battery *battery = to_acpi_battery(psy);
|
H A D | ac.c | 142 static int get_ac_property(struct power_supply *psy, argument 146 struct acpi_ac *ac = to_acpi_ac(psy);
|