Searched defs:psy (Results 26 - 43 of 43) sorted by relevance

12

/drivers/power/
H A Dwm8350_power.c249 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 Dds2760_battery.c352 static void ds2760_battery_external_power_changed(struct power_supply *psy) argument
354 struct ds2760_device_info *di = to_ds2760_device_info(psy);
398 static void ds2760_battery_set_charged(struct power_supply *psy) argument
400 struct ds2760_device_info *di = to_ds2760_device_info(psy);
408 static int ds2760_battery_get_property(struct power_supply *psy, argument
412 struct ds2760_device_info *di = to_ds2760_device_info(psy);
459 static int ds2760_battery_set_property(struct power_supply *psy, argument
463 struct ds2760_device_info *di = to_ds2760_device_info(psy);
483 static int ds2760_battery_property_is_writeable(struct power_supply *psy, argument
H A Dmax8925_power.c194 static int max8925_ac_get_prop(struct power_supply *psy, argument
198 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent);
228 static int max8925_usb_get_prop(struct power_supply *psy, argument
232 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent);
262 static int max8925_bat_get_prop(struct power_supply *psy, argument
266 struct max8925_power_info *info = dev_get_drvdata(psy->dev->parent);
H A Dolpc_battery.c57 static int olpc_ac_get_prop(struct power_supply *psy, argument
273 static int olpc_bat_get_property(struct power_supply *psy, argument
H A Dda9030_battery.c91 struct power_supply psy; member in struct:da9030_charger
247 power_supply_changed(&charger->psy);
339 static int da9030_battery_get_property(struct power_supply *psy, argument
344 charger = container_of(psy, struct da9030_charger, psy);
449 struct power_supply *psy = &charger->psy; local
452 psy->name = info->name;
453 psy->use_for_apm = info->use_for_apm;
454 psy
[all...]
H A Dda9052-battery.c172 struct power_supply psy; member in struct:da9052_battery
446 power_supply_changed(&bat->psy);
487 static int da9052_bat_get_property(struct power_supply *psy, argument
493 struct da9052_battery *bat = container_of(psy, struct da9052_battery,
494 psy);
585 bat->psy = template_battery;
593 bat->psy.use_for_apm = pdata->use_for_apm;
595 bat->psy.use_for_apm = 1;
611 ret = power_supply_register(&pdev->dev, &bat->psy);
635 power_supply_unregister(&bat->psy);
[all...]
H A Dds2780_battery.c54 to_ds2780_device_info(struct power_supply *psy) argument
56 return container_of(psy, struct ds2780_device_info, bat);
387 static int ds2780_battery_get_property(struct power_supply *psy, argument
392 struct ds2780_device_info *dev_info = to_ds2780_device_info(psy);
461 struct power_supply *psy = to_power_supply(dev); local
462 struct ds2780_device_info *dev_info = to_ds2780_device_info(psy);
480 struct power_supply *psy = to_power_supply(dev); local
481 struct ds2780_device_info *dev_info = to_ds2780_device_info(psy);
515 struct power_supply *psy = to_power_supply(dev); local
516 struct ds2780_device_info *dev_info = to_ds2780_device_info(psy);
533 struct power_supply *psy = to_power_supply(dev); local
553 struct power_supply *psy = to_power_supply(dev); local
570 struct power_supply *psy = to_power_supply(dev); local
596 struct power_supply *psy = to_power_supply(dev); local
614 struct power_supply *psy = to_power_supply(dev); local
640 struct power_supply *psy = to_power_supply(dev); local
657 struct power_supply *psy = to_power_supply(dev); local
693 struct power_supply *psy = to_power_supply(dev); local
710 struct power_supply *psy = to_power_supply(dev); local
[all...]
H A Dintel_mid_battery.c395 * @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 Dlp8727_charger.c89 struct lp8727_psy *psy; member in struct:lp8727_chg
232 power_supply_changed(&pchg->psy->ac);
233 power_supply_changed(&pchg->psy->usb);
234 power_supply_changed(&pchg->psy->batt);
280 static int lp8727_charger_get_property(struct power_supply *psy, argument
284 struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);
287 val->intval = lp8727_is_charger_attached(psy->name,
293 static int lp8727_battery_get_property(struct power_supply *psy, argument
297 struct lp8727_chg *pchg = dev_get_drvdata(psy->dev->parent);
302 if (lp8727_is_charger_attached(psy
343 lp8727_charger_changed(struct power_supply *psy) argument
361 struct lp8727_psy *psy; local
412 struct lp8727_psy *psy = pchg->psy; local
[all...]
H A Dsbs-battery.c453 static int sbs_get_property(struct power_supply *psy, argument
458 struct sbs_info *chip = container_of(psy,
550 static void sbs_external_power_changed(struct power_supply *psy) argument
554 chip = container_of(psy, struct sbs_info, power_supply);
H A Dtwl4030_charger.c353 static int twl4030_bci_get_property(struct power_supply *psy, argument
357 struct twl4030_bci *bci = dev_get_drvdata(psy->dev->parent);
366 if (psy->type == POWER_SUPPLY_TYPE_USB)
382 if (psy->type == POWER_SUPPLY_TYPE_USB) {
H A Dbq27x00_battery.c487 static int bq27x00_battery_get_property(struct power_supply *psy, argument
492 struct bq27x00_device_info *di = to_bq27x00_device_info(psy);
560 static void bq27x00_external_power_changed(struct power_supply *psy) argument
562 struct bq27x00_device_info *di = to_bq27x00_device_info(psy);
/drivers/staging/nvec/
H A Dnvec_power.c222 static int nvec_power_get_property(struct power_supply *psy, argument
226 struct nvec_power *power = dev_get_drvdata(psy->dev->parent);
237 static int nvec_battery_get_property(struct power_supply *psy, argument
241 struct nvec_power *power = dev_get_drvdata(psy->dev->parent);
373 struct power_supply *psy; local
383 psy = &nvec_psy;
391 psy = &nvec_bat_psy;
405 return power_supply_register(&pdev->dev, psy);
/drivers/hid/
H A Dhid-input.c307 static int hidinput_get_battery_property(struct power_supply *psy, argument
311 struct hid_device *dev = container_of(psy, struct hid_device, battery);
H A Dhid-wiimote-core.c397 static int wiimote_battery_get_property(struct power_supply *psy, argument
401 struct wiimote_data *wdata = container_of(psy,
/drivers/acpi/
H A Dbattery.c181 static int acpi_battery_get_property(struct power_supply *psy, argument
186 struct acpi_battery *battery = to_acpi_battery(psy);
H A Dsbs.c165 static int sbs_get_ac_property(struct power_supply *psy, argument
169 struct acpi_sbs *sbs = to_acpi_sbs(psy);
193 static int acpi_sbs_battery_get_property(struct power_supply *psy, argument
197 struct acpi_battery *battery = to_acpi_battery(psy);
/drivers/platform/x86/
H A Dcompal-laptop.c181 struct power_supply psy; member in struct:compal_data
572 static int bat_get_property(struct power_supply *psy, argument
577 data = container_of(psy, struct compal_data, psy);
888 data->psy.name = DRIVER_NAME;
889 data->psy.type = POWER_SUPPLY_TYPE_BATTERY;
890 data->psy.properties = compal_bat_properties;
891 data->psy.num_properties = ARRAY_SIZE(compal_bat_properties);
892 data->psy.get_property = bat_get_property;
1049 power_supply_register(&compal_device->dev, &data->psy);
[all...]

Completed in 328 milliseconds

12