/drivers/acpi/ |
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);
|
H A D | battery.c | 199 static int acpi_battery_get_property(struct power_supply *psy, argument 204 struct acpi_battery *battery = to_acpi_battery(psy);
|
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);
|
/drivers/hid/ |
H A D | hid-input.c | 332 static int hidinput_get_battery_property(struct power_supply *psy, argument 336 struct hid_device *dev = container_of(psy, struct hid_device, battery);
|
H A D | hid-sony.c | 1604 static int sony_battery_get_property(struct power_supply *psy, argument 1608 struct sony_sc *sc = container_of(psy, struct sony_sc, battery);
|
H A D | hid-wiimote-modules.c | 202 static int wiimod_battery_get_property(struct power_supply *psy, argument 206 struct wiimote_data *wdata = container_of(psy, struct wiimote_data,
|
H A D | wacom_sys.c | 925 static int wacom_battery_get_property(struct power_supply *psy, argument 929 struct wacom *wacom = container_of(psy, struct wacom, battery); 957 static int wacom_ac_get_property(struct power_supply *psy, argument 961 struct wacom *wacom = container_of(psy, struct wacom, ac);
|
/drivers/mfd/ |
H A D | ab8500-sysctrl.c | 34 struct power_supply *psy; local 48 psy = power_supply_get_by_name(pss[i]); 49 if (!psy) 52 ret = psy->get_property(psy, POWER_SUPPLY_PROP_ONLINE, &val); 64 psy = power_supply_get_by_name("ab8500_btemp"); 65 if (psy) { 66 ret = psy->get_property(psy, POWER_SUPPLY_PROP_TECHNOLOGY,
|
/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/power/ |
H A D | 88pm860x_battery.c | 799 static void pm860x_external_power_changed(struct power_supply *psy) argument 803 info = container_of(psy, struct pm860x_battery_info, battery); 807 static int pm860x_batt_get_prop(struct power_supply *psy, argument 811 struct pm860x_battery_info *info = dev_get_drvdata(psy->dev->parent); 873 static int pm860x_batt_set_prop(struct power_supply *psy, argument 877 struct pm860x_battery_info *info = dev_get_drvdata(psy->dev->parent);
|
H A D | 88pm860x_charger.c | 288 struct power_supply *psy; local 296 psy = power_supply_get_by_name(pm860x_supplied_to[0]); 297 if (!psy) 299 ret = psy->get_property(psy, POWER_SUPPLY_PROP_VOLTAGE_NOW, &data); 304 ret = psy->get_property(psy, POWER_SUPPLY_PROP_PRESENT, &data); 424 struct power_supply *psy; local 430 psy = power_supply_get_by_name(pm860x_supplied_to[0]); 431 if (!psy) 468 struct power_supply *psy; local 583 pm860x_usb_get_prop(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument [all...] |
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 | ab8500_charger.c | 406 * @psy: pointer to power_supply_that have changed. 410 struct power_supply *psy) 425 power_supply_changed(psy); 438 sysfs_notify(&di->usb_chg.psy.dev->kobj, NULL, "present"); 1519 ab8500_power_supply_changed(di, &di->ac_chg.psy); 1675 ab8500_power_supply_changed(di, &di->usb_chg.psy); 1814 if (charger->psy.type == POWER_SUPPLY_TYPE_MAINS) 1816 else if (charger->psy.type == POWER_SUPPLY_TYPE_USB) 1842 if (charger->psy.type == POWER_SUPPLY_TYPE_MAINS) 1844 else if (charger->psy 409 ab8500_power_supply_changed(struct ab8500_charger *di, struct power_supply *psy) argument 1931 struct power_supply *psy; local 2952 ab8500_charger_ac_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument 3019 ab8500_charger_usb_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument [all...] |
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 | abx500_chargalg.c | 980 struct power_supply *psy; local 988 psy = (struct power_supply *)data; 990 di = to_abx500_chargalg_device_info(psy); 991 /* For all psy where the driver name appears in any supplied_to */ 993 if (!strcmp(ext->supplied_to[i], psy->name)) 1009 /* Go through all properties for the psy */ 1305 * @psy: pointer to the structure power_supply 1312 static void abx500_chargalg_external_power_changed(struct power_supply *psy) argument 1314 struct abx500_chargalg *di = to_abx500_chargalg_device_info(psy); 1768 * @psy 1778 abx500_chargalg_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) argument [all...] |
H A D | apm_power.c | 18 #define PSY_PROP(psy, prop, val) (psy->get_property(psy, \
|
H A D | bq2415x_charger.c | 805 struct power_supply *psy = v; local 814 if (psy != bq->notify_psy) 819 ret = psy->get_property(psy, POWER_SUPPLY_PROP_CURRENT_MAX, &prop); 997 static int bq2415x_power_supply_get_property(struct power_supply *psy, argument 1001 struct bq2415x_device *bq = container_of(psy, struct bq2415x_device, 1087 struct power_supply *psy = dev_get_drvdata(dev); local 1088 struct bq2415x_device *bq = container_of(psy, struct bq2415x_device, 1121 struct power_supply *psy = dev_get_drvdata(dev); local 1122 struct bq2415x_device *bq = container_of(psy, struc 1143 struct power_supply *psy = dev_get_drvdata(dev); local 1168 struct power_supply *psy = dev_get_drvdata(dev); local 1221 struct power_supply *psy = dev_get_drvdata(dev); local 1259 struct power_supply *psy = dev_get_drvdata(dev); local 1288 struct power_supply *psy = dev_get_drvdata(dev); local 1324 struct power_supply *psy = dev_get_drvdata(dev); local 1343 struct power_supply *psy = dev_get_drvdata(dev); local 1375 struct power_supply *psy = dev_get_drvdata(dev); local 1404 struct power_supply *psy = dev_get_drvdata(dev); local 1440 struct power_supply *psy = dev_get_drvdata(dev); local [all...] |
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 | bq24735-charger.c | 52 static inline struct bq24735 *to_bq24735(struct power_supply *psy) argument 54 return container_of(psy, struct bq24735, charger); 178 struct power_supply *psy = devid; local 179 struct bq24735 *charger = to_bq24735(psy); 186 power_supply_changed(psy); 191 static int bq24735_charger_get_property(struct power_supply *psy, argument 197 charger = container_of(psy, struct bq24735, charger);
|
H A D | bq27x00_battery.c | 643 static int bq27x00_battery_get_property(struct power_supply *psy, argument 648 struct bq27x00_device_info *di = to_bq27x00_device_info(psy); 724 static void bq27x00_external_power_changed(struct power_supply *psy) argument 726 struct bq27x00_device_info *di = to_bq27x00_device_info(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 | collie_battery.c | 32 struct power_supply psy; member in struct:collie_bat 95 static int collie_bat_get_property(struct power_supply *psy, argument 100 struct collie_bat *bat = container_of(psy, struct collie_bat, psy); 142 static void collie_bat_external_power_changed(struct power_supply *psy) argument 157 struct power_supply *psy = &bat->psy; local 164 printk(KERN_NOTICE "%s not present\n", psy->name); 167 } else if (power_supply_am_i_supplied(psy)) { 190 power_supply_changed(psy); [all...] |
H A D | da9030_battery.c | 92 struct power_supply psy; member in struct:da9030_charger 248 power_supply_changed(&charger->psy); 340 static int da9030_battery_get_property(struct power_supply *psy, argument 345 charger = container_of(psy, struct da9030_charger, psy); 450 struct power_supply *psy = &charger->psy; local 453 psy->name = info->name; 454 psy->use_for_apm = info->use_for_apm; 455 psy [all...] |
H A D | da9052-battery.c | 172 struct power_supply psy; member in struct:da9052_battery 455 power_supply_changed(&bat->psy); 496 static int da9052_bat_get_property(struct power_supply *psy, argument 502 struct da9052_battery *bat = container_of(psy, struct da9052_battery, 503 psy); 603 bat->psy = template_battery; 611 bat->psy.use_for_apm = pdata->use_for_apm; 613 bat->psy.use_for_apm = 1; 628 ret = power_supply_register(&pdev->dev, &bat->psy); 649 power_supply_unregister(&bat->psy); [all...] |
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
|