/linux-3.4.99/drivers/acpi/ |
D | battery.c | 151 inline int acpi_battery_present(struct acpi_battery *battery) in acpi_battery_present() argument 153 return battery->device->status.battery_present; in acpi_battery_present() 156 static int acpi_battery_technology(struct acpi_battery *battery) in acpi_battery_technology() argument 158 if (!strcasecmp("NiCd", battery->type)) in acpi_battery_technology() 160 if (!strcasecmp("NiMH", battery->type)) in acpi_battery_technology() 162 if (!strcasecmp("LION", battery->type)) in acpi_battery_technology() 164 if (!strncasecmp("LI-ION", battery->type, 6)) in acpi_battery_technology() 166 if (!strcasecmp("LiP", battery->type)) in acpi_battery_technology() 171 static int acpi_battery_get_state(struct acpi_battery *battery); 173 static int acpi_battery_is_charged(struct acpi_battery *battery) in acpi_battery_is_charged() argument [all …]
|
D | sbs.c | 125 struct acpi_battery battery[MAX_SBS_BAT]; member 134 static int acpi_battery_get_state(struct acpi_battery *battery); 144 static inline int acpi_battery_vscale(struct acpi_battery *battery) in acpi_battery_vscale() argument 146 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale() 149 static inline int acpi_battery_ipscale(struct acpi_battery *battery) in acpi_battery_ipscale() argument 151 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale() 154 static inline int acpi_battery_mode(struct acpi_battery *battery) in acpi_battery_mode() argument 156 return (battery->mode & 0x8000); in acpi_battery_mode() 159 static inline int acpi_battery_scale(struct acpi_battery *battery) in acpi_battery_scale() argument 161 return (acpi_battery_mode(battery) ? 10 : 1) * in acpi_battery_scale() [all …]
|
/linux-3.4.99/drivers/power/ |
D | jz4740-battery.c | 49 struct power_supply battery; member 57 return container_of(psy, struct jz_battery, battery); in psy_to_jz_battery() 62 struct jz_battery *battery = devid; in jz_battery_irq_handler() local 64 complete(&battery->read_completion); in jz_battery_irq_handler() 68 static long jz_battery_read_voltage(struct jz_battery *battery) in jz_battery_read_voltage() argument 74 mutex_lock(&battery->lock); in jz_battery_read_voltage() 76 INIT_COMPLETION(battery->read_completion); in jz_battery_read_voltage() 78 enable_irq(battery->irq); in jz_battery_read_voltage() 79 battery->cell->enable(battery->pdev); in jz_battery_read_voltage() 81 t = wait_for_completion_interruptible_timeout(&battery->read_completion, in jz_battery_read_voltage() [all …]
|
D | Kconfig | 30 battery class devices. 33 tristate "MAX8925 battery charger support" 36 Say Y here to enable support for the battery charger in the Maxim 40 tristate "WM831X backup battery charger support" 43 Say Y here to enable support for the backup battery charger 66 tristate "DS2760 battery driver (HP iPAQ & others)" 72 tristate "DS2780 battery driver" 80 tristate "2781 battery driver" 85 If you enable this you will have the DS2781 battery driver support. 87 The battery monitor chip is used in many batteries/devices [all …]
|
D | ds2782_battery.c | 51 #define to_ds278x_info(x) container_of(x, struct ds278x_info, battery) 55 struct power_supply battery; member 278 static void ds278x_power_supply_init(struct power_supply *battery) in ds278x_power_supply_init() argument 280 battery->type = POWER_SUPPLY_TYPE_BATTERY; in ds278x_power_supply_init() 281 battery->properties = ds278x_battery_props; in ds278x_power_supply_init() 282 battery->num_properties = ARRAY_SIZE(ds278x_battery_props); in ds278x_power_supply_init() 283 battery->get_property = ds278x_battery_get_property; in ds278x_power_supply_init() 284 battery->external_power_changed = NULL; in ds278x_power_supply_init() 291 power_supply_unregister(&info->battery); in ds278x_battery_remove() 292 kfree(info->battery.name); in ds278x_battery_remove() [all …]
|
D | max8997_charger.c | 33 struct power_supply battery; member 48 struct charger_data, battery); in max8997_battery_get_property() 149 charger->battery.name = "max8997_pmic"; in max8997_battery_probe() 150 charger->battery.type = POWER_SUPPLY_TYPE_BATTERY; in max8997_battery_probe() 151 charger->battery.get_property = max8997_battery_get_property; in max8997_battery_probe() 152 charger->battery.properties = max8997_battery_props; in max8997_battery_probe() 153 charger->battery.num_properties = ARRAY_SIZE(max8997_battery_props); in max8997_battery_probe() 158 ret = power_supply_register(&pdev->dev, &charger->battery); in max8997_battery_probe() 174 power_supply_unregister(&charger->battery); in max8997_battery_remove()
|
D | max8998_charger.c | 33 struct power_supply battery; member 47 struct max8998_battery_data, battery); in max8998_battery_get_property() 163 max8998->battery.name = "max8998_pmic"; in max8998_battery_probe() 164 max8998->battery.type = POWER_SUPPLY_TYPE_BATTERY; in max8998_battery_probe() 165 max8998->battery.get_property = max8998_battery_get_property; in max8998_battery_probe() 166 max8998->battery.properties = max8998_battery_props; in max8998_battery_probe() 167 max8998->battery.num_properties = ARRAY_SIZE(max8998_battery_props); in max8998_battery_probe() 169 ret = power_supply_register(max8998->dev, &max8998->battery); in max8998_battery_probe() 185 power_supply_unregister(&max8998->battery); in max8998_battery_remove()
|
D | wm831x_power.c | 26 struct power_supply battery; member 222 if (!wm831x_pdata || !wm831x_pdata->battery) { in wm831x_config_battery() 228 pdata = wm831x_pdata->battery; in wm831x_config_battery() 454 power_supply_changed(&wm831x_power->battery); in wm831x_bat_irq() 485 power_supply_changed(&wm831x_power->battery); in wm831x_pwr_src_irq() 498 struct power_supply *battery; in wm831x_power_probe() local 510 battery = &power->battery; in wm831x_power_probe() 558 battery->name = power->battery_name; in wm831x_power_probe() 559 battery->properties = wm831x_bat_props; in wm831x_power_probe() 560 battery->num_properties = ARRAY_SIZE(wm831x_bat_props); in wm831x_power_probe() [all …]
|
D | max17040_battery.c | 43 struct power_supply battery; member 61 struct max17040_chip, battery); in max17040_get_property() 220 chip->battery.name = "battery"; in max17040_probe() 221 chip->battery.type = POWER_SUPPLY_TYPE_BATTERY; in max17040_probe() 222 chip->battery.get_property = max17040_get_property; in max17040_probe() 223 chip->battery.properties = max17040_battery_props; in max17040_probe() 224 chip->battery.num_properties = ARRAY_SIZE(max17040_battery_props); in max17040_probe() 226 ret = power_supply_register(&client->dev, &chip->battery); in max17040_probe() 246 power_supply_unregister(&chip->battery); in max17040_remove()
|
D | wm8350_power.c | 199 power_supply_changed(&power->battery); in wm8350_charger_handler() 206 power_supply_changed(&power->battery); in wm8350_charger_handler() 234 power_supply_changed(&power->battery); in wm8350_charger_handler() 451 struct power_supply *battery = &power->battery; in wm8350_power_probe() local 464 battery->name = "wm8350-battery"; in wm8350_power_probe() 465 battery->properties = wm8350_bat_props; in wm8350_power_probe() 466 battery->num_properties = ARRAY_SIZE(wm8350_bat_props); in wm8350_power_probe() 467 battery->get_property = wm8350_bat_get_property; in wm8350_power_probe() 468 battery->use_for_apm = 1; in wm8350_power_probe() 469 ret = power_supply_register(&pdev->dev, battery); in wm8350_power_probe() [all …]
|
D | max8925_power.c | 72 struct power_supply battery; member 476 info->battery.name = "max8925-battery"; in max8925_power_probe() 477 info->battery.type = POWER_SUPPLY_TYPE_BATTERY; in max8925_power_probe() 478 info->battery.properties = max8925_battery_props; in max8925_power_probe() 479 info->battery.num_properties = ARRAY_SIZE(max8925_battery_props); in max8925_power_probe() 480 info->battery.get_property = max8925_bat_get_prop; in max8925_power_probe() 481 ret = power_supply_register(&pdev->dev, &info->battery); in max8925_power_probe() 484 info->battery.dev->parent = &pdev->dev; in max8925_power_probe() 496 power_supply_unregister(&info->battery); in max8925_power_probe() 511 power_supply_unregister(&info->battery); in max8925_power_remove()
|
D | smb347-charger.c | 134 struct power_supply battery; member 796 power_supply_changed(&smb->battery); in smb347_interrupt() 808 power_supply_changed(&smb->battery); in smb347_interrupt() 986 container_of(psy, struct smb347_charger, battery); in smb347_battery_get_property() 1161 static char *battery[] = { "smb347-battery" }; in smb347_probe() local 1193 smb->mains.supplied_to = battery; in smb347_probe() 1194 smb->mains.num_supplicants = ARRAY_SIZE(battery); in smb347_probe() 1201 smb->usb.supplied_to = battery; in smb347_probe() 1202 smb->usb.num_supplicants = ARRAY_SIZE(battery); in smb347_probe() 1204 smb->battery.name = "smb347-battery"; in smb347_probe() [all …]
|
D | max17042_battery.c | 66 struct power_supply battery; member 120 struct max17042_chip, battery); in max17042_get_property() 584 power_supply_changed(&chip->battery); in max17042_thread_handler() 662 chip->battery.name = "max17042_battery"; in max17042_probe() 663 chip->battery.type = POWER_SUPPLY_TYPE_BATTERY; in max17042_probe() 664 chip->battery.get_property = max17042_get_property; in max17042_probe() 665 chip->battery.properties = max17042_battery_props; in max17042_probe() 666 chip->battery.num_properties = ARRAY_SIZE(max17042_battery_props); in max17042_probe() 671 chip->battery.num_properties -= 2; in max17042_probe() 690 chip->battery.name, chip); in max17042_probe() [all …]
|
D | Makefile | 26 obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o 29 obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o 35 obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
|
/linux-3.4.99/Documentation/power/ |
D | charger-manager.txt | 4 Charger Manager provides in-kernel battery charger management that 6 and where each battery may have multiple chargers attached and the userland 11 represents an independent battery with chargers. If there are multiple 24 different information about the battery status. This framework 29 While the battery is being charged and the system is in suspend-to-RAM, 30 we may need to monitor the battery health by looking at the ambient or 31 battery temperature. We can accomplish this by waking up the system 33 monitoring the battery health and tasks, and user processes that are 38 only affects the charging time, but the lifespan of the battery. 82 When cm_suspend_again is called, it monitors every battery. The suspend_ops [all …]
|
D | power_supply_class.txt | 6 Power supply class used to represent battery, UPS, AC or DC power supply 24 typically expected feedback of battery charging/fully charged status and 62 ~ of battery, this class distinguish these terms. Don't mix them! ~ 77 BATTERY_STATUS_* values, as defined in battery.h. 84 HEALTH - represents health of the battery, values corresponds to 85 POWER_SUPPLY_HEALTH_*, defined in battery.h. 89 when battery considered "full"/"empty" at normal conditions. Yes, there is 90 no direct relation between voltage and battery capacity, but some dumb 93 about maximal and minimal voltage thresholds of a given battery. 100 battery considered full/empty. [all …]
|
/linux-3.4.99/Documentation/devicetree/bindings/power_supply/ |
D | sbs_sbs-battery.txt | 1 SBS sbs-battery 5 - compatible : "sbs,sbs-battery" 12 - sbs,battery-detect-gpios : The gpio which signals battery detection and 18 compatible = "sbs,sbs-battery"; 22 sbs,battery-detect-gpios = <&gpio-controller 122 1>;
|
D | olpc_battery.txt | 1 OLPC battery 5 - compatible : "olpc,xo1-battery"
|
/linux-3.4.99/drivers/block/ |
D | umem.c | 134 } battery[2]; member 683 if (card->battery[0].good && card->battery[1].good) in set_fault_to_battery_status() 685 else if (card->battery[0].warned || card->battery[1].warned) in set_fault_to_battery_status() 687 else if (!card->battery[0].good && !card->battery[1].good) in set_fault_to_battery_status() 695 static int check_battery(struct cardinfo *card, int battery, int status) in check_battery() argument 697 if (status != card->battery[battery].good) { in check_battery() 698 card->battery[battery].good = !card->battery[battery].good; in check_battery() 699 card->battery[battery].last_change = jiffies; in check_battery() 701 if (card->battery[battery].good) { in check_battery() 703 "Battery %d now good\n", battery + 1); in check_battery() [all …]
|
/linux-3.4.99/Documentation/ABI/testing/ |
D | sysfs-class-power | 1 What: /sys/class/power/ds2760-battery.*/charge_now 7 coloumb counter value inside the battery monitor chip. This 9 A userspace daemon can monitor the battery charging logic 13 What: /sys/class/power/ds2760-battery.*/charge_full 19 battery 'full level'. As batteries age, this value has to be
|
D | sysfs-driver-samsung-laptop | 25 Description: Max battery charge level can be modified, battery cycle 26 life can be extended by reducing the max battery charge 28 0 means normal battery mode (100% charge) 29 1 means battery life extender mode (80% charge)
|
/linux-3.4.99/arch/sh/boards/mach-hp6xx/ |
D | hp6xx_apm.c | 34 int battery, backup, charging, percentage; in hp6x0_apm_get_power_status() local 37 battery = adc_single(ADC_CHANNEL_BATTERY); in hp6x0_apm_get_power_status() 41 percentage = 100 * (battery - HP680_BATTERY_MIN) / in hp6x0_apm_get_power_status() 51 info->time = (2 * battery); in hp6x0_apm_get_power_status() 53 info->ac_line_status = (battery > HP680_BATTERY_AC_ON) ? in hp6x0_apm_get_power_status()
|
/linux-3.4.99/drivers/w1/slaves/ |
D | Kconfig | 59 tristate "Dallas 2760 battery monitor chip (HP iPAQ & others)" 62 If you enable this you will have the DS2760 battery monitor 65 The battery monitor chip is used in many batteries/devices 72 tristate "Dallas 2780 battery monitor chip" 75 If you enable this you will have the DS2780 battery monitor 78 The battery monitor chip is used in many batteries/devices 85 tristate "Dallas 2781 battery monitor chip" 88 If you enable this you will have the DS2781 battery monitor 91 The battery monitor chip is used in many batteries/devices
|
/linux-3.4.99/drivers/hid/ |
D | hid-wacom.c | 46 struct power_supply battery; member 72 struct wacom_data, battery); in wacom_battery_get_property() 600 wdata->battery.properties = wacom_battery_props; in wacom_probe() 601 wdata->battery.num_properties = ARRAY_SIZE(wacom_battery_props); in wacom_probe() 602 wdata->battery.get_property = wacom_battery_get_property; in wacom_probe() 603 wdata->battery.name = "wacom_battery"; in wacom_probe() 604 wdata->battery.type = POWER_SUPPLY_TYPE_BATTERY; in wacom_probe() 605 wdata->battery.use_for_apm = 0; in wacom_probe() 608 ret = power_supply_register(&hdev->dev, &wdata->battery); in wacom_probe() 615 power_supply_powers(&wdata->battery, &hdev->dev); in wacom_probe() [all …]
|
D | hid-input.c | 315 struct hid_device *dev = container_of(psy, struct hid_device, battery); in hidinput_get_battery_property() 373 struct power_supply *battery = &dev->battery; in hidinput_setup_battery() local 381 if (battery->name != NULL) in hidinput_setup_battery() 384 battery->name = kasprintf(GFP_KERNEL, "hid-%s-battery", dev->uniq); in hidinput_setup_battery() 385 if (battery->name == NULL) in hidinput_setup_battery() 388 battery->type = POWER_SUPPLY_TYPE_BATTERY; in hidinput_setup_battery() 389 battery->properties = hidinput_battery_props; in hidinput_setup_battery() 390 battery->num_properties = ARRAY_SIZE(hidinput_battery_props); in hidinput_setup_battery() 391 battery->use_for_apm = 0; in hidinput_setup_battery() 392 battery->get_property = hidinput_get_battery_property; in hidinput_setup_battery() [all …]
|